{"_id":"@ciklum/xmess-repeater","_rev":"3-bac4718ec84046c26e00779a5703654f","name":"@ciklum/xmess-repeater","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.2":{"name":"@ciklum/xmess-repeater","version":"0.0.2","description":"XMESS plugin for repeating messages among few XMESS instances","main":"dist/bundle.js","scripts":{"build:base":"node_modules/webpack/bin/webpack.js --process","clean:dist":"rm -rf ./dist","check":"npm run lint && npm run test && npm run build","prebuild":"npm run clean:dist","build":"bash ./scripts/build.sh","build:dev":"bash ./scripts/build.dev.sh","lint":"eslint src --ext .js","lint:fix":"eslint src --ext .js --fix","pretest":"npm run lint","test":"node_modules/jest/bin/jest.js","test:coverage":"node_modules/jest/bin/jest.js --coverage"},"pre-commit":["npm run lint"],"repository":{"type":"git","url":"git@gitlab.ciklum.net:df2-components/df2-module-skeleton.git"},"author":{"name":"Ciklum Solutions JS Team"},"license":"ISC","dependencies":{"regenerator-runtime":"0.13.1"},"devDependencies":{"@babel/core":"7.2.2","@babel/plugin-proposal-class-properties":"^7","@babel/plugin-proposal-decorators":"^7","@babel/plugin-proposal-object-rest-spread":"^7","@babel/plugin-syntax-dynamic-import":"^7","@babel/plugin-transform-async-to-generator":"^7.2.0","@babel/polyfill":"^7","@babel/preset-env":"^7","babel-core":"^7.0.0-bridge.0","babel-eslint":"10.0.1","babel-jest":"23.6.0","babel-loader":"8.0.4","babel-plugin-async-to-promises":"1.0.5","babel-plugin-module-resolver":"3.1.1","cross-env":"^5.2.0","eslint":"5.10.0","eslint-config-airbnb-base":"13.1.0","eslint-import-resolver-babel-module":"5.0.0-beta.1","eslint-loader":"2.1.1","eslint-plugin-babel":"^5.3.0","eslint-plugin-compat":"2.6.3","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"22.1.2","jest":"23.6.0","path":"0.12.7","pre-commit":"1.2.2","source-map-loader":"^0.2.3","webpack":"4.28.0","webpack-cli":"3.1.2"},"jest":{"verbose":true,"setupFiles":["./jest.init.js"]},"babel":{"presets":[["@babel/env",{"targets":{"browsers":["last 2 versions","safari >= 7"]},"exclude":["babel-plugin-transform-async-to-generator"]}]],"plugins":[["@babel/plugin-proposal-decorators",{"legacy":true}],["@babel/plugin-proposal-class-properties",{"loose":true}],"@babel/plugin-proposal-object-rest-spread","@babel/plugin-syntax-dynamic-import","async-to-promises",["module-resolver",{"root":["./src"]}]]},"gitHead":"5a6e07f0400c85f6d4c63e8db261ba7aab25a353","_id":"@ciklum/xmess-repeater@0.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.14.2","_npmUser":{"name":"ciklum","email":"npm@ciklum.com"},"dist":{"integrity":"sha512-kggMpHgdZe4rbsz3xU2tjz0J85UMLH3sZGWZci1X+6R1L0VDQjJm+4bksFpkSnjkUgflRUcJSwlQh/Hh/7wEEA==","shasum":"483e90560b9a7df3408ee48a735e98caff8d4246","tarball":"https://registry.npmjs.org/@ciklum/xmess-repeater/-/xmess-repeater-0.0.2.tgz","fileCount":4,"unpackedSize":6363,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcHLJYCRA9TVsSAnZWagAAQJkP/23XXq08XgUI8QwnAWWM\n3SyuLYF5lvMxJqEb8AFH0KFiLk93h4CfYA0DGgFqkZo4Bnk3iczy15GOAvjT\nls8U01Gm5Ew3jCRDx/JjxCeYarxap6x3IIpT34nGGbNoqAmQVJFBhhek21dn\nGavLtE3QDDJ9t0oH2rwrrRkyEilbeZM2td4U5rkc0mY7a7zGwqMZ5IMhI6+W\nHqD3bCRtdxI46XqYLnHil2Yviu2GsIJVmzdH+eOdjGqzh+6xHpeSgGx1GlU/\nSAs0AU/Ab90FgSSVkZGOfGjrfyEDV1KAkpyftt+RDFiC5qmhMuDvxCx0WOEE\nP84PPRZMescXgDP5LFM4S7yENSntOPcFZ9ExiNGy8cwDvajWBDcTKSUe64gA\nATLQNgE/k8R32c5T2/PxqRERl+jqZHvIvruJonjj860YLJzHVoh/UI8Hy/cQ\npTq7cuQIRb1PvlkzBYAXRmHYqe3BRLTA7ARtET1Z0RAiyD8aoX2KBqwahokN\n5Ms/oIqGINe0RoqJu0GTytgbJ0SJi85oztivF/yePeiJDtmaDxT8DBWZtA4X\nCZp9lATbkAtuH3Fg+MMVibtwK8JFIrNJdDoWJz2JAHk6HjdWoodjW5OUgiAI\nq1MAkBQOWlmIacRfO+5Ml4YG8Q6fHUG72vQwIBxg0cwUyFvqh7rbrOna9dYF\nNhin\r\n=MmnW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBuPxoYBaLi1n4T1+ccjXV2fhyYSRSPTzSWIWj1w1wUAAiBKFnXaHfFms1HHpDiVW48V7cck7UNL9XWtsW7Wjxp12g=="}]},"maintainers":[{"name":"ciklum","email":"npm@ciklum.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xmess-repeater_0.0.2_1545384535461_0.9860398297919042"},"_hasShrinkwrap":false},"0.1.0":{"name":"@ciklum/xmess-repeater","version":"0.1.0","description":"XMESS plugin for repeating messages among few XMESS instances","main":"dist/bundle.js","scripts":{"build:base":"node_modules/webpack/bin/webpack.js --process","clean:dist":"rm -rf ./dist","check":"npm run lint && npm run test && npm run build","prebuild":"npm run clean:dist","build":"bash ./scripts/build.sh","build:dev":"bash ./scripts/build.dev.sh","lint":"eslint src --ext .js","lint:fix":"eslint src --ext .js --fix","pretest":"npm run lint","test":"node_modules/jest/bin/jest.js","test:coverage":"node_modules/jest/bin/jest.js --coverage"},"pre-commit":["npm run lint"],"repository":{"type":"git","url":"git@gitlab.ciklum.net:df2-components/df2-module-skeleton.git"},"author":{"name":"Ciklum Solutions JS Team"},"license":"ISC","dependencies":{"regenerator-runtime":"0.13.1"},"devDependencies":{"@babel/core":"7.2.2","@babel/plugin-proposal-class-properties":"^7","@babel/plugin-proposal-decorators":"^7","@babel/plugin-proposal-object-rest-spread":"^7","@babel/plugin-syntax-dynamic-import":"^7","@babel/plugin-transform-async-to-generator":"^7.2.0","@babel/polyfill":"^7","@babel/preset-env":"^7","babel-core":"^7.0.0-bridge.0","babel-eslint":"10.0.1","babel-jest":"23.6.0","babel-loader":"8.0.4","babel-plugin-async-to-promises":"1.0.5","babel-plugin-module-resolver":"3.1.1","cross-env":"^5.2.0","eslint":"5.10.0","eslint-config-airbnb-base":"13.1.0","eslint-import-resolver-babel-module":"5.0.0-beta.1","eslint-loader":"2.1.1","eslint-plugin-babel":"^5.3.0","eslint-plugin-compat":"2.6.3","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"22.1.2","jest":"23.6.0","path":"0.12.7","pre-commit":"1.2.2","source-map-loader":"^0.2.3","webpack":"4.28.0","webpack-cli":"3.1.2"},"jest":{"verbose":true,"setupFiles":["./jest.init.js"]},"babel":{"presets":[["@babel/env",{"targets":{"browsers":["last 2 versions","safari >= 7"]},"exclude":["babel-plugin-transform-async-to-generator"]}]],"plugins":[["@babel/plugin-proposal-decorators",{"legacy":true}],["@babel/plugin-proposal-class-properties",{"loose":true}],"@babel/plugin-proposal-object-rest-spread","@babel/plugin-syntax-dynamic-import","async-to-promises",["module-resolver",{"root":["./src"]}]]},"gitHead":"db970efad2ab7ac5af469afddf9789786fb72d8c","_id":"@ciklum/xmess-repeater@0.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.14.2","_npmUser":{"name":"ciklum","email":"npm@ciklum.com"},"dist":{"integrity":"sha512-fDrGjgeSAPT8yW0/DYJylIkyWUMqxL79/4aZSm3AuVNW66vlpm6Yq4HoeKjws4PsyRddP687bsJqlZkGzVa99g==","shasum":"fbfc8c6edad7db7b58c4eb2702afc2294a152e05","tarball":"https://registry.npmjs.org/@ciklum/xmess-repeater/-/xmess-repeater-0.1.0.tgz","fileCount":4,"unpackedSize":7075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcI4HQCRA9TVsSAnZWagAAPNUP/i+8Xp3fnhxLin/ii9r/\nG8+bE5U7pPP9s02dEtZFRRNRzX2iluS2zLuUsYAo73XjyHXf+tjAf+brevir\nbxqFzHQgjV5yYcfYeiPu44X1dInzG7atoJ8Pk+jQ+LZM/G3PWd5nuNqiGN2s\nzc5tx4ptSgcTpfQBQYUwKa17ed8Ugdz88wOiBV4F9jJmf/ViS3epmk85GD/M\nklq9Ogcll8e4bPz7CUcF1ZQuVq5rUvyeIYVgRG9y5Aop8akpBkr8HjFb+Abl\n8KxSjCHL7QZTLf6MdMtXRjmehNJNSLT4BoWZNPjeBGMgqrJBkjnIIhXyySrh\nNc1Po6sQUuAMdoGUlfRWyZ0R4/gkga5YM27WqZifti90uY//rvIf03uFgrzA\ntlYmI+qFu7XjevjJTS5k2+6KJEdWEk2nELW9Vw8Ac2UbxMlISru0bG0hwT4W\nTru3Ls9mY+CxhfoOVkaNzqsYKrynWiycEBIO4hqN70I0jrNTtCHpaunnpZZ/\nt8SEmQjoXBLpRp+A9a/hQ38Ses1Zzg4H+yNTvjNCywmzFU0k0zaV6RxN75xs\nlT/+MitjLj+bieClXqbiPoDEIFDkIfCf0MXoxA5laBvVNCsRzuHDKCO8Z6Ju\nihaUlYnzpjVdWB/I89DfUFASUZ5ZvvsdEvJGGeHMHnFDA5wofm2ftB+ZpR0M\nFO7h\r\n=ET+N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrf/YVWMxp1YRNUcWue9IDMmr/Jt5XjHopCSp5C9zifQIhAOt4bLaPG0/1eo+s1OKWOjHaGviMedoP3nq1c3P1FZgc"}]},"maintainers":[{"name":"ciklum","email":"npm@ciklum.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xmess-repeater_0.1.0_1545830864118_0.8830664062151263"},"_hasShrinkwrap":false},"0.1.1":{"name":"@ciklum/xmess-repeater","version":"0.1.1","description":"XMESS plugin for repeating messages among few XMESS instances","main":"dist/bundle.js","scripts":{"build:base":"node_modules/webpack/bin/webpack.js --process","clean:dist":"rm -rf ./dist","check":"npm run lint && npm run test && npm run build","prebuild":"npm run clean:dist","build":"bash ./scripts/build.sh","build:dev":"bash ./scripts/build.dev.sh","lint":"eslint src --ext .js","lint:fix":"eslint src --ext .js --fix","pretest":"npm run lint","test":"node_modules/jest/bin/jest.js","test:coverage":"node_modules/jest/bin/jest.js --coverage"},"pre-commit":["npm run lint"],"repository":{"type":"git","url":"git@gitlab.ciklum.net:df2-components/df2-module-skeleton.git"},"author":{"name":"Ciklum Solutions JS Team"},"license":"ISC","dependencies":{"regenerator-runtime":"0.13.1"},"devDependencies":{"@babel/core":"7.2.2","@babel/plugin-proposal-class-properties":"^7","@babel/plugin-proposal-decorators":"^7","@babel/plugin-proposal-object-rest-spread":"^7","@babel/plugin-syntax-dynamic-import":"^7","@babel/plugin-transform-async-to-generator":"^7.2.0","@babel/polyfill":"^7","@babel/preset-env":"^7","babel-core":"^7.0.0-bridge.0","babel-eslint":"10.0.1","babel-jest":"23.6.0","babel-loader":"8.0.4","babel-plugin-async-to-promises":"1.0.5","babel-plugin-module-resolver":"3.1.1","cross-env":"^5.2.0","eslint":"5.10.0","eslint-config-airbnb-base":"13.1.0","eslint-import-resolver-babel-module":"5.0.0-beta.1","eslint-loader":"2.1.1","eslint-plugin-babel":"^5.3.0","eslint-plugin-compat":"2.6.3","eslint-plugin-import":"2.14.0","eslint-plugin-jest":"22.1.2","jest":"23.6.0","path":"0.12.7","pre-commit":"1.2.2","source-map-loader":"^0.2.3","webpack":"4.28.0","webpack-cli":"3.1.2"},"jest":{"verbose":true,"setupFiles":["./jest.init.js"]},"babel":{"presets":[["@babel/env",{"targets":{"browsers":["last 2 versions","safari >= 7"]},"exclude":["babel-plugin-transform-async-to-generator"]}]],"plugins":[["@babel/plugin-proposal-decorators",{"legacy":true}],["@babel/plugin-proposal-class-properties",{"loose":true}],"@babel/plugin-proposal-object-rest-spread","@babel/plugin-syntax-dynamic-import","async-to-promises",["module-resolver",{"root":["./src"]}]]},"gitHead":"76d47cc84838baad4ac6231c2566872e13773efb","_id":"@ciklum/xmess-repeater@0.1.1","_npmVersion":"6.4.1","_nodeVersion":"10.14.2","_npmUser":{"name":"ciklum","email":"npm@ciklum.com"},"dist":{"integrity":"sha512-rDg1GqVOEX4qAXtNZHK/jkoRCHtut/ERBqFpwWb7bkQhOLlJGDt1FSn66oTZkuOZ8W64+Ce7U/p+eu2S8HYtiA==","shasum":"9c89aea48bdd047f9b1a519cac57bb4fbda19594","tarball":"https://registry.npmjs.org/@ciklum/xmess-repeater/-/xmess-repeater-0.1.1.tgz","fileCount":4,"unpackedSize":11196,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdqHJCRA9TVsSAnZWagAALuIP/juZEEXYuu//QFD243P1\nJYMnYzOCU7uSJNeruNnYMogtXEPU+Tfz9GRzkhiL2TbeU7CTYaZmdBri17LS\nxzhmlBzKUjIj9l01/xJu36ifqbwBnbFglQOPbDF20IPvJIPGovzfIttY4f+8\n+UccDdvNiib1tgHsPgZViuLwj+8BW4VLg4CyZNaHdMWVO0l3KXk0nJdhU5iN\nusRGqaD8rVDVl4bIzc183fZ5hvidhd7capoOCJ7ZoB0dV9dyZFlAIUZDmjFi\nRBKzqaP39lkN2axzbupg2DJFj6BzsaV6YFcG/dtmv0TEjiNORHm2ZyzVYCDK\nW2xcOA/d5d45xm/mQNqwZEWOsvN2vVP7PJ/MCTjn+4sbqutqmxzExxRS/hT4\ndkmzKwHxEXRWedLxF1+EsGd+GyHbDo2Cxnx+CCQigHA72f5NsIVWcdvrlwi9\nNgDLxuRDKnnghu5w99ZeVZAddJuXCWpulkZ4hImREWncCQ/PmK9yN4zWVMT6\npeRohb1lHVGL/+2zQekBzA7/gZomrdZcxUqL4JVN47+pk77i5uUYRPsvtw6s\nRrSFmmWeJsjCdNlfIZbU8xVkOuToxIwERURtmkzdUr1f+X3z+6f0+8jC0XB5\ni13jd1VAIYG+c2x3Fypwyg4PlQidqzbPkX/s8gOVyDrFd+Ki30Ik2JE/rP0L\nDX1Z\r\n=9U1P\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFEBi7++z+lPYXtJt+0ziUB5lhCRm332Kq6hxuXtTNagIhAJDNC2Ydyi3wsT4YbW0QXWXfRsPe+g52TFhEJy3hjUKS"}]},"maintainers":[{"name":"ciklum","email":"npm@ciklum.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xmess-repeater_0.1.1_1551278537202_0.08710953748782457"},"_hasShrinkwrap":false}},"time":{"created":"2018-12-21T09:28:55.459Z","0.0.2":"2018-12-21T09:28:55.821Z","modified":"2022-04-04T22:59:45.708Z","0.1.0":"2018-12-26T13:27:44.241Z","0.1.1":"2019-02-27T14:42:17.378Z"},"maintainers":[{"name":"ciklum","email":"npm@ciklum.com"}],"description":"XMESS plugin for repeating messages among few XMESS instances","repository":{"type":"git","url":"git@gitlab.ciklum.net:df2-components/df2-module-skeleton.git"},"author":{"name":"Ciklum Solutions JS Team"},"license":"ISC","readme":"# XMESS Repeater\n\nXMESS plugin for repeating messages among few XMESS instances\n\n## Table of contents\n\n1. [Description](#description)\n2. [Usage](#usage)\n3. [API](#api)\n\n\n### Description\n---\n\nXMESS Repeater - module which provides functionality of binding/communication among many XMESS instances.\nUsualy we use only one XMESS instance on app, but when we works with multiple applications then can use repeater for communication among them.\n\n### Usage\n---\n- Set private repository:\n    ```bash\n    npm config set registry https://registry.npmjs.org/:_authToken=5ea6cd25-4d7d-4def-9ae0-e09c52e5b9a5\n    ```\n\n- Install **XMESS Repeater**:\n    ```bash\n    npm install @ciklum/xmess-repeater --save\n    ```\n\n- Import `XmessRepeater` to file\n    ```js\n    import { XmessRepeater } from '@ciklum/xmess-repeater';\n    ...\n    ```\n\n- Construct `XmessRepeater` with `translatorId` and `repeaterCallback`\n    ```js\n    import { XmessRepeater } from '@ciklum/xmess-repeater';\n    import { Xmess } from '@ciklum/xmess';\n\n    const xmess = new Xmess();\n    const xmessRepeater = new XmessRepeater('repeater-1', (path, payload) => {\n        xmess.publish(path, payload)\n    });\n\n    xmess.onPublish((path, payload) => {\n        xmessRepeater.publish(path, payload);\n    })\n    ...\n    ```\n\n\n### API\n\n-  `.publish(path, payload)` for to subscribed XMESS\\`s, where `path` is channelName and `payload` is data for publishing\n    ```js\n    import { XmessRepeater } from '@ciklum/xmess-repeater';\n\n    const xmessRepeater = new XmessRepeater('repeater-1', (path, payload) => {\n        ...\n    });\n\n    xmessRepeater.publish('app-group/route:changed', { pathname: '/offer' })\n    ...\n    ```\n\n- `.getMessage(path)` for getting last message from channel by path\n    ```js\n    import { XmessRepeater } from '@ciklum/xmess-repeater';\n\n    const xmessRepeater = new XmessRepeater('repeater-1', (path, payload) => {\n        ...\n    });\n\n    const message = xmessRepeater.getMessage('app-group/route:changed');\n    // message = { pathname: '/offer' } \n    ...\n    ```\n\n- `.destroy()` for remove repeater instance\n    ```js\n    import { XmessRepeater } from '@ciklum/xmess-repeater';\n    \n    const xmessRepeater = new XmessRepeater('repeater-1', (path, payload) => {\n        ...\n    });\n\n    xmessRepeater.destroy()\n    ...\n    ```\n\n\n\n","readmeFilename":"README.md"}