{"_id":"@zoroaster/deep-equal","_rev":"300323","name":"@zoroaster/deep-equal","description":"The Deep Equal Assertion With Color.","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"zvr","email":""}],"time":{"modified":"2024-01-31T16:08:01.000Z","created":"2019-04-29T17:01:57.097Z","1.0.1":"2019-04-29T17:10:29.129Z","1.0.0":"2019-04-29T17:01:57.097Z"},"users":{},"author":{"name":"Anton","email":"anton@adc.sh"},"repository":{"type":"git","url":"git://github.com/contexttesting/deep-equal.git"},"versions":{"1.0.1":{"name":"@zoroaster/deep-equal","version":"1.0.1","description":"The Deep Equal Assertion With Color.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc -o README.md","b":"alamode src -o build -s","d":"yarn-s d1 externs","d1":"typal src -c","externs":"typal externs.js -e","build":"yarn-s d b doc","e":"alanode"},"externs":"externs.js","repository":{"type":"git","url":"git://github.com/contexttesting/deep-equal.git"},"keywords":["deep-equal","zoroaster","assert","color","difference","diff"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/contexttesting/deep-equal/issues"},"homepage":"https://github.com/contexttesting/deep-equal#readme","devDependencies":{"alamode":"^1.9.3","documentary":"^1.24.1","eslint-config-artdeco":"1.0.1","yarn-s":"1.1.0","zoroaster":"^3.11.6"},"dependencies":{"differently":"^1.0.0"},"licenseText":"MIT License\n\nCopyright (c) 2019 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@zoroaster/deep-equal@1.0.1","dist":{"shasum":"7f7b72f59e54807ee23ea88e60f99165f10ca876","size":2752,"noattachment":false,"key":"/@zoroaster/deep-equal/-/@zoroaster/deep-equal-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/@zoroaster/deep-equal/download/@zoroaster/deep-equal-1.0.1.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deep-equal_1.0.1_1556557828959_0.8151487410781004"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:36.256Z","publish_time":1556557829129,"_cnpm_publish_time":1556557829129},"1.0.0":{"name":"@zoroaster/deep-equal","version":"1.0.0","description":"The Deep Equal Assertion With Color.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc -o README.md","b":"alamode src -o build -s","d":"yarn-s d1 externs","d1":"typal src -c","externs":"typal externs.js -e","build":"yarn-s d b doc","e":"alanode"},"externs":"externs.js","repository":{"type":"git","url":"git://github.com/contexttesting/deep-equal.git"},"keywords":["deep-equal","zoroaster","assert","color","difference","diff"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/contexttesting/deep-equal/issues"},"homepage":"https://github.com/contexttesting/deep-equal#readme","devDependencies":{"alamode":"^1.9.3","documentary":"^1.24.1","eslint-config-artdeco":"1.0.1","yarn-s":"1.1.0","zoroaster":"^3.11.6"},"dependencies":{"differently":"^1.0.0"},"licenseText":"MIT License\n\nCopyright (c) 2019 Art Deco Code Limited\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"@zoroaster/deep-equal@1.0.0","dist":{"shasum":"800e0f0c99ab612ca03cec2706479ff12472a039","size":2721,"noattachment":false,"key":"/@zoroaster/deep-equal/-/@zoroaster/deep-equal-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@zoroaster/deep-equal/download/@zoroaster/deep-equal-1.0.0.tgz"},"maintainers":[{"name":"zvr","email":""}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deep-equal_1.0.0_1556557316998_0.3110755365549118"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-19T19:18:34.632Z","publish_time":1556557317097,"_cnpm_publish_time":1556557317097}},"readme":"# @zoroaster/deep-equal\n\n[![npm version](https://badge.fury.io/js/%40zoroaster%2Fdeep-equal.svg)](https://npmjs.org/package/@zoroaster/deep-equal)\n\n`@zoroaster/deep-equal` is The Deep Equal Assertion With Color.\n\n```sh\nyarn add @zoroaster/deep-equal\n```\n\n## Table Of Contents\n\n- [Table Of Contents](#table-of-contents)\n- [API](#api)\n- [`deepEqual(actual: ?, expected: ?, message?: string)`](#deepequalactual-expected-message-string-void)\n- [Copyright](#copyright)\n\n<p align=\"center\"><a href=\"#table-of-contents\"><img src=\".documentary/section-breaks/0.svg?sanitize=true\"></a></p>\n\n## API\n\nThe package is available by importing its default function:\n\n```js\nimport deepEqual from '@zoroaster/deep-equal'\n```\n\n<p align=\"center\"><a href=\"#table-of-contents\"><img src=\".documentary/section-breaks/1.svg?sanitize=true\"></a></p>\n\n## `deepEqual(`<br/>&nbsp;&nbsp;`actual: ?,`<br/>&nbsp;&nbsp;`expected: ?,`<br/>&nbsp;&nbsp;`message?: string,`<br/>`): void`\n\nCalls `assert.deepStrictEqual` and then creates a visual representation of the difference between objects if it throws.\n\n```js\nimport deepEqual from '@zoroaster/deep-equal'\n\nconst compare = (a, b) => {\n  try {\n    deepEqual(a, b)\n  } catch (err) {\n    console.log(err.message)\n  }\n}\n\ncompare('hello', 'world')\ncompare([10, 4, 20], [100, 4, 30])\ncompare({ a: 'example', b: 10 }, { b: 10, c: 'context-testing' })\n```\n\n<table>\n<table>\n<tr><td>\n\n```\n'hello' deepStrictEqual 'world'\n- world\n+ hello\n[ 10, 4, 20 ] deepStrictEqual [ 100, 4, 30 ]\n[0]\n- 100\n+ 10\n[2]\n- 30\n+ 20\n{ a: 'example', b: 10 } deepStrictEqual { b: 10, c: 'context-testing' }\n- c: context-testing\n+ a: example\n```\n</td></tr><tr><td>\n\n![Deep Equal With Color](doc/doc.png)\n</td></tr>\n</table>\n\n<p align=\"center\"><a href=\"#table-of-contents\"><img src=\".documentary/section-breaks/2.svg?sanitize=true\"></a></p>\n\n## Copyright\n\n\n  (c) [Context Testing](https://contexttesting.com) 2019\n\n\n<p align=\"center\"><a href=\"#table-of-contents\"><img src=\".documentary/section-breaks/-1.svg?sanitize=true\"></a></p>","_attachments":{},"homepage":"https://github.com/contexttesting/deep-equal#readme","bugs":{"url":"https://github.com/contexttesting/deep-equal/issues"},"license":"MIT"}