{"_id":"@cesarbr/knot-cloud-sdk-js-amqp","_rev":"14-fa117501899b127f150abfb71a411169","name":"@cesarbr/knot-cloud-sdk-js-amqp","dist-tags":{"latest":"4.0.0"},"versions":{"1.0.0":{"name":"@cesarbr/knot-cloud-sdk-js-amqp","version":"1.0.0","description":"KNoT Cloud AMPQ SDK for NodeJS ","repository":{"type":"git","url":"git+https://github.com/CESARBR/knot-cloud-sdk-js-amqp.git"},"main":"./dist/main.js","module":"./dist/module.mjs","author":{"name":"CESARBR"},"license":"BSD-3-Clause","scripts":{"lint":"eslint .","build":"rollup -c","prepublishOnly":"npm run build"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.9.0","@babel/node":"^7.8.7","@babel/preset-env":"^7.9.5","babel-plugin-module-resolver":"^4.0.0","eslint":"^6.8.0","eslint-config-airbnb-base":"^14.1.0","eslint-import-resolver-babel-module":"^5.1.2","eslint-plugin-import":"^2.20.2","pre-commit":"^1.2.2","rollup":"^2.6.1","rollup-plugin-auto-external":"^2.0.0","rollup-plugin-babel":"^4.4.0"},"pre-commit":["lint"],"dependencies":{"amqplib":"^0.5.5"},"gitHead":"669e5c308a9bcc3cfd5a4e7ddcbf9e1f34b7ab7b","bugs":{"url":"https://github.com/CESARBR/knot-cloud-sdk-js-amqp/issues"},"homepage":"https://github.com/CESARBR/knot-cloud-sdk-js-amqp#readme","_id":"@cesarbr/knot-cloud-sdk-js-amqp@1.0.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-OZ4uNKr1bQWToO3pDmqXpPGyP8MAmoHUuxc3IPpzRMKnasyNqg0taQ8ebwQGCx6Bq5iyVqI46U/z0f6Zyzpacw==","shasum":"411f0e82a5c548c40da9290e71a186f5fdd98ffe","tarball":"https://registry.npmjs.org/@cesarbr/knot-cloud-sdk-js-amqp/-/knot-cloud-sdk-js-amqp-1.0.0.tgz","fileCount":18,"unpackedSize":35384,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJemmz3CRA9TVsSAnZWagAA2S4QAImCTlBQMw0TNaLR5o9f\nht0y+ThjjJRS7yysch9PBEsvys6GQE4fu+jkPAh5Noisrhu/GTgCMl8EhC6Q\nnCTyjVUCM9dBwplWt4ieEj0dTFIdti2Y8qiWxb+sWdcN6V8st+jr5dMss/TB\n0wEb0/oheJiO0BVQ9ch4Fkni5Lp2wvDUQ/TiX20A1VNyJ+TqewpwNwHfDpTQ\nyTyeQNqiDxFb4tk7YnFb8oqL7HBrLga3wM9CofdaB1hhcwLxNQEurTwNqLIH\nUiOUfN+LzJaPWeW34clnOfHN7VHBbjBnvNzhPAlEL2zbMFreKkV104ANUIht\ntc9qNQ5hXCPn9EmF6Il5BlWKUj8+NCxTwZTF2NO3zG6krNhHwHMSiVe216l1\npRji5vqCcR6fQdn6WFe7btaLAFFd+vECPJXAuFlH/v0XlywaB7c8qCId0d9R\n2Vd59RFf8Igw0lkJx0lW+vgUKbUQsLdwoYFJ9r8+RAm5gM12R2MxlxJfQjYb\ndWVzqH+TeWtuUW85Y7yb5/fQ4UFU7bEf71ePoNJoI4fNoDrKawqu1hBIq3w/\nvy34llInexT8P/AW/uI3Cbb2vwXs8bnoz4//tU/SIpFXqGZ7xiyu3DwPaZTC\nL7BdZ+7Bta6T5pB9Xo5At2TuOSmEMdDXb4L5+PmVMYeyPkprwnGpDwbd7t3e\nr3vP\r\n=FNHh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoFyqqimQ5yIIJK+NsgLGKZfPAbi1N5zvMg8XjVcL+pQIhAKfLIOkzqKiAk+tq0nmuAs2pBnRIy+dvtvnXoZUY4pdl"}]},"maintainers":[{"name":"brunolimawd","email":"brunolimawd@gmail.com"},{"name":"felipeborgiani","email":"felipe@felipeborgiani.com"},{"name":"jneto","email":"j.alexandreeneto@gmail.com"},{"name":"ramonhpr","email":"rhpr@cesar.org.br"},{"name":"pauloserrafh","email":"ptvsf@cesar.org.br"},{"name":"figueredo","email":"thiago@figueredo.co"}],"_npmUser":{"name":"jneto","email":"j.alexandreeneto@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/knot-cloud-sdk-js-amqp_1.0.0_1587178742650_0.9373984275718945"},"_hasShrinkwrap":false},"1.0.1":{"name":"@cesarbr/knot-cloud-sdk-js-amqp","version":"1.0.1","description":"KNoT Cloud AMPQ SDK for NodeJS ","repository":{"type":"git","url":"git+https://github.com/CESARBR/knot-cloud-sdk-js-amqp.git"},"main":"./dist/main.js","module":"./dist/module.mjs","author":{"name":"CESARBR"},"license":"BSD-3-Clause","scripts":{"lint":"eslint .","build":"rollup -c","prepublishOnly":"npm run build"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.9.0","@babel/node":"^7.8.7","@babel/preset-env":"^7.9.5","babel-plugin-module-resolver":"^4.0.0","eslint":"^6.8.0","eslint-config-airbnb-base":"^14.1.0","eslint-import-resolver-babel-module":"^5.1.2","eslint-plugin-import":"^2.20.2","pre-commit":"^1.2.2","rollup":"^2.6.1","rollup-plugin-auto-external":"^2.0.0","rollup-plugin-babel":"^4.4.0"},"pre-commit":["lint"],"dependencies":{"amqplib":"^0.5.5","uniqid":"^5.2.0"},"gitHead":"c1eee5450a10e17dad1e32cff4ec10f22ebaabab","bugs":{"url":"https://github.com/CESARBR/knot-cloud-sdk-js-amqp/issues"},"homepage":"https://github.com/CESARBR/knot-cloud-sdk-js-amqp#readme","_id":"@cesarbr/knot-cloud-sdk-js-amqp@1.0.1","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-undRzIz5IpXpLUC25jYbfbOGFdkpnnBnV0JtVLj6LXLl4BR0fFxk6pl10H1fwSRDJ0TfT5UDjqBsuJQ5o37u4Q==","shasum":"a64645873b99abdb6b37e25ef1269c6e065ac123","tarball":"https://registry.npmjs.org/@cesarbr/knot-cloud-sdk-js-amqp/-/knot-cloud-sdk-js-amqp-1.0.1.tgz","fileCount":18,"unpackedSize":36353,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeo20uCRA9TVsSAnZWagAAl6AP/3j+Un7NkUjCLG39NenB\nd077QtDJQydZVZ6wo3x3pgrwjrz0hK/QfqFq/idIwPWURwqbrwOu9t9RmtP6\nU9ZiGuRZuGVkn5PKZkj+5hF5asZikrre5YM3b+v7nX046Uo5SaX7HQljAPqi\n4l8R97+U9tEnv1TTkiKmFtHyeY/htRadFxFzpFfXnyXqVl2c5fjDiMms9zP1\ngPauxRT00s1306LXor8DpId2cd8LxiuYFr2RnwswU/vDriPsUD8xPDvkynqm\nCRrlO90CrTvv+YqwcNFNuAyJ5yH/fYnY3XJ5z+fVhaBNr9ymRbUFxH5E+mvH\ntNjRZUCjzcm6IpvILF8Z0F+3xhkJC6a6QpkYhCbo4vPnkRGNFJT0FyabCIBw\n7v1tySW8h6P51scP7JqxhWHWWV9nQejuVaP5rcVcNwesbMSYrEC1AiseTUTH\nyPIbtNLIw0BV5pTZMZmeVZveX2cTVcOpASqNTB65plyRS7XgB60mV25UktOX\nJ+f79MBsFV/BYSuqx8UTJPXtJm10b0tQm0ksO/g32o6f8wNEYOWhf+dbHMLV\nwW2vpR3WCVIbHTzxsnQRHK0aMHxLUsViyvUP+TQl6Jw+3PF9XLfDxS7VPc/J\ntRBqWSFFN7oevrx5z6EEZuYml106h8YGtyzdkEmcKK6lFjj457d9bgPkSZLs\nOR/U\r\n=QL1i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBTpqAYgT6Wz6e6DBY5s/r3kYevHW2CrCGSWvGWquFXUAiBG1t8sULCCxds6NoMRYf+mzn91V0TY/8zIFEgtqBBx7A=="}]},"maintainers":[{"name":"brunolimawd","email":"brunolimawd@gmail.com"},{"name":"felipeborgiani","email":"felipe@felipeborgiani.com"},{"name":"figueredo","email":"thiago@figueredo.co"},{"name":"jneto","email":"j.alexandreeneto@gmail.com"},{"name":"pauloserrafh","email":"ptvsf@cesar.org.br"},{"name":"ramonhpr","email":"rhpr@cesar.org.br"}],"_npmUser":{"name":"jneto","email":"j.alexandreeneto@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/knot-cloud-sdk-js-amqp_1.0.1_1587768621886_0.5265120122074805"},"_hasShrinkwrap":false},"2.0.0":{"name":"@cesarbr/knot-cloud-sdk-js-amqp","version":"2.0.0","description":"KNoT Cloud AMPQ SDK for NodeJS ","repository":{"type":"git","url":"git+https://github.com/CESARBR/knot-cloud-sdk-js-amqp.git"},"main":"./dist/main.js","module":"./dist/module.mjs","author":{"name":"CESARBR"},"license":"BSD-3-Clause","scripts":{"lint":"eslint .","build":"rollup -c","prepublishOnly":"npm run build","test":"jest"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.9.0","@babel/node":"^7.8.7","@babel/preset-env":"^7.9.5","babel-jest":"^26.0.1","babel-plugin-module-resolver":"^4.0.0","eslint":"^6.8.0","eslint-config-airbnb-base":"^14.1.0","eslint-config-prettier":"^6.11.0","eslint-import-resolver-babel-module":"^5.1.2","eslint-plugin-import":"^2.20.2","eslint-plugin-jest":"^23.11.0","eslint-plugin-prettier":"^3.1.3","jest":"^26.0.1","pre-commit":"^1.2.2","prettier":"2.0.5","rollup":"^2.6.1","rollup-plugin-auto-external":"^2.0.0","rollup-plugin-babel":"^4.4.0"},"pre-commit":["lint"],"dependencies":{"amqplib":"^0.5.5","uniqid":"^5.2.0"},"gitHead":"319b9ac80cf19a1baec3932e1205af22a59c42fd","bugs":{"url":"https://github.com/CESARBR/knot-cloud-sdk-js-amqp/issues"},"homepage":"https://github.com/CESARBR/knot-cloud-sdk-js-amqp#readme","_id":"@cesarbr/knot-cloud-sdk-js-amqp@2.0.0","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-JgyqaanMwVdqMVEpwcKUf6qJ6T6cRmvdT6u+72ZVhNnsRNLqXBLfpViEv3OEgY44YjHMBfGt95upSZWriXzvbQ==","shasum":"a2f8461c6ced516745e1dea21ec1293d08bc7b4a","tarball":"https://registry.npmjs.org/@cesarbr/knot-cloud-sdk-js-amqp/-/knot-cloud-sdk-js-amqp-2.0.0.tgz","fileCount":25,"unpackedSize":78237,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4+bhCRA9TVsSAnZWagAALiUP/0X6bdYJ9TrbIhF3V8st\nVo9sg99f5D3cy4v/TnRHYR7yfPnvMlcAa1mie1Wk8oZVYxqYpOOVYbYoANJ6\nkKVezACI4KN18OMelzWA5Rw5l60GhnOH4hum1fD69MQ0x9NFzqjcTxorNrZo\n1rsHZfdDzZhg7CxdNvPWYVuHW1zz+LQvf6hqucMORbM4yM42vyP0mGsTwMP2\nC1pMWivCkTGV/23Ao794XrKN1712ICaloGUfsP0O84MF9QUcGPy6SuASjsNm\nsm8cDjyrhSRT19tp1ONnlj2tka5gaWR9VoFa79r2z8FvwWd4XhS+W23+6gE4\ngp1FW/KBauSdLx7uAKgy5ZJCuylYjTYVndSc/B65UFKczY6PsKH/R5FYu4kj\nVdc4A+czWCMhAu+IG2FHvYVR0jKzP2fMUhZ3xFV0VuGB/VAJOwCTVMR5J6td\n73jtcCUuJA5WDoTd+l3OyIJXBbWmEZrXoc5K1qT/Zpt//Grp53RRte6sZDgE\ncFeV2GuF2taJ3uX0uDpTLncJbX/kLoITY2WtbcgIaqkLKCYhLsxxiYlj9MUO\nD00uBqRh8zc7rloE/+WE+dq7+jrJpRF/dGaHN7QHjixF48AqEmJ4qtsnRw1v\n/WbKSO2XsGfAZJMxep/fLbnL8whKilordWITiSOm8vjCWOKv/ns7DHkLnlSf\nC7VR\r\n=394S\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCT//hNKG2CV3YTvfJiKCQk268Ou1MBCxXUZhy2HEKfTwIgaylVE65HJ0LLiZvqsw70dNdW3sYdYm80MhtXTXLPVZk="}]},"maintainers":[{"name":"brunolimawd","email":"brunolimawd@gmail.com"},{"name":"felipeborgiani","email":"felipe@felipeborgiani.com"},{"name":"figueredo","email":"thiago@figueredo.co"},{"name":"jneto","email":"j.alexandreeneto@gmail.com"},{"name":"pauloserrafh","email":"ptvsf@cesar.org.br"},{"name":"ramonhpr","email":"rhpr@cesar.org.br"}],"_npmUser":{"name":"jneto","email":"j.alexandreeneto@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/knot-cloud-sdk-js-amqp_2.0.0_1591994081439_0.9774439878829202"},"_hasShrinkwrap":false},"2.1.0":{"name":"@cesarbr/knot-cloud-sdk-js-amqp","version":"2.1.0","description":"KNoT Cloud AMPQ SDK for NodeJS ","repository":{"type":"git","url":"git+https://github.com/CESARBR/knot-cloud-sdk-js-amqp.git"},"main":"./dist/main.js","module":"./dist/module.mjs","author":{"name":"CESARBR"},"license":"BSD-3-Clause","scripts":{"lint":"eslint .","build":"rollup -c","prepublishOnly":"npm run build","test":"jest"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.9.0","@babel/node":"^7.8.7","@babel/preset-env":"^7.9.5","babel-jest":"^26.0.1","babel-plugin-module-resolver":"^4.0.0","eslint":"^6.8.0","eslint-config-airbnb-base":"^14.1.0","eslint-config-prettier":"^6.11.0","eslint-import-resolver-babel-module":"^5.1.2","eslint-plugin-import":"^2.20.2","eslint-plugin-jest":"^23.11.0","eslint-plugin-prettier":"^3.1.3","jest":"^26.0.1","pre-commit":"^1.2.2","prettier":"2.0.5","rollup":"^2.6.1","rollup-plugin-auto-external":"^2.0.0","rollup-plugin-babel":"^4.4.0"},"pre-commit":["lint"],"dependencies":{"amqp-connection-manager":"^3.2.0","amqplib":"^0.5.5","uniqid":"^5.2.0"},"gitHead":"3c6ca4274b1ff210f165d06e682f697730019051","bugs":{"url":"https://github.com/CESARBR/knot-cloud-sdk-js-amqp/issues"},"homepage":"https://github.com/CESARBR/knot-cloud-sdk-js-amqp#readme","_id":"@cesarbr/knot-cloud-sdk-js-amqp@2.1.0","_nodeVersion":"12.18.2","_npmVersion":"6.14.5","dist":{"integrity":"sha512-7lfbq1e83RCTNdotTZwzkG8eRhCxn8Ce1ogxXANuN0/htFCnFZw+kVedTDGoYE6hLuej7aAxLAv3rVmpTlcf4Q==","shasum":"20c1102da78030f1c864a25a4950c6d57f1208a5","tarball":"https://registry.npmjs.org/@cesarbr/knot-cloud-sdk-js-amqp/-/knot-cloud-sdk-js-amqp-2.1.0.tgz","fileCount":25,"unpackedSize":80351,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfGw+/CRA9TVsSAnZWagAAdhwP/2y4FP+WSCrjcnvsl81L\ny6X+gCRGJ3ULLwbjD27Ejm+IlqvaXSf6ZAm+XQJsWnR859YF9oxsfUEBekXD\nv8bw5i97WoOtHHMOh2b2mU6b+R5Z1PjJn9R44CfRlE4onvnD1QD5Z/lS0Nhm\nmuvXIWYufjAEHHokNqrHsUMhfYmbvCzghi7WOx30Qo86R3gZB7r2pHfxpxcV\n/k7/B/WS9VlDGp9IhjIAc0gAEb1Vb/SGkR02/Neqd0lms0AH4ou+DVnWA92T\nOVgBKjml8wM2Oi5Iihx8m+WtML8uD+CUgatSJEXvmrOwixKf/x9UrkK4xJ07\n0jaL3VL0wiZt6Y5Kq9p3p2OyUto1ogqQaJVAnokXF+RvyhE7KsF9PxVNq2TB\nQlhHDsxvVs/vWXOHFNRZywC5Gsqu+tuli6b8Ba/uJIldhAa5WmMebnYQ5evF\nW6s0JAEUR9GaRf9j8SipZ9SYsnuoERmMg6Do1EmjwwydFfJgVNFGiI7ZwshH\nSQcKUO7gLYRoT+6H7x3mObMtU/CygGfOOh44+hWZVhr+vVGq7Oly+E+L6q/z\ninTD2YZKAEgab3zyLJVewvMWfajz7/Enr2yc50RcMs1Kd86w3ubuxR7qG+Pt\n462+R3XQ/LSHXv9HEG4fCrmw1dfJQI4L2KGnMZcuffUu3b0sm4+CmLGN041z\nIPDX\r\n=FEtj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDn01iRT4OF8N7UR8D0WDmneX4zVLx2cfh/pmjfICZSWAiEA99mkMbPZGs6OCODXuPJqyvAh4uU/O8aLyG6aVAwcAOo="}]},"maintainers":[{"name":"brunolimawd","email":"brunolimawd@gmail.com"},{"name":"felipeborgiani","email":"felipe@felipeborgiani.com"},{"name":"figueredo","email":"thiago@figueredo.co"},{"name":"jneto","email":"j.alexandreeneto@gmail.com"},{"name":"pauloserrafh","email":"ptvsf@cesar.org.br"},{"name":"ramonhpr","email":"rhpr@cesar.org.br"}],"_npmUser":{"name":"jneto","email":"j.alexandreeneto@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/knot-cloud-sdk-js-amqp_2.1.0_1595609022941_0.9762229768754498"},"_hasShrinkwrap":false},"2.2.0":{"name":"@cesarbr/knot-cloud-sdk-js-amqp","version":"2.2.0","description":"KNoT Cloud AMPQ SDK for NodeJS ","repository":{"type":"git","url":"git+https://github.com/CESARBR/knot-cloud-sdk-js-amqp.git"},"main":"./dist/main.js","module":"./dist/module.mjs","author":{"name":"CESARBR"},"license":"BSD-3-Clause","scripts":{"lint":"eslint .","build":"rollup -c","prepublishOnly":"npm run build","test":"jest"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.9.0","@babel/node":"^7.8.7","@babel/preset-env":"^7.9.5","babel-jest":"^26.0.1","babel-plugin-module-resolver":"^4.0.0","eslint":"^6.8.0","eslint-config-airbnb-base":"^14.1.0","eslint-config-prettier":"^6.11.0","eslint-import-resolver-babel-module":"^5.1.2","eslint-plugin-import":"^2.20.2","eslint-plugin-jest":"^23.11.0","eslint-plugin-prettier":"^3.1.3","jest":"^26.0.1","pre-commit":"^1.2.2","prettier":"2.0.5","rollup":"^2.6.1","rollup-plugin-auto-external":"^2.0.0","rollup-plugin-babel":"^4.4.0"},"pre-commit":["lint"],"dependencies":{"amqp-connection-manager":"^3.2.0","amqplib":"^0.5.5","uniqid":"^5.2.0"},"gitHead":"5ecb7504d9f60c924b1a5b495d4b71a483743d5e","bugs":{"url":"https://github.com/CESARBR/knot-cloud-sdk-js-amqp/issues"},"homepage":"https://github.com/CESARBR/knot-cloud-sdk-js-amqp#readme","_id":"@cesarbr/knot-cloud-sdk-js-amqp@2.2.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-tmRtB494CHGeQEm9cmVsLXcRA+B6xoVQMcOHV7ujnDVqQzsJXlBLAjh4Pjzdfq10XMOUQzqxIHXvu5+Ic2RO1w==","shasum":"6c7b9491f5a88e7847e7b9fe8a5c0307b9365df6","tarball":"https://registry.npmjs.org/@cesarbr/knot-cloud-sdk-js-amqp/-/knot-cloud-sdk-js-amqp-2.2.0.tgz","fileCount":25,"unpackedSize":85535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfP84wCRA9TVsSAnZWagAA4I4P/AoQ7KA0tGU5MrOqQwxn\nYQGXpqbhJ5isTzGMW3Y01F/q28KD9EbiXraKCMr3NV2BZoMajCIwtmM/Ya+t\n9lxrNKmkJeLaTOHCg6y+6Uqo8OhlQFb4lVk8DpspoGjjKW0CjKCtvm49xmAO\nkd3Pv8cj/RwUz37QY7RIdGPe4WXtCG57ucZm2dN9dSL9pD9LCIyfiEgA1XVF\nWwvWM+EhsVSAF1NOWsM4G8ZpMVz6EEu4Pabay4NmoIcBtyMXmsFeaK6cGgnv\nGDY+y7xg/2h2yZKyn6o3/PhH1MhJok7w6UmvH0JVTLnX9nGpjoX9wNMiXz9C\na8nRE8jSugkCpQ6bxRyEX0CMca66IXFGwEi9bbNAcsowe8Qx2hk6TvrRXdS2\n4FzC+hbUhdCqHQi2QGJ9BUEMllN9U+DOqbdGZQC5cpygksH4o6FsP7ZUFsAQ\nVKbCkYqaL/O4PUoLOT+kqmoATyc8R0Jdu1oRpQ2QAAFCgr+2FktHEs4X4JIP\nl9ivOWG9K/7gWNteGdnp53CgiO0//5TqS4Bkxc+zaB7FKfXYSP1pOspF2ca3\nwIW9CEoFju5NpdJM0Du/e6P08wKISkvlmfjK5hMhVX2lv1pEIWVMFOgI3hsC\nuk9xqIiQ5EqDHRX+vP7vS+z+msWTHisAaAHxjKfpKdMDpXNU4MfzkbbDP8Ws\nQBvq\r\n=l5pF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDL8v4Ms9Qt5lHXyI9W/X6jC5DcI21GwuEQv5SDAp3/jAiBkaVYid3kgxnXLj/aInR4KEQ7B1VX3P42efcEH3Nexkw=="}]},"maintainers":[{"name":"brunolimawd","email":"brunolimawd@gmail.com"},{"name":"felipeborgiani","email":"felipe@felipeborgiani.com"},{"name":"figueredo","email":"thiago@figueredo.co"},{"name":"jneto","email":"j.alexandreeneto@gmail.com"},{"name":"pauloserrafh","email":"ptvsf@cesar.org.br"},{"name":"ramonhpr","email":"rhpr@cesar.org.br"}],"_npmUser":{"name":"jneto","email":"j.alexandreeneto@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/knot-cloud-sdk-js-amqp_2.2.0_1598017072212_0.6388224683489314"},"_hasShrinkwrap":false},"3.0.0":{"name":"@cesarbr/knot-cloud-sdk-js-amqp","version":"3.0.0","description":"KNoT Cloud AMPQ SDK for NodeJS ","repository":{"type":"git","url":"git+https://github.com/CESARBR/knot-cloud-sdk-js-amqp.git"},"main":"./dist/main.js","module":"./dist/module.mjs","author":{"name":"CESARBR"},"license":"BSD-3-Clause","scripts":{"lint":"eslint .","build":"rollup -c","prepublishOnly":"npm run build","test":"jest"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.9.0","@babel/node":"^7.8.7","@babel/preset-env":"^7.9.5","babel-jest":"^26.0.1","babel-plugin-module-resolver":"^4.0.0","eslint":"^6.8.0","eslint-config-airbnb-base":"^14.1.0","eslint-config-prettier":"^6.11.0","eslint-import-resolver-babel-module":"^5.1.2","eslint-plugin-import":"^2.20.2","eslint-plugin-jest":"^23.11.0","eslint-plugin-prettier":"^3.1.3","jest":"^26.0.1","pre-commit":"^1.2.2","prettier":"2.0.5","rollup":"^2.6.1","rollup-plugin-auto-external":"^2.0.0","rollup-plugin-babel":"^4.4.0"},"pre-commit":["lint"],"dependencies":{"amqp-connection-manager":"^3.2.0","amqplib":"^0.5.5","uniqid":"^5.2.0"},"gitHead":"49c0808885ff6aa47939cedff35f6f4a1c64322b","bugs":{"url":"https://github.com/CESARBR/knot-cloud-sdk-js-amqp/issues"},"homepage":"https://github.com/CESARBR/knot-cloud-sdk-js-amqp#readme","_id":"@cesarbr/knot-cloud-sdk-js-amqp@3.0.0","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-HUS0f1YCcUKLr+70w7UK0J5wweX3g5OLogX6HIj76MjIq+8tcxpEY+wk9DHsZM4AlHitmgO2SqxCz6YUoXUZHQ==","shasum":"d3f3d29ab3c32e405834de551855dbacb80b5619","tarball":"https://registry.npmjs.org/@cesarbr/knot-cloud-sdk-js-amqp/-/knot-cloud-sdk-js-amqp-3.0.0.tgz","fileCount":25,"unpackedSize":83669,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffx3KCRA9TVsSAnZWagAAXskP/28vdVHixgZv43AZYN/p\ntIX8zwixZfUwy+uIB9ybtderFAJYGK7b7Tq4JeV+y8C7jiFuyTkqSie395+W\njsfyofRSvIqIOUaTJhbKMl2/wgpO9WybcRww03ISVq7n8iP927NBaoJzdHkE\nGorrOmecHl/Lu4CSiOrZ4PKzkXmBvp/6retOFpz9GyL1iNAuH0rr54sMa101\nl0scofBY0a5T+1kyx37bggisFGdoQ/xaO62yqxsMprfwIatOM+IOLkAurX2I\n+CA/mVF5BF1V4vxxcFeuIhZhuL4RbEhyyeYhB0ONcuhAropPrFWeU+/J0Plx\n7BfNqs+Ci6iJnXnTF0W3JI1IxJwSfVzdOoP+4sFp9nnxXwSTkIDuVEsGfwgM\nyXvJ45WQ48Dh4Yo9e29J3Xi6cuxFYbmbaoWuHhxobs/65eNzQFAJRw5KpU7+\nHRbAXHisJbT/t6GTO4gWxWrbgC0t1MOm0v90ZwMIOvEC8rt/piIGI86T1ECQ\ndauWqo2vaI+FeP8TN2ukUUThxImqN4WrFVFwjlhadTV47QOIg9WJtGe54Vhc\nrUchbM/bnjBvAWjF8ppGOHusj0Z352ySvKIx+f3MLXSZJOG4UY/3+eNZEYxQ\nR8b6rp4AEVooRgUSGpSMtNMI5jcKDTSy9lL3RWt4W/dPGHP9KLNmEJWWwaqS\nknR0\r\n=pEmb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDRVswJ2EmiEGDxsd5ftBOFHqELxoVymo14bzCGHstb+AiEAs61Jeiao8CB84WA94gyc+7P9nn2uK6VqlU2nQfRQdvg="}]},"maintainers":[{"name":"brunolimawd","email":"brunolimawd@gmail.com"},{"name":"felipeborgiani","email":"felipe@felipeborgiani.com"},{"name":"jneto","email":"j.alexandreeneto@gmail.com"},{"name":"ramonhpr","email":"rhpr@cesar.org.br"},{"name":"pauloserrafh","email":"ptvsf@cesar.org.br"},{"name":"figueredo","email":"thiago@figueredo.co"}],"_npmUser":{"name":"jneto","email":"j.alexandreeneto@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/knot-cloud-sdk-js-amqp_3.0.0_1602166218129_0.6580633686746045"},"_hasShrinkwrap":false},"3.0.1":{"name":"@cesarbr/knot-cloud-sdk-js-amqp","version":"3.0.1","description":"KNoT Cloud AMPQ SDK for NodeJS ","repository":{"type":"git","url":"git+https://github.com/CESARBR/knot-cloud-sdk-js-amqp.git"},"main":"./dist/main.js","module":"./dist/module.mjs","author":{"name":"CESARBR"},"license":"BSD-3-Clause","scripts":{"lint":"eslint .","build":"rollup -c","prepublishOnly":"npm run build","test":"jest"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.9.0","@babel/node":"^7.8.7","@babel/preset-env":"^7.9.5","babel-jest":"^26.0.1","babel-plugin-module-resolver":"^4.0.0","eslint":"^6.8.0","eslint-config-airbnb-base":"^14.1.0","eslint-config-prettier":"^6.11.0","eslint-import-resolver-babel-module":"^5.1.2","eslint-plugin-import":"^2.20.2","eslint-plugin-jest":"^23.11.0","eslint-plugin-prettier":"^3.1.3","jest":"^26.0.1","pre-commit":"^1.2.2","prettier":"2.0.5","rollup":"^2.6.1","rollup-plugin-auto-external":"^2.0.0","rollup-plugin-babel":"^4.4.0"},"pre-commit":["lint"],"dependencies":{"amqp-connection-manager":"^3.2.0","amqplib":"^0.5.5","uniqid":"^5.2.0"},"gitHead":"d3bd48d14286fc2abfe529b1cfde4a6fb622381e","bugs":{"url":"https://github.com/CESARBR/knot-cloud-sdk-js-amqp/issues"},"homepage":"https://github.com/CESARBR/knot-cloud-sdk-js-amqp#readme","_id":"@cesarbr/knot-cloud-sdk-js-amqp@3.0.1","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-QbIVjn52fnLF+OldU7jH0VKsLEXKQOBpFn/Z+HhyRse5gbxx6mcAnXx2bZAPDSnvl9wAVRAMiwyha4ldYZY9hA==","shasum":"46599946cad02620b422ca12284386967473119a","tarball":"https://registry.npmjs.org/@cesarbr/knot-cloud-sdk-js-amqp/-/knot-cloud-sdk-js-amqp-3.0.1.tgz","fileCount":25,"unpackedSize":83799,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgBZsXCRA9TVsSAnZWagAAFjgP/3BfewsqQJ4C4GSJaxck\nmsVwCewPbvCpGmsgV00rKf3MuWuPHgn5x96vHkrzmzgAqXrB8sNYyoJ8rPrc\ns8tbzpiBQydCSmbvPMPSv1yjz27YZ3sBDUUA+SNuehMe15808P1p/UEOFvhP\n9toI16UVZstaYY2+dnUu8raspQ8uVpA8fJMsCjn8xAiGcpTgU0SSdFsgNRli\nVxPV/1A/Nha1+UFrPKjlwnxVJ6GU4jTjYTy0H5ruCakRURWTVeUy1t1Y+JHs\n1ZQOdJ8gdrTnPQNYWHRiXjQzBk+PezO9+d9I8PTe1zqyzzqnlhsMejyFzW5O\nllzNTrz5RcH92BI28z1h5KoPn5lz4kOz4rAVLlOH/5b7Ob72ojUxmhPdPQ8C\n1RrTA7COQ1YCJZLXZms6Dfda3uuso9afeoHTn6Z61vu0OV76MbDgWDpVwUAC\ndse4y0ypj1CJaNlBWpKxJnhayiP67pHoqi1soTEfZqsLiu8zfDZER92fy8dM\noxCzHeA6lHyqB/xafwZH+lWliFm7+E34tQ1RYNlL8SizRrOKXyx49VmtCj5w\nrBWTYYu9knhY5EXTClbynBJu0al9vTMqNi6j8z3ol+ttz6ow71p7oY7DfhkB\n/73VA2UrfwhOCzjf/ZmrR2wfOCsqTYZt96d/NuUhu22ijH6FTaKRDZj4yf9f\n+F8Y\r\n=qozN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhpYFemjXKi5kM2lkuKk6Fk1IRVAb6ykDWQkfyNGwzNgIgUW5+/iBeXM+0vBdvq86kle12i3M2cqKPaJLXd4tvGKs="}]},"_npmUser":{"name":"jneto","email":"j.alexandreeneto@gmail.com"},"directories":{},"maintainers":[{"name":"figueredo","email":"thiago@figueredo.co"},{"name":"pauloserrafh","email":"ptvsf@cesar.org.br"},{"name":"ramonhpr","email":"rhpr@cesar.org.br"},{"name":"jneto","email":"j.alexandreeneto@gmail.com"},{"name":"felipeborgiani","email":"felipe@felipeborgiani.com"},{"name":"brunolimawd","email":"brunolimawd@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/knot-cloud-sdk-js-amqp_3.0.1_1610980118651_0.28278970728004116"},"_hasShrinkwrap":false},"4.0.0":{"name":"@cesarbr/knot-cloud-sdk-js-amqp","version":"4.0.0","description":"KNoT Cloud AMPQ SDK for NodeJS ","repository":{"type":"git","url":"git+https://github.com/CESARBR/knot-cloud-sdk-js-amqp.git"},"main":"./dist/main.js","module":"./dist/module.mjs","author":{"name":"CESARBR"},"license":"BSD-3-Clause","scripts":{"lint":"eslint .","build":"rollup -c","prepublishOnly":"npm run build","test":"jest"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.9.0","@babel/node":"^7.8.7","@babel/preset-env":"^7.9.5","babel-jest":"^26.0.1","babel-plugin-module-resolver":"^4.0.0","eslint":"^6.8.0","eslint-config-airbnb-base":"^14.1.0","eslint-config-prettier":"^6.11.0","eslint-import-resolver-babel-module":"^5.1.2","eslint-plugin-import":"^2.20.2","eslint-plugin-jest":"^23.11.0","eslint-plugin-prettier":"^3.1.3","jest":"^26.0.1","pre-commit":"^1.2.2","prettier":"2.0.5","rollup":"^2.6.1","rollup-plugin-auto-external":"^2.0.0","rollup-plugin-babel":"^4.4.0"},"pre-commit":["lint"],"dependencies":{"@cesarbr/knot-cloud-sdk-js-authenticator":"^2.2.0","amqp-connection-manager":"^3.2.0","amqplib":"^0.8.0","uniqid":"^5.2.0"},"gitHead":"45337008c79acf4a205b0dcb3fcb4fc1e9854571","bugs":{"url":"https://github.com/CESARBR/knot-cloud-sdk-js-amqp/issues"},"homepage":"https://github.com/CESARBR/knot-cloud-sdk-js-amqp#readme","_id":"@cesarbr/knot-cloud-sdk-js-amqp@4.0.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-glHQJowkiaavFqON20N7htiU5kdum7d+Sr25CpMi4iJTmkyNHHsuQyIK1He+Km2C4M8q8HF6NxWDe0aoNFI0TQ==","shasum":"c5e8899507a8580af628b49d34a2e8ac83bd22fe","tarball":"https://registry.npmjs.org/@cesarbr/knot-cloud-sdk-js-amqp/-/knot-cloud-sdk-js-amqp-4.0.0.tgz","fileCount":25,"unpackedSize":85712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg0yI3CRA9TVsSAnZWagAAqt4QAIXc4Q43vMJfjHQ0Mvo6\ntWkyUCzo+msvCXHXhOiJKSh7KP5idbSpXA1SneQg8vJXk89wBag7NFQ2N0b7\nGRqF2MYqtB6PJSPO9eOyQPydRcWm9WGmxGr4YRf+zt9BPMF5J7VpGUnZQ9AF\nCbElF8ZSrI8CkyTXoLQHuJBG3mYSHN/XhW5MYBWTxBRsEVTYVESHX11HOuKR\n0QXA1pDOhsH2dMrKM3/pW1gEPGL4hsg5GUhs+nTRTxkZaEwBzMhGwBm3UA/3\nHnsQo/tvh1km9x7J6q+NvIZZHP7gBfxo3LGaOBHbpGkB6NMWIsi2ky+A3bLI\n8ymPoDnZ2umV45KeJN/0VbxKkxGIBOlPtMyLAXwjsZONJ9p6fUxuwKxLUDqO\nUzZimz3tiuUku8HUXSzzCklks4ORKCLHUhornHjk5mvzCf08YHDixOl80eLQ\naUfesxN3Qj4NLeaVQCoX5I/arDUUsFUGgZN6NUmMGKm4S2H08ZHi6XNtNx4e\nPSsSXbIYXQZXpuRDtsgmNKNbAjP5Mwnj0iEi2HE2ivZSkuVZv/Z++N0nSzbT\nGSTM/aGYmEEsMq29Vkx4FVXL7vqLOii7kmX7lFkPGgPMQZwJQcMsHLtihnUr\nKz0BvuIKCRmRI2WIfzs9Zu+rSszqJjb3bZq59iSddceCGEjxciQHuxExIXoz\ninh9\r\n=dxtI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAN4dLHxR4n42pe1U7/B8uEEzGmdZkU94jeOrqYukbhIAiBUg+90YyGMYk6MWkuGv4mJZygsXcX3YMS2zosPmE9aVw=="}]},"_npmUser":{"name":"jneto","email":"j.alexandreeneto@gmail.com"},"directories":{},"maintainers":[{"name":"cgsilva","email":"carlosgabrieldasilvasantana@gmail.com"},{"name":"felipe-ferraz","email":"faff@cesar.org.br"},{"name":"rodrigoperazzo","email":"rpr@cesar.org.br"},{"name":"ramonhpr","email":"rhpr@cesar.org.br"},{"name":"jneto","email":"j.alexandreeneto@gmail.com"},{"name":"felipeborgiani","email":"felipe@felipeborgiani.com"},{"name":"brunolimawd","email":"brunolimawd@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/knot-cloud-sdk-js-amqp_4.0.0_1624449590735_0.5588487978278953"},"_hasShrinkwrap":false}},"time":{"created":"2020-04-18T02:59:02.425Z","1.0.0":"2020-04-18T02:59:02.788Z","modified":"2022-08-03T19:35:19.096Z","1.0.1":"2020-04-24T22:50:21.997Z","2.0.0":"2020-06-12T20:34:41.676Z","2.1.0":"2020-07-24T16:43:43.066Z","2.2.0":"2020-08-21T13:37:52.399Z","3.0.0":"2020-10-08T14:10:18.244Z","3.0.1":"2021-01-18T14:28:38.783Z","4.0.0":"2021-06-23T11:59:50.896Z"},"maintainers":[{"email":"isac.aniceto@hotmail.com","name":"isac_aniceto"},{"email":"rhpr@cesar.org.br","name":"ramonhpr"},{"email":"j.alexandreeneto@gmail.com","name":"jneto"},{"email":"felipe@felipeborgiani.com","name":"felipeborgiani"},{"email":"brunolimawd@gmail.com","name":"brunolimawd"},{"email":"rpr@cesar.org.br","name":"rodrigoperazzo"},{"email":"faff@cesar.org.br","name":"felipe-ferraz"},{"email":"carlosgabrieldasilvasantana@gmail.com","name":"cgsilva"}],"description":"KNoT Cloud AMPQ SDK for NodeJS ","homepage":"https://github.com/CESARBR/knot-cloud-sdk-js-amqp#readme","repository":{"type":"git","url":"git+https://github.com/CESARBR/knot-cloud-sdk-js-amqp.git"},"author":{"name":"CESARBR"},"bugs":{"url":"https://github.com/CESARBR/knot-cloud-sdk-js-amqp/issues"},"license":"BSD-3-Clause","readme":"# knot-cloud-sdk-js-amqp\n\nA client-side library that provides an AMQP abstraction to the KNoT Cloud for Node.js applications.\n\n## Quickstart\n\n### Install\n\n```console\nnpm install --save @cesarbr/knot-cloud-sdk-js-amqp\n```\n\n### Run\n\n`KNoT Cloud AMQP` communicates with a RabbitMQ broker at amqp://&lt;username&gt;:&lt;password&gt;@&lt;hostname&gt;:&lt;port&gt; using &lt;token&gt; as credential to execute the operations. Replace this address with your broker instance and the credentials with valid ones. In addition, the library should be configured with the HTTP address of the API Gateway (knot-babeltower).\n\n```javascript\nconst Client = require('@cesarbr/knot-cloud-sdk-js-amqp');\n\nconst config = {\n  amqp: {\n    hostname: 'broker.knot.cloud',\n    port: 5672,\n    username: 'knot',\n    password: 'knot',\n    token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...', // this is not a valid token!\n  },\n  http: {\n    hostname: 'api.knot.cloud', // API Gateway address\n    port: 80,\n    protocol: 'http',\n  },\n};\n\nconst client = new Client(config);\n\nconst thing = {\n  id: 'abcdef1234567890',\n  name: 'my-thing',\n};\n\nconst main = async () => {\n  try {\n    await client.connect();\n    const response = await client.register(thing.id, thing.name);\n    console.log('register response:', response);\n    await client.close();\n  } catch (err) {\n    console.error(err);\n  }\n};\n\nmain();\n```\n\n## Methods\n\n### Constructor(config)\n\nCreate a client object that will connect to a KNoT Cloud RabbitMQ instance.\n\n#### Arguments\n\n- `config` **Object** JSON object with the configuration.\n  - `amqp` **Object** JSON object with broker properties.\n    - `hostname` **String** (Optional) RabbitMQ instance hostname. Default: `'localhost'`.\n    - `port` **Number** (Optional) RabbitMQ instance port. Default: 5672.\n    - `username` **String** (Optional) RabbitMQ instance username. Default: `'knot'`.\n    - `password` **String** (Optional) RabbitMQ instance password. Default: `'knot'`.\n    - `token` **String** (Required) KNoT Cloud user token.\n  - `http` **Object** JSON object with API Gateway configuration.\n    - `hostname` **String** API Gateway hostname. Default: `'localhost'`.\n    - `port` **Number** API Gateway port. Default: 80.\n    - `protocol` **Number** API Gateway protocol. Default: `'http'`.\n\n#### Example\n\n```javascript\nconst Client = require('@cesarbr/knot-cloud-sdk-js-amqp');\n\nconst client = new Client(config);\n```\n\n### connect(): Promise&lt;Void&gt;\n\nConnects to a RabbitMQ broker instance.\n\n#### Example\n\n```javascript\nconst Client = require('@cesarbr/knot-cloud-sdk-js-amqp');\n\nconst client = new Client(config);\n\nconst main = async () => {\n  try {\n    await client.connect();\n    console.log('successfully connected!');\n  } catch (err) {\n    console.error(err);\n  }\n};\n\nmain();\n```\n\n### close(): Promise&lt;Void&gt;\n\nCloses the current connection with the RabbitMQ broker instance.\n\n#### Example\n\n```javascript\nconst Client = require('@cesarbr/knot-cloud-sdk-js-amqp');\n\nconst client = new Client(config);\n\nconst main = async () => {\n  try {\n    await client.connect();\n    await client.close();\n    console.log('connection successfully closed');\n  } catch (err) {\n    console.error(err);\n  }\n};\n\nmain();\n```\n\n### register(id, name): Promise&lt;Object&gt;\n\nRegisters a new thing. Receives an object containing the registered thing's ID.\n\n#### Arguments\n\n- `id` **String** Thing's ID.\n- `name` **String** Thing's name.\n\n#### Result\n\n- `device` **Object** JSON object in the following format:\n  - `id` **String** Thing's ID.\n\n#### Example\n\n```javascript\nconst Client = require('@cesarbr/knot-cloud-sdk-js-amqp');\n\nconst client = new Client(config);\n\nconst thing = {\n  id: 'abcdef1234567890',\n  name: 'my-thing',\n};\n\nconst main = async () => {\n  try {\n    await client.connect();\n    const response = await client.register(thing.id, thing.name);\n    console.log('thing successfully registered:', response);\n    await client.close();\n  } catch (err) {\n    console.error(err);\n  }\n};\n\nmain();\n\n/*\nthing successfully registered:\n{\n  id: 'abcdef1234567890',\n  token: '0d26d2e5-1611-477d-b8d3-46adbb14139a'\n}\n*/\n```\n\n### unregister(id): Promise&lt;Object&gt;\n\nRemoves a thing from the cloud.\n\n#### Arguments\n\n- `id` **String** Thing's ID.\n\n#### Result\n\n- `device` **Object** JSON object in the following format:\n  - `id` **String** Thing's ID.\n\n#### Example\n\n```javascript\nconst Client = require('@cesarbr/knot-cloud-sdk-js-amqp');\n\nconst client = new Client(config);\n\nconst thing = {\n  id: 'abcdef1234567890',\n  name: 'my-thing',\n};\n\nconst main = async () => {\n  try {\n    await client.connect();\n    await client.register(thing.id, thing.name);\n    const response = await client.unregister(thing.id);\n    console.log('thing successfully unregistered:', response);\n    await client.close();\n  } catch (err) {\n    console.error(err);\n  }\n};\n\nmain();\n\n/*\nthing successfully unregistered:\n{\n  id: 'abcdef1234567890'\n}\n*/\n```\n\n### getDevices(): Promise&lt;Object&gt;\n\nList all things registered on cloud.\n\n#### Result\n\n- `devices` **Object** JSON object, containing set of things on cloud.\n\n#### Example\n\n```javascript\nconst Client = require('@cesarbr/knot-cloud-sdk-js-amqp');\n\nconst client = new Client(config);\n\nconst thing = {\n  id: 'abcdef1234567890',\n  name: 'my-thing',\n};\n\nconst main = () => {\n  try {\n    await client.connect();\n    await client.register(thing.id, thing.name);\n    const response = client.getDevices();\n    console.log('list of things:', response);\n    await client.close();\n  } catch (err) {\n    console.error(err);\n  }\n};\n\nmain();\n\n/*\nlist of things:\n{\n  devices: [\n    {\n      id: 'abcdef1234567890',\n      name: 'my-thing'\n    }\n  ]\n}\n*/\n```\n\n### updateConfig(id, config): Promise&lt;Object&gt;\n\nUpdates the thing's config.\n\n#### Arguments\n\n- `id` **String** Thing's ID.\n- `config` **Array** Objects in the following format:\n  - `sensorId` **Number** Sensor ID.\n  - `schema` **JSON Object** Schema definition, formed by:\n    - `typeId` **Number** Semantic value type (voltage, current, temperature, etc).\n    - `valueType` **Number** Data value type (boolean, integer, etc).\n    - `unit` **Number** Sensor unit (V, A, W, W, etc).\n    - `name` **String** Sensor name.\n  - `event` **JSON Object** Event definition, formed by:\n    - `change` **Boolean** Enable sending sensor data when its value changes\n    - `timeSec` **Number - Optional** Time interval in seconds that indicates when data must be sent to the cloud\n    - `lowerThreshold` **(Depends on schema's valueType) - Optional** Send data to the cloud if it's lower than this threshold\n    - `upperThreshold` **(Depends on schema's valueType) - Optional** Send data to the cloud if it's upper than this threshold\n\n#### Result\n\n- `device` **Object** JSON object, containing thing's metadata.\n\n#### Example\n\n```javascript\nconst Client = require('@cesarbr/knot-cloud-sdk-js-amqp');\n\nconst client = new Client(config);\n\nconst thing = {\n  id: 'abcdef1234567890',\n  name: 'my-thing',\n  config: [\n    {\n      sensorId: 0,\n      schema: {\n        typeId: 65521,\n        valueType: 3,\n        unit: 0,\n        name: 'bool-sensor',\n      },\n      event: {\n        change: true,\n        timeSec: 10,\n        lowerThreshold: 1000,\n        upperThreshold: 3000,\n      },\n    },\n  ],\n};\n\nconst main = async () => {\n  try {\n    await client.connect();\n    await client.register(thing.id, thing.name);\n    const response = await client.updateConfig(thing.id, thing.config);\n    console.log('config successfully updated:', response);\n    await client.close();\n  } catch (err) {\n    console.error(err);\n  }\n};\n\nmain();\n\n/*\nconfig successfully updated:\n{\n  id: 'abcdef1234567890',\n  name: 'my-thing',\n  config: [{\n    sensorId: 0,\n    schema: {\n      typeId: 65521,\n      valueType: 3,\n      unit: 0,\n      name: 'bool-sensor',\n    },\n    event: {\n      change: true,\n      timeSec: 10,\n      lowerThreshold: 1000,\n      upperThreshold: 3000,\n    }\n  }]\n}\n*/\n```\n\n### publishData(id, data): Promise&lt;Void&gt;\n\nPublishes thing's data.\n\n#### Arguments\n\n- `id` **String** Thing's ID.\n- `data` **Array** Data in the following format:\n  - `sensorId` **Number** Sensor ID.\n  - `value` **String|Boolean|Number** Sensor value.\n\n#### Example\n\n```javascript\nconst Client = require('@cesarbr/knot-cloud-sdk-js-amqp');\n\nconst client = new Client(config);\n\nconst thingId = 'abcdef1234567890'; // thing already registered!\n\nconst main = async () => {\n  try {\n    await client.connect();\n    await client.on('data', (err, msg) => {\n      if (err) {\n        console.error(err);\n      } else {\n        console.log('data published successfully:', msg);\n      }\n    });\n    await client.publishData(thingId, [{ sensorId: 0, value: true }]);\n    await client.close();\n  } catch (err) {\n    console.error(err);\n  }\n};\n\nmain();\n\n/*\ndata published successfully:\n{\n  id: 'abcdef1234567890',\n  data: [\n    {\n      sensorId: 0,\n      value: true\n    }\n  ]\n}\n*/\n```\n\n### getData(id, sensorIds): Promise&lt;Void&gt;\n\nRequests a thing to publish the current data value of the specified sensor(s).\n\n#### Arguments\n\n- `id` **String** Thing's ID.\n- `sensorIds` **Array** Sensor IDs to request data from.\n\n#### Example\n\n```javascript\nconst Client = require('@cesarbr/knot-cloud-sdk-js-amqp');\n\nconst client = new Client(config);\n\nconst thingId = 'abcdef1234567890'; // thing already registered!\n\nconst main = async () => {\n  try {\n    await client.connect();\n    await client.on('getData', (err, msg) => {\n      if (err) {\n        console.error(err);\n      } else {\n        console.log('data successfully requested:', msg);\n      }\n    });\n    await client.getData(thingId, [0]);\n    await client.close();\n  } catch (err) {\n    console.error(err);\n  }\n};\n\nmain();\n\n/*\ndata successfully requested:\n{\n  id: 'abcdef1234567890',\n  sensorIds: [0]\n}\n*/\n```\n\n### setData(id, data): Promise&lt;Void&gt;\n\nRequests a thing to updates the current data value of the specified sensor(s).\n\n#### Arguments\n\n- `id` **String** Device ID.\n- `data` **Array** Data items to be published, each one in the following format:\n  - `sensorId` **Number** Sensor ID.\n  - `value` **String|Boolean|Number** Sensor value.\n\n#### Example\n\n```javascript\nconst Client = require('@cesarbr/knot-cloud-sdk-js-amqp');\n\nconst client = new Client(config);\n\nconst thingId = 'abcdef1234567890'; // thing already registered!\n\nconst main = async () => {\n  try {\n    await client.connect();\n    await client.on('setData', (err, msg) => {\n      if (err) {\n        console.error(err);\n      } else {\n        console.log('setData request successfully sent:', msg);\n      }\n    }\n    await client.setData(thingId, [{ sensorId: 0, value: true }]);\n    await client.close();\n  } catch (err) {\n    console.error(err);\n  }\n};\n\nmain();\n\n/*\nsetData request successfully sent:\n{\n  id: 'abcdef1234567890',\n  data: [{\n    sensorId: 0,\n    value: true\n  }]\n}\n*/\n```\n\n### on(event, callback): Promise&lt;Void&gt;\n\nRegisters an event callback handler. See next section for details on events.\n\n#### Arguments\n\n- `name` **String** Event name.\n- `callback` **Function** Event callback handler.\n\n#### Example\n\n```javascript\nconst Client = require('@cesarbr/knot-cloud-sdk-js-amqp');\n\nconst client = new Client(config);\n\nconst thingId = 'abcdef1234567890'; // thing already registered!\n\nconst main = async () => {\n  try {\n    await client.connect();\n    await client.on('setData', (err, msg) => {\n      if (err) {\n        console.error(err);\n      } else {\n        console.log('data.update message sent:', msg);\n      }\n    });\n    await Promise.all(\n      [true, false, true].map((value) => {\n        return client.publishData(thingId, [{ sensorId: 0, value }]);\n      })\n    );\n    await client.close();\n  } catch (err) {\n    console.error(err);\n  }\n};\n\nmain();\n```\n\n### once(event, callback): Promise&lt;Void&gt;\n\nRegisters an callback handler only for next event occurrence. See next section for details on events.\n\n#### Arguments\n\n- `name` **String** Event name.\n- `callback` **Function** Event callback handler.\n\n#### Example\n\n```javascript\nconst Client = require('@cesarbr/knot-cloud-sdk-js-amqp');\n\nconst client = new Client(config);\n\nconst thingId = 'abcdef1234567890'; // thing already registered!\n\nconst main = async () => {\n  try {\n    await client.connect();\n    await client.once('setData', (err, msg) => {\n      if (err) {\n        console.error(err);\n      } else {\n        console.log('data.update message sent:', msg);\n      }\n    });\n    await client.publishData(thingId, [{ sensorId: 0, value: true }]);\n    await client.close();\n  } catch (err) {\n    console.error(err);\n  }\n};\n\nmain();\n```\n\n# Events\n\nEvents can be listened by registering a handler with `on` or `once` methods. The handler will receive two parameters: an object containing the message data and an error indicating if something went wrong (it can be `null`).\n\n### Event: \"data\"\n\nTriggered when a thing publishes sensor data.\n\n#### Messages\n\n- `id` **String** Thing's ID.\n- `data` **Array** Data objects in the following format:\n  - `sensorId` **Number** Sensor ID.\n  - `value` **String|Boolean|Number** Sensor value.\n\n#### Example\n\n```javascript\n{\n  id: 'abcdef1234567890',\n  data: [\n    {\n      sensorId: 0,\n      value: false,\n    },\n    {\n      sensorId: 1,\n      35,\n    },\n  ],\n}\n```\n\n### Event: \"getData\"\n\nTriggered when a request for things to publish data is sent.\n\n#### Message\n\n- `id` **String** Thing's ID.\n- `sensorIds` **Array** Sensor IDs to request data.\n\n#### Example\n\n```javascript\n{\n  id: 'abcdef1234567890',\n  sensorIds: [0, 1],\n}\n```\n\n### Event: \"setData\"\n\nTriggered when a request for things to update data is sent.\n\n#### Message\n\n- `id` **String** Thing's ID.\n- `data` **Array** Data objects in the following format:\n  - `sensorId` **Number** Sensor ID.\n  - `value` **String|Boolean|Number** Sensor value.\n\n#### Example\n\n```javascript\n{\n  id: 'abcdef1234567890',\n  data: [\n    {\n      sensorId: 0,\n      value: false,\n    },\n    {\n      sensorId: 1,\n      35,\n    },\n  ],\n}\n```\n","readmeFilename":"README.md"}