Skip to content

Commit

Permalink
feat: add deep-equal-json (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW authored Jun 24, 2024
1 parent 93c7c4a commit f009d3b
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions DOWNLOAD_STATS.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
| `@nolyfill/asynciterator.prototype` | [![npm](https://img.shields.io/npm/dt/@nolyfill/asynciterator.prototype.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/asynciterator.prototype) |
| `@nolyfill/available-typed-arrays` | [![npm](https://img.shields.io/npm/dt/@nolyfill/available-typed-arrays.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/available-typed-arrays) |
| `@nolyfill/deep-equal` | [![npm](https://img.shields.io/npm/dt/@nolyfill/deep-equal.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/deep-equal) |
| `@nolyfill/deep-equal-json` | [![npm](https://img.shields.io/npm/dt/@nolyfill/deep-equal-json.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/deep-equal-json) |
| `@nolyfill/define-properties` | [![npm](https://img.shields.io/npm/dt/@nolyfill/define-properties.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/define-properties) |
| `@nolyfill/es-aggregate-error` | [![npm](https://img.shields.io/npm/dt/@nolyfill/es-aggregate-error.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/es-aggregate-error) |
| `@nolyfill/es-iterator-helpers` | [![npm](https://img.shields.io/npm/dt/@nolyfill/es-iterator-helpers.svg?style=flat-square&logo=npm&logoColor=white&label=total%20downloads&color=333)](https://www.npmjs.com/package/@nolyfill/es-iterator-helpers) |
Expand Down
1 change: 1 addition & 0 deletions create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ const singleFilePackagesList = [
['es-set-tostringtag'],
['define-properties', { '@nolyfill/shared': 'workspace:*' }],
['deep-equal', { dequal: '2.0.3' }],
['deep-equal-json', { dequal: '2.0.3' }],
['is-arguments'],
['is-generator-function'],
// ['is-negative-zero', 'module.exports = (n) => n === 0 && (1 / n) === -Infinity;'],
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"asynciterator.prototype": "workspace:@nolyfill/asynciterator.prototype@*",
"available-typed-arrays": "workspace:@nolyfill/available-typed-arrays@*",
"deep-equal": "workspace:@nolyfill/deep-equal@*",
"deep-equal-json": "workspace:@nolyfill/deep-equal-json@*",
"define-properties": "workspace:@nolyfill/define-properties@*",
"es-aggregate-error": "workspace:@nolyfill/es-aggregate-error@*",
"es-iterator-helpers": "workspace:@nolyfill/es-iterator-helpers@*",
Expand Down Expand Up @@ -169,6 +170,7 @@
"asynciterator.prototype": "npm:@nolyfill/asynciterator.prototype@latest",
"available-typed-arrays": "npm:@nolyfill/available-typed-arrays@latest",
"deep-equal": "npm:@nolyfill/deep-equal@latest",
"deep-equal-json": "npm:@nolyfill/deep-equal-json@latest",
"define-properties": "npm:@nolyfill/define-properties@latest",
"es-aggregate-error": "npm:@nolyfill/es-aggregate-error@latest",
"es-iterator-helpers": "npm:@nolyfill/es-iterator-helpers@latest",
Expand Down
4 changes: 4 additions & 0 deletions packages/data/single-file/src/deep-equal-json.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { dequal } from 'dequal/lite';

const deepEqualJSON = (a: any, b: any) => dequal(a, b);
export default deepEqualJSON;
2 changes: 2 additions & 0 deletions packages/generated/deep-equal-json/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions packages/generated/deep-equal-json/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "@nolyfill/deep-equal-json",
"version": "1.0.32",
"repository": {
"type": "git",
"url": "https://github.com/SukkaW/nolyfill",
"directory": "packages/generated/deep-equal-json"
},
"main": "./index.js",
"license": "MIT",
"files": [
"*.js"
],
"scripts": {},
"dependencies": {
"dequal": "2.0.3"
},
"engines": {
"node": ">=12.4.0"
}
}
1 change: 1 addition & 0 deletions packages/tools/cli/src/all-packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const allPackages = [
"asynciterator.prototype",
"available-typed-arrays",
"deep-equal",
"deep-equal-json",
"define-properties",
"es-aggregate-error",
"es-iterator-helpers",
Expand Down
7 changes: 7 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f009d3b

Please sign in to comment.