{"_id":"update-diff","_rev":"6-971b5e4139137c2b01be437eeb9d04d9","name":"update-diff","description":"Update object by mapping diff properties","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"update-diff","version":"1.0.0","description":"Update object by mapping diff properties","main":"index.js","scripts":{"test":"node test"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/update-diff.git"},"keywords":["update-diff","map","map-obj","object-filter","map-object","update","diff","difference","patch","object","compare","change"],"author":{"name":"Dima Yv","email":"df.creative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dfcreative/update-diff/issues"},"homepage":"https://github.com/dfcreative/update-diff#readme","gitHead":"57f87e6ef04a1a14422aab7d19a35ee17ba92eb1","_id":"update-diff@1.0.0","_shasum":"445e661478c13066770b8d106057696a0374fa65","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"shasum":"445e661478c13066770b8d106057696a0374fa65","tarball":"https://registry.npmjs.org/update-diff/-/update-diff-1.0.0.tgz","integrity":"sha512-9kYRY4sasn4hhCU5sgULxth6sj2/gyQ0zFfCQfKM3BM+47ocS3/3UJc3eCTYDIgAR+f9pxyu9qQCx4isH+Atbg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCG7LPN1SgOhsBy7cVrk0iwgHJ5/+QmXrs7JK1swJA5FQIgVuboHSeFMSNJ9hWk7wL81nHAUY2V8GjOmneXroT4hkI="}]},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/update-diff-1.0.0.tgz_1506828965128_0.9386032926850021"}},"1.0.1":{"name":"update-diff","version":"1.0.1","description":"Update object by mapping diff properties","main":"index.js","scripts":{"test":"node test"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/update-diff.git"},"keywords":["update-diff","map","map-obj","object-filter","map-object","update","diff","difference","patch","object","compare","change"],"author":{"name":"Dima Yv","email":"df.creative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dfcreative/update-diff/issues"},"homepage":"https://github.com/dfcreative/update-diff#readme","gitHead":"884e096c8bd042ad602cc789216ddd2765eee0b9","_id":"update-diff@1.0.1","_shasum":"ba623931725a71f5b82e6125e20b335df942da87","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"shasum":"ba623931725a71f5b82e6125e20b335df942da87","tarball":"https://registry.npmjs.org/update-diff/-/update-diff-1.0.1.tgz","integrity":"sha512-8Na2ANdi79wdaFrYRPFbqKbN9CqQfsPgBhKsb6IGCIn0BRzsgyetXKcLicvw+gcSIIolL3tFSG/qVY00lP+YKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCttpOvxpVERKqlX9BszGPqe5NCH0Ej7fg5yYC3kGdYiwIhANjhAZhw6sQp+P7uYTlnVlW2BDvQBXziTcumWqcVs/ln"}]},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/update-diff-1.0.1.tgz_1506829300192_0.654368725605309"}},"1.0.2":{"name":"update-diff","version":"1.0.2","description":"Update object by mapping diff properties","main":"index.js","scripts":{"test":"node test"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/update-diff.git"},"keywords":["update-diff","map","map-obj","object-filter","map-object","update","diff","difference","patch","object","compare","change"],"author":{"name":"Dima Yv","email":"df.creative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dfcreative/update-diff/issues"},"homepage":"https://github.com/dfcreative/update-diff#readme","gitHead":"7bc63f4bb28686d22649ec3a7045dad428676b8e","_id":"update-diff@1.0.2","_shasum":"c27ca7e49cdfd917297acf7741b88c2ad8a8b160","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"shasum":"c27ca7e49cdfd917297acf7741b88c2ad8a8b160","tarball":"https://registry.npmjs.org/update-diff/-/update-diff-1.0.2.tgz","integrity":"sha512-nBuRf+yoIT1EjAOSEKQNJ/5qU9DZobPx9AGv2VpzYm0VwpSO+KBDSEtTioNvGVtjnlNfhvPBOwb4eTXZ8l2IGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDndadyby0CB8cNZ3QixqtSbZY0u1Rw1oaBy9oI+QreSAiEA1k3HSxJx7+OYTgR+cd6M/kmT4iJ9gG7h3LrJFkx0gaM="}]},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/update-diff-1.0.2.tgz_1507162368336_0.6433064413722605"}},"1.0.3":{"name":"update-diff","version":"1.0.3","description":"Update object by mapping diff properties","main":"index.js","scripts":{"test":"node test"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/update-diff.git"},"keywords":["update-diff","map","map-obj","object-filter","map-object","update","diff","difference","patch","object","compare","change"],"author":{"name":"Dima Yv","email":"df.creative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dfcreative/update-diff/issues"},"homepage":"https://github.com/dfcreative/update-diff#readme","gitHead":"b73c47ac350fbaecd36f37f9504ea1864d0cd8a1","_id":"update-diff@1.0.3","_shasum":"db77fdd3126348f811f2f2815715dffc5a00208d","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"shasum":"db77fdd3126348f811f2f2815715dffc5a00208d","tarball":"https://registry.npmjs.org/update-diff/-/update-diff-1.0.3.tgz","integrity":"sha512-BzNWQBaoUevWWlRLnOzQE2puXvPcLsFt4p2fNE23FF6b1XQmBAzIKhg2MmEgUy4mt22B/pWcHsTXNFQxe9pCpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDf89xxMJqn3VxXQqj46hYx4vYM+DNqG93JGqaygfONMQIhAO1tSYklcW73ySvN8KcRIByFOjMUhhjavu2iNl2WDkOg"}]},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/update-diff-1.0.3.tgz_1508256658985_0.29124112939462066"}},"1.1.0":{"name":"update-diff","version":"1.1.0","description":"Update object by mapping diff properties","main":"index.js","scripts":{"test":"node test"},"repository":{"type":"git","url":"git+https://github.com/dfcreative/update-diff.git"},"keywords":["update-diff","map","map-obj","object-filter","map-object","update","diff","difference","patch","object","compare","change"],"author":{"name":"Dima Yv","email":"df.creative@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/dfcreative/update-diff/issues"},"homepage":"https://github.com/dfcreative/update-diff#readme","gitHead":"6c2cbc1267e422957cd71689d246bf5f843d3d9d","_id":"update-diff@1.1.0","_shasum":"f510182d81ee819fb82c3a6b22b62bbdeda7808f","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"shasum":"f510182d81ee819fb82c3a6b22b62bbdeda7808f","tarball":"https://registry.npmjs.org/update-diff/-/update-diff-1.1.0.tgz","integrity":"sha512-rCiBPiHxZwT4+sBhEbChzpO5hYHjm91kScWgdHf4Qeafs6Ba7MBl+d9GlGv72bcTZQO0sLmtQS1pHSWoCLtN/A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAJ5zSr+yEX/iQ5yUSooLYt8HnyqFsyGlW4RzGmDFQPZAiEA/4O87fvvsewjnlGm2HEKYnf3MJ+ufTWJUzcOHDDsQqY="}]},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/update-diff-1.1.0.tgz_1508279292525_0.09098299196921289"}}},"readme":"# update-diff [![unstable](https://img.shields.io/badge/stability-unstable-green.svg)](http://github.com/badges/stability-badges)\r\n\r\nUpdate object by mapping differences in order. Comes handy for organizing state updating.\r\n\r\n[![npm install update-diff](https://nodei.co/npm/update-diff.png?mini=true)](https://npmjs.org/package/update-diff/)\r\n\r\n```js\r\nlet prop = require('update-diff')\r\n\r\nlet state = {propA: 0, propB: 1, propC: ['foo'], propD: 'bar'}\r\n\r\nupdateDiff(state, modifications, [\r\n//initial mapping\r\n{\r\n\tpropA: value => value,\r\n\tpropB: true,\r\n\tpropC: Array.isArray\r\n},\r\n//second-pass mapping\r\n{\r\n\tpropX: (x, state) => state.propB + x\r\n},\r\n//third-pass mapping\r\n{\r\n\tpropA: (value, state) => state.propA ? 'a' : 'b'\r\n}\r\n])\r\n\r\n// {propB: 1, propC: ['foo']}\r\n```\r\n\r\n## Related\r\n\r\n* [obj-map-prop](https://github.com/dfcreative/obj-map-prop) − map object properties by a dict\r\n* [map-obj](https://github.com/sindresorhus/map-obj) − map properties by single function\r\n* [filter-obj](https://github.com/sindresorhus/filter-obj) − filter properties by single function\r\n\r\n\r\n## Credits\r\n\r\n© 2017 Dima Yv. MIT License\r\n","maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"}],"time":{"modified":"2022-06-28T05:35:27.455Z","created":"2017-10-01T03:36:05.252Z","1.0.0":"2017-10-01T03:36:05.252Z","1.0.1":"2017-10-01T03:41:40.279Z","1.0.2":"2017-10-05T00:12:48.411Z","1.0.3":"2017-10-17T16:10:59.159Z","1.1.0":"2017-10-17T22:28:13.569Z"},"homepage":"https://github.com/dfcreative/update-diff#readme","keywords":["update-diff","map","map-obj","object-filter","map-object","update","diff","difference","patch","object","compare","change"],"repository":{"type":"git","url":"git+https://github.com/dfcreative/update-diff.git"},"author":{"name":"Dima Yv","email":"df.creative@gmail.com"},"bugs":{"url":"https://github.com/dfcreative/update-diff/issues"},"license":"MIT","readmeFilename":"readme.md"}