{"_id":"@bonfire-xmpp/verse","_rev":"2-cfcecbd36f092e3f129f7ebbf91890b4","name":"@bonfire-xmpp/verse","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bonfire-xmpp/verse","description":"Modern XMPP for the modern web","version":"1.0.0","author":{"name":"Upkeep","email":"upkeep@airmail.cc"},"bugs":{"url":"https://github.com/bonfire-xmpp/verse/issues"},"contributors":[{"name":"Lance Stout","email":"lancestout@gmail.com"},{"name":"Philipp Hancke","email":"fippo@andyet.net"},{"name":"Steven Lloyd Watkin","email":"lloyd@evilprofessor.co.uk"}],"dependencies":{"@types/async":"^3.2.5","@types/node":"^14.14.36","@types/punycode":"^2.1.0","@types/readable-stream":"^2.3.9","@types/ws":"^7.4.0","async":"^3.0.1","buffer":"^6.0.3","node-fetch":"^2.6.1","process":"^0.11.10","punycode":"^2.1.1","react-native-randombytes":"^3.6.0","readable-stream":"^2.3.6","sdp":"^3.0.2","stanza-shims":"^1.1.1","tslib":"^2.2.0","ws":"^7.4.4"},"homepage":"https://stanzajs.org","husky":{"hooks":{"pre-commit":"pretty-quick --stage && npm run lint && npm test"}},"jest":{"preset":"ts-jest","testEnvironment":"node","testRegex":"test/.*\\.ts$","testMatch":null,"collectCoverage":true,"collectCoverageFrom":["./src/**/*.ts"],"coverageDirectory":"./coverage","coverageReporters":["text","html"]},"keywords":["jingle","verse","bonfire","bonfire-xmpp","xmpp"],"license":"MIT","main":"./index.js","prettier":{"tabWidth":4,"printWidth":100,"semi":true,"singleQuote":true,"trailingComma":"none","arrowParens":"avoid"},"private":false,"repository":{"type":"git","url":"git+https://github.com/bonfire-xmpp/verse.git"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"browser":"./module.js","module":"./module.js","react-native":"./index.js","sideEffects":false,"typings":"./index","_id":"@bonfire-xmpp/verse@1.0.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-vyrpzeiiRylvbs3MCd1yzzpIfiB/23O2XcIjyfwx7OLmdhJ5DsXFFydrDN1KjqansMswnZpEF4rtAwJNFRGOBA==","shasum":"84c4dc5825f49a58e940172de66a41146b03f023","tarball":"https://registry.npmjs.org/@bonfire-xmpp/verse/-/verse-1.0.0.tgz","fileCount":281,"unpackedSize":1287570,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgtmlTCRA9TVsSAnZWagAANZoQAJ/zR0sKqfvq2h4FOHN0\nvprs0qpG3pn8yDW65/d0Fpd3Kwr2fkZ4oxJJy0WlDxZT9YNiuemb1fGteAZu\nc7bevj2Jp+hZyhZHTQ4pFRpZBV19W/2e8g/x2IV+d7KgheM+MSJTy8T+8VuD\nMugZ7omn1UL+XXvMLwEC5LTf8kFS43WgSsW1+6YGyc/XkkNY+tpD9LRqgF9m\nB5b6Z3oGI1MSrOZrdC/afXj7p+AyOYm4v6bF0dsgLIqnDIg2sEm8xcRmkyma\n5geQAiBBZ0sYfPnfxNgtRW0Gc1ZYtVmJZs98zZF/nIyk6eZQHAA7x5UNqrCs\nrMsyNqDNDhDl63WgQWfVReH3yKSNuOQZYlmkV2BjNlCSUqjC3auvHzAN2erZ\nl2lkGNopQCT44e+6hu6UCE0QGr5R2ZDGrUCsQDj7oeQ/SibSQqfMVT2Wc2XQ\nnQ75/LZUj4NNQ1CxkkAItnwzXKFM1QII97NfNhsz4HbuUbMFk+tF/AHWHkjC\nMOoyA2QGee1st5pjse3bzMXcVphDjIGV3eWhi7RtUtLPfSGZUaAabm73eth0\nk3zPs8unIXVTCdGI8mMQ+RRKowi1LzWpVNKbYFP4I6AunWjxPtCnS6oOP9+7\n9W8DAWXgyRl4ZNbcSlm6uWboaHh60dLUfMYlLhMcQCBPIBbuuM6n7kZLJXkt\ntAkX\r\n=hpuI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC/qOQgtHRj0JJDSIB3HvqfTw8PfH3sIkbLU7qkAxF12AiEA51mW2Z8WCPN0zmLDGjuNBkNrpj74QJCQc7OTA89Y6gA="}]},"_npmUser":{"name":"misterupkeep","email":"upkeep@airmail.cc"},"directories":{},"maintainers":[{"name":"misterupkeep","email":"upkeep@airmail.cc"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/verse_1.0.0_1622567250439_0.5754341827161777"},"_hasShrinkwrap":false}},"time":{"created":"2021-06-01T17:07:30.090Z","1.0.0":"2021-06-01T17:07:30.771Z","modified":"2022-04-04T20:06:11.222Z"},"maintainers":[{"email":"rxsunshine@protonmail.com","name":"00drip"},{"email":"upkeep@airmail.cc","name":"misterupkeep"}],"description":"Modern XMPP for the modern web","homepage":"https://stanzajs.org","keywords":["jingle","verse","bonfire","bonfire-xmpp","xmpp"],"repository":{"type":"git","url":"git+https://github.com/bonfire-xmpp/verse.git"},"contributors":[{"name":"Lance Stout","email":"lancestout@gmail.com"},{"name":"Philipp Hancke","email":"fippo@andyet.net"},{"name":"Steven Lloyd Watkin","email":"lloyd@evilprofessor.co.uk"}],"author":{"name":"Upkeep","email":"upkeep@airmail.cc"},"bugs":{"url":"https://github.com/bonfire-xmpp/verse/issues"},"license":"MIT","readme":"# Verse\n\n**Modern XMPP for the modern web.**\n\n## What is this?\n\nVerse is a JavaScript/TypeScript XMPP library forked from Stanza used in the [bonfire](https://github.com/bonfire-xmpp/bonfire) XMPP client. \n\nXML stanzas are converted to-and-fro JSON, meaning you won't have to work with XML unless you explicitly want to. \n\nExtending functionality can be done in two ways, depending on how _core_ the changes are:\n - Changing the original sources\n - Writing a plugin\n\nPlugins can be added from third-party code as well, and are more suited for adding _additional_ functionality. \nThe idea with plugins is to extend existing types, add more XML/JSON translations, and emit a new event. See: [Creating Plugins](docs/Create_Plugin.md)\n\n## Installing\n\n```sh\nnpm install @bonfire-xmpp/verse\n```\n\n## Echo Client Demo\n\n```javascript\nimport * as XMPP from 'stanza';\n\n// Config can be setup after instantiation with updateConfig()\nconst client = XMPP.createClient({\n    jid: 'echobot@example.com',\n    password: 'hunter2',\n\n    // If you have a .well-known/host-meta.json file for your\n    //  domain, the connection transport config can be skipped.\n    //\n    // Manually running autodetection of these transports can \n    //  be done with client.discoverBindings('server.test')\n    transports: {\n        websocket: 'wss://example.com:5281/xmpp-websocket',\n        bosh: 'https://example.com:5281/http-bind'\n    }\n});\n\nclient.on('session:started', () => {\n    client.getRoster();\n    client.sendPresence();\n});\n\nclient.on('chat', msg => {\n    client.sendMessage({\n        to: msg.from,\n        body: 'You sent: ' + msg.body\n    });\n});\n\nclient.connect();\n```\n\n## Documentation\n\n-   API Reference\n    -   [Configuring](docs/Configuring.md)\n    -   [Events](docs/Events.md)\n    -   [Client Methods](docs/Reference.md)\n-   [JXT: JSON/XML Translation](docs/jxt/README.md)\n    -   [Working with Languages](docs/jxt/Language.md)\n    -   [Field Definition Types](docs/jxt/FieldTypes.md)\n-   [Supported XEP Formats](docs/Supported_XEP_Formats.md)\n-   [Creating Plugins](docs/Create_Plugin.md)\n-   [Using with React Native](docs/React_Native.md)\n-   [Using PubSub](docs/Using_PubSub.md)\n-   [Using Stream Management](docs/Using_Stream_Management.md)\n\n\n## Related Modules\n\nThese are related modules that may be useful to users of this library:\n\n| Name                                                   | Description                                                          | Source                                              |\n| ------------------------------------------------------ | -------------------------------------------------------------------- | --------------------------------------------------- |\n| [stanza-shims](https://npmjs.org/package/stanza-shims) | Runtime shims used by StanzaJS for node, browsers, and React Native. | [Source](https://github.com/legastero/stanza-shims) |\n| [webrtc-adapter](https://npmjs.org/package/webrtc-adapter) | Shims browsers to provide a consistent WebRTC API.               | [Source](https://github.com/webrtchacks/adapter) |\n\n## License\n\n[MIT](./LICENSE.md)\n\nPortions of Verse are derived from prior works. [See NOTICE file for details.](./NOTICE.md)\n\n## Why fork?\n\nThe original `stanza` library was used as a part of the [bonfire](https://github.com/bonfire-xmpp/bonfire) XMPP client. \nHowever, modifications to the library were relatively often necessary to meet downstream demands.\n","readmeFilename":"README.md"}