{"_id":"@react-dnd/shallowequal","_rev":"2811878","name":"@react-dnd/shallowequal","description":"Like lodash isEqualWith but for shallow equal.","dist-tags":{"latest":"4.0.2"},"maintainers":[{"name":"darthtrevino","email":"darthtrevino@gmail.com"}],"time":{"modified":"2022-09-06T14:03:06.000Z","created":"2019-11-27T01:59:06.651Z","4.0.2":"2022-04-19T20:31:05.745Z","4.0.1":"2022-04-19T18:05:22.145Z","4.0.0":"2022-04-05T17:47:55.464Z","3.0.1":"2022-03-31T18:52:08.896Z","3.0.0":"2022-02-07T22:17:29.726Z","2.0.0":"2019-11-27T01:59:06.651Z"},"users":{},"author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"https://github.com/dashed"},"repository":"https://github.com/react-dnd/react-dnd","versions":{"4.0.2":{"name":"@react-dnd/shallowequal","version":"4.0.2","description":"Like lodash isEqualWith but for shallow equal.","keywords":["shallowequal","shallow","equal","isequal","compare","isequalwith"],"license":"MIT","author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"https://github.com/dashed"},"repository":"https://github.com/react-dnd/react-dnd","type":"module","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"shx rm -rf dist/","build_types":"tsc -b .","build_esm":"swc -C module.type=es6 -d dist src/","build":"run-s build_types build_esm"},"devDependencies":{"@swc/cli":"^0.1.57","@swc/core":"^1.2.168","@types/jest":"^27.4.1","@types/node":"^17.0.25","npm-run-all":"^4.1.5","shx":"^0.3.4","typescript":"^4.6.3"},"_id":"@react-dnd/shallowequal@4.0.2","gitHead":"641fd36c130e42c3cf08987924151efa1452bca7","dist":{"shasum":"d1b4befa423f692fa4abf1c79209702e7d8ae4b4","size":1994,"noattachment":false,"key":"/@react-dnd/shallowequal/-/@react-dnd/shallowequal-4.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@react-dnd/shallowequal/download/@react-dnd/shallowequal-4.0.2.tgz"},"_npmUser":{"name":"darthtrevino","email":"darthtrevino@gmail.com"},"directories":{},"maintainers":[{"name":"darthtrevino","email":"darthtrevino@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shallowequal_4.0.2_1650400265426_0.4463308190923434"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-19T20:31:09.698Z","publish_time":1650400265745,"_cnpm_publish_time":1650400265745},"4.0.1":{"name":"@react-dnd/shallowequal","version":"4.0.1","description":"Like lodash isEqualWith but for shallow equal.","keywords":["shallowequal","shallow","equal","isequal","compare","isequalwith"],"license":"MIT","author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"https://github.com/dashed"},"repository":"https://github.com/react-dnd/react-dnd","type":"module","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"shx rm -rf dist/","build_types":"tsc -b .","build_esm":"swc -C module.type=es6 -d dist src/","build":"run-s build_types build_esm"},"devDependencies":{"@swc/cli":"^0.1.57","@swc/core":"^1.2.168","@types/jest":"^27.4.1","@types/node":"^17.0.25","npm-run-all":"^4.1.5","shx":"^0.3.4","typescript":"^4.6.3"},"_id":"@react-dnd/shallowequal@4.0.1","gitHead":"def672e2ad5c72cc63349ee7572ccafdea9886cc","dist":{"shasum":"60582702124b494c028215895cc938c56909feac","size":5871,"noattachment":false,"key":"/@react-dnd/shallowequal/-/@react-dnd/shallowequal-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@react-dnd/shallowequal/download/@react-dnd/shallowequal-4.0.1.tgz"},"_npmUser":{"name":"darthtrevino","email":"darthtrevino@gmail.com"},"directories":{},"maintainers":[{"name":"darthtrevino","email":"darthtrevino@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shallowequal_4.0.1_1650391521999_0.9551175257760538"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-19T18:05:33.349Z","publish_time":1650391522145,"_cnpm_publish_time":1650391522145},"4.0.0":{"name":"@react-dnd/shallowequal","version":"4.0.0","description":"Like lodash isEqualWith but for shallow equal.","keywords":["shallowequal","shallow","equal","isequal","compare","isequalwith"],"license":"MIT","author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"https://github.com/dashed"},"repository":"https://github.com/react-dnd/react-dnd","type":"module","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"shx rm -rf dist/","build_types":"tsc -b .","build_esm":"swc -C module.type=es6 -d dist src/","build":"run-s build_types build_esm"},"devDependencies":{"@swc/cli":"^0.1.57","@swc/core":"^1.2.163","@types/jest":"^27.4.1","@types/node":"^17.0.23","npm-run-all":"^4.1.5","shx":"^0.3.4","typescript":"^4.6.3"},"_id":"@react-dnd/shallowequal@4.0.0","gitHead":"8f6cb6c7b3c28452e93fe33ddc976785d287c4ba","dist":{"shasum":"96ee19f65966a6dd8785e278c47e8570960604e8","size":5870,"noattachment":false,"key":"/@react-dnd/shallowequal/-/@react-dnd/shallowequal-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@react-dnd/shallowequal/download/@react-dnd/shallowequal-4.0.0.tgz"},"_npmUser":{"name":"darthtrevino","email":"darthtrevino@gmail.com"},"directories":{},"maintainers":[{"name":"darthtrevino","email":"darthtrevino@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shallowequal_4.0.0_1649180875310_0.008137537422632457"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-05T19:56:01.896Z","publish_time":1649180875464,"_cnpm_publish_time":1649180875464},"3.0.1":{"name":"@react-dnd/shallowequal","version":"3.0.1","description":"Like lodash isEqualWith but for shallow equal.","keywords":["shallowequal","shallow","equal","isequal","compare","isequalwith"],"license":"MIT","author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"https://github.com/dashed"},"repository":"https://github.com/react-dnd/react-dnd","main":"dist/cjs/index.js","types":"dist/types/index.d.ts","exports":{"import":"./dist/esm/index.mjs","require":"./dist/cjs/index.js","types":"./dist/types/index.d.ts"},"scripts":{"clean":"shx rm -rf dist/","build_types":"tsc -b .","build_esm":"swc -C module.type=es6 -d dist/esm src/","build_cjs":"swc -C module.type=commonjs -d dist/cjs src/","esm_hack":"node ../../scripts/esmify.mjs","build":"run-s build_types build_esm build_cjs esm_hack"},"devDependencies":{"@swc/cli":"^0.1.57","@swc/core":"^1.2.161","@types/jest":"^24.9.1","@types/node":"^17.0.23","npm-run-all":"^4.1.5","shx":"^0.3.4","typescript":"^4.6.3"},"_id":"@react-dnd/shallowequal@3.0.1","gitHead":"c0de26425d467b26879a50296a0c03df933858f4","dist":{"shasum":"8056fe046a8d10a275e321ec0557ae652d7a4d06","size":6992,"noattachment":false,"key":"/@react-dnd/shallowequal/-/@react-dnd/shallowequal-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@react-dnd/shallowequal/download/@react-dnd/shallowequal-3.0.1.tgz"},"_npmUser":{"name":"darthtrevino","email":"darthtrevino@gmail.com"},"directories":{},"maintainers":[{"name":"darthtrevino","email":"darthtrevino@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shallowequal_3.0.1_1648752728742_0.442822827801463"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-31T18:52:17.072Z","publish_time":1648752728896,"_cnpm_publish_time":1648752728896},"3.0.0":{"name":"@react-dnd/shallowequal","version":"3.0.0","private":false,"description":"Like lodash isEqualWith but for shallow equal.","keywords":["shallowequal","shallow","equal","isequal","compare","isequalwith"],"license":"MIT","author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"https://github.com/dashed"},"repository":"https://github.com/react-dnd/react-dnd","main":"dist/cjs/index.js","types":"dist/types/index.d.ts","exports":{"import":"./dist/esm/index.mjs","require":"./dist/cjs/index.js","types":"./dist/types/index.d.ts"},"scripts":{"clean":"shx rm -rf dist/","build_types":"tsc -b .","build_esm":"swc -C module.type=es6 -d dist/esm src/","build_cjs":"swc -C module.type=commonjs -d dist/cjs src/","esm_hack":"node ../../scripts/esmify.mjs","build":"run-s build_types build_esm build_cjs esm_hack"},"devDependencies":{"@swc/cli":"^0.1.55","@swc/core":"^1.2.136","@types/jest":"^24.0.23","@types/node":"^17.0.15","npm-run-all":"^4.1.5","shx":"^0.3.4","typescript":"^4.5.5"},"_id":"@react-dnd/shallowequal@3.0.0","gitHead":"93558ea7153543a55ff38da77cdab3a922fe5085","dist":{"shasum":"ccfe1d6eead7591b4cebf6d7fec7150eb4de1962","size":6880,"noattachment":false,"key":"/@react-dnd/shallowequal/-/@react-dnd/shallowequal-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@react-dnd/shallowequal/download/@react-dnd/shallowequal-3.0.0.tgz"},"_npmUser":{"name":"darthtrevino","email":"darthtrevino@gmail.com"},"directories":{},"maintainers":[{"name":"darthtrevino","email":"darthtrevino@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shallowequal_3.0.0_1644272249585_0.041321741104405785"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-07T22:17:36.161Z","publish_time":1644272249726,"_cnpm_publish_time":1644272249726},"2.0.0":{"name":"@react-dnd/shallowequal","version":"2.0.0","description":"Like lodash isEqualWith but for shallow equal.","main":"dist/index.js","module":"dist/shallowequal.esm.js","typings":"dist/index.d.ts","author":{"name":"Alberto Leal","email":"mailforalberto@gmail.com","url":"github.com/dashed"},"repository":{"type":"git","url":"git+https://github.com/react-dnd/shallowequal.git"},"license":"MIT","keywords":["shallowequal","shallow","equal","isequal","compare","isequalwith"],"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test","lint":"tsdx lint"},"peerDependencies":{},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"devDependencies":{"@types/jest":"^24.0.23","husky":"^3.1.0","tsdx":"^0.11.0","tslib":"^1.10.0","typescript":"^3.7.2"},"gitHead":"bdfa6913a4e26810bd68e1ddf5d50c4ecf9b3072","bugs":{"url":"https://github.com/react-dnd/shallowequal/issues"},"homepage":"https://github.com/react-dnd/shallowequal#readme","_id":"@react-dnd/shallowequal@2.0.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"shasum":"a3031eb54129f2c66b2753f8404266ec7bf67f0a","size":6156,"noattachment":false,"key":"/@react-dnd/shallowequal/-/@react-dnd/shallowequal-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@react-dnd/shallowequal/download/@react-dnd/shallowequal-2.0.0.tgz"},"maintainers":[{"name":"darthtrevino","email":"darthtrevino@gmail.com"}],"_npmUser":{"name":"darthtrevino","email":"darthtrevino@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shallowequal_2.0.0_1574819946556_0.5679903081215332"},"_hasShrinkwrap":false,"publish_time":1574819946651,"_cnpm_publish_time":1574819946651}},"readme":"# shallowequal [![Build Status](https://travis-ci.org/dashed/shallowequal.svg)](https://travis-ci.org/dashed/shallowequal) [![Downloads](https://img.shields.io/npm/dm/shallowequal.svg)](https://npmjs.com/shallowequal) [![npm version](https://img.shields.io/npm/v/shallowequal.svg?style=flat)](https://www.npmjs.com/package/shallowequal)\n\n> `shallowequal` is like lodash's [`isEqual`](https://lodash.com/docs/3.10.1#isEqual) (v3.10.1) but for shallow (strict) equal.\n\n`shallowequal(value, other, [customizer], [thisArg])`\n\nPerforms a **_shallow equality_** comparison between two values (i.e. `value` and `other`) to determine if they are equivalent.\n\nThe equality check returns true if `value` and `other` are already strictly equal, OR when all the following are true:\n\n- `value` and `other` are both objects with the same keys\n- For each key, the value in `value` and `other` are **strictly equal** (`===`)\n\nIf `customizer` (expected to be a function) is provided it is invoked to compare values. If `customizer` returns `undefined` (i.e. `void 0`), then comparisons are handled by the `shallowequal` function instead.\n\nThe `customizer` is bound to `thisArg` and invoked with three arguments: `(value, other, key)`.\n\n**NOTE:** Docs are (shamelessly) adapted from [lodash's v3.x docs](https://lodash.com/docs/3.10.1#isEqual)\n\n## Install\n\n```sh\n$ yarn add shallowequal\n# npm v5+\n$ npm install shallowequal\n# before npm v5\n$ npm install --save shallowequal\n```\n\n## Usage\n\n```js\nconst shallowequal = require(\"shallowequal\");\n\nconst object = { user: \"fred\" };\nconst other = { user: \"fred\" };\n\nobject == other;\n// → false\n\nshallowequal(object, other);\n// → true\n```\n\n## Credit\n\nCode for `shallowEqual` originated from https://github.com/gaearon/react-pure-render/ and has since been refactored to have the exact same API as `lodash.isEqualWith` (as of `v4.17.4`).\n\n## Development\n\n- `node.js` and `npm`. See: https://github.com/creationix/nvm#installation\n- `yarn`. See: https://yarnpkg.com/en/docs/install\n- `npm` dependencies. Run: `yarn install`\n\n### Chores\n\n- Lint: `yarn lint`\n- Test: `yarn test`\n- Pretty: `yarn pretty`\n- Prepare: `yarn prepare`\n\n## License\n\nMIT.\n","_attachments":{},"license":"MIT"}