{"_id":"loopback-ds-calculated-mixin","_rev":"27-77ae124351e2e72d509010690c1e0382","name":"loopback-ds-calculated-mixin","description":"A mixin for the LoopBack framework that adds calculated properties to a model.","dist-tags":{"latest":"2.0.4"},"versions":{"1.0.0":{"name":"loopback-ds-calculated-mixin","version":"1.0.0","description":"A mixin for the LoopBack framework that adds calculated properties to a model.","keywords":["loopback","strongloop","mixin"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fullcube/loopback-ds-calculated-mixin.git"},"scripts":{"lint":"jscs index.js && jshint index.js","test":"mocha -R spec --timeout 10000 test.js","test:watch":"npm run test -- -w","pretest":"npm run lint"},"main":"index.js","dependencies":{"debug":"2.2.0","lodash":"3.10.0"},"devDependencies":{"bluebird":"2.9.34","chai":"3.2.0","jscs":"1.13.1","jshint":"2.8.0","loopback":"2.19.0","loopback-datasource-juggler":"2.36.0","loopback-testing":"1.2.0","mocha":"2.2.5","mocha-sinon":"1.1.4","sinon":"1.15.4","sinon-chai":"2.8.0"},"gitHead":"c1fb026e59921ddeafa039ddced4f5fc4f1ba612","bugs":{"url":"https://github.com/fullcube/loopback-ds-calculated-mixin/issues"},"homepage":"https://github.com/fullcube/loopback-ds-calculated-mixin#readme","_id":"loopback-ds-calculated-mixin@1.0.0","_shasum":"851ec72a45aff3f09d848a210bbe1cc96baadb55","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"beeman","email":"borggreve@gmail.com"},"dist":{"shasum":"851ec72a45aff3f09d848a210bbe1cc96baadb55","tarball":"https://registry.npmjs.org/loopback-ds-calculated-mixin/-/loopback-ds-calculated-mixin-1.0.0.tgz","integrity":"sha512-rt/y77yaVSKZ3PHzb/S8SZPOm11m7OrUoBHYzvsZ+6Fbu15l3gEDVjKpnMcEQGy8nQS9kofHCSEasODj3RfOBQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC9dZQunFv8BWRsHb44zYz3UfAp+U/rcK2gT0dq3zNpHAiEA6Ai9kL+FcNt8Y+PYJJAGptOdj4i2amiy/uYI710Iib0="}]},"maintainers":[{"name":"beeman","email":"borggreve@gmail.com"}]},"1.0.1":{"name":"loopback-ds-calculated-mixin","version":"1.0.1","description":"A mixin for the LoopBack framework that adds calculated properties to a model.","keywords":["loopback","strongloop","mixin"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fullcube/loopback-ds-calculated-mixin.git"},"scripts":{"lint":"jscs index.js && jshint index.js","test":"mocha -R spec --timeout 10000 test.js","test:watch":"npm run test -- -w","pretest":"npm run lint"},"main":"index.js","dependencies":{"debug":"^2.2.0","lodash":"^3.10.0"},"devDependencies":{"bluebird":"latest","chai":"latest","jscs":"latest","jshint":"latest","loopback":"^2.19.0","loopback-datasource-juggler":"^2.36.0","loopback-testing":"^1.2.0","mocha":"latest","mocha-sinon":"latest","sinon":"latest","sinon-chai":"latest"},"gitHead":"5779e15eca77414d94d589caed322d24182f9a5c","bugs":{"url":"https://github.com/fullcube/loopback-ds-calculated-mixin/issues"},"homepage":"https://github.com/fullcube/loopback-ds-calculated-mixin#readme","_id":"loopback-ds-calculated-mixin@1.0.1","_shasum":"b76e3d8789f72bb71f7372420b4ba1b1eabd8513","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.7","_npmUser":{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"},"dist":{"shasum":"b76e3d8789f72bb71f7372420b4ba1b1eabd8513","tarball":"https://registry.npmjs.org/loopback-ds-calculated-mixin/-/loopback-ds-calculated-mixin-1.0.1.tgz","integrity":"sha512-WtQVRzYZgYZciHv0UJgKtsx2mRnZXX0NyUxnaWHznVwMIO2Ia53zwP8c4GSGN1WzuMWtuOEIMIepJSOe7g1kmQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAI2fCj+uxm6LlyXya6QfFiSI+VDgqKdVSHISVOfalSdAiBY//HxgQJWnD4F+CFynBZEFU0jwsNKNBqZvXbet0WFkg=="}]},"maintainers":[{"name":"beeman","email":"borggreve@gmail.com"},{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"}]},"1.0.2":{"name":"loopback-ds-calculated-mixin","version":"1.0.2","description":"A mixin for the LoopBack framework that adds calculated properties to a model.","keywords":["loopback","strongloop","mixin"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fullcube/loopback-ds-calculated-mixin.git"},"scripts":{"lint":"jscs index.js && jshint index.js","test":"mocha -R spec --timeout 10000 test.js","test:watch":"npm run test -- -w","pretest":"npm run lint"},"main":"index.js","dependencies":{"debug":"^2.2.0","lodash":"^3.10.0"},"devDependencies":{"bluebird":"latest","chai":"latest","jscs":"latest","jshint":"latest","loopback":"^2.19.0","loopback-datasource-juggler":"^2.36.0","loopback-testing":"^1.2.0","mocha":"latest","mocha-sinon":"latest","sinon":"latest","sinon-chai":"latest"},"gitHead":"4112d6676550d057dc04c877195aeabbf32fd99c","bugs":{"url":"https://github.com/fullcube/loopback-ds-calculated-mixin/issues"},"homepage":"https://github.com/fullcube/loopback-ds-calculated-mixin#readme","_id":"loopback-ds-calculated-mixin@1.0.2","_shasum":"a086e901f05426ea5b4c75a5d607754dc4d0e0a0","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.7","_npmUser":{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"},"dist":{"shasum":"a086e901f05426ea5b4c75a5d607754dc4d0e0a0","tarball":"https://registry.npmjs.org/loopback-ds-calculated-mixin/-/loopback-ds-calculated-mixin-1.0.2.tgz","integrity":"sha512-gLHZpLDl89x7z/sl+nvcWSE61vQQQogZ6SIaDi/FoqTKauNS5+hgvTs0RAvpxvEix4oiaphWVr0QaABXH2jj6g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGyvTsxyVDIg8DEu5wQ/XSBlUh2jRw8JOzx/Uuc2pRGqAiEA5qC5EWYM08F4etlu+/CsSXDzCP2ZSmegxbR12A1YoA8="}]},"maintainers":[{"name":"beeman","email":"borggreve@gmail.com"},{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"}]},"1.0.3":{"name":"loopback-ds-calculated-mixin","version":"1.0.3","description":"A mixin for the LoopBack framework that adds calculated properties to a model.","keywords":["loopback","strongloop","mixin"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fullcube/loopback-ds-calculated-mixin.git"},"scripts":{"lint":"jscs index.js && jshint index.js","test":"mocha -R spec --timeout 10000 test.js","test:watch":"npm run test -- -w","pretest":"npm run lint"},"main":"index.js","dependencies":{"debug":"^2.2.0","lodash":"^3.10.0"},"devDependencies":{"bluebird":"latest","chai":"latest","jscs":"latest","jshint":"latest","loopback":"^2.19.0","loopback-datasource-juggler":"^2.36.0","loopback-testing":"^1.2.0","mocha":"latest","mocha-sinon":"latest","sinon":"latest","sinon-chai":"latest"},"gitHead":"35f6ad98e99758ef336eb9921754724568dacf70","bugs":{"url":"https://github.com/fullcube/loopback-ds-calculated-mixin/issues"},"homepage":"https://github.com/fullcube/loopback-ds-calculated-mixin#readme","_id":"loopback-ds-calculated-mixin@1.0.3","_shasum":"b1607d6aed49d0f778d88d35b538fbcc86435293","_from":".","_npmVersion":"3.3.10","_nodeVersion":"5.0.0","_npmUser":{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"},"dist":{"shasum":"b1607d6aed49d0f778d88d35b538fbcc86435293","tarball":"https://registry.npmjs.org/loopback-ds-calculated-mixin/-/loopback-ds-calculated-mixin-1.0.3.tgz","integrity":"sha512-CKTqhaaqktOklBXhjl46+ZMK5UE/vUUS8REXNWjONRJNkzVcTj1jcDUgQUv02120wfy/gkgzuAn4JNhZYQxH8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUYMPEpODlYmgyCHksBLFRN+nlvmOuo2zIL+iu3pB61gIhAOZpWoCJDBXmGxJ150TSW7HpM6kNwmX7xHm/Wv6YhYo1"}]},"maintainers":[{"name":"beeman","email":"borggreve@gmail.com"},{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"}]},"1.0.4":{"name":"loopback-ds-calculated-mixin","version":"1.0.4","description":"A mixin for the LoopBack framework that adds calculated properties to a model.","keywords":["loopback","strongloop","mixin"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fullcube/loopback-ds-calculated-mixin.git"},"scripts":{"lint":"jscs index.js && jshint index.js","test":"mocha -R spec --timeout 10000 test.js","test:watch":"npm run test -- -w","pretest":"npm run lint"},"main":"index.js","dependencies":{"debug":"^2.2.0","lodash":"^3.10.0"},"devDependencies":{"bluebird":"latest","chai":"latest","jscs":"latest","jshint":"latest","loopback":"^2.19.0","loopback-datasource-juggler":"^2.36.0","loopback-testing":"^1.2.0","mocha":"latest","mocha-sinon":"latest","sinon":"latest","sinon-chai":"latest"},"gitHead":"4adef31c07dae006c70da34734e6a5643cbcefee","bugs":{"url":"https://github.com/fullcube/loopback-ds-calculated-mixin/issues"},"homepage":"https://github.com/fullcube/loopback-ds-calculated-mixin#readme","_id":"loopback-ds-calculated-mixin@1.0.4","_shasum":"0e916657b4e0831eb603e60b986b5e4aa18657d3","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.8.0","_npmUser":{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"},"dist":{"shasum":"0e916657b4e0831eb603e60b986b5e4aa18657d3","tarball":"https://registry.npmjs.org/loopback-ds-calculated-mixin/-/loopback-ds-calculated-mixin-1.0.4.tgz","integrity":"sha512-ElXq5rnq2rg7FOgK1hl4uvdeRdNumBNcLyFadkqlFLsbcUGYG60OVNITC3sN3+TygzCtrjQNuHkS37h0kkc+/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEV0Y1kHAgAGyyauBQg6v3PbHNzOD/1Y8OxrsKf3idbWAiAN8n5dvwAdp1xIUjfnj7XuiaBDj0EU+iO8Q1mrMNDffw=="}]},"maintainers":[{"name":"beeman","email":"borggreve@gmail.com"},{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/loopback-ds-calculated-mixin-1.0.4.tgz_1458647904365_0.9677548606414348"}},"1.0.5":{"name":"loopback-ds-calculated-mixin","version":"1.0.5","description":"A mixin for the LoopBack framework that adds calculated properties to a model.","keywords":["loopback","strongloop","mixin"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fullcube/loopback-ds-calculated-mixin.git"},"scripts":{"lint":"jscs lib && jshint lib","test":"mocha -R spec --timeout 10000 test.js","test:watch":"npm run test -- -w","pretest":"npm run lint"},"main":"lib/index.js","dependencies":{"debug":"^2.2.0","depd":"^1.1.0","lodash":"^3.10.0"},"devDependencies":{"bluebird":"latest","chai":"latest","jscs":"latest","jshint":"latest","loopback":"^2.19.0","loopback-datasource-juggler":"^2.36.0","loopback-testing":"^1.2.0","mocha":"latest","mocha-sinon":"latest","sinon":"latest","sinon-chai":"latest"},"gitHead":"36523a33d7edb4f060dfe171d4301667e1acfd61","bugs":{"url":"https://github.com/fullcube/loopback-ds-calculated-mixin/issues"},"homepage":"https://github.com/fullcube/loopback-ds-calculated-mixin#readme","_id":"loopback-ds-calculated-mixin@1.0.5","_shasum":"7ca013fc2bed820a01f355bab805978ee9b2924d","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.8.0","_npmUser":{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"},"dist":{"shasum":"7ca013fc2bed820a01f355bab805978ee9b2924d","tarball":"https://registry.npmjs.org/loopback-ds-calculated-mixin/-/loopback-ds-calculated-mixin-1.0.5.tgz","integrity":"sha512-LN/11PBAzzTHOJdZYAetH4hMNx5ljDn+/o3XcICrKchizsWS6f6I24a6u9rTFl7cvwuhr574jr6bggjxRyFkoQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvZTGle4XSW5okehA+3g/kiqs3I9h8uMESephyGrEAVAIgFys7iPb5iHZCGwCvmzS0qZX7icXNaz+CgZcxM/WglC8="}]},"maintainers":[{"name":"beeman","email":"borggreve@gmail.com"},{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/loopback-ds-calculated-mixin-1.0.5.tgz_1461850570398_0.7075098475906998"}},"1.0.6":{"name":"loopback-ds-calculated-mixin","version":"1.0.6","description":"A mixin for the LoopBack framework that adds calculated properties to a model.","keywords":["loopback","strongloop","mixin"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fullcube/loopback-ds-calculated-mixin.git"},"scripts":{"lint":"jscs lib && jshint lib","test":"mocha -R spec --timeout 10000 test.js","test:watch":"npm run test -- -w","pretest":"npm run lint"},"main":"lib/index.js","dependencies":{"debug":"^2.2.0","depd":"^1.1.0","lodash":"^3.10.0"},"devDependencies":{"bluebird":"latest","chai":"latest","jscs":"latest","jshint":"latest","loopback":"^2.19.0","loopback-datasource-juggler":"^2.36.0","loopback-testing":"^1.2.0","mocha":"latest","mocha-sinon":"latest","sinon":"latest","sinon-chai":"latest"},"gitHead":"e340fb6acd1cdbcbe93bde5ece78679ca737321a","bugs":{"url":"https://github.com/fullcube/loopback-ds-calculated-mixin/issues"},"homepage":"https://github.com/fullcube/loopback-ds-calculated-mixin#readme","_id":"loopback-ds-calculated-mixin@1.0.6","_shasum":"a07137731b00e2e846b6b2792d790d92fb316bc4","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"},"dist":{"shasum":"a07137731b00e2e846b6b2792d790d92fb316bc4","tarball":"https://registry.npmjs.org/loopback-ds-calculated-mixin/-/loopback-ds-calculated-mixin-1.0.6.tgz","integrity":"sha512-TExEMzZHbwoe6RBwEX6OKRiINp2Kd/hqdgARLJDAB5HlBx4gVp/BcPdWWjy5LimIK0ddvKDMe8tx1EwDyCKnmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5DRjku0tbDorzxkAIhkVTepqLlSL5S5dzkprXxKEwGgIhAJS9+oVBV4opcza98pdsUqwDYjz9Va0jJIfIjOVospIm"}]},"maintainers":[{"name":"beeman","email":"borggreve@gmail.com"},{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/loopback-ds-calculated-mixin-1.0.6.tgz_1468528094480_0.18047611671499908"}},"1.1.0":{"name":"loopback-ds-calculated-mixin","version":"1.1.0","description":"A mixin for the LoopBack framework that adds calculated properties to a model.","keywords":["loopback","strongloop","mixin"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fullcube/loopback-ds-calculated-mixin.git"},"scripts":{"lint":"jscs lib && jshint lib","test":"mocha -R spec --timeout 10000 test.js","test:watch":"npm run test -- -w","pretest":"npm run lint"},"main":"lib/index.js","dependencies":{"debug":"^2.6.0","depd":"^1.1.0","lodash":"^4.17.4"},"devDependencies":{"bluebird":"latest","chai":"latest","chai-datetime":"^1.4.1","jscs":"latest","jshint":"latest","loopback":"^2.19.0","loopback-datasource-juggler":"^2.36.0","mocha":"latest","mocha-sinon":"latest","sinon":"latest","sinon-chai":"latest"},"gitHead":"0d27a83ddfcbcaef8830db84ef579382624560cb","bugs":{"url":"https://github.com/fullcube/loopback-ds-calculated-mixin/issues"},"homepage":"https://github.com/fullcube/loopback-ds-calculated-mixin#readme","_id":"loopback-ds-calculated-mixin@1.1.0","_shasum":"fb4ae0f1fa51aa052779eab51d45ba92476cd336","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.3.0","_npmUser":{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"},"dist":{"shasum":"fb4ae0f1fa51aa052779eab51d45ba92476cd336","tarball":"https://registry.npmjs.org/loopback-ds-calculated-mixin/-/loopback-ds-calculated-mixin-1.1.0.tgz","integrity":"sha512-KbA7vVQz+kp3keEJo5aH4ejP+YmxFx89yq+UCvEwwlcKHja0TrjIVl242zr8qo0/o5mKnEg0vWGeh5uiEsAI7g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBtcKBowDr2GE2YoW55thfqOK5/ZT3w9PHusDm5c82rQIgfKvdSSW48bzNRw9e8LwZkVsCkGas5viW6LVTEryxdMA="}]},"maintainers":[{"name":"beeman","email":"borggreve@gmail.com"},{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/loopback-ds-calculated-mixin-1.1.0.tgz_1486390336912_0.36047267774119973"}},"1.1.1":{"name":"loopback-ds-calculated-mixin","version":"1.1.1","description":"A mixin for the LoopBack framework that adds calculated properties to a model.","keywords":["loopback","strongloop","mixin"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fullcube/loopback-ds-calculated-mixin.git"},"scripts":{"lint":"jscs lib && jshint lib","test":"mocha -R spec --timeout 10000 test.js","test:watch":"npm run test -- -w","pretest":"npm run lint"},"main":"lib/index.js","dependencies":{"debug":"^2.6.0","depd":"^1.1.0","lodash":"^4.17.4"},"devDependencies":{"bluebird":"latest","chai":"latest","chai-datetime":"^1.4.1","jscs":"latest","jshint":"latest","loopback":"^2.19.0","loopback-datasource-juggler":"^2.36.0","mocha":"latest","mocha-sinon":"latest","sinon":"latest","sinon-chai":"latest"},"gitHead":"94548fbcc640fe59b7198df24fd64fbe0238b8a7","bugs":{"url":"https://github.com/fullcube/loopback-ds-calculated-mixin/issues"},"homepage":"https://github.com/fullcube/loopback-ds-calculated-mixin#readme","_id":"loopback-ds-calculated-mixin@1.1.1","_shasum":"0c630d319a452f416caa40b777c0f31d70724643","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.3.0","_npmUser":{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"},"dist":{"shasum":"0c630d319a452f416caa40b777c0f31d70724643","tarball":"https://registry.npmjs.org/loopback-ds-calculated-mixin/-/loopback-ds-calculated-mixin-1.1.1.tgz","integrity":"sha512-l31o762hytrepkQZQ4n962rfkXUNdyCKNPW/voSSHCoXQ2xyQkpQ24l4Yi4msHeL9b/zAMDRYP+3oOoVBJ2vXg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1Xr4HDhk+EXsg+G26xYt577DkLvRIKT34Vz63cuyQ4gIgAdAvL8hd5sZuLdyItMFsWQP7agZS+kT2j9bsbSxhdd8="}]},"maintainers":[{"name":"beeman","email":"borggreve@gmail.com"},{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/loopback-ds-calculated-mixin-1.1.1.tgz_1487161112200_0.28334568021818995"}},"1.1.2":{"name":"loopback-ds-calculated-mixin","version":"1.1.2","description":"A mixin for the LoopBack framework that adds calculated properties to a model.","keywords":["loopback","strongloop","mixin"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fullcube/loopback-ds-calculated-mixin.git"},"scripts":{"lint":"jscs lib && jshint lib","test":"mocha -R spec --timeout 10000 test.js","test:watch":"npm run test -- -w","pretest":"npm run lint"},"main":"lib/index.js","dependencies":{"debug":"^2.6.0","depd":"^1.1.0","lodash":"^4.17.4"},"devDependencies":{"bluebird":"latest","chai":"latest","chai-datetime":"^1.4.1","jscs":"latest","jshint":"latest","loopback":"^2.19.0","loopback-datasource-juggler":"^2.36.0","mocha":"latest","mocha-sinon":"latest","sinon":"latest","sinon-chai":"latest"},"gitHead":"ee4cdb5d172830d413c656ef0cfa2f9906f93b05","bugs":{"url":"https://github.com/fullcube/loopback-ds-calculated-mixin/issues"},"homepage":"https://github.com/fullcube/loopback-ds-calculated-mixin#readme","_id":"loopback-ds-calculated-mixin@1.1.2","_shasum":"a2067f4f10bea86410bf4a72dfb85db9c4acfa32","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.3.0","_npmUser":{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"},"dist":{"shasum":"a2067f4f10bea86410bf4a72dfb85db9c4acfa32","tarball":"https://registry.npmjs.org/loopback-ds-calculated-mixin/-/loopback-ds-calculated-mixin-1.1.2.tgz","integrity":"sha512-IgbPHkI6u5WDt2Apm/anriS7axx7Cg/k8kIiKnylvB/PoUW3Pqidtv6vFHgAd+JtCh90enO79zk58ePQrvherA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBBSPEd1xcm3KYqbAU8LZntMcrOHc7NYOtmYCvpV5S0iAiAhz9HaM1huvZ8F3Ek/ir5acsjoiiotSxDEqpnRxdT+2A=="}]},"maintainers":[{"name":"beeman","email":"borggreve@gmail.com"},{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/loopback-ds-calculated-mixin-1.1.2.tgz_1487172667233_0.4564355742186308"}},"1.1.3":{"name":"loopback-ds-calculated-mixin","version":"1.1.3","description":"A mixin for the LoopBack framework that adds calculated properties to a model.","keywords":["loopback","strongloop","mixin"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fullcube/loopback-ds-calculated-mixin.git"},"scripts":{"lint":"jscs lib && jshint lib","test":"mocha -R spec --timeout 10000 test.js","test:watch":"npm run test -- -w","pretest":"npm run lint"},"main":"lib/index.js","dependencies":{"debug":"^2.6.0","depd":"^1.1.0","lodash":"^4.17.4"},"devDependencies":{"bluebird":"latest","chai":"latest","chai-datetime":"^1.4.1","jscs":"latest","jshint":"latest","loopback":"^2.19.0","loopback-datasource-juggler":"^2.36.0","mocha":"latest","mocha-sinon":"latest","sinon":"latest","sinon-chai":"latest"},"gitHead":"c9eb72a4907c04699c2edde71f9fe32b3e28ccd8","bugs":{"url":"https://github.com/fullcube/loopback-ds-calculated-mixin/issues"},"homepage":"https://github.com/fullcube/loopback-ds-calculated-mixin#readme","_id":"loopback-ds-calculated-mixin@1.1.3","_shasum":"b67a5211a39ce73609491a5cb662232afd968bb4","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"},"dist":{"shasum":"b67a5211a39ce73609491a5cb662232afd968bb4","tarball":"https://registry.npmjs.org/loopback-ds-calculated-mixin/-/loopback-ds-calculated-mixin-1.1.3.tgz","integrity":"sha512-RPC05vSFqs1NZjHEqhKDoZaVBeFzqsDlJCr6ZR5viGGgnA85TSWgCUmAD0WJ4BqWCvFmsJaPIAO40WVtOWKvMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA4kvQjwLyHwgHvvcpUj+FYluQ3TcJy1zZsfm5nxGCEAAiBXK0OlGUzabzg/y4SFL/ZEJgRxXGwC7zbZmbgNPXI7Eg=="}]},"maintainers":[{"name":"beeman","email":"borggreve@gmail.com"},{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/loopback-ds-calculated-mixin-1.1.3.tgz_1487603390116_0.8080591848120093"}},"1.1.4":{"name":"loopback-ds-calculated-mixin","version":"1.1.4","description":"A mixin for the LoopBack framework that adds calculated properties to a model.","keywords":["loopback","strongloop","mixin"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fullcube/loopback-ds-calculated-mixin.git"},"scripts":{"lint":"jscs lib && jshint lib","test":"mocha -R spec --timeout 10000 test.js","test:watch":"npm run test -- -w","pretest":"npm run lint"},"main":"lib/index.js","dependencies":{"debug":"^2.6.0","depd":"^1.1.0","lodash":"^4.17.4"},"devDependencies":{"bluebird":"latest","chai":"latest","chai-datetime":"^1.4.1","jscs":"latest","jshint":"latest","loopback":"^2.19.0","loopback-datasource-juggler":"^2.36.0","mocha":"latest","mocha-sinon":"latest","sinon":"latest","sinon-chai":"latest"},"gitHead":"f4127de9ca8800735f2a91ae9e44d7c72cb96845","bugs":{"url":"https://github.com/fullcube/loopback-ds-calculated-mixin/issues"},"homepage":"https://github.com/fullcube/loopback-ds-calculated-mixin#readme","_id":"loopback-ds-calculated-mixin@1.1.4","_shasum":"f4216b09dfbfce1ad1d02d0b909b483dd2020907","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"},"dist":{"shasum":"f4216b09dfbfce1ad1d02d0b909b483dd2020907","tarball":"https://registry.npmjs.org/loopback-ds-calculated-mixin/-/loopback-ds-calculated-mixin-1.1.4.tgz","integrity":"sha512-gSxiq9LDVhgGkXE6azkrFX0UWOZOINpkh+tuVNSyr+YYpZ85I4kZSoIEcMUHjPjeCj6AvIYC8p2cSF7nB3k/WQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEffM+v2Ke3RA7XxhTRlFzQXUp8M8byG4TFvgb3Ial+rAiBsMdQ95IRwf25/e5qBQHngMLOuWnMK32dZ9XWiFhZYWg=="}]},"maintainers":[{"name":"beeman","email":"borggreve@gmail.com"},{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/loopback-ds-calculated-mixin-1.1.4.tgz_1487668935885_0.4734564428217709"}},"2.0.0":{"name":"loopback-ds-calculated-mixin","version":"2.0.0","description":"A mixin for the LoopBack framework that adds calculated properties to a model.","keywords":["loopback","strongloop","mixin"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fullcube/loopback-ds-calculated-mixin.git"},"scripts":{"lint":"eslint .","test":"NODE_ENV=test nyc --reporter=lcov --reporter=text --reporter=text-summary mocha test/*test.js","test:watch":"npm run test -- -w","pretest":"npm run lint","coverage":"nyc report --reporter=text-lcov | coveralls","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"main":"lib/index.js","dependencies":{"debug":"^2.6.4","depd":"^1.1.0","lodash":"^4.17.4"},"devDependencies":{"bluebird":"latest","chai":"latest","chai-datetime":"^1.4.1","condition-circle":"^1.5.0","coveralls":"^2.13.0","dirty-chai":"^1.2.2","eslint":"^2.11.1","eslint-config-fullcube":"^1.0.46","loopback":"^3.6.0","loopback-datasource-juggler":"^3.5.0","mocha":"latest","mocha-sinon":"latest","nyc":"^10.2.0","semantic-release":"^6.3.2","sinon":"latest","sinon-chai":"latest"},"release":{"verifyConditions":"condition-circle"},"gitHead":"d3cfd8a593f6eba2747c54b01180e63be357858a","bugs":{"url":"https://github.com/fullcube/loopback-ds-calculated-mixin/issues"},"homepage":"https://github.com/fullcube/loopback-ds-calculated-mixin#readme","_id":"loopback-ds-calculated-mixin@2.0.0","_shasum":"564e19e739ee33561557bf70731f1630f7b15a51","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"},"dist":{"shasum":"564e19e739ee33561557bf70731f1630f7b15a51","tarball":"https://registry.npmjs.org/loopback-ds-calculated-mixin/-/loopback-ds-calculated-mixin-2.0.0.tgz","integrity":"sha512-y8/Ak1jH6acHo+u9OcqanZD/JfdeYMoBNUaPc0Nw2CpYjEwo8rg+WmYJkY4cCdxZjlf8swmWZUHV08XOyWHSxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJzmo8EjeL47ES4HelQRkPIwZVf71v5yQFlUL9EYYkjgIhANCjxwsZzVO+9yKonxJUqNdbzSEaJGoHduL84ruEdG/z"}]},"maintainers":[{"name":"beeman","email":"borggreve@gmail.com"},{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/loopback-ds-calculated-mixin-2.0.0.tgz_1493279499119_0.7912714297417551"}},"2.0.1":{"name":"loopback-ds-calculated-mixin","version":"2.0.1","description":"A mixin for the LoopBack framework that adds calculated properties to a model.","keywords":["loopback","strongloop","mixin"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fullcube/loopback-ds-calculated-mixin.git"},"scripts":{"lint":"eslint .","test":"NODE_ENV=test nyc --reporter=lcov --reporter=text --reporter=text-summary mocha test/*test.js","test:watch":"npm run test -- -w","pretest":"npm run lint","coverage":"nyc report --reporter=text-lcov | coveralls","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"main":"lib/index.js","dependencies":{"debug":"^2.6.4","depd":"^1.1.0","lodash":"^4.17.4"},"devDependencies":{"@bubltechnology/customizable-commit-analyzer":"^1.0.2-0","bluebird":"latest","chai":"latest","chai-datetime":"^1.4.1","condition-circle":"^1.5.0","conventional-commit-types":"^2.1.0","coveralls":"^2.13.0","dirty-chai":"^1.2.2","eslint":"^2.11.1","eslint-config-fullcube":"^1.0.46","loopback":"^3.6.0","loopback-datasource-juggler":"^3.5.0","mocha":"latest","mocha-sinon":"latest","nyc":"^10.2.0","semantic-release":"^6.3.2","sinon":"latest","sinon-chai":"latest"},"config":{"commitTypeMap":{"feat":"minor","fix":"patch","docs":"patch","style":"patch","refactor":"patch","perf":"patch","test":"patch","build":"patch","ci":"patch","chore":"patch","revert":"patch"},"validate-commit-msg":{"types":"conventional-commit-types"}},"release":{"verifyConditions":"condition-circle","analyzeCommits":"@bubltechnology/customizable-commit-analyzer"},"gitHead":"95ffbfdf975c3ce29106bd5da439936c31fd3033","bugs":{"url":"https://github.com/fullcube/loopback-ds-calculated-mixin/issues"},"homepage":"https://github.com/fullcube/loopback-ds-calculated-mixin#readme","_id":"loopback-ds-calculated-mixin@2.0.1","_shasum":"1e02b355743866712b850605749c93dbf93c94c0","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"},"dist":{"shasum":"1e02b355743866712b850605749c93dbf93c94c0","tarball":"https://registry.npmjs.org/loopback-ds-calculated-mixin/-/loopback-ds-calculated-mixin-2.0.1.tgz","integrity":"sha512-vzSSINU9accq5fGfQ2edev0JJtYE/SPI2Crh1aVmQETqYfee1gGHSGzfH4vQnlJMJHFqXpmU+AGRcVsWf0fPNQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGtx4TMScwBnYCQV71tTiPinKEi3MsA+Q3jUQkcUAl8SAiAl/WsawAvm/8YaeK6L7NKkDHqGeV00A6ji34/KVFRXTg=="}]},"maintainers":[{"name":"beeman","email":"borggreve@gmail.com"},{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/loopback-ds-calculated-mixin-2.0.1.tgz_1493284410731_0.14068623236380517"}},"2.0.2":{"name":"loopback-ds-calculated-mixin","version":"2.0.2","description":"A mixin for the LoopBack framework that adds calculated properties to a model.","keywords":["loopback","strongloop","mixin"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fullcube/loopback-ds-calculated-mixin.git"},"scripts":{"lint":"eslint .","test":"NODE_ENV=test nyc --reporter=lcov --reporter=text --reporter=text-summary mocha test/*test.js","test:watch":"npm run test -- -w","pretest":"npm run lint","coverage":"nyc report --reporter=text-lcov | coveralls","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"main":"lib/index.js","dependencies":{"debug":"^2.6.4","depd":"^1.1.0","lodash":"^4.17.4"},"devDependencies":{"@bubltechnology/customizable-commit-analyzer":"^1.0.2-0","bluebird":"latest","chai":"latest","chai-datetime":"^1.4.1","condition-circle":"^1.5.0","conventional-commit-types":"^2.1.0","coveralls":"^2.13.0","dirty-chai":"^1.2.2","eslint":"^2.11.1","eslint-config-fullcube":"^1.0.46","loopback":"^3.6.0","loopback-datasource-juggler":"^3.5.0","mocha":"latest","mocha-sinon":"latest","nyc":"^10.2.0","semantic-release":"^6.3.2","sinon":"latest","sinon-chai":"latest"},"config":{"commitTypeMap":{"feat":"minor","fix":"patch","docs":"patch","style":"patch","refactor":"patch","perf":"patch","test":"patch","build":"patch","ci":"patch","chore":"patch","revert":"patch"},"validate-commit-msg":{"types":"conventional-commit-types"}},"release":{"verifyConditions":"condition-circle","analyzeCommits":"@bubltechnology/customizable-commit-analyzer"},"gitHead":"3dae04bd6ee5ec188be62c77478e8499ba1cd1f9","bugs":{"url":"https://github.com/fullcube/loopback-ds-calculated-mixin/issues"},"homepage":"https://github.com/fullcube/loopback-ds-calculated-mixin#readme","_id":"loopback-ds-calculated-mixin@2.0.2","_shasum":"5188d703320b74ccafa84916e9b2ae9cbfd5c32e","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"},"dist":{"shasum":"5188d703320b74ccafa84916e9b2ae9cbfd5c32e","tarball":"https://registry.npmjs.org/loopback-ds-calculated-mixin/-/loopback-ds-calculated-mixin-2.0.2.tgz","integrity":"sha512-dR6wjArDEP6wZb/yiCzlz6YFjk5C5aEUl8+FzqqJsUE8SZReHw+HNt+6sNka7VM7Kqa41BTAHoePS6UiGmbxSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIECh6bKxSPmYPndEskSHngYiUHl58UgNgd4mMJrPGwAoAiAGIxjs2scyHsjHgD4XQfPcJdxvN76ufY8J2DMP8t6ZRg=="}]},"maintainers":[{"name":"beeman","email":"borggreve@gmail.com"},{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/loopback-ds-calculated-mixin-2.0.2.tgz_1493301129400_0.07415296859107912"}},"2.0.3":{"name":"loopback-ds-calculated-mixin","version":"2.0.3","description":"A mixin for the LoopBack framework that adds calculated properties to a model.","keywords":["loopback","strongloop","mixin"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fullcube/loopback-ds-calculated-mixin.git"},"scripts":{"lint":"eslint .","test":"NODE_ENV=test nyc --reporter=lcov --reporter=text --reporter=text-summary mocha test/*test.js","test:watch":"npm run test -- -w","pretest":"npm run lint","coverage":"nyc report --reporter=text-lcov | coveralls","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"main":"lib/index.js","dependencies":{"debug":"^2.6.4","depd":"^1.1.0","lodash":"^4.17.4"},"devDependencies":{"@bubltechnology/customizable-commit-analyzer":"^1.0.2-0","bluebird":"latest","chai":"latest","chai-datetime":"^1.4.1","condition-circle":"^1.5.0","conventional-commit-types":"^2.1.0","coveralls":"^2.13.0","dirty-chai":"^1.2.2","eslint-config-fullcube":"^2.0.2","loopback":"^3.6.0","mocha":"latest","mocha-sinon":"latest","nyc":"^10.2.0","semantic-release":"^6.3.2","sinon":"latest","sinon-chai":"latest"},"config":{"commitTypeMap":{"feat":"minor","fix":"patch","docs":"patch","style":"patch","refactor":"patch","perf":"patch","test":"patch","build":"patch","ci":"patch","chore":"patch","revert":"patch"},"validate-commit-msg":{"types":"conventional-commit-types"}},"release":{"verifyConditions":"condition-circle","analyzeCommits":"@bubltechnology/customizable-commit-analyzer"},"gitHead":"915bbf5edc415495b4a5c4db402d29f702aac63e","bugs":{"url":"https://github.com/fullcube/loopback-ds-calculated-mixin/issues"},"homepage":"https://github.com/fullcube/loopback-ds-calculated-mixin#readme","_id":"loopback-ds-calculated-mixin@2.0.3","_shasum":"bf3b7c1cc7a46f176fca8d5b9bf1b9979817041f","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"},"dist":{"shasum":"bf3b7c1cc7a46f176fca8d5b9bf1b9979817041f","tarball":"https://registry.npmjs.org/loopback-ds-calculated-mixin/-/loopback-ds-calculated-mixin-2.0.3.tgz","integrity":"sha512-nYgStcsqaGRMVMULuGaYOsiuF5PAeoNRtMP73PSrs0rYqkuCuAJbYd3jEZ2mZ95eQaWyBJcfpiOP/RsbJkvn9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDi6ScEK2q1QQjJe56UU2pzSiq3LECgtS6Vwla/1rtp8AiB949DruYvHjYHraoE/cr9cZhmpHEYzv81NzN4/rjj5Wg=="}]},"maintainers":[{"name":"beeman","email":"borggreve@gmail.com"},{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/loopback-ds-calculated-mixin-2.0.3.tgz_1493895572683_0.25855469214729965"}},"2.0.4":{"name":"loopback-ds-calculated-mixin","version":"2.0.4","description":"A mixin for the LoopBack framework that adds calculated properties to a model.","keywords":["loopback","strongloop","mixin"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/fullcube/loopback-ds-calculated-mixin.git"},"scripts":{"lint":"eslint .","test":"NODE_ENV=test nyc --reporter=lcov --reporter=text --reporter=text-summary mocha test/*test.js","test:watch":"npm run test -- -w","pretest":"npm run lint","coverage":"nyc report --reporter=text-lcov | coveralls","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"main":"lib/index.js","dependencies":{"debug":"^2.6.4","depd":"^1.1.0","lodash":"^4.17.4"},"devDependencies":{"@bubltechnology/customizable-commit-analyzer":"^1.0.2-0","bluebird":"latest","chai":"latest","chai-datetime":"^1.4.1","condition-circle":"^1.5.0","conventional-commit-types":"^2.1.0","coveralls":"^2.13.0","dirty-chai":"^1.2.2","eslint-config-fullcube":"^2.0.2","loopback":"^3.6.0","mocha":"latest","mocha-sinon":"latest","nyc":"^11.0.0","semantic-release":"^6.3.2","sinon":"latest","sinon-chai":"latest"},"config":{"commitTypeMap":{"feat":"minor","fix":"patch","docs":"patch","style":"patch","refactor":"patch","perf":"patch","test":"patch","build":"patch","ci":"patch","chore":"patch","revert":"patch"},"validate-commit-msg":{"types":"conventional-commit-types"}},"release":{"verifyConditions":"condition-circle","analyzeCommits":"@bubltechnology/customizable-commit-analyzer"},"gitHead":"649cd4f39525d337ded8ff82372ff449eb6b7e0c","bugs":{"url":"https://github.com/fullcube/loopback-ds-calculated-mixin/issues"},"homepage":"https://github.com/fullcube/loopback-ds-calculated-mixin#readme","_id":"loopback-ds-calculated-mixin@2.0.4","_shasum":"6d8fd1c4b111be639f916ef9c800fe97ff83c276","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mrfelton","email":"tkirkpatrick@fullcube.com"},"dist":{"shasum":"6d8fd1c4b111be639f916ef9c800fe97ff83c276","tarball":"https://registry.npmjs.org/loopback-ds-calculated-mixin/-/loopback-ds-calculated-mixin-2.0.4.tgz","integrity":"sha512-D4Puh27rizq10Un3cnIWsA9YK83DCrLOrq4aksMBy8jxDOutW9o4kcjcr2djN5PP5Oempz/Kb0UVLqsKv9BOLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICqj0s9oOOuXhDTVXWM4PbL/qvIjoRxHfbHvekMqGuZgAiEAt7/xGFu5iHul+sc8G7dPVuOIZGhKC/NJg1oBBnSwwlQ="}]},"maintainers":[{"email":"tkirkpatrick@fullcube.com","name":"mrfelton"},{"email":"borggreve@gmail.com","name":"beeman"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/loopback-ds-calculated-mixin-2.0.4.tgz_1496413771355_0.6432721025776118"}}},"readme":"CALCULATED MIXIN\n================\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/fullcube/loopback-ds-calculated-mixin.svg)](https://greenkeeper.io/)\n\n[![CircleCI](https://circleci.com/gh/fullcube/loopback-ds-calculated-mixin.svg?style=svg)](https://circleci.com/gh/fullcube/loopback-ds-calculated-mixin) [![Coverage Status](https://coveralls.io/repos/github/fullcube/loopback-ds-calculated-mixin/badge.svg?branch=master)](https://coveralls.io/github/fullcube/loopback-ds-calculated-mixin?branch=master)  [![Dependencies](http://img.shields.io/david/fullcube/loopback-ds-calculated-mixin.svg?style=flat)](https://david-dm.org/fullcube/loopback-ds-calculated-mixin) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\nThis is a mixin for the LoopBack framework that adds calculated properties to a model.\n\nA calculated property is a property of which the value is set once just before it is persisted to the data source.\n\nThe mixin enables you to define a callback that will be run in the `before save` operation hook to calculate and set the\nvalue for a given property.\n\nINSTALL\n================\n\n```bash\nnpm install --save loopback-ds-calculated-mixin\n```\n\nSERVER CONFIG\n=============\nAdd the mixins property to your server/model-config.json:\n\n```json\n{\n  \"_meta\": {\n    \"sources\": [\n      \"loopback/common/models\",\n      \"loopback/server/models\",\n      \"../common/models\",\n      \"./models\"\n    ],\n    \"mixins\": [\n      \"loopback/common/mixins\",\n      \"../node_modules/loopback-ds-calculated-mixin/lib\",\n      \"../common/mixins\"\n    ]\n  }\n}\n```\n\nCONFIG\n=============\n\nTo use with your Models add the `mixins` attribute to the definition object of your model config.\n\nThe property you want to calculate has to be defined in the model. The callback can be a promise too.\n\n```json\n{\n  \"name\": \"Item\",\n  \"properties\": {\n    \"name\": \"String\",\n    \"description\": \"String\",\n    \"status\": \"String\",\n    \"readonly\": \"boolean\"\n  },\n  \"mixins\": {\n    \"Calculated\": {\n      \"properties\": {\n        \"readonly\": \"calculateReadonly\",\n        \"isTest\": {\n          \"recalculateOnUpdate\": true,\n          \"callback\": \"calculateIsTest\"  \n        }\n      }\n    }\n  }\n}\n```\n\nOn your model you have to define the callback methods.\n\n```javascript\n// Set an item to readonly if status is 'archived'.\nItem.calculateReadonly = function calculateReadonly(item) {\n  return item.status === 'archived';\n};\n// Set an isTest if name is 'test'.\nItem.calculateIsTest = function calculateIsTest(item) {\n  return item.name === 'test'\n};\n\n```\n\nUSAGE\n=============\n\nWhen saving a new model instance, your callback will be called automatically. The property value will be set to the value\nthat your callback returns.\n\nBy default, the calculated mixin is only called when saving a new instance. You can make it run on updates in addition\nby setting `recalculateOnUpdate` in the mixin config for your property.\n\nIf you set `skipCalculated` to true when creating or updating a model instance, the mixin will not run:\n\n```javascript\nModel.create({\n  name: 'Bilbo',\n  status: 'active'\n  readonly: true,\n  isTest: true\n}, { skipCalculated: true })\n```\n\nCAVEATS\n=============\n\n`updateAll`, is not currently supported as this could result in a large amount database queries and excessive memory\nusage. If you need to recalculate values en-mass our recommendation is to first apply your changes using `updateAll`,\nand then use the same where query to retrieve the result set in batches and apply your calculations manually.\n\nTESTING\n=============\n\nRun the tests in `test.js`\n\n```bash\n  npm test\n```\n\nDEBUGGING\n=============\n\nRun with debugging output on:\n\n```bash\n  DEBUG='loopback:mixin:calculated' npm test\n```\n","maintainers":[{"email":"fullcube-public@fullcube.com","name":"fullcube-public"},{"email":"tkp@kirkdesigns.co.uk","name":"mrfelton"},{"email":"borggreve@gmail.com","name":"beeman"}],"time":{"modified":"2022-06-19T14:14:37.898Z","created":"2015-09-18T14:40:29.176Z","1.0.0":"2015-09-18T14:40:29.176Z","1.0.1":"2015-10-27T11:57:38.372Z","1.0.2":"2015-10-27T12:14:55.094Z","1.0.3":"2015-11-04T16:08:33.423Z","1.0.4":"2016-03-22T11:58:26.847Z","1.0.5":"2016-04-28T13:36:12.629Z","1.0.6":"2016-07-14T20:28:16.785Z","1.1.0":"2017-02-06T14:12:17.580Z","1.1.1":"2017-02-15T12:18:32.841Z","1.1.2":"2017-02-15T15:31:08.973Z","1.1.3":"2017-02-20T15:09:51.864Z","1.1.4":"2017-02-21T09:22:16.476Z","2.0.0":"2017-04-27T07:51:40.974Z","2.0.1":"2017-04-27T09:13:32.601Z","2.0.2":"2017-04-27T13:52:11.433Z","2.0.3":"2017-05-04T10:59:34.685Z","2.0.4":"2017-06-02T14:29:32.254Z"},"homepage":"https://github.com/fullcube/loopback-ds-calculated-mixin#readme","keywords":["loopback","strongloop","mixin"],"repository":{"type":"git","url":"git+https://github.com/fullcube/loopback-ds-calculated-mixin.git"},"bugs":{"url":"https://github.com/fullcube/loopback-ds-calculated-mixin/issues"},"license":"MIT","readmeFilename":"README.md","users":{"alert1983":true}}