{"_id":"kinvey-flex-sdk","_rev":"79-9d35ee072632499c17699356598f7558","name":"kinvey-flex-sdk","description":"SDK for creating Kinvey Flex Services","dist-tags":{"latest":"4.1.4","next":"4.1.4-next.0","dev":"3.4.0"},"versions":{"1.0.0-rc.1":{"name":"kinvey-flex-sdk","version":"1.0.0-rc.1","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"1.0.0-rc.1","kinvey-datalink-errors":"0.2.2","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"8.0.0","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js"},"gitHead":"25783e1729601055ef46d1fafcc7b897eb8a5c31","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@1.0.0-rc.1","_shasum":"048f1a1405c36d80222fd7f6920d56f3e7b36c85","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"048f1a1405c36d80222fd7f6920d56f3e7b36c85","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-1.0.0-rc.1.tgz","integrity":"sha512-npbi1vyx9Cgvf4Y3/F3kH1R04lLpvPC4EUOuweD2K5gU6TfIL7Bg5FK+2sYt/LcQU5txO2uHb8pV6IXYtKxYqw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC37rJd+IR/R4H5N+FMmHgMjkotfDF6bR1FHHi/xayUGQIhAPBc0qfo/Z9P6SR1FSs38LdWD1IBqVo+mZYPvNqpjrAK"}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-1.0.0-rc.1.tgz_1478203674311_0.7971688581164926"},"directories":{}},"1.0.0-rc.2":{"name":"kinvey-flex-sdk","version":"1.0.0-rc.2","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"1.0.0-rc.1","kinvey-datalink-errors":"0.2.2","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"8.0.0","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js"},"gitHead":"44379d96718799fa0414fd68beed73c74d750d70","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@1.0.0-rc.2","_shasum":"40eca0c68c5ecb3379621e0accebdf1dfd8d8a00","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"40eca0c68c5ecb3379621e0accebdf1dfd8d8a00","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-1.0.0-rc.2.tgz","integrity":"sha512-33/q3hps/ib/E4Q4QrEYRSslV7hL1mgml/uOV/Xmacohg4SuA7Ohhnkqt3jiKjrt7mIQiqDu8/IeAvqzffl0+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCn1vLqK7XKhmIHgSDj0pdYbgpfwUtRma++1XdXfFNyXAIgTudijevuguF0uyCP8h8eHUjgZ+dG3Yny/LiuV3d5luI="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-1.0.0-rc.2.tgz_1478205176331_0.3695222521200776"},"directories":{}},"1.0.0":{"name":"kinvey-flex-sdk","version":"1.0.0","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"1.0.0-rc.1","kinvey-datalink-errors":"0.2.2","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"8.0.0","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js"},"gitHead":"7dd5319cac79e4b272bbcbb33c7690bc0e823082","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@1.0.0","_shasum":"e287f9902a1851cc57227b8abcb208f4b24c0e53","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"e287f9902a1851cc57227b8abcb208f4b24c0e53","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-1.0.0.tgz","integrity":"sha512-Chp84M2l22clOmBzHZKnFbHaefvnrfPSLTTe0QyT/EXbRcDKIazu4NC3dAVa/jIPTXiXI/Oo0BBGV4DBYQxT/A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG8cnijPIKZ4XSKbACEdrPuEF5xspfjS9a0uDurmCOcjAiEAuoNFgsHibmRupn7VNwOJXkK8/4n0yppLSe9yvxB0XTI="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-1.0.0.tgz_1478789606377_0.5416586487554014"},"directories":{}},"1.0.1":{"name":"kinvey-flex-sdk","version":"1.0.1","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"1.0.0-rc.1","kinvey-datalink-errors":"0.2.2","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"8.0.0","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js"},"gitHead":"729ca8d449f5e85b590a96906cef0ba770887711","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@1.0.1","_shasum":"5683fd95c471e63b4a658ac1719339d1e0603ba6","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"5683fd95c471e63b4a658ac1719339d1e0603ba6","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-1.0.1.tgz","integrity":"sha512-PSNl/1NQVUphgi00zFLXo0q7el38z7GBrkVSgt79U9tOXBF+yIpJEjRt7tqRoNrv4R8GGjt2Msx4QhtEN2Einw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAZktAu9M9IU4Jx21NsbvvLFF1VljmRt6ShXt6dLSJBQIgZAMA6N5Z532mTvuvq2zOf3CKMiZUjEOP8IGTzc4HjlA="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-1.0.1.tgz_1478809143133_0.40326204150915146"},"directories":{}},"1.1.0":{"name":"kinvey-flex-sdk","version":"1.1.0","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"1.0.0","kinvey-datalink-errors":"0.2.2","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"8.0.0","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js"},"gitHead":"b608dea4063e0a7ea2c4b1190196bab998c2def3","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@1.1.0","_shasum":"a34e44a7ce1674d6695c18279b3501398bd41ff2","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"a34e44a7ce1674d6695c18279b3501398bd41ff2","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-1.1.0.tgz","integrity":"sha512-DziJtnS8Rh702rfuXBNq1GBEx0YqDEDKJrfMQ0N5QOObDDX1+nCjWVKj8A+auP18mxMSkbiX0REVMQZ2cRa7gQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFkn7oHDg4gEBAxCsi6aQUMtd2cot6XngwT6VYSk2C/YAiAnWZQmx8I7DAOxVsAvtJ635EESFom7lgqs9ZvMEmfE9w=="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-1.1.0.tgz_1481628974244_0.2279459279961884"},"directories":{}},"1.2.0":{"name":"kinvey-flex-sdk","version":"1.2.0","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"1.2.1","kinvey-datalink-errors":"0.2.2","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"8.0.0","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js"},"gitHead":"a5990151c9420b1797d7293ac3559717dc354337","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@1.2.0","_shasum":"f174a36bfa05a37ddee2a159496e51a41433c254","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"f174a36bfa05a37ddee2a159496e51a41433c254","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-1.2.0.tgz","integrity":"sha512-REvqPGTx6TO7VNxwBkH8cZ2u0BABzhIAMiFgTXLAwT4umfcy+UWVgBBm0ISeyCYmJATP7RIP1NdG7GmvvbVVpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBS61qtvsgrzzE1Tmk+VsbqN6UFWjyR1Se3fr2lDrCxFAiEAhomTdeRwKRnwK0EYL9G4AR0byWFD/wfVGz2S0Efd044="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-1.2.0.tgz_1484930603043_0.7329875947907567"},"directories":{}},"2.0.0-b.1":{"name":"kinvey-flex-sdk","version":"2.0.0-b.1","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.0.0","kinvey-datalink-errors":"0.2.2","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"8.0.0","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js"},"gitHead":"d7641f122c27152774de5a6eb9cad98751c485f1","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.0-b.1","_shasum":"e2b2cb86a527b3dc17d56570f99bc09d6a19c312","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"e2b2cb86a527b3dc17d56570f99bc09d6a19c312","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.0-b.1.tgz","integrity":"sha512-8/L7L2bY7VL677ke1xyUNriiHbuOmpERgvIDWJtf9d3dv2+1Wp6szUKWgQbXza6GMci/Y/RnTGCj8QgZTOh8Cw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGgzMpZFXs9V4sTo1++t3OzQlgbVyfxh4Arp6UJCTYieAiBtPisne2qmmhqy99cJeyZgaqxHos3WCrQeCr9GrilSlQ=="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-2.0.0-b.1.tgz_1485872769697_0.8162463658954948"},"directories":{}},"2.0.0-b.2":{"name":"kinvey-flex-sdk","version":"2.0.0-b.2","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.0.0","kinvey-datalink-errors":"0.2.2","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"8.0.0","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js"},"gitHead":"3da22a059675b69fe1e354a33f5e03ce886a1b6d","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.0-b.2","_shasum":"c54ee58d33c40fb66c3a56d40ea7a4852b2f1f40","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"c54ee58d33c40fb66c3a56d40ea7a4852b2f1f40","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.0-b.2.tgz","integrity":"sha512-uEiaHv504ixk5Y+/USZOzDNmco0wM+FG3ArLKa9hT2jiMylkZyzoP0y7RgdWzJSD07buf2ORzEKn+hq/kohwHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDErGHczBXraXMA9LTJl+dcx/l0GBcBFKLrLsy7SpfFhQIhAPHlKFUzmwUW8kTXO9F4nmjtm5wM6KlGF8oIGUpIN1ur"}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-2.0.0-b.2.tgz_1485956025575_0.41560544865205884"},"directories":{}},"2.0.0-b.3":{"name":"kinvey-flex-sdk","version":"2.0.0-b.3","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.0.0","kinvey-datalink-errors":"0.2.2","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"8.0.0","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js"},"gitHead":"449961ab28211cdb12cc5974ce85fcc574b1fa47","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.0-b.3","_shasum":"d57ac816db81ba100704bc0ee7d2c5fdd4078ae5","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"d57ac816db81ba100704bc0ee7d2c5fdd4078ae5","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.0-b.3.tgz","integrity":"sha512-HbUda71QcWdMQtEqkd1xqRTDbIRMeBdYDQPN17FU1B3i0TH+PJQrP3zG3gm1OBMSWETDufC53gJwTZWNTrunOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBm17T4wfmqBZsHZ9QwiJDauchtz+NkQA2JA7hnNbqGwIgAIIdhyMhUra96HXF7WZGlm9Xamp+nVBoPA2S5OZjQ+k="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-2.0.0-b.3.tgz_1485957245022_0.8011052273213863"},"directories":{}},"2.0.0-b.4":{"name":"kinvey-flex-sdk","version":"2.0.0-b.4","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.0.0","kinvey-datalink-errors":"0.2.2","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"8.0.0","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js"},"gitHead":"f61e1c92dc37fc7e4fd5c8eefb6008d2a3e1e4d1","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.0-b.4","_shasum":"9dc69191190b3c51e49030e28c202c97b634efec","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"9dc69191190b3c51e49030e28c202c97b634efec","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.0-b.4.tgz","integrity":"sha512-eeWKob8VlWKIzwjMHIf76kCWaRN7SSEtoBs/X5PypquurTki2qACBeN1eAYJVh6zgGApPTjVa2TIRBp6A8wJ6g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICtNdYK/Q0wDVh+lo6TKE2edJSLzHzEYghjWSjBcpggRAiEAxA8Gx4oxpgd5H2HPeWk0LcYRWNUBeAVSaQdDkzELcts="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-2.0.0-b.4.tgz_1486558229115_0.9992754552513361"},"directories":{}},"2.0.0-b.5":{"name":"kinvey-flex-sdk","version":"2.0.0-b.5","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.0.0","kinvey-datalink-errors":"0.2.2","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"8.0.0","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js"},"gitHead":"7006e3c682a797dd3dcbaad010aa84234b387c08","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.0-b.5","_shasum":"abc1605a0cbd971d0866654a7464422911368eb0","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"abc1605a0cbd971d0866654a7464422911368eb0","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.0-b.5.tgz","integrity":"sha512-T2GNQZFY+SqwD8YNDszw+lsToTdpIucLO+wjBHBBObmeH3KtUrit+X6XMwlErmf3D9hzZdFU6FPod1tfpuGXuw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE4v0emfB8+xlAyQRRlrAxB68XkmyOkEasTAhbN/XEGbAiEAuYHikVtmhCyKudMq2G+0WW5ejZ+is2n5tMhFvYV4DoU="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-2.0.0-b.5.tgz_1486587349875_0.5213282734621316"},"directories":{}},"2.0.0-b.6":{"name":"kinvey-flex-sdk","version":"2.0.0-b.6","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.0.0","kinvey-datalink-errors":"0.2.2","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"gitHead":"19aeeb5e65d9045022c9fb8b1ecf5d49bdf154b4","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.0-b.6","_shasum":"c207eaf344be2eeec4e248bf9e8b515a92e213db","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"c207eaf344be2eeec4e248bf9e8b515a92e213db","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.0-b.6.tgz","integrity":"sha512-vTWnQ0wvVuxfLfga8QtDaO/rfUBW++suaFpuZpkIwwX0tdmcjHUhmNBylTWT27A/DJ6/yHQ/8Wa3NCQqJfHi9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIACa+N6scFEofPnnoDM0q6hG197UBazz8gHBm8MT/elsAiBB/ypJyyN/jhOqDTvCyCgErr4GO4UoWqrorG6KOCukpA=="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-2.0.0-b.6.tgz_1487190833500_0.011426127050071955"},"directories":{}},"2.0.0-b.7":{"name":"kinvey-flex-sdk","version":"2.0.0-b.7","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"dev","kinvey-datalink-errors":"0.2.2","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"gitHead":"19aeeb5e65d9045022c9fb8b1ecf5d49bdf154b4","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.0-b.7","_shasum":"74aa91c631de49cbd370f60a069b5b0976a5472a","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"74aa91c631de49cbd370f60a069b5b0976a5472a","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.0-b.7.tgz","integrity":"sha512-IZxwPTza5phPOcpLHZXrLxNGI6d0uGUI0HNSPNMfpXiJ9Fiih+Iky4oR2XYiIb5nvi6T9DsvbUvHJU0qldQFug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDCcNastODiNXyU7lI0g/9RJd0ZGhy7T0eAYk4tiOVqpAiEAh3Ub6qgBHi+5oOdjFdGBl3ysFqEEmbwNrX6KKxY17LQ="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-2.0.0-b.7.tgz_1487692797685_0.19180328911170363"},"directories":{}},"2.0.0-b.8":{"name":"kinvey-flex-sdk","version":"2.0.0-b.8","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"dev","kinvey-datalink-errors":"0.2.2","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"gitHead":"33c4c644d840037a31eb087378496cbb60c7a789","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.0-b.8","_shasum":"3e0ead17789feb8332abc667f1d3e73a495c0605","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"3e0ead17789feb8332abc667f1d3e73a495c0605","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.0-b.8.tgz","integrity":"sha512-UgqcrZWRItn86jiV6AQKJN7/KXbjDXE2mPaMe7VMpAG3pFICqzGORE5O4+/EyOX3dfc7Sdip5OEAgFIdl/oMTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHmInrFsCYkHQp1MLmJatfVJioBhhryyP35vqUs5JavyAiEAtYMZhlLOHFpHr8ET8VDJk7Lbme5dKBcxXAGtMDuf7o4="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-2.0.0-b.8.tgz_1487704431719_0.635732946684584"},"directories":{}},"2.0.0-b.9":{"name":"kinvey-flex-sdk","version":"2.0.0-b.9","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"dev","kinvey-datalink-errors":"0.2.2","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"gitHead":"9d01bc992df7844117ed5f6cf847a03e10d73fd3","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.0-b.9","_shasum":"a24a504da5ad91199df84bf7bc3eeefdd48f50f6","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"a24a504da5ad91199df84bf7bc3eeefdd48f50f6","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.0-b.9.tgz","integrity":"sha512-sUzUMcprjjPfHzAfY2/kU6DE754c28mZNq5dB6Rk5Sjb16OksnhBILKJKe1fr8y04Cn4BKMoqjDxKA6aqNsEEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2qGPujHHqVg9n84f+wsuW83haytT55DTKVXwAekPvVwIhAJMNPgD52kdn3vM8XuOxNUoUgGRqgtDjWDfnFgMejkRV"}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-2.0.0-b.9.tgz_1487705843687_0.9778481279499829"},"directories":{}},"2.0.0-b.10":{"name":"kinvey-flex-sdk","version":"2.0.0-b.10","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.1.0","kinvey-datalink-errors":"0.2.2","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"gitHead":"68c72f4f57465cc5a6bb1568b3d34c11e1788a87","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.0-b.10","_shasum":"117af8e7e7b21434cc032a6d721a3b9cfab21ee1","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"117af8e7e7b21434cc032a6d721a3b9cfab21ee1","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.0-b.10.tgz","integrity":"sha512-lVcMk2jdtTJBGSvcp6c869R69l3ANBzPxhP2bqYNHoNBHybI2Y04gaMTcp2dJkeIerUlW2SWnRQFg+HW90rtHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdFM81pYj2UQ/6xV5iWlmBw56Sd8XTMCotCNM11h4TPAIhAMMTyE3J/dhORWMmTYlVBG7TQFDJiUCJ3Dd8JMLdDZTT"}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-2.0.0-b.10.tgz_1487801142875_0.20827313722111285"},"directories":{}},"2.0.0":{"name":"kinvey-flex-sdk","version":"2.0.0","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.1.0","kinvey-datalink-errors":"0.2.2","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"gitHead":"d6bac4dbf882947eb0c5f6889b82e4d214572380","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.0","_shasum":"0c2c6663c4def9d954083bf0fce8469d3235c4d3","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"0c2c6663c4def9d954083bf0fce8469d3235c4d3","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.0.tgz","integrity":"sha512-8inSoetAHpFiIfAzkQnpajD2QlaQsvXbhOWo2lzFwcRrhG8E8Z6y6I3A1+UngpZKZDx6UHQLsEefbZey/KDWUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFECK0MZDyu4mLvR/3jrGjTJJnsY5MEAgMW6Ag/T+r0nAiEAn9XWRFozJHWufd+FmnFfhf2CdP9N3FIzNuTIDN+VoFg="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-2.0.0.tgz_1487870249520_0.9052067557349801"},"directories":{}},"2.0.1-b.1":{"name":"kinvey-flex-sdk","version":"2.0.1-b.1","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.1.0","kinvey-datalink-errors":"0.2.2","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"gitHead":"398cc44230e0396692309f023f39de554e7c538c","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.1-b.1","_shasum":"599523ea3538e5ee380dce2ff744cd11ac5943a6","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"599523ea3538e5ee380dce2ff744cd11ac5943a6","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.1-b.1.tgz","integrity":"sha512-1TLMBTaAU8H6sc+u/MMuzMqF0nd81rUf8zOdc7nhw0Cc6Zfpow/YEG+3tLnnCUF0QS8RhPdnx46UqY99sMQ+pg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwMSb14kBV9ivndJmCLRqtdKQMKrIBM2nWWSIAmBMOUwIgG0R5IgyM/6i47N9H8zWpkR7s9WZbvuXXjdSLGgDy4kQ="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-2.0.1-b.1.tgz_1487888982464_0.4894382613711059"},"directories":{}},"2.0.1":{"name":"kinvey-flex-sdk","version":"2.0.1","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.1.0","kinvey-datalink-errors":"0.2.2","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"gitHead":"54bdbb1008c8e3a3728a9febad5c198716e0af10","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.1","_shasum":"575a5abad928f2f25b9da5d53faea8051219b185","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"575a5abad928f2f25b9da5d53faea8051219b185","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.1.tgz","integrity":"sha512-PSqnnfFvInz5hkJx5R6wZOvaIqwW6ZNfa4EoAt5ZMtkO26el4JOU0FOhmLVzm48CrzGBlyyLc5f13L1SSE9/Zg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCncRraQNOhdmZdWtlwREV660x96pAqIM129i90MVxCjAIhAJKk2UaIVa6RQquMZ+uVn0M3UExN27dnXbRbp24GG27c"}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-2.0.1.tgz_1487889980097_0.49528205301612616"},"directories":{}},"2.0.2":{"name":"kinvey-flex-sdk","version":"2.0.2","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.1.0","kinvey-datalink-errors":"0.3.0","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"gitHead":"5fc95859de24b97b551395ae0e0819781b9755cf","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.2","_shasum":"dee23fc7d08fecf7a80cccd53d0d84438d85df74","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"dee23fc7d08fecf7a80cccd53d0d84438d85df74","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.2.tgz","integrity":"sha512-SIApevU9j1Ki1Y4DcIjxMeghIodKseojrkJBnhCtgX3YcmPfAuRmiJx03ZwsnmxF/BX+vL3Aj8vWbfMkCOAMaQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8rmPKQvZ/acjsRysbgOTw9PNMeR0clGmTWXz5rUyYUAIgdJanUIphH8KeIh47Zg+02imiK2w+pNWtCljmD//cCqU="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-2.0.2.tgz_1488834756797_0.6034982618875802"},"directories":{}},"2.0.3":{"name":"kinvey-flex-sdk","version":"2.0.3","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.1.0","kinvey-datalink-errors":"0.3.0","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"gitHead":"5c52eee5466910257994ca7776327a326a894b97","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.3","_shasum":"23fb015bc687cfff29c8650a97f3385251a65f06","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"sjl2024","email":"sjl2024@gmail.com"},"dist":{"shasum":"23fb015bc687cfff29c8650a97f3385251a65f06","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.3.tgz","integrity":"sha512-NvNQpw8K73F+/zFKKcA53JMm81tSURXUU+EsayGS6h7PJAzUNu3zMkxji2f9PcmUqTuURbpy4jTENs1zTWK7iw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAb2bZ8GsmIn05oBi6mSSZBhSDHPvqQxMp4APoVlXbU8AiEAsrDGwwerT6i8E3gi3bjL2zN2+xQ0681HQ1gKCjy759g="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-2.0.3.tgz_1490735190845_0.6808409944642335"},"directories":{}},"2.0.4":{"name":"kinvey-flex-sdk","version":"2.0.4","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.1.0","kinvey-datalink-errors":"0.3.0","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"gitHead":"8340745deb6a51859652ebfdce07e12990bc94e4","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.4","_shasum":"f2ecf9ce876b424a90ebd1fe1cd67ae647e50024","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"f2ecf9ce876b424a90ebd1fe1cd67ae647e50024","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.4.tgz","integrity":"sha512-IkQlI6PYMkwQoBdhey5SrHphW8Iv+NEdIzasezGeT70dS+qg+hmTh5GRQs9SGgW5GYuFVUDUDCqxLcZFUSsHXg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGJQcBX01nkdAymOAvupM/KXZKRCb6thXxTFSlp9r2DgIhALM0qOqWeg/kat4KDLR/ErvsPIu75vC2zqpcf5SQhyuk"}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/kinvey-flex-sdk-2.0.4.tgz_1493997063925_0.9343609765637666"},"directories":{}},"2.0.5":{"name":"kinvey-flex-sdk","version":"2.0.5","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.2.0","kinvey-datalink-errors":"0.3.0","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"gitHead":"b8622f420201895a1c7ce0a88b6dabdfef892190","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.5","_shasum":"ae3c24d6662408a5d9805eec365ee8033a4c9620","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"ae3c24d6662408a5d9805eec365ee8033a4c9620","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.5.tgz","integrity":"sha512-gaiRNcc3VdcMWcRF6hGwEtXQW224lczBu4/tEozF0jeVMaCBj7sKbQwvhH9/6+Gei3xnY3PB6qpvMJtkm8waDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICaXAJimcQiKP4AkU1IAv/RMMs/Je1ibMBjpfYQ6hS6tAiEAlac5WBqU5MmrPitUq8LuAKUOcdI6770OTRri6D1z6ow="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk-2.0.5.tgz_1502480042947_0.22016654605977237"},"directories":{}},"2.0.6":{"name":"kinvey-flex-sdk","version":"2.0.6","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.2.0","kinvey-datalink-errors":"0.3.0","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.13.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"gitHead":"a7d2d2b2b6a25eb19fb28b6eb30f47f348ee037a","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.6","_shasum":"f50452b9a251b4cda564bcb3b21054acf6087f6f","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},"dist":{"shasum":"f50452b9a251b4cda564bcb3b21054acf6087f6f","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.6.tgz","integrity":"sha512-puUwZ+fQLlkihc+lVr5sU52jxFCKyHvTDaSHzAoKVHGQkyS05BG6zFG8YtxuINztF65d2+7uHCM6BwSeHg+0Xg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA1yNCZHfUF0/a/jdBI6GI9dc2D3dvTPDJzzByzF7W3rAiAzi9EXxUF/233ppVmA4xMNgdqBen6CUm1YCO4oVzqncg=="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk-2.0.6.tgz_1511276570541_0.4536869036965072"},"directories":{}},"2.0.7":{"name":"kinvey-flex-sdk","version":"2.0.7","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.2.0","kinvey-datalink-errors":"0.3.0","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.21.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"gitHead":"3f6238c10c0a5b6eb9f0c4a49600b3f45687f268","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.7","_shasum":"919bac199772cc21d071676239f2934beb341d05","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@gmail.com"},"dist":{"shasum":"919bac199772cc21d071676239f2934beb341d05","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.7.tgz","fileCount":47,"unpackedSize":485740,"integrity":"sha512-bcxnoL3BgEYmqp8fMUDkW3qkN+ydRZQWQ7vSAPwqP0gJzFThVfeARHYfyjFjUBlVlla32ocSXHuyijWRLOfLcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5vE/oJ74VDT9N6iWghRYi9DRBLV/q4Uzt+tjhMV/YkQIhAIJZGlOQimC+QG4JPYv44DGgI4bnc7NeCYorlJKYf0pB"}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_2.0.7_1520351127705_0.9680736735954423"},"_hasShrinkwrap":false},"2.0.8":{"name":"kinvey-flex-sdk","version":"2.0.8","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.2.1","kinvey-datalink-errors":"0.3.0","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.21.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"gitHead":"4f9c29adf6e6cc370d1f30e7f9768cdbc195e370","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.8","_shasum":"1df0329a46a8b32ce9f85a7d92758a25aa418f7e","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@gmail.com"},"dist":{"shasum":"1df0329a46a8b32ce9f85a7d92758a25aa418f7e","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.8.tgz","fileCount":47,"unpackedSize":486924,"integrity":"sha512-0YEOjNeVkZ45RafZLSbxk8/hezk8d3kYYSOKRTDsPAxJIRqhzEQz7OT0YeDska5dUTESJ1lNc0qqM/3T6Stz7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFnApXpRd7cmTWDIOVeq5VCxsedNnD1ce2EFPRNDxxWIAiA551jLyg5TsjwHaO2jQWozSLSsbn1Ee62SYqOMJkSW5w=="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_2.0.8_1523030979724_0.7699687603328611"},"_hasShrinkwrap":false},"2.0.9":{"name":"kinvey-flex-sdk","version":"2.0.9","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.2.2","kinvey-datalink-errors":"0.3.0","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.21.0","request":"2.72.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"gitHead":"ff8d13fab1cb6a1ec8a9f19b10d055d7bc12925c","bugs":{"url":"https://github.com/kinvey/flex-sdk/issues"},"homepage":"https://github.com/kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.0.9","_shasum":"4469c82150c4adbfa6fc27616b28115ea04f8f40","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.4","_npmUser":{"name":"mjsalinger","email":"mjsalinger@gmail.com"},"dist":{"shasum":"4469c82150c4adbfa6fc27616b28115ea04f8f40","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.0.9.tgz","fileCount":48,"unpackedSize":570408,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7KE8CRA9TVsSAnZWagAADPwP/3ZiPSuVQXfIT3sd/i4g\nnZ6QwRxDAJs0RLruUfqnzw8KyTcRZpKjvuI1KLrSCXhE+55WeBvnzmjcDOFP\n8hVM1In0tK8MWKvBWVzGxaB8TYmixcVh84SOqHFBVyoCeMNZCp2KMGkhGHAF\nrjDh4ZLiwq4Ml+byd4P0cjnhQqPrJxIfFrDnc6S7pKNs5/DPdd4Adn6D7wYU\nDhb5brnqZTGAYPujZ7XGY44u+pE/2KHcSnfH0D6wPq5WbCg8WREEfevlNUKs\nF5g/FSrOiHrA8lcdvQuzVG1BDCzTnSwUHUjEAoXj+i3GkH48E0DENSDySUCr\n1VE57AqoSrjf7PIe/06IB0fYD3mVxAaPymXX308LV4uwhrF54yDpQbXJeRbV\nsT5jOuz8dBV7dnR4+4+J2GPTEfm1KtyLEpDtROGf20egeBR8LTrbqynY67NS\nIAsGgHc5XAzYo18VJG6fmSmyfWqdyvUGYxSoxZ2xK84URWPQuG8C+cdtR3Sh\nhyro99XBf8GYTb86ehZLsHPpE8yUygh36YC1mNJfVwj7lQYVH1zpbs1y7I+t\nkL/BrMz98xcneCCteeBXvEm9Q328TitCUHfu+B2r8oCL5gM6fFNkta7RruL8\nfS+jDGDfTsF9B1B8O3c6oxhFjjf60Ddg6xsLd0pwjC9yCSb6eA6KpdeE8+YE\n5ioo\r\n=JQyc\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-Xu8HHXMk6ogJZP1XAF/Kx2vJhzNHOAO+frRSsdbBWcgwK7a0kR0dMMOPx6csNJt8BvALaMGJvEXrurGBpUt+iA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHzE2NUPaxc+PThvu6r8Mi0agJcFIZTKvEf4Xv2KDJDLAiAm0jwDn4v/ZJ2mrof1Lor+Wksj4MFu8BAQGHQFvH/cDA=="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_2.0.9_1525457211032_0.8663832283024235"},"_hasShrinkwrap":false},"2.1.0":{"name":"kinvey-flex-sdk","version":"2.1.0","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.2.3","kinvey-datalink-errors":"0.3.0","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isnil":"4.0.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.21.0","request":"2.85.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"2.5.3","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"gitHead":"7c94dffc21da7f0fd4c99a10cf7513e87e4d7a1f","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@2.1.0","_npmVersion":"6.0.1","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@gmail.com"},"dist":{"integrity":"sha512-YAo/NQ5DpDfspwvV2MJKQlD2rtJIWqk3PBy6hVTTCaSFUuwwvNhlmYNNurfRqEkkKMkWHsiYFns9IWTyRXE/6w==","shasum":"ef0d5586ab8dd5e9751c41909f33cdc5d30da8a6","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-2.1.0.tgz","fileCount":46,"unpackedSize":507960,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa9fNsCRA9TVsSAnZWagAAnU8P/1BkSEimudyHWyDc2kjb\nAIn+IaX2QfCko1XI7Dlwkm3DzccJhd9hTVIntSE0veg8/3uqp9PTAHLg3wcS\nd/rnyKyWpoooMydxjpBWSBIC3n4XJpdIhCAiVMpZlgzGo6tRStb4kg6ov1Pa\nvGP/Dpcst4QsN4xTsxEEy7C70V6VSxR4U9NB1prP95TRgQhp8vcmTkDZNf7o\n7V7nK+TgnQUe8EYgQMkai5sCJr2vfhVn0sHS0iIG9XTG7PCxuxOin1WJxpp7\n72zdol9Xee8Y6X3Xe2E0FY3osWsmHjUYt0kL6Z1D3mThPAw86tIgZhYLSXdV\n7QxrLT7uR5VuqUl6HhylXAGQqd/x3MZ10LlWLgAWgUWEZi0cRPUy69Bc0nAe\n5Nibja7XtVqr1iBThzuhUmy8yZi49bjehFo0dtT2CaOwj9dZhA+c2vNgADH/\nduwovpoNfTdxQov9Ji9leV3OTFN2+6kSCeu8QPPLo0o30d8kzst5/t6lw+ET\nX3/VxqujVqEovvYGUmB3lZ5+3e+rcqzReMzbxara/5r0jD/b5y/+OGuT8HZV\n44/QT257GqhlPLIWGa5JQFnQUmR/ML1kArgAvsE6G8mEnWdhKamMlLigeQ3j\nWMAuRyC0JZ5DWzaB4jtIgw8GUATXxr4QU9fkFjzfcribmlE/DLXbZQPpGVaX\nglxS\r\n=2PHE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE6WhEGXvK+itAhhpzULskwIN+mXxN9giLmBbO6EUGUOAiAsoZcVUQnFYl+njq+qpIHRs5+Te8Ni/SehEx36HCBkMQ=="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_2.1.0_1526068074730_0.7717780593588335"},"_hasShrinkwrap":false},"3.0.0-beta.1":{"name":"kinvey-flex-sdk","version":"3.0.0-beta.1","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.2.4","kinvey-datalink-errors":"0.3.0","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.21.0","request":"2.86.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"5.1.1","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"readme":"# Kinvey Flex SDK (beta)\n\nThis is the SDK for code execution of Flex Microservices. The module provides a framework for building Kinvey-backed services using FlexData, FlexFunctions, and FlexAuth.\n\n## [Official documentation](#docs)\n* [Kinvey FlexServices guide](http://devcenter.kinvey.com/nodejs/guides/flex-services)\n* [Developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally)\n* [FlexService Runtime information (for deploying FlexServices to Kinvey for use in production)](http://devcenter.kinvey.com/nodejs/guides/flexservice-runtime)\n* [External Flex Services](http://devcenter.kinvey.com/nodejs/guides/external-flex)\n\n## [Installation and usage](#installation)\n\nTo install this project, add `kinvey-flex-sdk` to your `package.json` file and install it via `npm`\n```\nnpm install kinvey-flex-sdk\n```\n\nOr install it with `yarn`:\n```\nyarn add kinvey-flex-sdk\n```\n\nTo use this module, require it in your project as such:\n```\nconst sdk = require('kinvey-flex-sdk');\n```\n\n### [Working Flex SDK service examples](#samples)\nThis section contains standalone sample microservices for FlexData, FlexFunctions, and FlexAuth frameworks. Note that all three can be combined into one service and are separated for example purposes.\n\n#### [Flex Service initialization Options](#init)\nWhen [developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally), you can specify a host and port to listen on by passing an options object with an optional host and port.  If no host/port is specified, localhost:10001 will be used:\n\n```\nsdk.service({ host: 'somehost', port: 7777 }, (err, flex) => {\n  // code goes here\n});\n```\n\nYou can also specify a shared secret (i.e. a secret key) to be used by this service.  Any client that accesses this service *must* contain this shared secret, or requests will be rejected with a `401 Unauthorized` error.\n\n```\nsdk.service({ sharedSecret: '<some shared secret>'} }, (err, flex) => {\n  // code goes here\n});\n```\n\nOnce set here, you must set this shared secret in the Kinvey console when configuring your service for Kinvey requests to execute properly.  For testing locally, this shared secret can be passed in the `X-Auth-Key` http header.\n\n#### [FlexData](#flexdata)\n```\nconst sdk = require('kinvey-flex-sdk');\nsdk.service(function(err, flex) {\n  const data = flex.data;   // gets the FlexData object from the service\n\n  function getRecordById(request, complete, modules) {\n    let entityId = request.entityId;\n    let entity = null;\n\n    // Do some logic to get the entity id from the remote data store\n    // Assume that data is retrieved and stored in \"entity\" variable\n\n    // After entity is retrieved, check to see if it exists\n    if (typeof entity === 'undefined' || entity === null) {\n      return complete(\"The entity could not be found\").notFound().next();\n    } else  {\n      // return the entity\n      return complete().setBody(entity).ok().next();\n    }\n  }\n\n  // set the serviceObject\n  const widgets = data.serviceObject('widgets');\n\n  // wire up the event that we want to process\n  widgets.onGetById(getRecordById);\n};\n```\n\n#### [FlexFunctions](#flexfunctions)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexFunctions = flex.functions;   // gets the FlexFunctions object from the service\n\n  function getRedLineSchedule(context, complete, modules) {\n    request.get('http://developer.mbta.com/Data/Red.json', (err, response, body) => {\n      // if error, return an error\n      if (err) {\n        return complete().setBody(\"Could not complete request\").runtimeError().done();\n      }\n\n      // otherwise, return the results\n      return complete().setBody(body).ok().done();\n    });\n\n   }\n\n  // set the handler\n  flexFunctions.register('getRedLineData', getRedLineSchedule);\n};\n```\n\n#### [FlexAuth](#flexauth)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexAuth = flex.auth;   // gets the FlexAuth object from the service\n\n  function authenticate(context, complete, modules) {\n    // authenticate the user here\n    if (err) {\n      return complete().accessDenied(err).next();\n    }\n    return complete().setToken(token).ok().next();\n  }\n\n  // set the handler\n  flexFunctions.register('myAuth', authenticate);\n};\n```\n\n## Support\nPlease contact Kinvey for further information or questions","readmeFilename":"README.md","gitHead":"0d4fb18a6bd950a515a75290c1fcdec2335720c4","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@3.0.0-beta.1","_npmVersion":"6.0.1","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@gmail.com"},"dist":{"integrity":"sha512-zPzGunEZg6KHIyd5h/joSeI4aKbv7wJ1DsfCZhkLvyfUvtD+MGDPjknzLzDPFlf7i6BXx8j21uaSQUV6r9d5cg==","shasum":"1d82371eac93d493146976433366600b8141e4f4","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-3.0.0-beta.1.tgz","fileCount":50,"unpackedSize":640884,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa/x+PCRA9TVsSAnZWagAA5A4P/i/ZYcXw0VD9DxeWeFD+\nGPd21YMDSV365M/H7rleOYpU3aP2ltridXo5kbSG0JfPHIe6kNefB0mTUL04\nqU051KpSUYY0g0svcAD16xm0PxGameoEA8xzQT9M3M5RFfzmNUBoKOrnLBUf\nOdki2KgOSu+hpMfbneLPEf7DIp7aZbxqVIkm5RhrDgf9eTYyuEZlTe/E2d8T\n5wHSKR2zeQu+TO4KNrMw2pMeSVm4/ZVALQ4HMx7bkMUV/5yF5siR//WQtUZY\necPX/DQiel+59gzlZdjR9A1In+fcX91alUvK7LNEdjp1XXXFD6fpfY+GlNN2\nEW5hfD+mn02mCLcNmRlDRv54944x07tPuUQ3XClzn+lG8yzykwzWsvBX+M54\nK32zaOiL4KBybuCAq2w+Zm7DspEdJ2rzeCzGlSTustfy3ltENYLrA8jY6/hX\n+u13bJcLAsLW+O3fAjjnPtfcr2D8KIC802eUY+Kc2VbcBVZccXI8m+RTCMrV\n+AdVuITeHaSQ5ZuvcYec6mLQa6CwmBoATeRIidrgvz6insx7PsJ4SFIqCivb\nfTyClrgbX0vrjEBOc57MRfEmb/a7n2vYPPPGmERGOe6Z1EmqHnY2z6RERJfh\n+IMPCAM7i5RpeoaASGT0ZCByWXhHrXh8BTDkx3sxU2BaqpiW6armTFiJkIxA\n1x1x\r\n=hg5x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEzyUsRL8jmfYgqt5YvG9nuNkFq/5rKN9feibLpC8waQAiAnRKLeiFh2CdJUsjowjUW31q0/k7fMytNn+wbN0SEpBg=="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_3.0.0-beta.1_1526669199285_0.759160026452671"},"_hasShrinkwrap":false},"3.0.0-beta.2":{"name":"kinvey-flex-sdk","version":"3.0.0-beta.2","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.2.4","kinvey-datalink-errors":"0.3.0","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.21.0","request":"2.86.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"5.1.1","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"readme":"# Kinvey Flex SDK (beta)\n\nThis is the SDK for code execution of Flex Microservices. The module provides a framework for building Kinvey-backed services using FlexData, FlexFunctions, and FlexAuth.\n\n## [Official documentation](#docs)\n* [Kinvey FlexServices guide](http://devcenter.kinvey.com/nodejs/guides/flex-services)\n* [Developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally)\n* [FlexService Runtime information (for deploying FlexServices to Kinvey for use in production)](http://devcenter.kinvey.com/nodejs/guides/flexservice-runtime)\n* [External Flex Services](http://devcenter.kinvey.com/nodejs/guides/external-flex)\n\n## [Installation and usage](#installation)\n\nTo install this project, add `kinvey-flex-sdk` to your `package.json` file and install it via `npm`\n```\nnpm install kinvey-flex-sdk\n```\n\nOr install it with `yarn`:\n```\nyarn add kinvey-flex-sdk\n```\n\nTo use this module, require it in your project as such:\n```\nconst sdk = require('kinvey-flex-sdk');\n```\n\n### [Working Flex SDK service examples](#samples)\nThis section contains standalone sample microservices for FlexData, FlexFunctions, and FlexAuth frameworks. Note that all three can be combined into one service and are separated for example purposes.\n\n#### [Flex Service initialization Options](#init)\nWhen [developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally), you can specify a host and port to listen on by passing an options object with an optional host and port.  If no host/port is specified, localhost:10001 will be used:\n\n```\nsdk.service({ host: 'somehost', port: 7777 }, (err, flex) => {\n  // code goes here\n});\n```\n\nYou can also specify a shared secret (i.e. a secret key) to be used by this service.  Any client that accesses this service *must* contain this shared secret, or requests will be rejected with a `401 Unauthorized` error.\n\n```\nsdk.service({ sharedSecret: '<some shared secret>'} }, (err, flex) => {\n  // code goes here\n});\n```\n\nOnce set here, you must set this shared secret in the Kinvey console when configuring your service for Kinvey requests to execute properly.  For testing locally, this shared secret can be passed in the `X-Auth-Key` http header.\n\n#### [FlexData](#flexdata)\n```\nconst sdk = require('kinvey-flex-sdk');\nsdk.service(function(err, flex) {\n  const data = flex.data;   // gets the FlexData object from the service\n\n  function getRecordById(request, complete, modules) {\n    let entityId = request.entityId;\n    let entity = null;\n\n    // Do some logic to get the entity id from the remote data store\n    // Assume that data is retrieved and stored in \"entity\" variable\n\n    // After entity is retrieved, check to see if it exists\n    if (typeof entity === 'undefined' || entity === null) {\n      return complete(\"The entity could not be found\").notFound().next();\n    } else  {\n      // return the entity\n      return complete().setBody(entity).ok().next();\n    }\n  }\n\n  // set the serviceObject\n  const widgets = data.serviceObject('widgets');\n\n  // wire up the event that we want to process\n  widgets.onGetById(getRecordById);\n};\n```\n\n#### [FlexFunctions](#flexfunctions)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexFunctions = flex.functions;   // gets the FlexFunctions object from the service\n\n  function getRedLineSchedule(context, complete, modules) {\n    request.get('http://developer.mbta.com/Data/Red.json', (err, response, body) => {\n      // if error, return an error\n      if (err) {\n        return complete().setBody(\"Could not complete request\").runtimeError().done();\n      }\n\n      // otherwise, return the results\n      return complete().setBody(body).ok().done();\n    });\n\n   }\n\n  // set the handler\n  flexFunctions.register('getRedLineData', getRedLineSchedule);\n};\n```\n\n#### [FlexAuth](#flexauth)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexAuth = flex.auth;   // gets the FlexAuth object from the service\n\n  function authenticate(context, complete, modules) {\n    // authenticate the user here\n    if (err) {\n      return complete().accessDenied(err).next();\n    }\n    return complete().setToken(token).ok().next();\n  }\n\n  // set the handler\n  flexFunctions.register('myAuth', authenticate);\n};\n```\n\n## Support\nPlease contact Kinvey for further information or questions","readmeFilename":"README.md","gitHead":"a231582da6a25f696c0299e46b5afa1cce2fa632","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@3.0.0-beta.2","_npmVersion":"6.0.1","_nodeVersion":"6.14.2","_npmUser":{"name":"mjsalinger","email":"mjsalinger@gmail.com"},"dist":{"integrity":"sha512-TjCAUbFi7i3N7JbHOmtcSbaK0YMGrX1Anu/iSTyxQfbdebkmh/A1YQF9Ab0KFxw2W7zehChBC0x9tlteZz2AzA==","shasum":"dc2ea0d4b90e2776013f452655ce41a1ab7c2f5f","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-3.0.0-beta.2.tgz","fileCount":50,"unpackedSize":641024,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbAxTMCRA9TVsSAnZWagAAiTYQAIEJourQaSEtM2PfgqzE\n568H/nY824FZ9lNOGObflT5d0YEx90f0QGYr++F0XhAkqvE3klh8c3HbMwlV\nbEPY04joXBNt6N7miIFaOhmt8gdh7dRndv32+LsVNo/tl9SZgH1U+PIpsNor\n/J623cEdBnUi74ELIXqZH/zVy+pFlAQrmPt03kp3S2ZssyKXt6tddu1H4dD8\nG6m8oDEWfoHGSQNap0VKPWh+xHl1RKV7mIM4paiQv1gFNqkVx4HG/bEla59w\naW/Xzu7vLQZGmXizb9GshBaivedolWm1vOFLcp6XuLhs79/NjZJtyIgcwfsw\nV89R8i/MSgygWmK3NoorD0gqIIvtEJaTrct2O97HZ6fIQ5Bx+9JKip2qJ6Ql\n3QRjo9KodVPIq/kuNh6RmrSPQGJNpPbTKmTj32yFgo3MMJ5RAt3/oIBhTyR7\noTXTMMuRvlEQ/3RYwNFSOML7N+WVhzhz7CHqjXiN4zCHLbWXvLJvn8HT9sBy\nBEjkD3PSEmNxNkIZZ9vEzedhqtFrSWAsOArr9Fef1C2F/gJDsHiSxTOV0EV+\nmAF35Sqt4Crve+jvi2qe9wAYPXu6g60M8KAVNpgI2P8Yrr+2ye4x3H9k0lcf\npeTN78fdl4Pyo0XiTaLTA84+SXboCoTnv4yoBPZKuH3Rc3WYPtK6bTmkIOcV\nmbo6\r\n=lUAO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGhWiMp6SC3UbCUG/EY7MsPGCV52l+L8a2tCGk87tBQ3AiBEBfwVsCV2BcLXuM3KCarYkITqkeXRtxUqe6VlByQaMQ=="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_3.0.0-beta.2_1526928588071_0.21746879426726284"},"_hasShrinkwrap":false},"3.0.0":{"name":"kinvey-flex-sdk","version":"3.0.0","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.2.4","kinvey-datalink-errors":"0.3.0","lodash.forown":"4.2.0","lodash.get":"4.3.0","lodash.has":"4.4.0","lodash.isempty":"4.4.0","lodash.assign":"4.2.0","lodash.foreach":"4.5.0","moment":"2.21.0","request":"2.86.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"5.1.1","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","test":"mocha test/lib/modules/* test/lib/*","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js"},"gitHead":"934c5118d90ccc63851aa0ddc07fef481d50bf1d","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@3.0.0","_npmVersion":"6.0.1","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@gmail.com"},"dist":{"integrity":"sha512-+iAXnKsMWIQGP5yfCs/sYvJG+5Ku/3ymxYWs/b6RGpx4ywNW9gOI9Arzj2C3rrIzG/ZftJFQf6SPEYgjIpyvpw==","shasum":"49864d284f4f8019ed05283c92099aff9e7526a4","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-3.0.0.tgz","fileCount":50,"unpackedSize":645169,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbJAoDCRA9TVsSAnZWagAAug8P/RN9M1X3mfIgZA8Nqk9H\nrd1sOdic52xkyMkQbR/NAX2JXlzQbWezCXVNG4wFIW/ES6iNM1jfJZ0rJQoJ\nmWQioSCZeo1c47MFc53daWHRx4nO/g9x9du8JQU0fAAOUCP8f/wFxvScnnQe\nZqs3BrlvooGbfMVhUizyKcplxkgRGvfa2I7RBm0crWgkJsIp5qcxKEbe3DCG\n1RSfAtCqehoRCQK8zfU04rulX4OdFhNr9441y3VQO/BdfBJ+ZyBJpnlE8BPO\nqFWO5sB9H3LTwmwlhqzWFYimqSCcje9N/lqeEs3jd4qL3859Jp6NVpaCA7a3\nQpv7cxd5e7wF/cHRBIlUOh9qCbRWwuEuAFuIGe2lRANXr1qPIcw6yaGWh73w\nYChuNk4u66cF9wk72n8kt4tobT7ZpjwH7ZtDIyKrLCUsLYhYNF6R5ocmKN3X\nLTwMbUat21D51VqxrVPKjRPZBxO/imdE/k51A4DODix1QUtlUAWw8gQFGU2l\nt+gDWCxOqiqz4WSEj1LMXFFnYEkc0BdjI6e+s/oZ68f7rbyub8pnftH+9mzZ\nNqBmv+CsguH6xfks1+y+8hm9gE//42KfanNAaReCgnynDCdm36rx5VzwpvvF\nIZK1jKR5s0CP386gP7HvRm/QfGBO/bEJMfa3Vb7JumdYBdTz9DU2YPujg839\nb36n\r\n=JdiE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBBtnci4jPtCDQNpXF6ueFDacR60of1b1/DJCWyhDaVzAiEAnV9BrJF30q7ot8yWl7YnwUKk3SHpu4bNzW5DEcLO9gA="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_3.0.0_1529088514674_0.6101761877600913"},"_hasShrinkwrap":false},"3.1.0":{"name":"kinvey-flex-sdk","version":"3.1.0","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.3.1","kinvey-datalink-errors":"0.3.2","moment":"2.21.0","request":"2.86.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"5.1.1","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","lint":"npm run pretest","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js","test-npm-security":"npm audit"},"gitHead":"7455aedb816d764082d416e373e14aa9e660a439","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@3.1.0","_npmVersion":"6.1.0","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@gmail.com"},"dist":{"integrity":"sha512-z6oLwjWZeLZL9rAulf89RUwDzroF1O6Pf8IegczuTex3O/2YKGmgARWK4+M/EbH3t7YhO6GWhZqhS5sAJzYG9A==","shasum":"681b7cb270cc557049a77d350ec8ef242928d9ee","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-3.1.0.tgz","fileCount":51,"unpackedSize":646852,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbNqVLCRA9TVsSAnZWagAAoEgQAIOuJYj2pyosStsIBwTp\nTinqW1X87ktDcXlT77vIOuzPcNaDNDEmhcsdZGGYmIhYwVbRa9JNSWdByDrH\nkxsed7835PGvBcQy8T99/eBPqwFA8Gt6ngVOjprAlsUx5xvqRgD1jTC/EQKr\n/xvt8XAbQUPFgtaZQrx3lj4A+3AdOsi2zHsUIPOyFGUA+1zIdxKj4V6rI9On\nIa3dO1CQX+oZP9dgiC0y4ICi9NZlhiyW4KuktHuDAxJ2suZp1/EpcIvsjpSG\nwa0TIHHExW7/kn6STja+lrG621RiLK45tvVp8JqEBrDNes+xDEsyUCKmARvT\nYJDlThkF3C/CP5rri/b4tvMgPHTxCoaOyeSvdRELnaQvXKN603S0e9hOTZKn\n5Z3d6CQRGinp2PCqmLdFLTm8IL6qB2j2naHZOx39HPHyyx0ShDHuXhZVWaDV\neQZifQ3hXTmoW8/MCOPI8kFPyQPinGOfSzeQoosKyK4m60IfELLV2USd5yAz\nFVuM4HtfxM2kE8D8krNYDespfnd1H6UaA+nk4tt5W50V30ggdBJRg4n9Tw/p\nHb9R2k5poeM+4uhv4C4ieSGBkypN0TXtgEYvdVPuu+XrMEM6lgCAzulTHOa4\n7WgmfwfTqj7tKziCZWrXH+v/qu0epLt8GLaFuxU0+0LJ2ur/r6kijr7S9mQa\nUXsN\r\n=ILdI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID3CGuflQZHtGx3FSsR0i7qxe6185u9eocFnHCqPcgkKAiEA1uI+ZUx9IlgX+o5Ndbf+MWKLQphGxW7zQYe+lDS888Y="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_3.1.0_1530307915151_0.9834693198848443"},"_hasShrinkwrap":false},"3.1.1":{"name":"kinvey-flex-sdk","version":"3.1.1","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.3.1","kinvey-datalink-errors":"0.3.2","moment":"2.21.0","request":"2.86.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"5.1.1","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","lint":"npm run pretest","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js","test-npm-security":"npm audit"},"gitHead":"b424c68b9a08d75b8058194e7d361f2ce0e11c1d","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@3.1.1","_npmVersion":"6.1.0","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@gmail.com"},"dist":{"integrity":"sha512-JzJB417HiAss7V4aEv1ibnHPeCXK9jxr1fTfOwyPZe32Ri6O6zuMKY/CuHc2JuR0JG4miQN9f7SAdKatj7o02w==","shasum":"7860d02f0e4fc69f90ca100087d9686a0aaa437b","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-3.1.1.tgz","fileCount":51,"unpackedSize":646870,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbO+umCRA9TVsSAnZWagAAG7gP/jWVuvMVGKBSgUyEvrTu\nkz0IGkf2AsUIrbhI7Do6XpSg+VQ5bc1HOgnjfSb9Gvyqgts7oVx+uMeCFuTV\n5QqUdUI9bj8olz1l0Jo+UIH0NFySrLX5d9zuUP5ToQ1KbxWSj5tchza+mScL\nt9XocASIAo/ANOqp5URYAykiHsP4gQO71Lc7bdUhfSWks15n7geinCmgxazv\n2XkoOHe/ynYcUtaQ/2elWy60Nqf775nNAhbyFJggYhmOc7xff6rfRxQLK0d0\nWGrfm8QdDoWOHdKXwAZNX7D4IEPkjJtcF28Cm4nRat66vDrefrmcb/72xchG\nDZDFt6+0SLWOwFah28FqjFE2qh36prwqbMB93m0dXChiYTLxMF399l9LZl+m\nnja3KHZNYsqg4ZbDgJJH1w7EqZ+aR1XVmvvDZ6ea0rxLcO4nj7Wqb8fRqm9M\nU3dfCEkvEgLjYiIFW/G1uFCD11XGyTIPsmU66SPXB/svInUHUx7EE4mxHwOI\nUvn9FBiUFSzaPqb+AsvGiqNxWOp+AQf48/IFHFl3V3E1YfwGY/kt9RYHh1+J\nhFGizBEEBjz62efEaJ/MDqa19hpTV0UjiDPEFOMFh/6W7JJa9MMNU0M0AnbR\naoxy4jaWBvFkFh/jgI6RVOPU2pQbmTYj/bz1//MvV7ufBySy7reSIU23tYRa\nFtRv\r\n=fJtx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICjhKQjaFKVVzHov6+FuJB7JyHW+xVk/R8ZnwkkVmrhWAiBpoAcjgqIhq1m8y6Zq9NnlOs7und6HTdDxj6zWEl/ZHw=="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_3.1.1_1530653606330_0.37569940200096164"},"_hasShrinkwrap":false},"3.1.2-alpha.1":{"name":"kinvey-flex-sdk","version":"3.1.2-alpha.1","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.3.1","kinvey-datalink-errors":"0.3.2","moment":"2.21.0","request":"2.86.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"5.1.1","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","lint":"npm run pretest","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js","test-npm-security":"npm audit"},"readme":"[![Build Status](https://travis-ci.org/Kinvey/flex-sdk.svg?branch=master)](https://travis-ci.org/Kinvey/flex-sdk)\n\n# Kinvey Flex SDK (beta)\n\nThis is the SDK for code execution of Flex Microservices. The module provides a framework for building Kinvey-backed services using FlexData, FlexFunctions, and FlexAuth.\n\n## Upgrading from 2.x to 3.x\n\nFlex-sdk 3.x contains several breaking changes as well as new features.  To upgrade your service from Flex-sdk 2.x to 3.x:\n\n* All email and push methods now return a promise.  It is now required that you either handle the promise, or pass a callback.\n* For all stores (e.g. dataStore, userStore, etc), the deprecated options `skipBl` and `useMasterSecret` have been removed and no longer function.  Use `useBl` and `useUserContext` instead.\n* All asynchonous modules (dataStore, groupStore, roleStore, endpointRunner, userStore, email, and push) now return a promise or accept a callback.\n* For more information on what's new, see the [Changelog](CHANGELOG.md).\n\n## [Official documentation](#docs)\n* [Kinvey FlexServices guide](http://devcenter.kinvey.com/nodejs/guides/flex-services)\n* [Developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally)\n* [FlexService Runtime information (for deploying FlexServices to Kinvey for use in production)](http://devcenter.kinvey.com/nodejs/guides/flexservice-runtime)\n* [External Flex Services](http://devcenter.kinvey.com/nodejs/guides/external-flex)\n\n## [Installation and usage](#installation)\n\nTo install this project, add `kinvey-flex-sdk` to your `package.json` file and install it via `npm`\n```\nnpm install kinvey-flex-sdk\n```\n\nTo use this module, require it in your project as such:\n```\nconst sdk = require('kinvey-flex-sdk');\n```\n\n### [Working Flex SDK service examples](#samples)\nThis section contains standalone sample microservices for FlexData, FlexFunctions, and FlexAuth frameworks. Note that all three can be combined into one service and are separated for example purposes.\n\n#### [Flex Service initialization Options](#init)\nWhen [developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally), you can specify a host and port to listen on by passing an options object with an optional host and port.  If no host/port is specified, localhost:10001 will be used:\n\n```\nsdk.service({ host: 'somehost', port: 7777 }, (err, flex) => {\n  // code goes here\n});\n```\n\nYou can also specify a shared secret (i.e. a secret key) to be used by this service.  Any client that accesses this service *must* contain this shared secret, or requests will be rejected with a `401 Unauthorized` error.\n\n```\nsdk.service({ sharedSecret: '<some shared secret>'} }, (err, flex) => {\n  // code goes here\n});\n```\n\nOnce set here, you must set this shared secret in the Kinvey console when configuring your service for Kinvey requests to execute properly.  For testing locally, this shared secret can be passed in the `X-Auth-Key` http header.\n\n#### [FlexData](#flexdata)\n```\nconst sdk = require('kinvey-flex-sdk');\nsdk.service(function(err, flex) {\n  const data = flex.data;   // gets the FlexData object from the service\n\n  function getRecordById(request, complete, modules) {\n    let entityId = request.entityId;\n    let entity = null;\n\n    // Do some logic to get the entity id from the remote data store\n    // Assume that data is retrieved and stored in \"entity\" variable\n\n    // After entity is retrieved, check to see if it exists\n    if (typeof entity === 'undefined' || entity === null) {\n      return complete(\"The entity could not be found\").notFound().next();\n    } else  {\n      // return the entity\n      return complete().setBody(entity).ok().next();\n    }\n  }\n\n  // set the serviceObject\n  const widgets = data.serviceObject('widgets');\n\n  // wire up the event that we want to process\n  widgets.onGetById(getRecordById);\n};\n```\n\n#### [FlexFunctions](#flexfunctions)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexFunctions = flex.functions;   // gets the FlexFunctions object from the service\n\n  function getRedLineSchedule(context, complete, modules) {\n    request.get('http://developer.mbta.com/Data/Red.json', (err, response, body) => {\n      // if error, return an error\n      if (err) {\n        return complete().setBody(\"Could not complete request\").runtimeError().done();\n      }\n\n      // otherwise, return the results\n      return complete().setBody(body).ok().done();\n    });\n\n   }\n\n  // set the handler\n  flexFunctions.register('getRedLineData', getRedLineSchedule);\n};\n```\n\n#### [FlexAuth](#flexauth)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexAuth = flex.auth;   // gets the FlexAuth object from the service\n\n  function authenticate(context, complete, modules) {\n    // authenticate the user here\n    if (err) {\n      return complete().accessDenied(err).next();\n    }\n    return complete().setToken(token).ok().next();\n  }\n\n  // set the handler\n  flexFunctions.register('myAuth', authenticate);\n};\n```\n\n## Support\nPlease contact Kinvey for further information or questions\n","readmeFilename":"README.md","gitHead":"ddf2979ccf1436758d18dddc334df9ae6fc79d04","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@3.1.2-alpha.1","_npmVersion":"6.1.0","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@gmail.com"},"dist":{"integrity":"sha512-C42V6ZPtAdyZuQ8ZDmeODY/8iS6xom7fV71YWiPZbANKMlh/9a7I/bi+cksSdcd7kkBl4jG2Fl4GVpJPHKgf/g==","shasum":"f4b3aebe6229184e45a9a89bb21b13906e469fed","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-3.1.2-alpha.1.tgz","fileCount":51,"unpackedSize":647022,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbPAsFCRA9TVsSAnZWagAAqUMP/A9RBpKwBHkMesByKTmH\n71unZMNGRJoyiO6r8jHK+7QWaVoM0/u293dMX8MtuzNZF977vNa5jv0gjhSe\nMKb0wPypbGw+iP4vArTHHOJUKL2KO0UIGD33vbpUFhtLgrE0QPskrbgezdO4\nG2K6YROAngzZNP9qPFVA3VZ9+yZxfdF7FyD0qyrzQr1xThtRjMBL3me4UGtb\nPWpfND8ZFzjHgJPy7i18hkiYYpTCSTdYjz1BKJKiDeUO+HmVme1MHT2Wx38A\nwBYOyqGysBFcfE89Zi5bU6UZ8cRUPmzFu7yTZjfyB+A8ZvJf8AA2H9XIDG45\nfTubSbcn/vHa5Q/r9X+PmRq6lOrJrgJ4o+57zhTAPI178hYYup9eJ0OhiehR\nUw3m1yeuY4s2rqpVVbdQPTSNWZYB9s6JFtr5EZ89Uac78WJ2pdiJj2Sw4sdd\nAkYkdwXIiluM3ehR17wIu+E4iTHqzI8zW/A+natB8E0BcTgnreyuK2QzjjAH\nIbNSbCX19kfusfmcYzPChEOfvf14h0LCNqTBGh5pU45JqvvDwhNcQGNvFdri\nrHZMQv3kp/lvPvIcl6b5yLRNkiRlaVhGHz+T3jd+rcQ6GndBYLl8UrgQzyW9\nRWR6IDQL86XLeaAV7PyiD8dhm9kkPSHSLVWfk/pwGKgraDsQfm41iyevZPY4\ne59E\r\n=xf2a\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDHan/McejKEQqarY9LAEr1H8apXVMjpGT7K7/aA4CsLAiBn4dJ4+f163gCxhIVHGJOSUgeR5lqvNejwAzZPmB+9XQ=="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_3.1.2-alpha.1_1530661637899_0.05315425032289056"},"_hasShrinkwrap":false},"3.1.2-alpha.2":{"name":"kinvey-flex-sdk","version":"3.1.2-alpha.2","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.3.1","kinvey-datalink-errors":"0.3.2","moment":"2.21.0","request":"2.86.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"5.1.1","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","lint":"npm run pretest","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js","test-npm-security":"npm audit"},"readme":"[![Build Status](https://travis-ci.org/Kinvey/flex-sdk.svg?branch=master)](https://travis-ci.org/Kinvey/flex-sdk)\n\n# Kinvey Flex SDK (beta)\n\nThis is the SDK for code execution of Flex Microservices. The module provides a framework for building Kinvey-backed services using FlexData, FlexFunctions, and FlexAuth.\n\n## Upgrading from 2.x to 3.x\n\nFlex-sdk 3.x contains several breaking changes as well as new features.  To upgrade your service from Flex-sdk 2.x to 3.x:\n\n* All email and push methods now return a promise.  It is now required that you either handle the promise, or pass a callback.\n* For all stores (e.g. dataStore, userStore, etc), the deprecated options `skipBl` and `useMasterSecret` have been removed and no longer function.  Use `useBl` and `useUserContext` instead.\n* All asynchonous modules (dataStore, groupStore, roleStore, endpointRunner, userStore, email, and push) now return a promise or accept a callback.\n* For more information on what's new, see the [Changelog](CHANGELOG.md).\n\n## [Official documentation](#docs)\n* [Kinvey FlexServices guide](http://devcenter.kinvey.com/nodejs/guides/flex-services)\n* [Developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally)\n* [FlexService Runtime information (for deploying FlexServices to Kinvey for use in production)](http://devcenter.kinvey.com/nodejs/guides/flexservice-runtime)\n* [External Flex Services](http://devcenter.kinvey.com/nodejs/guides/external-flex)\n\n## [Installation and usage](#installation)\n\nTo install this project, add `kinvey-flex-sdk` to your `package.json` file and install it via `npm`\n```\nnpm install kinvey-flex-sdk\n```\n\nTo use this module, require it in your project as such:\n```\nconst sdk = require('kinvey-flex-sdk');\n```\n\n### [Working Flex SDK service examples](#samples)\nThis section contains standalone sample microservices for FlexData, FlexFunctions, and FlexAuth frameworks. Note that all three can be combined into one service and are separated for example purposes.\n\n#### [Flex Service initialization Options](#init)\nWhen [developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally), you can specify a host and port to listen on by passing an options object with an optional host and port.  If no host/port is specified, localhost:10001 will be used:\n\n```\nsdk.service({ host: 'somehost', port: 7777 }, (err, flex) => {\n  // code goes here\n});\n```\n\nYou can also specify a shared secret (i.e. a secret key) to be used by this service.  Any client that accesses this service *must* contain this shared secret, or requests will be rejected with a `401 Unauthorized` error.\n\n```\nsdk.service({ sharedSecret: '<some shared secret>'} }, (err, flex) => {\n  // code goes here\n});\n```\n\nOnce set here, you must set this shared secret in the Kinvey console when configuring your service for Kinvey requests to execute properly.  For testing locally, this shared secret can be passed in the `X-Auth-Key` http header.\n\n#### [FlexData](#flexdata)\n```\nconst sdk = require('kinvey-flex-sdk');\nsdk.service(function(err, flex) {\n  const data = flex.data;   // gets the FlexData object from the service\n\n  function getRecordById(request, complete, modules) {\n    let entityId = request.entityId;\n    let entity = null;\n\n    // Do some logic to get the entity id from the remote data store\n    // Assume that data is retrieved and stored in \"entity\" variable\n\n    // After entity is retrieved, check to see if it exists\n    if (typeof entity === 'undefined' || entity === null) {\n      return complete(\"The entity could not be found\").notFound().next();\n    } else  {\n      // return the entity\n      return complete().setBody(entity).ok().next();\n    }\n  }\n\n  // set the serviceObject\n  const widgets = data.serviceObject('widgets');\n\n  // wire up the event that we want to process\n  widgets.onGetById(getRecordById);\n};\n```\n\n#### [FlexFunctions](#flexfunctions)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexFunctions = flex.functions;   // gets the FlexFunctions object from the service\n\n  function getRedLineSchedule(context, complete, modules) {\n    request.get('http://developer.mbta.com/Data/Red.json', (err, response, body) => {\n      // if error, return an error\n      if (err) {\n        return complete().setBody(\"Could not complete request\").runtimeError().done();\n      }\n\n      // otherwise, return the results\n      return complete().setBody(body).ok().done();\n    });\n\n   }\n\n  // set the handler\n  flexFunctions.register('getRedLineData', getRedLineSchedule);\n};\n```\n\n#### [FlexAuth](#flexauth)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexAuth = flex.auth;   // gets the FlexAuth object from the service\n\n  function authenticate(context, complete, modules) {\n    // authenticate the user here\n    if (err) {\n      return complete().accessDenied(err).next();\n    }\n    return complete().setToken(token).ok().next();\n  }\n\n  // set the handler\n  flexFunctions.register('myAuth', authenticate);\n};\n```\n\n## Support\nPlease contact Kinvey for further information or questions\n","readmeFilename":"README.md","gitHead":"91d8cf497b4ca3b8c4689da9a0a9f6ce67a1b3f2","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@3.1.2-alpha.2","_npmVersion":"6.1.0","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@gmail.com"},"dist":{"integrity":"sha512-ZXK3H4gNs9GzDuwoE2SZxDaGw/JcdCMScY5TXRUyUrVmhqMJUbdEjng5wXWpqv0F/ksMiznTd6Un2EJgY5MK+w==","shasum":"1e0e7dace8da821ca40dcf32034aa1ad4ec4ebbd","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-3.1.2-alpha.2.tgz","fileCount":51,"unpackedSize":647462,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbPBTECRA9TVsSAnZWagAAdsMQAJSmvTT/lP8S1aQXPurF\nNulLMr41HYFkse3AiriqXVNU7FZ4JEDT+7eAFo6oGChxHYacfBZByhQjiea/\n/fsfVE9FqiV6zu5yFFlAd3ww7HiXUypL58eQkH+i6lzVUuqNXaM5lsR32dSV\nNeBd4owwi8L6Xtax/r8hPoq6uIzLEPgz+SKyA0MFRn68lebore+TQEXki5eo\n5bMxq71/d2D3vkKxQTNBmaqKreTy0X0k3Nf05XdEF+yF+mWDK71wLSmaqNnG\nDaAT4LO0qwSboWtzMqjrQTeK7RfC8mRYJiReUAw/ApumNG00vpXvCWNPHR9D\n7TVFwJeURz2HMXybmA9//m9vgIFQ4Hu6C30j8j015ccs9joFDLTE5bwjtHoB\nyJuv3oZ4DMOZJGOgW8M7kJ7bwZUK4ob8fTq3CpmRPnxq6iSR5w9uvsowUhKj\n1PUCiClmkTLqqdRe7i6Kft/2D3ijnWlzXdrNPXtiHwDWVaZB74e5TfjlOm7i\nQ5Gpg6PKg0Fhr2tt3iI34hgm9+0FSJGKkq55Liyx1MTUHbz+9bzasOi+YZlO\n0rkvMrqa94QrLi2DBVcMikwTpXfurZjo7RmLwrdLpt+UdXMjni9ddAh7UjPB\n3dJUW99AcGwDRGhLyh7wuwL6f9ESxkF24+nEYaBsvCAtOzOcb0pHXbLaONPG\nU8rp\r\n=72rH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDm6aCMwmUgkASpZS22xFdLYk/cQ4QIDnGeyjiRkfQ9TAiEAx0zDmtwHAI50V6qCBxD0yLRHOW38oUO6m1EDh1YoXZs="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_3.1.2-alpha.2_1530664132649_0.21197054806268079"},"_hasShrinkwrap":false},"3.1.2":{"name":"kinvey-flex-sdk","version":"3.1.2","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.3.1","kinvey-datalink-errors":"0.3.2","moment":"2.21.0","request":"2.86.0","sift":"3.2.6"},"devDependencies":{"eslint":"2.11.1","eslint-config-airbnb-base":"3.0.1","eslint-plugin-import":"1.8.1","mocha":"5.1.1","nock":"9.0.5","proxyquire":"1.7.9","should":"11.1.0","sinon":"1.17.4","test-console":"1.0.0","uuid":"2.0.2"},"scripts":{"pretest":"eslint lib test","lint":"npm run pretest","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js","test-npm-security":"npm audit"},"gitHead":"a8b1f16de1892b1846969ba42705d52532b104c0","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@3.1.2","_npmVersion":"6.1.0","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@gmail.com"},"dist":{"integrity":"sha512-niCE+zQ6l0DK6ykD6c2j/Wvg9ln6Kk4Vegqk3oQOvvEaIshYCt7WcQHyDpOrSP3Z1rR+jUPYSIGnwLPK6ZvV1A==","shasum":"15de8abbea0a032c8081d8b79e826bf7eb8d0f2a","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-3.1.2.tgz","fileCount":51,"unpackedSize":647595,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbPBgGCRA9TVsSAnZWagAAc/EP/R0jV+XEyCIMrQ7gdgO5\nfh7I4eaa9D+syEnU1qUtq2rFJPApWEFhKkQt2E3ZRyfn6ubSSuVDj0TQ+7rs\ndf0CrQulvUD6usBmq5aq/G0TnCAlLaD1539dbgukC9YQ/7v8DV67bVk/nu4i\nQcRz5iOWrljUGyO0OIa/Nofl4jJo6naGMVVfTFtFe8yDpF9ZQ5ZZeS00Op+5\nO8Ystk7kpa1qhq2U0kltTPY2JjS5Jh7CEnTQJhWXqMeaVsy5vupeDYP7nqyy\n5kabnFVEyJUzbLhCXU7Ey4NOD7fOgfTZHiEwR7TdNaEgezh47LPVu78A62uX\nLeiyw4RjAlcmMXcqAarM5P6nhwI6LMrkh6mHJGp/cCGYAQuMLfeFvs4zDUc3\nIFHeJ+SqhbX3AdUsL75DS1cvPnZ9p27Fp4srKy6oPFxSm3s09O2c2GWtFU4l\n7P+K7m3M/LXiey2nkyCaWiTZJPi2qSBaM5yS0PW/atKRYq94vWjJOHzIvpfr\n2kzRGCwhbJMBKlfGmZMD3H2OpNMfAB/4RdLnevKYOgEhHB5dlPziEtNK+8nQ\nfckw0v672FUxArCqTX79nvtbT9JRL2RNu2OpGBjFM9RCPtJG/Q/AmmMpLye2\nC0j1Qc6LgLQyLZS4GmtDlpP93yZYH92UiKUQwYX8m/iVK+OYkP/ieKMDwIiJ\ntV1J\r\n=Wq2F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHU5drCGXceeq7sf5X+Iodsf1jSiMZtDiywLRUZuzEjgIgcm4wlfEcMGy/Ti98rho0Wvw3aZJWqT5G2SLOVp4P8lQ="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_3.1.2_1530664966024_0.7719675669191384"},"_hasShrinkwrap":false},"3.2.0":{"name":"kinvey-flex-sdk","version":"3.2.0","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.3.1","kinvey-datalink-errors":"0.3.2","moment":"2.22.2","request":"2.88.0","sift":"3.2.6"},"devDependencies":{"eslint":"5.9.0","eslint-config-kinvey-platform":"github:kinvey/eslint-kinvey-platform#0.1.3","eslint-plugin-import":"2.14.0","mocha":"5.2.0","nock":"10.0.3","proxyquire":"2.1.0","should":"13.2.3","sinon":"7.1.1","test-console":"1.1.0","uuid":"3.3.2"},"scripts":{"pretest":"npm run lint","lint":"eslint lib test *.js --color","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js","test-npm-security":"npm audit"},"gitHead":"fa47bbdb0105040345d4384f35b7fadff80902e1","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@3.2.0","_npmVersion":"6.4.1","_nodeVersion":"10.14.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@gmail.com"},"dist":{"integrity":"sha512-6wQbV4kh/3N7Gjqe3do1j3P/rXhSJlqApSQRJuCMYu1TyEXwlYcV6R3yR8TTsEs/d7lY8RhlIycRKoDi557Vww==","shasum":"dd68c783c45b640955e8cc387e5c6995d33e5728","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-3.2.0.tgz","fileCount":52,"unpackedSize":648308,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcDm2HCRA9TVsSAnZWagAAISwQAIKNw16TbFpDafvvn9QW\nXflTQG3FRBGhQ0qjo69QBjUYjeRm5fjys9gqpJJx+9ES3jy8iF6JbtLZtLBC\nQQmic7KZsNNJCeZpx6yl/dJLMT/DzXX5fUQ6WQ8xVAxdkELlQ5SVzU7tV9eC\n1C7PGIo3br3DL8UI/DNCXtc6H4FDQfOSS1RlJYHRc5X7Rk4PtLUwRhvkQdjr\nxMBxZ4wAuJCRJjHKFv/bEObQlf611st2/76abzSRu+RIq/ZN9b2MiJXzNGbA\nekvtMT8a9ppDL7oMHA1LD04oQHQKFK+24Sdx6SisNl4r2XeTYV3HD1MdI+S2\nCNLM8PC70HEGZEW1OoUwzGh5u7sEu4KZL4mwjxrePrfHhLU9m4DPcXe/F2F3\ndWyzrfY+59HzBx5CIvWeBx6OefRjIDGcSif2E5QqfDbwn1RdxdFhLLscb8G7\nF4Q39mLAsi44JfghzvlUy9Y06YYVw9+e10k2TMZb06JQKde23WtiBR0puYBX\nk8CR4bGg2h/pX0vPI9z87NYa0vab5gNb5Qx0az8+CWqa2BUI+N5ZeJ6mcrt1\nsGQt4uvvTZtb8omv+YjkHdBbtDsCSVUpAXEvBUnD71a9LWOLFGAB88cAvBKk\ndA7k/ZdS4379jUeIuPWSQPNBqLKvTWqxwmfkJyjY9omFvSUXSQYDLtGNi7FM\nTd/e\r\n=ULK6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB8MKQHggBL3VenAn2GghDwoS133+eq4TOwpntEkgGgrAiBBZopUpxKIr0TS7+9npY9nfKb/Zry8xcSQXJ3wpIqW2g=="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_3.2.0_1544449415146_0.04912642361037656"},"_hasShrinkwrap":false},"3.2.1":{"name":"kinvey-flex-sdk","version":"3.2.1","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.3.1","kinvey-datalink-errors":"0.3.2","moment":"2.22.2","request":"2.88.0","sift":"3.2.6"},"devDependencies":{"eslint":"5.9.0","eslint-config-kinvey-platform":"github:kinvey/eslint-kinvey-platform#0.1.3","eslint-plugin-import":"2.14.0","mocha":"5.2.0","nock":"10.0.3","proxyquire":"2.1.0","should":"13.2.3","sinon":"7.1.1","test-console":"1.1.0","uuid":"3.3.2"},"scripts":{"pretest":"npm run lint","lint":"eslint lib test *.js --color","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js","test-npm-security":"npm audit"},"gitHead":"b75f33b40494d6956f681663b0308f52edab2028","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@3.2.1","_npmVersion":"6.4.1","_nodeVersion":"8.14.0","_npmUser":{"name":"mjsalinger","email":"mjsalinger@gmail.com"},"dist":{"integrity":"sha512-mBwH0CYJKQHV5MKqngyBYBIvPi725SdnIz7L7EWVFWBCWMHVirN+sE05FI7I3npcGvYHu0+SrKQmzrMc1GKkhA==","shasum":"1c8197e0df9f87145bc71d69bb1718f7afa12f0f","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-3.2.1.tgz","fileCount":52,"unpackedSize":649228,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcNIYbCRA9TVsSAnZWagAAqTcP/2BOO5iTVta3J/D5UDvI\nXcLHAAgkxoTC7dDu2b7Iiwwv/StgSxe/IgamLwnTHr0LHhkUX0zlfN/szcDt\n32IFpyQJr68CMcAVcHKEEiRkuW0m9ZIF8RkDnDhQgV+fdJOdp1l8EfamxbBB\nt3jFim/jtCFS0ob74OtL8ZhXjOZ4zjqgJ+wX0yKe+05+pEwGAVtWL2bdwgq2\nve/mAxtLWiU4AR7m66xVURfuVHazYlLufOnHqqjDKG8QIN60AjkliRFfS+CU\n3CKgsRyNVwJS4FBo8iVNPA/2lM/6PipREd5f8R/tuJI15iAndaH3ETOcICkw\nkdLZXowm6v6Ec9Mi3Zj87hdOCsf6Ees1oaCtVkjUKaivc2PrBAEaS11s5iaG\n1QgK04XhZx2gPZpjg1fcWZmtqpwXVQjWBNAdi1EhiD6nTrcIPQnvQjI7C1il\nse3vBQjwM7VC+ODIMgbMnFpr+2xoq1ecr2NJuZ2RgQrOkuaGEftbc0OwBxoM\nwh32o2JQYmhYIBOf+qOUakudwqGd3LDkpQBSAQRG2dYJ+BHoXeQSU/nrn0ES\nOK8htLYe8W+qlRsUU7YXzc5MPklenVQ4DtTQBuz/UnjIjHSo1jRja2gWuzk9\nQ/BFErFp+RIQmPasd+S5oqfu+huYj3QVmkvkFoLGSfdfq0X7bgJ4yxHgvxB9\nF0F3\r\n=W5xJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2ZvW9M0/2c4V7mpbkUtwyQxOD8gSsnpsGMQPRZ3TPHgIhAPySLvb+QAgrzjEu0Q5CP9pmn9KG+3eIy7RMa1jlCZjg"}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_3.2.1_1546946074585_0.8276530848539339"},"_hasShrinkwrap":false},"3.3.0-alpha.1":{"name":"kinvey-flex-sdk","version":"3.3.0-alpha.1","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.4.0","kinvey-datalink-errors":"0.3.2","moment":"2.22.2","request":"2.88.0","sift":"3.2.6"},"devDependencies":{"eslint":"5.9.0","eslint-config-kinvey-platform":"github:kinvey/eslint-kinvey-platform#0.1.3","eslint-plugin-import":"2.14.0","mocha":"5.2.0","nock":"10.0.3","proxyquire":"2.1.0","should":"13.2.3","sinon":"7.2.7","test-console":"1.1.0","uuid":"3.3.2"},"scripts":{"pretest":"npm run lint","lint":"eslint lib test *.js --color","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js","test-npm-security":"npm audit"},"readme":"[![Build Status](https://travis-ci.org/Kinvey/flex-sdk.svg?branch=master)](https://travis-ci.org/Kinvey/flex-sdk)\n\n# Kinvey Flex SDK\n\nThis is the SDK for code execution of Flex Microservices. The module provides a framework for building Kinvey-backend services using FlexData, FlexFunctions, and FlexAuth.\n\n## Upgrading from 2.x to 3.x\n\nFlex-sdk 3.x contains several breaking changes as well as new features.  To upgrade your service from Flex-sdk 2.x to 3.x:\n\n* All email and push methods now return a promise.  It is now required that you either handle the promise, or pass a callback.\n* For all stores (e.g. dataStore, userStore, etc), the deprecated options `skipBl` and `useMasterSecret` have been removed and no longer function.  Use `useBl` and `useUserContext` instead.\n* All asynchonous modules (dataStore, groupStore, roleStore, endpointRunner, userStore, email, and push) now return a promise or accept a callback.\n* For more information on what's new, see the [Changelog](CHANGELOG.md).\n\n## [Official documentation](#docs)\n* [Kinvey FlexServices guide](http://devcenter.kinvey.com/nodejs/guides/flex-services)\n* [Developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally)\n* [FlexService Runtime information (for deploying FlexServices to Kinvey for use in production)](http://devcenter.kinvey.com/nodejs/guides/flexservice-runtime)\n* [External Flex Services](http://devcenter.kinvey.com/nodejs/guides/external-flex)\n\n## [Installation and usage](#installation)\n\nTo install this project, add `kinvey-flex-sdk` to your `package.json` file and install it via `npm`\n```\nnpm install kinvey-flex-sdk\n```\n\nTo use this module, require it in your project as such:\n```\nconst sdk = require('kinvey-flex-sdk');\n```\n\n### [Working Flex SDK service examples](#samples)\nThis section contains standalone sample microservices for FlexData, FlexFunctions, and FlexAuth frameworks. Note that all three can be combined into one service and are separated for example purposes.\n\n#### [Flex Service initialization Options](#init)\nWhen [developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally), you can specify a host and port to listen on by passing an options object with an optional host and port.  If no host/port is specified, localhost:10001 will be used:\n\n```\nsdk.service({ host: 'somehost', port: 7777 }, (err, flex) => {\n  // code goes here\n});\n```\n\nYou can also specify a shared secret (i.e. a secret key) to be used by this service.  Any client that accesses this service *must* contain this shared secret, or requests will be rejected with a `401 Unauthorized` error.\n\n```\nsdk.service({ sharedSecret: '<some shared secret>'} }, (err, flex) => {\n  // code goes here\n});\n```\n\nOnce set here, you must set this shared secret in the Kinvey console when configuring your service for Kinvey requests to execute properly.  For testing locally, this shared secret can be passed in the `X-Auth-Key` http header.\n\n#### [FlexData](#flexdata)\n```\nconst sdk = require('kinvey-flex-sdk');\nsdk.service(function(err, flex) {\n  const data = flex.data;   // gets the FlexData object from the service\n\n  function getRecordById(request, complete, modules) {\n    let entityId = request.entityId;\n    let entity = null;\n\n    // Do some logic to get the entity id from the remote data store\n    // Assume that data is retrieved and stored in \"entity\" variable\n\n    // After entity is retrieved, check to see if it exists\n    if (typeof entity === 'undefined' || entity === null) {\n      return complete(\"The entity could not be found\").notFound().next();\n    } else  {\n      // return the entity\n      return complete().setBody(entity).ok().next();\n    }\n  }\n\n  // set the serviceObject\n  const widgets = data.serviceObject('widgets');\n\n  // wire up the event that we want to process\n  widgets.onGetById(getRecordById);\n};\n```\n\n#### [FlexFunctions](#flexfunctions)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexFunctions = flex.functions;   // gets the FlexFunctions object from the service\n\n  function getRedLineSchedule(context, complete, modules) {\n    request.get('http://developer.mbta.com/Data/Red.json', (err, response, body) => {\n      // if error, return an error\n      if (err) {\n        return complete().setBody(\"Could not complete request\").runtimeError().done();\n      }\n\n      // otherwise, return the results\n      return complete().setBody(body).ok().done();\n    });\n\n   }\n\n  // set the handler\n  flexFunctions.register('getRedLineData', getRedLineSchedule);\n};\n```\n\n#### [FlexAuth](#flexauth)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexAuth = flex.auth;   // gets the FlexAuth object from the service\n\n  function authenticate(context, complete, modules) {\n    // authenticate the user here\n    if (err) {\n      return complete().accessDenied(err).next();\n    }\n    return complete().setToken(token).ok().next();\n  }\n\n  // set the handler\n  flexFunctions.register('myAuth', authenticate);\n};\n```\n\n## Support\nPlease contact Kinvey for further information or questions\n","readmeFilename":"README.md","gitHead":"1c3e920e3a289b300ff2dc7f538bfdb54891df1a","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@3.3.0-alpha.1","_npmVersion":"6.4.1","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@gmail.com"},"dist":{"integrity":"sha512-uFpfVpBvpGeSDI4O3E7I0RXKiHXDPb9FRvtZkRcD/WwOwo2cdUpKJVQ0pMNso5K+lc8UdeIfZBD/tJ0QOD5zqw==","shasum":"5855d23cdcaa0255271551e2bca593d4a3050e04","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-3.3.0-alpha.1.tgz","fileCount":53,"unpackedSize":661146,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc3cYVCRA9TVsSAnZWagAA53wP/2/ZXALnzUVOp1aRLYBZ\n04dyUUXKxiI4ALUy4mzfwuGGXZ+Nu7OlCZaaC0sHAgcVdKoqvnkXDLDQfmaW\nU0AeLhcoFiONv91pZj4h3UiqcSf6Q7wZLpGXycE+5F+6DfifI9YXlJWJfQ+N\nYYOxfQX/bGuii8NBT5bgD/PhKmFmJZXjkP46QcHZkCnX7K9v77CTkHIYR8lk\nRnBwQVkDq38DPlR2iY4/00AsApTNx9Vzn7ymlfPkk8r8C8QWslf18pb0C9Xz\naFeTZW+BuHiFLvqlIx+lnIxqIB32M2gUIalJKU1insZySecHfneSBUtuUZIO\ndSjEEdsYAp4NBIdiLyNU2QR+iTn3YpA9s+2FoGTSXDG9dve1E9gVneMUTmXN\nnzLAUKQp0rW40IcxmuY0Rw0zLWprE75OMe/XnssssQjInZbU844DhR+WdYU1\nD8pyCAOdErruj6c7qTKWB6Ie34GTi+bLdSvTnMc2pw9XTvlr0ODpE68tsA4k\n31w8tfyqJ4jKqa67UlV+vKBNl8lYvJtKV89byX9ab4wGhRaSKaU4/1OSgQIG\n1fum9oZ5i3sCm4h3K82gxzMU+WJ9Z/342Omg7wAIsEeXlwGZrBUbPwU9sVZZ\nnMj8i6qjKt5FrRgVpsi/IzhP1yR6QsiFjwTpcWvgMA+g81gqwprHwlfDJOTE\nnWEi\r\n=Qsjn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDrtVeQ/Epq+t97E3YUKUt1zLnZIwH8WMPKYQZJKlKZSAiEA+trbIswdkWTfNtubCnI9nEtBuLNWk2mxKm77eA7XujQ="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_3.3.0-alpha.1_1558038036209_0.9873209284474129"},"_hasShrinkwrap":false},"3.3.0-alpha.2":{"name":"kinvey-flex-sdk","version":"3.3.0-alpha.2","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"bson":"0.4.23","kinvey-code-task-runner":"2.4.0","kinvey-datalink-errors":"0.3.2","moment":"2.22.2","request":"2.88.0","sift":"3.2.6"},"devDependencies":{"eslint":"5.9.0","eslint-config-kinvey-platform":"github:kinvey/eslint-kinvey-platform#0.1.3","eslint-plugin-import":"2.14.0","mocha":"5.2.0","nock":"10.0.3","proxyquire":"2.1.0","should":"13.2.3","sinon":"7.2.7","test-console":"1.1.0","uuid":"3.3.2"},"scripts":{"pretest":"npm run lint","lint":"eslint lib test *.js --color","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js","test-npm-security":"npm audit"},"readme":"[![Build Status](https://travis-ci.org/Kinvey/flex-sdk.svg?branch=master)](https://travis-ci.org/Kinvey/flex-sdk)\n\n# Kinvey Flex SDK\n\nThis is the SDK for code execution of Flex Microservices. The module provides a framework for building Kinvey-backend services using FlexData, FlexFunctions, and FlexAuth.\n\n## Upgrading from 2.x to 3.x\n\nFlex-sdk 3.x contains several breaking changes as well as new features.  To upgrade your service from Flex-sdk 2.x to 3.x:\n\n* All email and push methods now return a promise.  It is now required that you either handle the promise, or pass a callback.\n* For all stores (e.g. dataStore, userStore, etc), the deprecated options `skipBl` and `useMasterSecret` have been removed and no longer function.  Use `useBl` and `useUserContext` instead.\n* All asynchonous modules (dataStore, groupStore, roleStore, endpointRunner, userStore, email, and push) now return a promise or accept a callback.\n* For more information on what's new, see the [Changelog](CHANGELOG.md).\n\n## [Official documentation](#docs)\n* [Kinvey FlexServices guide](http://devcenter.kinvey.com/nodejs/guides/flex-services)\n* [Developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally)\n* [FlexService Runtime information (for deploying FlexServices to Kinvey for use in production)](http://devcenter.kinvey.com/nodejs/guides/flexservice-runtime)\n* [External Flex Services](http://devcenter.kinvey.com/nodejs/guides/external-flex)\n\n## [Installation and usage](#installation)\n\nTo install this project, add `kinvey-flex-sdk` to your `package.json` file and install it via `npm`\n```\nnpm install kinvey-flex-sdk\n```\n\nTo use this module, require it in your project as such:\n```\nconst sdk = require('kinvey-flex-sdk');\n```\n\n### [Working Flex SDK service examples](#samples)\nThis section contains standalone sample microservices for FlexData, FlexFunctions, and FlexAuth frameworks. Note that all three can be combined into one service and are separated for example purposes.\n\n#### [Flex Service initialization Options](#init)\nWhen [developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally), you can specify a host and port to listen on by passing an options object with an optional host and port.  If no host/port is specified, localhost:10001 will be used:\n\n```\nsdk.service({ host: 'somehost', port: 7777 }, (err, flex) => {\n  // code goes here\n});\n```\n\nYou can also specify a shared secret (i.e. a secret key) to be used by this service.  Any client that accesses this service *must* contain this shared secret, or requests will be rejected with a `401 Unauthorized` error.\n\n```\nsdk.service({ sharedSecret: '<some shared secret>'} }, (err, flex) => {\n  // code goes here\n});\n```\n\nOnce set here, you must set this shared secret in the Kinvey console when configuring your service for Kinvey requests to execute properly.  For testing locally, this shared secret can be passed in the `X-Auth-Key` http header.\n\n#### [FlexData](#flexdata)\n```\nconst sdk = require('kinvey-flex-sdk');\nsdk.service(function(err, flex) {\n  const data = flex.data;   // gets the FlexData object from the service\n\n  function getRecordById(request, complete, modules) {\n    let entityId = request.entityId;\n    let entity = null;\n\n    // Do some logic to get the entity id from the remote data store\n    // Assume that data is retrieved and stored in \"entity\" variable\n\n    // After entity is retrieved, check to see if it exists\n    if (typeof entity === 'undefined' || entity === null) {\n      return complete(\"The entity could not be found\").notFound().next();\n    } else  {\n      // return the entity\n      return complete().setBody(entity).ok().next();\n    }\n  }\n\n  // set the serviceObject\n  const widgets = data.serviceObject('widgets');\n\n  // wire up the event that we want to process\n  widgets.onGetById(getRecordById);\n};\n```\n\n#### [FlexFunctions](#flexfunctions)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexFunctions = flex.functions;   // gets the FlexFunctions object from the service\n\n  function getRedLineSchedule(context, complete, modules) {\n    request.get('http://developer.mbta.com/Data/Red.json', (err, response, body) => {\n      // if error, return an error\n      if (err) {\n        return complete().setBody(\"Could not complete request\").runtimeError().done();\n      }\n\n      // otherwise, return the results\n      return complete().setBody(body).ok().done();\n    });\n\n   }\n\n  // set the handler\n  flexFunctions.register('getRedLineData', getRedLineSchedule);\n};\n```\n\n#### [FlexAuth](#flexauth)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexAuth = flex.auth;   // gets the FlexAuth object from the service\n\n  function authenticate(context, complete, modules) {\n    // authenticate the user here\n    if (err) {\n      return complete().accessDenied(err).next();\n    }\n    return complete().setToken(token).ok().next();\n  }\n\n  // set the handler\n  flexFunctions.register('myAuth', authenticate);\n};\n```\n\n## Support\nPlease contact Kinvey for further information or questions\n","readmeFilename":"README.md","gitHead":"07ffd47cf1bd4f4e6bb8ea79753f9f2f712d0bc1","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@3.3.0-alpha.2","_npmVersion":"6.4.1","_nodeVersion":"6.9.1","_npmUser":{"name":"mjsalinger","email":"mjsalinger@gmail.com"},"dist":{"integrity":"sha512-ccLoDxePZAssGRdWdaMHUC+eX4JpoEIMxsh9hZ0F+8Q9UFFjexjc1XSvnbuKDzLWhpFI8T9SI2XJgp2ADT4tiA==","shasum":"03456591d5703c299880cf5acb8f63fbd747238b","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-3.3.0-alpha.2.tgz","fileCount":53,"unpackedSize":684261,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc7uM1CRA9TVsSAnZWagAAON0QAJn0aLqn2LCJPUbFWFQ5\niJxESu71Lp0y3QK7rwEQTEmdeAceFTwb+A7ejO7bpg5isEFp3bxiU50eM9PQ\naaerqzJCHRRAzJwbBbYFe65SjYkoeqk0yDlgAqAPA14gOiOvOqJOD9pXy9dC\nzQRJqAGGJla2k4iLGc21rDSBZQVw8269Aw1BRHvZuXhdysXCUE5+PrbOs6V+\nmjk0FTiHlp9Y9/vefyFzQxePI/56HUx+uICT4/bWfUPzebEO3Vzs/4VRJMmi\nRYnqkjj0JUT7dFCB6rN72u6LzQFFyEQ3RfNoMs9NBt/fWzfu96SxHS6bLGaO\nruNlp41uR0tGvuTupND4EHiOimkFaHeSIV3xUCWHds/9hNK/yePhc0otmewy\nYshMeVNZS9CpF1RomCT3O93PqOR2zl0prVULqC6nv7ECuDRiSaWKMNOfVGi/\nmRswwPGFr2HngBkYcGhTxBXC6a2wRchdy95oH2YMRNgyIBjUumb+/1fLqg5k\nlfnuJkbmnuzJaUnqtU5DdBduzi9b1ttMiYovf8POT8ky+qMdHMWvrrRc34iI\njr7o6EfWku1tnmzk6feqIMqJc1JQ0B+lKeYpupF+ANFGBzTmJzm6qXE9ZHtL\nIxP+Qpeu+GH0EapUCYnLQ7fmVirQt+T/S19pDmjnGWl1A+tZky1wpNP4glcc\n1Yie\r\n=9oms\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH67Nx7B8+JcDnUE0y/ynvgW/1kzn2E5WyGDlfSVgqJYAiEArH4VsMDpSi6W9y/6ot8mH5w7Vi4eF73kB2Q3R1FTfBw="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_3.3.0-alpha.2_1559159605033_0.7945309121175093"},"_hasShrinkwrap":false},"3.3.0":{"name":"kinvey-flex-sdk","version":"3.3.0","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"async":"3.1.0","bson":"0.4.23","kinvey-code-task-runner":"2.4.0","kinvey-datalink-errors":"0.3.2","moment":"2.22.2","request":"2.88.0","sift":"3.2.6"},"devDependencies":{"eslint":"5.9.0","eslint-config-kinvey-platform":"github:kinvey/eslint-kinvey-platform#0.1.3","eslint-plugin-import":"2.14.0","mocha":"5.2.0","nock":"10.0.3","proxyquire":"2.1.0","should":"13.2.3","sinon":"7.2.7","test-console":"1.1.0","uuid":"3.3.2"},"scripts":{"pretest":"npm run lint","lint":"eslint lib test *.js --color","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-core":"mocha test/lib/*","test-flex":"mocha test/lib/flex.test.js","test-data":"mocha test/lib/data.test.js","test-functions":"mocha test/lib/functions.test.js","test-moduleGenerator":"mocha test/lib/moduleGenerator.test.js","test-modules":"mocha test/lib/modules/*","test-backendcontext":"mocha test/lib/modules/backendContext.test.js","test-dataStore":"mocha test/lib/modules/dataStore.test.js","test-email":"mocha test/lib/modules/email.test.js","test-groupStore":"mocha test/lib/modules/groupStore.test.js","test-entity":"mocha test/lib/modules/entity.test.js","test-kinveydate":"mocha test/lib/modules/kinveyDate.test.js","test-push":"mocha test/lib/modules/push.test.js","test-query":"mocha test/lib/modules/query.test.js","test-requestcontext":"mocha test/lib/modules/requestContext.test.js","test-tempobjectstore":"mocha test/lib/modules/tempObjectStore.test.js","test-userStore":"mocha test/lib/modules/userStore.test.js","test-npm-security":"npm audit"},"gitHead":"d1ef060ce4c65b77bd66b3771d561a4dc154310f","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@3.3.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"mjsalinger","email":"mjsalinger@gmail.com"},"dist":{"integrity":"sha512-JQj7ZAxpCCji+2WmqG85XFyMn0qvUbIBhGeFXhQaVW4bgcvHzCNPic3zLpYwA7SUmSZljHoqL3zXUheyNCYFYA==","shasum":"4eadcd1c2240be988c30704236eb1bdda2571329","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-3.3.0.tgz","fileCount":53,"unpackedSize":692150,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdP18dCRA9TVsSAnZWagAAPXkP/j94to4BuxGAtQMyPuVd\nEW4lp/uO3EUF4p7jLuJmGCfB5AWkNnlKyPCuYgKDwglj0jIMoSxl5Z6mTG1E\nLlGEKSR7P+KjFnpz+uFttYigx/8eycW85YBd7jQnmnBJoL7PFuoIXZLF3NXx\n1b5HMTkPrlo76bgJBWNP4/sjdPqcxz2cQx4TNw+BuyaU6DcvXocF5hrDIlVK\nEEPw7gJ6k1GW+rIM+A1C+YmtEqRIVlfFSBUqJVJt7cdS8pvfTceYrVLtKON3\nF4ptYvrRmRmzpzdW2jXm1JlCgE5nCNwNSVfDVqYf1Zuh2I4Ll0i3xDDDcI7n\nyvdw+Xpp5zsf4r5o2PK42Hi6GLD5ybC4GB/JBVTsO/GEUsyu+RKxharUjEXJ\nb0x4cMe4YCXOlhJdBydVjDBSN3QjcYqkB22vlqhO+BirzelKKkgi8Udx6f64\n+rhIF40xEcFbCp8fUg/LM45HkB//+ReV/EnELFICe2zsl/Gd/oeJHq30g1Fu\nGjRM6t31wIwIIuDpemFAKs+cZWBQ0yRxkV9qunZaxCmhF5pGyXI4+eSnI9zC\nYYc3F7ih4UGCNuNjp3G9HnkdL5fgs+v2yKGvQx1AyhW0CEWdK0WhOnDvPY4A\nAR0bCqhm1UGo44MmLLPYHaOkLAcOdPaV6hoFOUe3YYuac7XxfYgUmtPB7/C+\nzamH\r\n=VHjQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGD7sR1JdESrliHHwGP8HHejCq0XMe6EwFc/YZ2AqTqIAiAKbg80oFEmaiWmkjd0U71O9rxwJ60gTblJit2xztWdjA=="}]},"maintainers":[{"name":"mjsalinger","email":"mjsalinger@kinvey.com"},{"name":"sjl2024","email":"sjl2024@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_3.3.0_1564434204935_0.01794203286977969"},"_hasShrinkwrap":false},"3.4.0":{"name":"kinvey-flex-sdk","version":"3.4.0","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"async":"3.1.0","bson":"0.4.23","kinvey-code-task-runner":"2.4.0","kinvey-datalink-errors":"0.3.2","moment":"2.22.2","request":"2.88.0","sift":"3.2.6"},"devDependencies":{"eslint":"5.9.0","eslint-config-kinvey-platform":"github:kinvey/eslint-kinvey-platform#0.1.3","eslint-plugin-import":"2.14.0","mocha":"5.2.0","nock":"10.0.3","proxyquire":"2.1.0","should":"13.2.3","sinon":"7.2.7","test-console":"1.1.0","uuid":"3.3.2"},"scripts":{"pretest":"npm run lint","lint":"eslint lib test *.js --color","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-npm-security":"npm audit --production --audit-level=high"},"gitHead":"c05488395ac4f44d3f53dca152b2c4b3c07d4524","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@3.4.0","_nodeVersion":"8.17.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-TlA3qREZrcVhkRGqWZjx5JDZLbdnWjcmF+N51lrM+qLg8aSRL2B/Z+nGEaDdcdkKa/NEXo5ojBwdtFpT6a+2KA==","shasum":"06a1970611e79c0f7c87f9c60d1044b682893485","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-3.4.0.tgz","fileCount":53,"unpackedSize":691827,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeffCwCRA9TVsSAnZWagAAQNsP/iigKREOBTxUmTnl/Wwk\nO2sdouDA1jmdD0aiVqbvzephHiCCsWqnLSilgMFby3f4OrdsopatG5PFPEuL\nzbB4P7RRkyAe1cMqczlllerGAFpGyLw5s/TpXj1PdPgeiXJNJ4puAEWmkIHk\nhTeul9YA8H/Wqn74q/v825tk7eAaKDwZ5nFjBwSmEzHJ+bhNQyAJAZ1u04By\nvd7vHFwfL9rAyC9NzdO17NgUtp0UygevgiV6G/yC9RT6zIfbgBgaJW8k5v9b\nECat6Fp+8qobKHnFdFVlARJewMwbYjH/JyBTAS467MgBpVbnykh8by1YyeKS\nHOWwC57ddZfr6VRzK9lZX0M1ox76Rf/GBSWYw6WU9megCuy7ZQJNCDhT1KKP\n4aX8oQWN4vCs2eclOnFJn/MEMEgOPqCAKPoYJhCCuv7JIbtyATtcBK8ZxIPr\n8iqNzTRjsxYN1XUzloYqUM1CXvNPo8QdI8veXORpVbVCuLsU6510wD8ye0yP\n3zovC/LM8+QWHmu6ixsl1nFEQJ+lwt8XbdMGZCJWzLUM3TOlyParAAnuGfIv\nhP3ysXRy4IkPUcA+Z+dxFEFAJCs6t7pxJnWITsucBanRUP6mybZotvihHJMa\nUMf8kAH3XsrL/5fqeRDktqkBMQlvQdjfAS2dZ6L0zBV3nNNXc62JwROo8iAf\nI7tW\r\n=Zwtn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBr8LPOoWD17P3tMuEHbmsieYYyhE2tMt8YjmY0a7FYpAiBPbcTec8P6qAtkVdlOvYe3Y1sqwQmBdHAMJB7bdD/Ghw=="}]},"maintainers":[{"email":"opensource@kinvey.com","name":"kinvey"},{"email":"mjsalinger@gmail.com","name":"mjsalinger"}],"_npmUser":{"name":"filipov","email":"alexander.filipov@telerik.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_3.4.0_1585311920062_0.9556039165891177"},"_hasShrinkwrap":false},"3.5.0":{"name":"kinvey-flex-sdk","version":"3.5.0","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"async":"3.1.0","bson":"0.4.23","kinvey-code-task-runner":"2.4.0","kinvey-datalink-errors":"0.3.2","moment":"2.22.2","request":"2.88.0","sift":"3.2.6"},"devDependencies":{"eslint":"5.9.0","eslint-config-kinvey-platform":"github:kinvey/eslint-kinvey-platform#0.1.3","eslint-plugin-import":"2.14.0","mocha":"5.2.0","nock":"10.0.3","proxyquire":"2.1.0","should":"13.2.3","sinon":"7.2.7","test-console":"1.1.0","uuid":"3.3.2"},"scripts":{"pretest":"npm run lint","lint":"eslint lib test *.js --color","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-npm-security":"npm audit --production --audit-level=high"},"gitHead":"3142ef3d1ce239fccd9ca78ec6be93fed7be5721","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@3.5.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-k/d9L0VwMOzIdp2n4KovOopbHxuVKSDaVIRPsyLnstPT3oS5MrHOzgYF9lNuapr/LguWEJ/frHHptT1vmC557g==","shasum":"4812e8537e317c43246249027a6b4615e3b8a06a","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-3.5.0.tgz","fileCount":53,"unpackedSize":691951,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe8gj5CRA9TVsSAnZWagAAn/EP/10UOsvV4wFrDgE2dVoz\n/g+ddtYugMAwD96fTWgtsLSKD63Rr/PQrYbebqVRdh+WzC85j5hLgcsx2Vog\n9PIvffZQA4CAnn8cU/TEzgt0othYsolYr0ekzbgcZQkMhyscMHEM9mej+C0Z\n3v2JqreNBJ1L9qTskiVosH6syowEQDHZNqOlYtZgclPr4+daVaNpevd4c3RH\nadw/p+sCV9rHR4dvj2gyX5NIlJDXUi7J4YMkxEk2Gmoox8MvDYvgSWPq1Zs8\n/5KQ0GjPhLHNPtlTYyMs25dlRcXYYPq7x31wGShB6CI4AJasAoAM6FYJsqoF\nTOhRKjQRkrsbjHKJnqDL1uYz+6lxkTEvQLzD2tkHqtO3ReDYt8geAzpshdEu\nP3HBLZFe9BpXBSsu+1sZ7wF/oYm5XbwaMcIVQ5hEHtXOfu8C9UjUp7cizPiB\n2RDwSA/+vxODPtcPGPG55OSkUg+jkz5Ry6ZuM74Juj7eP5xMCj36VoV/+3R5\nKFyv6mJb9tftnXhdcHOkQTSc0TVdDEJx6fD1XCSsi8A2SaYr7E0fEvzJjcce\n74IH1tUnURM+BkFT853U3Io3xfZjyypgkpToVQ5qXnWKKRhbZeFIi+Fvi9XE\nri6eNcAKCJbMesTsdprZIQ2J/Ntn14yFYT0L4UashFQ1EQcZ6YknPyJtXhSU\nCXA6\r\n=j1gq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHf/OeCN+xflf/IbMU1qcdYo1MAJsr92W5nSvsJ6eLbEAiBwqUtMQNjLfaEM1AmEdwslaiNmMOl4rOcZrJV2TeZSDQ=="}]},"maintainers":[{"email":"opensource@kinvey.com","name":"kinvey"},{"email":"mjsalinger@gmail.com","name":"mjsalinger"}],"_npmUser":{"name":"ventsislav-georgiev","email":"ventsislav.georgiev@live.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_3.5.0_1592920313225_0.3957004990113373"},"_hasShrinkwrap":false},"4.0.0":{"name":"kinvey-flex-sdk","version":"4.0.0","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"async":"3.1.0","bson":"0.4.23","kinvey-code-task-runner":"2.4.0","kinvey-datalink-errors":"0.3.2","moment":"2.22.2","request":"2.88.0","sift":"3.2.6"},"devDependencies":{"eslint":"5.9.0","eslint-config-kinvey-platform":"github:kinvey/eslint-kinvey-platform#0.1.3","eslint-plugin-import":"2.14.0","mocha":"5.2.0","nock":"10.0.3","proxyquire":"2.1.0","should":"13.2.3","sinon":"7.2.7","test-console":"1.1.0","uuid":"3.3.2"},"scripts":{"pretest":"npm run lint","lint":"eslint lib test *.js --color","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-npm-security":"npm audit --production --audit-level=high"},"gitHead":"1e01a6dc26336ef476871c5efdfdfd0b050fce6b","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@4.0.0","_nodeVersion":"8.17.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-rs9DaApEkeclJEW2WqN8LiOo+nkd851QknNDNAor6oqiTo1CH4KtHz0v4VilLtONHOyrs4EawSnqzS3IDg1PUg==","shasum":"6d86462ac5964138f752595192df843af1eb58af","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-4.0.0.tgz","fileCount":53,"unpackedSize":692010,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDrkTCRA9TVsSAnZWagAAX5AP/RNccMSBOuFTikgkqAGK\n05fN15qidcXCpVtD4ne2Lz7mMsEfcLHoGiqlCJidUxgxsohTK8lwUSZKfyO/\nppZtZ5thwyuD/sVCQJZ7gMmAP0SLpCRuho3Me1rxadIVFTIdMhzyV/Owt1FK\nfVroB4TrqRUKBU86H+Y8GORlTMjlExFsM5gJmOHer/fh8AyRH/4Y9gjBRTje\nfrl7a6NRxBgUrYOrBw3yysyEuhDsZg/tz8RLC0r/D8lGNarmJRYRLgP4xZqt\nlgYU7JArmqfa+O4GAD4g+qPACIcrExdkC6tvu0RvNOZi3DNTaPoCJ0deESKf\nRc2TQYYthDTeYfzDOpH1AdTUfcIPb2HFBWE8gvnDuFHHykN7y73bJxGi/uD8\nv7u5/omGv3OZFQCzXF+ob+dRlLAoJQmXMlKE7s5Od7EzVjmJ8aNtkaEfwpzL\nDVZHowa2rmPJDe826MqpY5aLS6pUvox5YW2G4VUUv9yK0fR9CeM0Zz01XOU5\ngiDnVxormw8wajw9GoVRfSrs0jClZcw1oFaymy/rB17SI8eLTFqlfcdk3T+1\nv3SWIayEmFY+KyCu8qm2w/VUv37o12AdihKL+n1anAJnuW3FOz86sjSvzOMC\n8SiteieAo52rlrXmw00/iA4JQxOiKr0Lf/qGKWN0A8Lwk+nsSkYCx2ikZKzF\n55Fb\r\n=YN/Y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQmez2g9OvLYVjTHnNqfVcjvBRz3j44gqeEYewtoXzPgIgUnU6UsF+qi+G0+IWTZc+lDRH/qy5712kNV9T7yiupsU="}]},"maintainers":[{"email":"opensource@kinvey.com","name":"kinvey"},{"email":"mjsalinger@gmail.com","name":"mjsalinger"}],"_npmUser":{"name":"ventsislav-georgiev","email":"ventsislav.georgiev@live.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_4.0.0_1594800402885_0.6704461863966678"},"_hasShrinkwrap":false},"4.0.1-rc1":{"name":"kinvey-flex-sdk","version":"4.0.1-rc1","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"async":"3.1.0","bson":"0.4.23","kinvey-code-task-runner":"2.4.1-rc1","kinvey-datalink-errors":"0.3.2","moment":"2.22.2","request":"2.88.0","sift":"3.2.6"},"devDependencies":{"@progresskinvey/eslint-config-kinvey-platform":"0.2.1","eslint":"5.9.0","eslint-config-kinvey-platform":"github:kinvey/eslint-kinvey-platform#0.1.3","eslint-plugin-import":"2.14.0","mocha":"5.2.0","nock":"10.0.3","proxyquire":"2.1.0","should":"13.2.3","sinon":"7.2.7","test-console":"1.1.0","uuid":"3.3.2"},"scripts":{"pretest":"npm run lint","lint":"eslint lib test *.js --color","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-npm-security":"npm audit --production --audit-level=high"},"gitHead":"9bf90f900de95f2b5a9b24a4887322a037859d56","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@4.0.1-rc1","_nodeVersion":"12.21.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-Nbw/n/cEbB0qqKhNgY/PT/zcn8lLKoQRbd8xQS4rvX/JzOmlnHlS05k+Y4mfeaH4TpOav8YWPlYVRfbWW17xGw==","shasum":"cf0906dbc1cf8ab58af034a1bd1e1d68994b49df","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-4.0.1-rc1.tgz","fileCount":53,"unpackedSize":694942,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfYRgCRA9TVsSAnZWagAADMQP/2jkIm/cD8w78R7QCiWh\nH63VludPE9jRd00KBj7S4GuD1tHiN+bGZRCWXn9zjAjRFpxTLO9Ha/XtCol/\nsTVVNHxYW/ZU9dFGPjUBFDj3LtZ8p7vcpdREIzFqwVInpZHystcZR4GFdr6t\n2OlYfY/4ziHyOACnOMG3e5t6ybp7FW3rWenWiE+6IR7qaFaiPCzaCr21kTKS\nhbYdEepGrpCntjRucHOOc4mob2J6L7lejVkyyJhBwasCbkLz2/KHRAsX7kGt\nMIJELdVsj9T2T7gxM4EXVAskVNCOj4e05+GusSjVYtxd05/IMU6ga9nmVHDh\nfLVXaUiV3/Z20lhslPcmSO8SrIYxougzIFeJvqHZDQNzVBSAKz4JD6wAu0+L\n8Bsk+8V461RCYxGC7N+7Et9GA680mJXFGDWMBRnR65WCqulGlX2CrpSYQN1J\nFp//ABvR2iaT2kjWr8qjN7FNaGoLflOeqkHTwwCEhVzvN7Vb4kN2IIWFkPLq\nXWf8FQyiDQ1n93BhWOVOG0Elc+0QKWUfgR+m9sMJTsSWichYmAbT1tgP6CBQ\nRHbPNQyI0HxtmsfAL+2dYdmLzHDGiaOqESZv4Pvn9r4No4nivSn6ZgdcMXPn\nHtXi7WPjAK4DmzA4iBo3N8bPQV6Ju8QrI8Ze2An+CfSLuGfwXb1UgAO8h8LW\n/aU3\r\n=mo9g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7WfsXEfFahS/8yBVrrctoHlRErdgPX6NIro66RFduIQIhANNlgg46xfA06ofO/iszLvpWoRL9FbP32iu8Lw4mA2m0"}]},"_npmUser":{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"},"directories":{},"maintainers":[{"name":"filipov","email":"alexander.filipov@telerik.com"},{"name":"kinvey","email":"opensource@kinvey.com"},{"name":"ventsislav-georgiev","email":"ventsislav.georgiev@live.com"},{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"},{"name":"ldokov","email":"dokov@progress.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_4.0.1-rc1_1618838623673_0.1460646301031736"},"_hasShrinkwrap":false},"4.0.1":{"name":"kinvey-flex-sdk","version":"4.0.1","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"async":"3.1.0","bson":"4.3.0","kinvey-code-task-runner":"2.4.0","kinvey-datalink-errors":"0.3.2","moment":"2.22.2","request":"2.88.0","sift":"3.2.6"},"devDependencies":{"eslint":"5.9.0","eslint-config-kinvey-platform":"github:kinvey/eslint-kinvey-platform#0.1.3","eslint-plugin-import":"2.14.0","mocha":"5.2.0","nock":"10.0.3","proxyquire":"2.1.0","should":"13.2.3","sinon":"7.2.7","test-console":"1.1.0","uuid":"3.3.2"},"scripts":{"pretest":"npm run lint","lint":"eslint lib test *.js --color","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-npm-security":"npm audit --production --audit-level=high"},"gitHead":"07fda0cacf9361cf2b6a70b4a74b18d8070d0fa0","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@4.0.1","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-C/eXyuS2fZK1F9/Q46G+UYAIBZ9djK6Ttu7K2nNDXSBHgmLzXUYiwJlazOF8yWzUUmufof+qj3uelMsqP1/78Q==","shasum":"a716428e0ea73ea7371df20949c84ba5ec882320","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-4.0.1.tgz","fileCount":53,"unpackedSize":685405,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgo3RnCRA9TVsSAnZWagAAIHoP/2Keru4ZJZOTG7wXTJBj\nUZmDpxy44eetTOtcfaq3zm+NxH4t+GXRn7RrLQFvlydQxy6eR6JrXd4BLud3\nRv0AZB2pVzn0t3A2U7P+arBa6W0DYWL7YiyJCKZMpRsQ+5jlZb9PQc0oFDxa\nLAzG+nq0YZd3/OmNawNeB9PAwx6cSqdTb6Pe2RjcoOcQDzMG57HqkAkWinpM\nN5JUf5Wqr4y2JComUiKvyuY4yr9uNOIl7HEOJEbEDSLlc9ESKXb8To7MlE6j\nc/crqLvQCXHGHKcoAyyjjwZ3ztjTW7Ue7zTiHFEqNiaUe+7KdUnvxQ4GQBgM\nU62U0dTVS0lVqsuTpyT90H3z2dP98mpoGcw4dxHwNF8uWXvlbWosQvr8afRk\npS1Yad1dA7m4wpbvB9D3Q12MEuJj9SSFtL5dzuVGZzi69UsF0+8qHX4ZbIwV\nkCCuA6cM5iL9j8SyDCu/eIP4AjhRRYEqLyvdnKNrWcPVS9dlYEbVt6m9eMyA\nkiiESwJvTlB3vfVvr9k1RCP6nD6w7j25DljcvYzBXguUQ+dTsOrLFrM66tw9\nOaqoHg83gBfxu4cwSaaDEdHHyn/XsLmUmj0d1PszAMEV4L5B9jyFPU6W35RH\nVB1sXqHKDNyXUpQ/sb0BcCxZociBla93YFxlGPcbuu1v0zep7b1k5g3IaNKh\nBr7h\r\n=6IX6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqAlH0ZyDVJqW0mR3BL/HQHBQRWvTv5PXwb3hHzvrxJgIhAJ/TCGYmelKRuTQmIq4D46Ij3Uk6NyB0LQox2Vr7Wkj6"}]},"_npmUser":{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"},"directories":{},"maintainers":[{"name":"filipov","email":"alexander.filipov@telerik.com"},{"name":"kinvey","email":"opensource@kinvey.com"},{"name":"ventsislav-georgiev","email":"ventsislav.georgiev@live.com"},{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"},{"name":"ldokov","email":"dokov@progress.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_4.0.1_1621324902611_0.45291835042663187"},"_hasShrinkwrap":false},"4.1.0":{"name":"kinvey-flex-sdk","version":"4.1.0","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"async":"3.1.0","bson":"4.3.0","kinvey-code-task-runner":"2.5.0","kinvey-datalink-errors":"0.3.2","moment":"2.22.2","request":"2.88.0","sift":"3.2.6"},"devDependencies":{"@progresskinvey/eslint-config-kinvey-platform":"0.2.1","eslint":"5.9.0","eslint-config-kinvey-platform":"github:kinvey/eslint-kinvey-platform#0.1.3","eslint-plugin-import":"2.14.0","mocha":"5.2.0","nock":"10.0.3","proxyquire":"2.1.0","should":"13.2.3","sinon":"7.2.7","test-console":"1.1.0","uuid":"3.3.2"},"scripts":{"pretest":"npm run lint","lint":"eslint lib test *.js --color","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-npm-security":"npm audit --production --audit-level=high"},"gitHead":"e09ef950fd3bb1be09a587d37c5771eb88ee0376","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@4.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"},"dist":{"integrity":"sha512-B66qhgxBT5sRjGgK3JhVKYSzDH6x/55xEV1UHs3M6PtxNifa98e53UCdDejeAQaBZVTZ1wAswaLGHtddBkS8xQ==","shasum":"f418cfb5528b69e97bd9dffaa157c4c5df59ab3b","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-4.1.0.tgz","fileCount":53,"unpackedSize":688426,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvhrXCRA9TVsSAnZWagAA29IP/iLhontiy+GIxDlZ6GlH\n+fxO3aJsxyqmk6TiJe2piF/VATnpvpJgSd61+xEhGg8kiQWEBw+OuhjhTu9R\nYGxfk0PWSrUAP5ei+zI33l6QWLHgrXkPwq02q4btYMCoXNzOc+nOoMStjN2/\nj/H7tpB18kN8c1wePVykOIHRBnCc/DStMQo52vNsDS0y9mbx+5bYmXQXUPHK\n7gCG/+M3hFaA4bssZXTM32rjqbhBMcC8crsYplOkjzXNYfQDxMDLQUYo9aq7\n4JjQpjz9aAHbfaW3ZThOfYkyDLL4oBEuHAozUAU6qC5YQ3x6OjxRKD4oULlf\n3wQcBB4TQzImVMxnrtPpRMQwrvG3TL6SWDZzw3CEKCnKp00jTFf0LmALu0r/\n7HZsILvfl3DeLX7/g/iQtMNdZibVwdUjeDesPVd0KysdQpykqYANOmonlBOt\nv6nBTWO/UHXSja6Xee0D7iVk5FmKZ9zRzqwrq0xv6afn2hIJurcIAzA2Gtu2\nsN39daF78VgCp/uAF/ehUIFxAUMILDOkETKY6LvJOoX7yy5s6QcG0d59/CvK\nMIB6ZS8cNzIh9cbkpSBCjzZt7yToIQbgNFoqW665ZSe0dbfVmpwcp4R3djE0\nIrOZ4yhi46guJ7ZMICLz3bjYr05O47SOyDAqK7M3PkW4GTmGjimdL1Xv9x72\nTK5x\r\n=Fcrs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRS4/iODh8Y5Zf9v1KWQhGnu8jmBrYN2NbpM7Yz+VlfQIhAOJGNYK5xtTn/GomqYeQ9/ND/KsMOuM2Q0ouO9bl+Wv4"}]},"directories":{},"maintainers":[{"name":"filipov","email":"alexander.filipov@telerik.com"},{"name":"kinvey","email":"opensource@kinvey.com"},{"name":"ventsislav-georgiev","email":"ventsislav.georgiev@live.com"},{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"},{"name":"ldokov","email":"dokov@progress.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_4.1.0_1623071447373_0.5427855312743293"},"_hasShrinkwrap":false},"4.1.1-next.0":{"name":"kinvey-flex-sdk","version":"4.1.1-next.0","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"async":"3.1.0","bson":"4.3.0","kinvey-code-task-runner":"2.5.0","kinvey-datalink-errors":"0.3.2","moment":"2.22.2","request":"2.88.0","sift":"3.2.6"},"devDependencies":{"@progresskinvey/eslint-config-kinvey-platform":"0.2.1","eslint":"5.9.0","eslint-config-kinvey-platform":"github:kinvey/eslint-kinvey-platform#0.1.3","eslint-plugin-import":"2.14.0","mocha":"5.2.0","nock":"10.0.3","proxyquire":"2.1.0","should":"13.2.3","sinon":"7.2.7","test-console":"1.1.0","uuid":"3.3.2"},"scripts":{"pretest":"npm run lint","lint":"eslint lib test *.js --color","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-npm-security":"npm audit --production --audit-level=high"},"readme":"[![Build Status](https://travis-ci.org/Kinvey/flex-sdk.svg?branch=master)](https://travis-ci.org/Kinvey/flex-sdk)\n\n# Kinvey Flex SDK\n\nThis is the SDK for code execution of Flex Microservices. The module provides a framework for building Kinvey-backend services using FlexData, FlexFunctions, and FlexAuth.\n\n## Upgrading from 2.x to 3.x\n\nFlex-sdk 3.x contains several breaking changes as well as new features.  To upgrade your service from Flex-sdk 2.x to 3.x:\n\n* All email and push methods now return a promise.  It is now required that you either handle the promise, or pass a callback.\n* For all stores (e.g. dataStore, userStore, etc), the deprecated options `skipBl` and `useMasterSecret` have been removed and no longer function.  Use `useBl` and `useUserContext` instead.\n* All asynchonous modules (dataStore, groupStore, roleStore, endpointRunner, userStore, email, and push) now return a promise or accept a callback.\n* For more information on what's new, see the [Changelog](CHANGELOG.md).\n\n## [Official documentation](#docs)\n* [Kinvey FlexServices guide](http://devcenter.kinvey.com/nodejs/guides/flex-services)\n* [Developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally)\n* [FlexService Runtime information (for deploying FlexServices to Kinvey for use in production)](http://devcenter.kinvey.com/nodejs/guides/flexservice-runtime)\n* [External Flex Services](http://devcenter.kinvey.com/nodejs/guides/external-flex)\n\n## [Installation and usage](#installation)\n\nTo install this project, add `kinvey-flex-sdk` to your `package.json` file and install it via `npm`\n```\nnpm install kinvey-flex-sdk\n```\n\nTo use this module, require it in your project as such:\n```\nconst sdk = require('kinvey-flex-sdk');\n```\n\n### [Working Flex SDK service examples](#samples)\nThis section contains standalone sample microservices for FlexData, FlexFunctions, and FlexAuth frameworks. Note that all three can be combined into one service and are separated for example purposes.\n\n#### [Flex Service initialization Options](#init)\nWhen [developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally), you can specify a host and port to listen on by passing an options object with an optional host and port.  If no host/port is specified, localhost:10001 will be used:\n\n```\nsdk.service({ host: 'somehost', port: 7777 }, (err, flex) => {\n  // code goes here\n});\n```\n\nYou can also specify a shared secret (i.e. a secret key) to be used by this service.  Any client that accesses this service *must* contain this shared secret, or requests will be rejected with a `401 Unauthorized` error.\n\n```\nsdk.service({ sharedSecret: '<some shared secret>'} }, (err, flex) => {\n  // code goes here\n});\n```\n\nOnce set here, you must set this shared secret in the Kinvey console when configuring your service for Kinvey requests to execute properly.  For testing locally, this shared secret can be passed in the `X-Auth-Key` http header.\n\n#### [FlexData](#flexdata)\n```\nconst sdk = require('kinvey-flex-sdk');\nsdk.service(function(err, flex) {\n  const data = flex.data;   // gets the FlexData object from the service\n\n  function getRecordById(request, complete, modules) {\n    let entityId = request.entityId;\n    let entity = null;\n\n    // Do some logic to get the entity id from the remote data store\n    // Assume that data is retrieved and stored in \"entity\" variable\n\n    // After entity is retrieved, check to see if it exists\n    if (typeof entity === 'undefined' || entity === null) {\n      return complete(\"The entity could not be found\").notFound().next();\n    } else  {\n      // return the entity\n      return complete().setBody(entity).ok().next();\n    }\n  }\n\n  // set the serviceObject\n  const widgets = data.serviceObject('widgets');\n\n  // wire up the event that we want to process\n  widgets.onGetById(getRecordById);\n};\n```\n\n#### [FlexFunctions](#flexfunctions)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexFunctions = flex.functions;   // gets the FlexFunctions object from the service\n\n  function getRedLineSchedule(context, complete, modules) {\n    request.get('http://developer.mbta.com/Data/Red.json', (err, response, body) => {\n      // if error, return an error\n      if (err) {\n        return complete().setBody(\"Could not complete request\").runtimeError().done();\n      }\n\n      // otherwise, return the results\n      return complete().setBody(body).ok().done();\n    });\n\n   }\n\n  // set the handler\n  flexFunctions.register('getRedLineData', getRedLineSchedule);\n};\n```\n\n#### [FlexAuth](#flexauth)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexAuth = flex.auth;   // gets the FlexAuth object from the service\n\n  function authenticate(context, complete, modules) {\n    // authenticate the user here\n    if (err) {\n      return complete().accessDenied(err).next();\n    }\n    return complete().setToken(token).ok().next();\n  }\n\n  // set the handler\n  flexFunctions.register('myAuth', authenticate);\n};\n```\n\n## Support\nPlease contact Kinvey for further information or questions\n","readmeFilename":"README.md","gitHead":"d7fefde3e137964566e8fdea298b0f610b457de9","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@4.1.1-next.0","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-vchyt+kXybMrduuWwguRAR4gTb8fIAp+qnNbDSWjrLXiximbGX6rgQcSgBJoOZrjmffeX8bwRb+4XwF8p6lOww==","shasum":"bceb9f59081927458468e33beba524936e0ecab2","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-4.1.1-next.0.tgz","fileCount":53,"unpackedSize":688570,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhoLjoCRA9TVsSAnZWagAAlhIP/RY/wvpacpy3C8vLPUOY\nXkmTYubfpCeK2XRarAXhlv9dPlzzphXhNb5ECiRMLoYCBApnyVciMTa5q3tT\nN1b0njiVRgpT+fg1m5SSKJosGvUq2ptiu0/AjPFWKW/9WIooJg36jijVoLyF\nY0WSIpoWYaO43iihNOtCIpfoBDLnZIlD+OFC99Tn5RLDAZcpbKUiVADOIYeI\nV4gqeNygfdF0n5JeCmpYluwVuzj/wIZ8Uk0RD0IS7XG+qxuxsLo8rPTxLhyM\nV5/d4bx9WiJjU/r5sVvkEfhLqVBgdOrkXT2wCl9FgqFQO9iOsiE45va9nTga\n+w3dhCU/aNuwGm95ftEMgU3zriQu+wLiJSyt3AmaLgND0b/PXiesuJ2tedVb\ntSUfbEfTA/RvffHmJ5C8NHs9MT874gZJaBCLieCF62YrRyLKCKla1w0ToLTh\nLYnj5ZIQOzIm9DaaQ6AlY2N9Gbqj67DSzt92oNKdF4up4lLdDOHB3YPPk8FQ\nkOSTKgSuhE7pb5BFaT5L4Ypfwr0q86w6pw9zmCMbMMRWmL60aIu0fgdeeL5N\n3oitIlUcpXy6LfN30o64PJrnNS8jX9oqUSdmRHkNidXxIE1GMO7gSZJZqcDh\nJN9CtB8FKcexr1cCaiFqFQanqILPQ+pWjhSUibzinBmd5ZOENzvMrviZRWp+\n8f17\r\n=1kji\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBZnaHN6so47wrOYCfvQ2/GPQs8Zdguf+V8fL3qOCgewIhAJn+7gIp9f0EMCLJfRLY8YNUGbTvE4wkvzw3Phsqc4E/"}]},"_npmUser":{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"},"directories":{},"maintainers":[{"name":"filipov","email":"alexander.filipov@telerik.com"},{"name":"kinvey","email":"opensource@kinvey.com"},{"name":"ventsislav-georgiev","email":"ventsislav.georgiev@live.com"},{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"},{"name":"ldokov","email":"dokov@progress.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_4.1.1-next.0_1637923048262_0.298602632592468"},"_hasShrinkwrap":false},"4.1.1":{"name":"kinvey-flex-sdk","version":"4.1.1","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"async":"3.1.0","bson":"4.3.0","kinvey-code-task-runner":"2.5.0","kinvey-datalink-errors":"0.3.2","moment":"2.22.2","request":"2.88.0","sift":"3.2.6"},"devDependencies":{"@progresskinvey/eslint-config-kinvey-platform":"0.2.1","eslint":"5.9.0","eslint-config-kinvey-platform":"github:kinvey/eslint-kinvey-platform#0.1.3","eslint-plugin-import":"2.14.0","mocha":"5.2.0","nock":"10.0.3","proxyquire":"2.1.0","should":"13.2.3","sinon":"7.2.7","test-console":"1.1.0","uuid":"3.3.2"},"scripts":{"pretest":"npm run lint","lint":"eslint lib test *.js --color","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-npm-security":"npm audit --production --audit-level=high"},"gitHead":"fd4bc0c0b9d0d88e7dec419d1825b498a2b75b5b","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@4.1.1","_nodeVersion":"12.21.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-nqX0mNuh7sHdR2abGo4SyO8FFZPGvLdl/IBr8GiwYRNOSSqyGVNAJ6bwi5beGiNghCnGkg2F1thaWRCm3Q76Tg==","shasum":"a40c979f8bb149dd2c725b8f4450957b6cf1e007","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-4.1.1.tgz","fileCount":53,"unpackedSize":688651,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpJlrCRA9TVsSAnZWagAAeekP/0+FOBAL4jRIOLRQtyDj\nIEyU7ynsmcVkszyG/ST785Md49OKInghGMfchKOjkkTBpXc6fo7AMjpIKRwm\nkErVBVxkgBQolXMa+5u0DNqwAVUQLvMzw6+8cCgONhi9J8GOP7npimJjxUox\nseTyqzoe1Tvtq/jTSLsfpVb8mZ5yDyCI8gQ9J2zh2hed/vW9ZfH/Xq3NbMKG\nPZyRMsbFqyAAZqfzj71pysIAZnPqf8JC/YJrDtVuj1HsYrPg8hMX5Pan0t1y\nVoGIQiCmcu/whkJLH7Tx2JqaQoAQWBum0+6d2tc+VCTpvAe7IGaRefgdVY4K\nmLm2yc6k5yHwCo29UHAKDjKK7YdM26FS3T1jfKZtLByE4/TdR480QDLC3d3n\n67ot4Gbah1wK7L4kdYNm4MtHzLKYRT1TjdRqUCzNe+IswQZoTZjhIIpfXRmj\nDjk2oCsi7LPwVwvdViaDZXAo9/HiOfeAcydruFJpvglXctGanD08EwXoETJS\nIDnuyUlXEzJpcgD5dc/XYQGOSKaqQ0sUk8kMcYNKVWeFe9MpIS1JcKfels1z\nTFDP8PFxHBXG+DBunRxiNHUSMsPdRl6w04c+wAe0odQsN5fTWY3HTdEfi83U\n0FC8xe5nMZqQ/E0/J3blk5b3wLFDrz6ArpMLpw6CSpUsKLBpFhOnFaJkXPFJ\nmFlA\r\n=Xoqw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICAbmIyq01PtqKcPE9r5Ejn8ZBwok1tyQbObdyvC83GFAiByAWg9P8LrtfuUeFfxsNhF+Lrk+Aqby5KayADJaI+jaQ=="}]},"_npmUser":{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"},"directories":{},"maintainers":[{"name":"filipov","email":"alexander.filipov@telerik.com"},{"name":"kinvey","email":"opensource@kinvey.com"},{"name":"ventsislav-georgiev","email":"ventsislav.georgiev@live.com"},{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"},{"name":"ldokov","email":"dokov@progress.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_4.1.1_1638177131044_0.8869012246134222"},"_hasShrinkwrap":false},"4.1.2-next.0":{"name":"kinvey-flex-sdk","version":"4.1.2-next.0","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"async":"3.2.3","bson":"4.3.0","kinvey-code-task-runner":"2.5.1","kinvey-datalink-errors":"0.3.2","moment":"2.29.3","request":"2.88.0","sift":"3.2.6"},"devDependencies":{"@progresskinvey/eslint-config-kinvey-platform":"0.2.1","eslint":"8.15.0","eslint-config-kinvey-platform":"github:kinvey/eslint-kinvey-platform#0.1.3","eslint-plugin-import":"2.14.0","mocha":"9.2.2","nock":"10.0.3","proxyquire":"2.1.0","should":"13.2.3","sinon":"7.2.7","test-console":"1.1.0","uuid":"3.3.2"},"scripts":{"pretest":"npm run lint","lint":"eslint lib test *.js --color","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-npm-security":"npm audit --production --audit-level=high"},"readme":"[![Build Status](https://travis-ci.org/Kinvey/flex-sdk.svg?branch=master)](https://travis-ci.org/Kinvey/flex-sdk)\n\n# Kinvey Flex SDK\n\nThis is the SDK for code execution of Flex Microservices. The module provides a framework for building Kinvey-backend services using FlexData, FlexFunctions, and FlexAuth.\n\n## Upgrading from 2.x to 3.x\n\nFlex-sdk 3.x contains several breaking changes as well as new features.  To upgrade your service from Flex-sdk 2.x to 3.x:\n\n* All email and push methods now return a promise.  It is now required that you either handle the promise, or pass a callback.\n* For all stores (e.g. dataStore, userStore, etc), the deprecated options `skipBl` and `useMasterSecret` have been removed and no longer function.  Use `useBl` and `useUserContext` instead.\n* All asynchonous modules (dataStore, groupStore, roleStore, endpointRunner, userStore, email, and push) now return a promise or accept a callback.\n* For more information on what's new, see the [Changelog](CHANGELOG.md).\n\n## [Official documentation](#docs)\n* [Kinvey FlexServices guide](http://devcenter.kinvey.com/nodejs/guides/flex-services)\n* [Developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally)\n* [FlexService Runtime information (for deploying FlexServices to Kinvey for use in production)](http://devcenter.kinvey.com/nodejs/guides/flexservice-runtime)\n* [External Flex Services](http://devcenter.kinvey.com/nodejs/guides/external-flex)\n\n## [Installation and usage](#installation)\n\nTo install this project, add `kinvey-flex-sdk` to your `package.json` file and install it via `npm`\n```\nnpm install kinvey-flex-sdk\n```\n\nTo use this module, require it in your project as such:\n```\nconst sdk = require('kinvey-flex-sdk');\n```\n\n### [Working Flex SDK service examples](#samples)\nThis section contains standalone sample microservices for FlexData, FlexFunctions, and FlexAuth frameworks. Note that all three can be combined into one service and are separated for example purposes.\n\n#### [Flex Service initialization Options](#init)\nWhen [developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally), you can specify a host and port to listen on by passing an options object with an optional host and port.  If no host/port is specified, localhost:10001 will be used:\n\n```\nsdk.service({ host: 'somehost', port: 7777 }, (err, flex) => {\n  // code goes here\n});\n```\n\nYou can also specify a shared secret (i.e. a secret key) to be used by this service.  Any client that accesses this service *must* contain this shared secret, or requests will be rejected with a `401 Unauthorized` error.\n\n```\nsdk.service({ sharedSecret: '<some shared secret>'} }, (err, flex) => {\n  // code goes here\n});\n```\n\nOnce set here, you must set this shared secret in the Kinvey console when configuring your service for Kinvey requests to execute properly.  For testing locally, this shared secret can be passed in the `X-Auth-Key` http header.\n\n#### [FlexData](#flexdata)\n```\nconst sdk = require('kinvey-flex-sdk');\nsdk.service(function(err, flex) {\n  const data = flex.data;   // gets the FlexData object from the service\n\n  function getRecordById(request, complete, modules) {\n    let entityId = request.entityId;\n    let entity = null;\n\n    // Do some logic to get the entity id from the remote data store\n    // Assume that data is retrieved and stored in \"entity\" variable\n\n    // After entity is retrieved, check to see if it exists\n    if (typeof entity === 'undefined' || entity === null) {\n      return complete(\"The entity could not be found\").notFound().next();\n    } else  {\n      // return the entity\n      return complete().setBody(entity).ok().next();\n    }\n  }\n\n  // set the serviceObject\n  const widgets = data.serviceObject('widgets');\n\n  // wire up the event that we want to process\n  widgets.onGetById(getRecordById);\n};\n```\n\n#### [FlexFunctions](#flexfunctions)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexFunctions = flex.functions;   // gets the FlexFunctions object from the service\n\n  function getRedLineSchedule(context, complete, modules) {\n    request.get('http://developer.mbta.com/Data/Red.json', (err, response, body) => {\n      // if error, return an error\n      if (err) {\n        return complete().setBody(\"Could not complete request\").runtimeError().done();\n      }\n\n      // otherwise, return the results\n      return complete().setBody(body).ok().done();\n    });\n\n   }\n\n  // set the handler\n  flexFunctions.register('getRedLineData', getRedLineSchedule);\n};\n```\n\n#### [FlexAuth](#flexauth)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexAuth = flex.auth;   // gets the FlexAuth object from the service\n\n  function authenticate(context, complete, modules) {\n    // authenticate the user here\n    if (err) {\n      return complete().accessDenied(err).next();\n    }\n    return complete().setToken(token).ok().next();\n  }\n\n  // set the handler\n  flexFunctions.register('myAuth', authenticate);\n};\n```\n\n## Support\nPlease contact Kinvey for further information or questions\n","readmeFilename":"README.md","gitHead":"24dd0c8d8b9fc01e79593d8eda1524a2545ec73b","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@4.1.2-next.0","_nodeVersion":"12.21.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-rwGhXtOlHx+P7Ru8v3O+f9taClNBmeDfFs+4axHdnD0G0LBIVIaX+fCXkQ8yF57Mr2EIV2dSKTGWbG79lspCPw==","shasum":"6b7abb0930edef7a570812afffc229d2a6f130e8","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-4.1.2-next.0.tgz","fileCount":53,"unpackedSize":688659,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQChgjdx3Xf8L9d0k7ne1t6NIk+U/6S1/Bvnr69BbyxCYwIhAIvVpiQuJBtSKu9QVs6KiT/3i/lil4FYE2ZP9OojYYYV"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihPzOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6WRAAorrBfzUO+JlH8UlLRInxlVawpNrC2S7P3JEeSS7Rsb/FGVi0\r\nucfmXNwuJZGzHrJSFcQdvhyVX2LrAretNAMwABa8uOK1BGo6npNFHgkNcbKq\r\nPcyfGg75QfDEZ5k6rvPzV7OoFrL8alkf0wjEzg7nM1wMVQdbbsJ8txTTCj2V\r\npfakuGQXy3uP1tcH2oAqEGWGe41qGHpAtnankZ0eR5rjQoWTFKPH2qlIH+tb\r\nArpzG7r9sEYLzPQDSHv5acEFcJNYoyM/FJUp9jKY6+gist2HiRZj6LDGt90C\r\nPNeWeLHwq3U4yVUevuODjCZp0FZbvc3BaMoyNoinv7P+0ENbUahVdfPYY1ST\r\nWjaFNAjKm9Bs7l2pw3TrAYX7pMqZOFIPDhZR3P1FXFtCnPw+e8conUFU976r\r\njNIwe9JNhu5hGcaL47yyq2HV0UZbi1MHuBN0frs5nAV+jm/wuhYuIqluWEYZ\r\nRXX5OuXQS0077NWfUy0zCzEvDwsSH7HoPW4O+hNRtJET5ILn1bS6bG2SMPqn\r\nOW14Z0ESd7Evz63bDcRhDE3rcIiSeZJGxY0woab2RtMICDsRttDLp23bMgRE\r\nG5I5LlOVHUXd9x3GM63NY25AEk4NYY9vwWvvuMGtgTgOhabDa+n6eCG0+BgO\r\nLo6PobLl2Mh6rQc0QIOnIBVOPeX2KU816Uo=\r\n=nTOw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"},"directories":{},"maintainers":[{"name":"kinvey","email":"opensource@kinvey.com"},{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_4.1.2-next.0_1652882637894_0.20087388140768825"},"_hasShrinkwrap":false},"4.1.2":{"name":"kinvey-flex-sdk","version":"4.1.2","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"async":"3.2.3","bson":"4.3.0","kinvey-code-task-runner":"2.5.1","kinvey-datalink-errors":"0.3.2","moment":"2.29.3","request":"2.88.0","sift":"3.2.6"},"devDependencies":{"@progresskinvey/eslint-config-kinvey-platform":"0.2.1","eslint":"8.15.0","eslint-config-kinvey-platform":"github:kinvey/eslint-kinvey-platform#0.1.3","eslint-plugin-import":"2.14.0","mocha":"9.2.2","nock":"10.0.3","proxyquire":"2.1.0","should":"13.2.3","sinon":"7.2.7","test-console":"1.1.0","uuid":"3.3.2"},"scripts":{"pretest":"npm run lint","lint":"eslint lib test *.js --color","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-npm-security":"npm audit --production --audit-level=high"},"gitHead":"b4be0ec94b8ba5dda9e61c837569830a3392ae38","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@4.1.2","_nodeVersion":"12.21.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-2jsL3nBfk1yKaosl3ZLC6krCoT7OHRIZAip35dN0tRMo1t088WhFilb8Obmxa/WRlswmPs82R+gWGUtwuo3UsQ==","shasum":"6cf8bc49791ab9ddcb01e61e2c3041a67cfd0a66","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-4.1.2.tgz","fileCount":53,"unpackedSize":688652,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBGpUMN2tv3OOGSMVw9Lz+86bYyIPncTmDb+AAUG3GSpAiEAjNHiCYy9PgL5SXHV4Tr3Y2diVKnjnaG2MRmouqQs4es="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihgPyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0PQ/+M/ZeyI7zAGbDLIDz35VapfiDnwwuSvqT19Zr49ZkxPNoTPUw\r\n+7yE/eSh/hJtjl15XF/fX3WrqX5UlPS2DmQEc4El33LHds7XQFHLRN1v67L3\r\nJt/qnu7Cv5g4VxjZflKx9N8AbxPGwqUtUCudVTR07472sdrHohZ0PXU5Med3\r\niYxObA/6j3akhr2ITCY6iOjMtoJUIIVf0kkI+//FMmYJWJuWhXQNsL9qKDh8\r\noyf+a0+oJ2jKx4V4vFnzZUhUNRStN1rOVLoZ091dBNv5XEjUu8ClvwTzoaty\r\n1fXw7oiJtu0t1k9jYBWZzFs3u3Iw7/IsDHEL/sc3IbJiWWoJM6WKbtTw52Pk\r\n28yYs6AmeLtDueh2+kEz/4zQaSWK0f45cGEGSyPRq8tZhUVs6ygVPEsDEiVX\r\nqiMp4qpwOcaY65//mVLGhsGHZQEV/Lb2v+gqXqxr8aVcyb/NXccGq1I7YyNP\r\nN+ezB4ynw8eVTVa1P9fCJASzVAjCJfHghQW+tYvBvqlOzuhE0tdvk25CoSwz\r\nwYzS5BRhK+wRKCp0hSvPJRQuzyQN636RM6mLVwxwUIrLaTvAMVCHIOUbvXe3\r\nDBspzAB8wtRKbUo8IvX5vl1Rb+OaMQTE3ZtoDQYPiXWBgrbHOsQF2/W830U8\r\nI6/Zmft2fjz9ZBAL0/f6ChWrM+Nx5CfoxqE=\r\n=Cc5h\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"},"directories":{},"maintainers":[{"name":"kinvey","email":"opensource@kinvey.com"},{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_4.1.2_1652950002495_0.5664906219117798"},"_hasShrinkwrap":false},"4.1.3":{"name":"kinvey-flex-sdk","version":"4.1.3","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"async":"3.2.3","bson":"4.3.0","kinvey-code-task-runner":"2.5.1","kinvey-datalink-errors":"0.3.2","moment":"2.29.4","request":"2.88.0","sift":"3.2.6"},"devDependencies":{"@progresskinvey/eslint-config-kinvey-platform":"0.2.1","eslint":"8.15.0","eslint-config-kinvey-platform":"github:kinvey/eslint-kinvey-platform#0.1.3","eslint-plugin-import":"2.14.0","mocha":"9.2.2","nock":"10.0.3","proxyquire":"2.1.0","should":"13.2.3","sinon":"7.2.7","test-console":"1.1.0","uuid":"3.3.2"},"scripts":{"pretest":"npm run lint","lint":"eslint lib test *.js --color","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-npm-security":"npm audit --production --audit-level=high"},"gitHead":"a7b9cea4a06583d46756fda63447f8cc9e806aea","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@4.1.3","_nodeVersion":"12.22.12","_npmVersion":"6.14.17","dist":{"integrity":"sha512-4NAVXDLcb50UuKBkElBDkgmbLsoIXTeKDzY0vY65DCBszMMg07pOOXmt5g/4TMxJz5xg1FT2yaedMhPnTrFLCg==","shasum":"46bc5ecd47e8b89f3a67fc6d1a65daf43c4d115b","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-4.1.3.tgz","fileCount":56,"unpackedSize":690478,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsbPWdLPWklZs+wAPwp5S/6v29mIdDH39r9d+QNbKJjgIhAI72UM2tYEattqPPourSaQfiCVKsgXTn9bXqhwTm0Hsp"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1WedACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrdAg/+ICIlEhAMrlLWYTLxhU+32opinbJJ3A61ze3gGkI/9Blv12HC\r\nj3fCDYsRQ5cTptSGURNZ6fCiR8I4mhL3DrYHCzwMLMuiq0oQ2C9MlARqqBRf\r\n542Lec3Zv0m7gZt8tD3QS29JyQ7WL/35kWPz1mAO/b83l04gLkT3kzQgq50d\r\n5eznDRDErVb0n8rC/co4x1Iioa7+DLccw9pERpRDe96gQL9qx/q3yJDc8ANd\r\nJQ61+6YhYszRE/xsowdGJOP6OcpwhYP3jlmuKvDBkWljqSHO+xz8z9Rhe/UB\r\nEbKfjA4NgVL2nAuoaCHq78h+WME8jRdsVXvYjENPLE6AUZNYP+1eDbXG0Oo+\r\nKUeGacVC2OWYD422DYrmNsLJ8yPbFu+fv4yTxTJV0KjdXZl0fSt7qqfVHY4M\r\nrqUuouKJnJayoFRjNfbqF5a+af1sDJA3Fbn0c3rd+iYUdZp8LwpvA3QesW2/\r\nqXroBWncMr303KRpMmLnOAl4ryFxsBbAZZDJzvrjuSfyfgfHTdlKp2T7fPRm\r\nxrSmRo9wSf5eVTGVIPDS6WQKqkCQWEdgorTz0KfCqicC6PaF0wFvbpqTHTYp\r\nDZDY7lj0uzn2FUrEBdzVxukPZljmirBEBOob6DNS6KVQ/D5UoTYojnnEguRv\r\nI6Aa04AwAzjalC/UCq6+on6f4oOjDlUXqSs=\r\n=EytZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"},"directories":{},"maintainers":[{"name":"kinvey","email":"opensource@kinvey.com"},{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_4.1.3_1658152861639_0.004713856822108564"},"_hasShrinkwrap":false},"4.1.4-next.0":{"name":"kinvey-flex-sdk","version":"4.1.4-next.0","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"async":"3.2.3","bson":"4.3.0","kinvey-code-task-runner":"2.6.0-next.0","kinvey-datalink-errors":"0.3.2","moment":"2.29.4","request":"2.88.0","sift":"3.2.6"},"devDependencies":{"@progresskinvey/eslint-config-kinvey-platform":"0.2.1","eslint":"8.15.0","eslint-config-kinvey-platform":"github:kinvey/eslint-kinvey-platform#0.1.3","eslint-plugin-import":"2.14.0","mocha":"9.2.2","nock":"10.0.3","proxyquire":"2.1.0","should":"13.2.3","sinon":"7.2.7","test-console":"1.1.0","uuid":"3.3.2"},"scripts":{"pretest":"npm run lint","lint":"eslint lib test *.js --color","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-npm-security":"npm audit --production --audit-level=high"},"readme":"[![Build Status](https://travis-ci.org/Kinvey/flex-sdk.svg?branch=master)](https://travis-ci.org/Kinvey/flex-sdk)\n\n# Kinvey Flex SDK\n\nThis is the SDK for code execution of Flex Microservices. The module provides a framework for building Kinvey-backend services using FlexData, FlexFunctions, and FlexAuth.\n\n## Upgrading from 2.x to 3.x\n\nFlex-sdk 3.x contains several breaking changes as well as new features.  To upgrade your service from Flex-sdk 2.x to 3.x:\n\n* All email and push methods now return a promise.  It is now required that you either handle the promise, or pass a callback.\n* For all stores (e.g. dataStore, userStore, etc), the deprecated options `skipBl` and `useMasterSecret` have been removed and no longer function.  Use `useBl` and `useUserContext` instead.\n* All asynchonous modules (dataStore, groupStore, roleStore, endpointRunner, userStore, email, and push) now return a promise or accept a callback.\n* For more information on what's new, see the [Changelog](CHANGELOG.md).\n\n## [Official documentation](#docs)\n* [Kinvey FlexServices guide](http://devcenter.kinvey.com/nodejs/guides/flex-services)\n* [Developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally)\n* [FlexService Runtime information (for deploying FlexServices to Kinvey for use in production)](http://devcenter.kinvey.com/nodejs/guides/flexservice-runtime)\n* [External Flex Services](http://devcenter.kinvey.com/nodejs/guides/external-flex)\n\n## [Installation and usage](#installation)\n\nTo install this project, add `kinvey-flex-sdk` to your `package.json` file and install it via `npm`\n```\nnpm install kinvey-flex-sdk\n```\n\nTo use this module, require it in your project as such:\n```\nconst sdk = require('kinvey-flex-sdk');\n```\n\n### [Working Flex SDK service examples](#samples)\nThis section contains standalone sample microservices for FlexData, FlexFunctions, and FlexAuth frameworks. Note that all three can be combined into one service and are separated for example purposes.\n\n#### [Flex Service initialization Options](#init)\nWhen [developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally), you can specify a host and port to listen on by passing an options object with an optional host and port.  If no host/port is specified, localhost:10001 will be used:\n\n```\nsdk.service({ host: 'somehost', port: 7777 }, (err, flex) => {\n  // code goes here\n});\n```\n\nYou can also specify a shared secret (i.e. a secret key) to be used by this service.  Any client that accesses this service *must* contain this shared secret, or requests will be rejected with a `401 Unauthorized` error.\n\n```\nsdk.service({ sharedSecret: '<some shared secret>'} }, (err, flex) => {\n  // code goes here\n});\n```\n\nOnce set here, you must set this shared secret in the Kinvey console when configuring your service for Kinvey requests to execute properly.  For testing locally, this shared secret can be passed in the `X-Auth-Key` http header.\n\n#### [FlexData](#flexdata)\n```\nconst sdk = require('kinvey-flex-sdk');\nsdk.service(function(err, flex) {\n  const data = flex.data;   // gets the FlexData object from the service\n\n  function getRecordById(request, complete, modules) {\n    let entityId = request.entityId;\n    let entity = null;\n\n    // Do some logic to get the entity id from the remote data store\n    // Assume that data is retrieved and stored in \"entity\" variable\n\n    // After entity is retrieved, check to see if it exists\n    if (typeof entity === 'undefined' || entity === null) {\n      return complete(\"The entity could not be found\").notFound().next();\n    } else  {\n      // return the entity\n      return complete().setBody(entity).ok().next();\n    }\n  }\n\n  // set the serviceObject\n  const widgets = data.serviceObject('widgets');\n\n  // wire up the event that we want to process\n  widgets.onGetById(getRecordById);\n};\n```\n\n#### [FlexFunctions](#flexfunctions)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexFunctions = flex.functions;   // gets the FlexFunctions object from the service\n\n  function getRedLineSchedule(context, complete, modules) {\n    request.get('http://developer.mbta.com/Data/Red.json', (err, response, body) => {\n      // if error, return an error\n      if (err) {\n        return complete().setBody(\"Could not complete request\").runtimeError().done();\n      }\n\n      // otherwise, return the results\n      return complete().setBody(body).ok().done();\n    });\n\n   }\n\n  // set the handler\n  flexFunctions.register('getRedLineData', getRedLineSchedule);\n};\n```\n\n#### [FlexAuth](#flexauth)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexAuth = flex.auth;   // gets the FlexAuth object from the service\n\n  function authenticate(context, complete, modules) {\n    // authenticate the user here\n    if (err) {\n      return complete().accessDenied(err).next();\n    }\n    return complete().setToken(token).ok().next();\n  }\n\n  // set the handler\n  flexFunctions.register('myAuth', authenticate);\n};\n```\n\n## Support\nPlease contact Kinvey for further information or questions\n","readmeFilename":"README.md","gitHead":"906230c924c1cc107bdf0b9540d3a8fac486d942","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@4.1.4-next.0","_nodeVersion":"12.22.12","_npmVersion":"6.14.17","dist":{"integrity":"sha512-ZjBQa7bUAfZYpvRo7LfOuJ8Q65+clpSZnqVH1yW93A4ZyBVr5PAh8tz/NCEXLy/O3fYoYLFzPg8RhH/gxQm8Ow==","shasum":"590d8d9a396f18117eeda5390a9c73125b847b34","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-4.1.4-next.0.tgz","fileCount":56,"unpackedSize":690492,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICiJi4r9XfGtNyIQDhFzVjb7ssqMcqjIjvEEJdYIxiB4AiEA/2qHV1IJPsgZwRvP8zEmVDUj6OfcPGb1x2i/xLLNGpc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9jyqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq8CA/8Dh2oi0mTYrzj3WJqAl1ER97y82ATjc/rUdRvQrZIRrZLTMlq\r\nb65o/A1D+dydTktCA6A6Ke539rMbMkDtogpcVgpPeFp/tn2vs7dyWOoIefV7\r\nmFwnjt8VJHuYZ7sW5hDmz5J16lR6VJQ8I/WvkBCHAUwCtDnFkChpblJ8sZOp\r\nFQBz6kHcsIDrMPSukcFbSLBy6c6SiJR/Hr7or/XB3eFDd0QYZr3TwBc4ATQe\r\nFVfvh0/1zQtX0MB/Kc25oA/I3eyZ+lz4QMcezmzswzxDJ2La4PLIsOre+0fJ\r\nItlG8ZfeTSb6j7me6tewPK2q+7JtbcuGYynNJr27B5joMubfS4yF9M4I5btA\r\nAXQKKTZbg572frugEgwZYdCvKqNKT2W1W3coqSmBo8oBKJ7jWW/zD0k+TLA7\r\nkiQbQDixdKq1O1u/6knABWpd76Yy+TV+laCBmbnsWOQkXF/X4f3d+wHCmHWy\r\n8mKdqKOFFw+QJQ53QgALrzoBXzQGE1LiceX9k69/Ma6PDRN3luPjgrA/kvgJ\r\ndnm0RobbwPk1J8e5j4jBcga+UYMbVrzpilzkgkTczOSghKiAWvWpBIkezF5g\r\nBKRHG0eex+uuOI5h56/7G8ctLxC0pGcNa48l3At8hHo901Z/RiuOuH9PciWO\r\n/86iFsziK3QhaFAtoN+JNjnrYMutMaWCe+c=\r\n=sYFa\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"},"directories":{},"maintainers":[{"name":"kinvey","email":"opensource@kinvey.com"},{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_4.1.4-next.0_1677081770315_0.5789746624493461"},"_hasShrinkwrap":false},"4.1.4":{"name":"kinvey-flex-sdk","version":"4.1.4","description":"SDK for creating Kinvey Flex Services","engines":{"node":"= 6.x.x"},"author":{"name":"Kinvey","email":"support@kinvey.com"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"license":"Apache-2.0","dependencies":{"async":"3.2.3","bson":"4.3.0","kinvey-code-task-runner":"2.5.2","kinvey-datalink-errors":"0.3.2","moment":"2.29.4","request":"2.88.0","sift":"3.2.6"},"devDependencies":{"@progresskinvey/eslint-config-kinvey-platform":"0.2.1","eslint":"8.15.0","eslint-config-kinvey-platform":"github:kinvey/eslint-kinvey-platform#0.1.3","eslint-plugin-import":"2.14.0","mocha":"9.2.2","nock":"10.0.3","proxyquire":"2.1.0","should":"13.2.3","sinon":"7.2.7","test-console":"1.1.0","uuid":"3.3.2"},"scripts":{"pretest":"npm run lint","lint":"eslint lib test *.js --color","test":"npm run test-unit && npm run test-integration","test-unit":"mocha test/unit/*/*","test-integration":"echo \"No integration tests available for the moment\"","test-npm-security":"npm audit --production --audit-level=high"},"gitHead":"5e62448fec6e4b740799dd8b0dc491cff48c0e15","bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","_id":"kinvey-flex-sdk@4.1.4","_nodeVersion":"12.22.12","_npmVersion":"6.14.17","dist":{"integrity":"sha512-ypca0yFhkNp/6/s1iXuGndRJgCTAfI4j865MfL4sF/r4NQbU7zbv3aH+28yiE17cNCk4DnPwNCJyNPvIvd5eJA==","shasum":"9367740c7f6b932c502c8277551cb40f13e9b442","tarball":"https://registry.npmjs.org/kinvey-flex-sdk/-/kinvey-flex-sdk-4.1.4.tgz","fileCount":56,"unpackedSize":690513,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHPcjPIvNeCRU7NAngeJaBV64ck2t8Ub++hp9kW59TyiAiBIl/h2CY9MUaZzPc1Tjz2kegJFs3AxkB0QPu34DmFbHA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9yy9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpE+g/7BeiPPFIn8QVuHZgZrHGI0Q3NfNQYXU6xP7ZqTugvPk65TAx6\r\nzm50fK13unUWtFMIj2/ZkHZczT+e1BZrpwLVFKyHARkNgLmb7dE83vVad9Pf\r\nnfB/vh0ofqKaezQAyO7seKrqF1PFMHXnyEp4uJBwOCnxVfmgJ7QbPfI30eUn\r\neWXkc9pnnhEtihbzGtLbVu0e8zNzOzQmYO2Sr8mvsKniJLg3MTjcNrlGvgji\r\no508qT2eRidyHOYppd7aXoGeIsY1mB8HzN/8fyITeHijnGxEDMDwzj2nxIif\r\nITS3zdxozOQ++kdPPzw8KAwrtZitFLMdK/N0RiY2/culMgqB1I48QLWNxz6v\r\nzQAkzwMi3k7kgRGp/lnpEPmepilEfniU4kVGMju1V75Ahj6ey16kqqhsGaUn\r\nPUjq+Cj2N69px8g0Kh8Mv3waRNNVT+W7Udba5CTSszYuZBulbo7clurY3lSn\r\nGJmsKt0SDjQry1PtsqfxXZQJuXHNd/MbxMEFpoS+DbAipw7dyJPMPzqKhl9V\r\nvVAfSkvI8fDS8i4XepGxAtRKB9f79waenW/12hVHx427UHAOMU1JfbBBkzr1\r\niWr2Zp34aEG7xVMjHVV3Pt9EhLwx/py9K9wYrbY4tPkpBJ1iXOPlqy4LwFID\r\n34q14DYT7zcSAs7fyHXgSQxzWC2TYOMrPM4=\r\n=BX5F\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"},"directories":{},"maintainers":[{"name":"kinvey","email":"opensource@kinvey.com"},{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/kinvey-flex-sdk_4.1.4_1677143229600_0.3370892526689926"},"_hasShrinkwrap":false}},"readme":"[![Build Status](https://travis-ci.org/Kinvey/flex-sdk.svg?branch=master)](https://travis-ci.org/Kinvey/flex-sdk)\n\n# Kinvey Flex SDK\n\nThis is the SDK for code execution of Flex Microservices. The module provides a framework for building Kinvey-backend services using FlexData, FlexFunctions, and FlexAuth.\n\n## Upgrading from 2.x to 3.x\n\nFlex-sdk 3.x contains several breaking changes as well as new features.  To upgrade your service from Flex-sdk 2.x to 3.x:\n\n* All email and push methods now return a promise.  It is now required that you either handle the promise, or pass a callback.\n* For all stores (e.g. dataStore, userStore, etc), the deprecated options `skipBl` and `useMasterSecret` have been removed and no longer function.  Use `useBl` and `useUserContext` instead.\n* All asynchonous modules (dataStore, groupStore, roleStore, endpointRunner, userStore, email, and push) now return a promise or accept a callback.\n* For more information on what's new, see the [Changelog](CHANGELOG.md).\n\n## [Official documentation](#docs)\n* [Kinvey FlexServices guide](http://devcenter.kinvey.com/nodejs/guides/flex-services)\n* [Developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally)\n* [FlexService Runtime information (for deploying FlexServices to Kinvey for use in production)](http://devcenter.kinvey.com/nodejs/guides/flexservice-runtime)\n* [External Flex Services](http://devcenter.kinvey.com/nodejs/guides/external-flex)\n\n## [Installation and usage](#installation)\n\nTo install this project, add `kinvey-flex-sdk` to your `package.json` file and install it via `npm`\n```\nnpm install kinvey-flex-sdk\n```\n\nTo use this module, require it in your project as such:\n```\nconst sdk = require('kinvey-flex-sdk');\n```\n\n### [Working Flex SDK service examples](#samples)\nThis section contains standalone sample microservices for FlexData, FlexFunctions, and FlexAuth frameworks. Note that all three can be combined into one service and are separated for example purposes.\n\n#### [Flex Service initialization Options](#init)\nWhen [developing and testing FlexServices locally](http://devcenter.kinvey.com/nodejs/guides/flex-services#runninglocally), you can specify a host and port to listen on by passing an options object with an optional host and port.  If no host/port is specified, localhost:10001 will be used:\n\n```\nsdk.service({ host: 'somehost', port: 7777 }, (err, flex) => {\n  // code goes here\n});\n```\n\nYou can also specify a shared secret (i.e. a secret key) to be used by this service.  Any client that accesses this service *must* contain this shared secret, or requests will be rejected with a `401 Unauthorized` error.\n\n```\nsdk.service({ sharedSecret: '<some shared secret>'} }, (err, flex) => {\n  // code goes here\n});\n```\n\nOnce set here, you must set this shared secret in the Kinvey console when configuring your service for Kinvey requests to execute properly.  For testing locally, this shared secret can be passed in the `X-Auth-Key` http header.\n\n#### [FlexData](#flexdata)\n```\nconst sdk = require('kinvey-flex-sdk');\nsdk.service(function(err, flex) {\n  const data = flex.data;   // gets the FlexData object from the service\n\n  function getRecordById(request, complete, modules) {\n    let entityId = request.entityId;\n    let entity = null;\n\n    // Do some logic to get the entity id from the remote data store\n    // Assume that data is retrieved and stored in \"entity\" variable\n\n    // After entity is retrieved, check to see if it exists\n    if (typeof entity === 'undefined' || entity === null) {\n      return complete(\"The entity could not be found\").notFound().next();\n    } else  {\n      // return the entity\n      return complete().setBody(entity).ok().next();\n    }\n  }\n\n  // set the serviceObject\n  const widgets = data.serviceObject('widgets');\n\n  // wire up the event that we want to process\n  widgets.onGetById(getRecordById);\n};\n```\n\n#### [FlexFunctions](#flexfunctions)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexFunctions = flex.functions;   // gets the FlexFunctions object from the service\n\n  function getRedLineSchedule(context, complete, modules) {\n    request.get('http://developer.mbta.com/Data/Red.json', (err, response, body) => {\n      // if error, return an error\n      if (err) {\n        return complete().setBody(\"Could not complete request\").runtimeError().done();\n      }\n\n      // otherwise, return the results\n      return complete().setBody(body).ok().done();\n    });\n\n   }\n\n  // set the handler\n  flexFunctions.register('getRedLineData', getRedLineSchedule);\n};\n```\n\n#### [FlexAuth](#flexauth)\n```\nconst sdk = require('kinvey-flex-sdk');\nconst request = require('request'); // assumes that the request module was added to package.json\nsdk.service(function(err, flex) {\n\n  const flexAuth = flex.auth;   // gets the FlexAuth object from the service\n\n  function authenticate(context, complete, modules) {\n    // authenticate the user here\n    if (err) {\n      return complete().accessDenied(err).next();\n    }\n    return complete().setToken(token).ok().next();\n  }\n\n  // set the handler\n  flexFunctions.register('myAuth', authenticate);\n};\n```\n\n## Support\nPlease contact Kinvey for further information or questions\n","maintainers":[{"name":"kinvey","email":"opensource@kinvey.com"},{"name":"tsakata1","email":"tsvetomir.nedyalkov@gmail.com"}],"time":{"modified":"2023-02-23T09:07:09.916Z","created":"2016-11-03T20:01:26.136Z","0.5.2":"2016-11-03T20:01:26.136Z","1.0.0-rc.1":"2016-11-03T20:07:55.167Z","1.0.0-rc.2":"2016-11-03T20:32:57.078Z","1.0.0":"2016-11-10T14:53:27.183Z","1.0.1":"2016-11-10T20:19:05.581Z","1.1.0":"2016-12-13T11:36:16.553Z","1.2.0":"2017-01-20T16:43:23.910Z","2.0.0-b.1":"2017-01-31T14:26:12.211Z","2.0.0-b.2":"2017-02-01T13:33:47.797Z","2.0.0-b.3":"2017-02-01T13:54:06.058Z","2.0.0-b.4":"2017-02-08T12:50:31.477Z","2.0.0-b.5":"2017-02-08T20:55:51.980Z","2.0.0-b.6":"2017-02-15T20:33:54.338Z","2.0.0-b.7":"2017-02-21T15:59:58.464Z","2.0.0-b.8":"2017-02-21T19:13:52.748Z","2.0.0-b.9":"2017-02-21T19:37:24.702Z","2.0.0-b.10":"2017-02-22T22:05:43.690Z","2.0.0":"2017-02-23T17:17:30.436Z","2.0.1-b.1":"2017-02-23T22:29:44.923Z","2.0.1":"2017-02-23T22:46:21.058Z","2.0.2":"2017-03-06T21:12:37.636Z","2.0.3":"2017-03-28T21:06:31.957Z","2.0.4":"2017-05-05T15:11:06.570Z","2.0.5":"2017-08-11T19:34:03.958Z","2.0.6":"2017-11-21T15:02:51.524Z","2.0.7":"2018-03-06T15:45:27.902Z","2.0.8":"2018-04-06T16:09:39.816Z","2.0.9":"2018-05-04T18:06:51.081Z","2.1.0":"2018-05-11T19:47:54.845Z","3.0.0-beta.1":"2018-05-18T18:46:39.360Z","3.0.0-beta.2":"2018-05-21T18:49:48.184Z","3.0.0":"2018-06-15T18:48:34.741Z","3.1.0":"2018-06-29T21:31:55.256Z","3.1.1":"2018-07-03T21:33:26.424Z","3.1.2-alpha.1":"2018-07-03T23:47:17.997Z","3.1.2-alpha.2":"2018-07-04T00:28:52.705Z","3.1.2":"2018-07-04T00:42:46.139Z","3.2.0":"2018-12-10T13:43:35.325Z","3.2.1":"2019-01-08T11:14:34.762Z","3.3.0-alpha.1":"2019-05-16T20:20:36.349Z","3.3.0-alpha.2":"2019-05-29T19:53:25.235Z","3.3.0":"2019-07-29T21:03:25.131Z","3.4.0":"2020-03-27T12:25:20.207Z","3.5.0":"2020-06-23T13:51:53.341Z","4.0.0":"2020-07-15T08:06:43.004Z","4.0.1-rc1":"2021-04-19T13:23:43.821Z","4.0.1":"2021-05-18T08:01:42.743Z","4.1.0":"2021-06-07T13:10:47.493Z","4.1.1-next.0":"2021-11-26T10:37:28.414Z","4.1.1":"2021-11-29T09:12:11.190Z","4.1.2-next.0":"2022-05-18T14:03:58.074Z","4.1.2":"2022-05-19T08:46:42.731Z","4.1.3":"2022-07-18T14:01:01.836Z","4.1.4-next.0":"2023-02-22T16:02:50.513Z","4.1.4":"2023-02-23T09:07:09.822Z"},"homepage":"https://github.com/Kinvey/flex-sdk#readme","repository":{"type":"git","url":"git+https://github.com/Kinvey/flex-sdk.git"},"contributors":[{"name":"Michael Salinger","email":"mjsalinger@kinvey.com"},{"name":"Sam Levin","email":"sam@kinvey.com"}],"author":{"name":"Kinvey","email":"support@kinvey.com"},"bugs":{"url":"https://github.com/Kinvey/flex-sdk/issues"},"license":"Apache-2.0","readmeFilename":"README.md"}