@guanghechen/equal 1.0.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/package.json +11 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<header>
|
|
2
2
|
<h1 align="center">
|
|
3
|
-
<a href="https://github.com/guanghechen/sora/tree/@guanghechen/equal@
|
|
3
|
+
<a href="https://github.com/guanghechen/sora/tree/@guanghechen/equal@2.0.0/packages/equal#readme">@guanghechen/equal</a>
|
|
4
4
|
</h1>
|
|
5
5
|
<div align="center">
|
|
6
6
|
<a href="https://www.npmjs.com/package/@guanghechen/equal">
|
|
@@ -49,18 +49,18 @@
|
|
|
49
49
|
</header>
|
|
50
50
|
<br/>
|
|
51
51
|
|
|
52
|
-
Inspired by https://github.com/epoberezkin/fast-deep-equal, re-
|
|
52
|
+
Inspired by https://github.com/epoberezkin/fast-deep-equal, re-published because it doesn't support ESM.
|
|
53
53
|
|
|
54
54
|
## Usage
|
|
55
55
|
|
|
56
|
-
-
|
|
56
|
+
- Use within ESM.
|
|
57
57
|
|
|
58
58
|
```javascript
|
|
59
59
|
import isEqual from '@guanghechen/equal'
|
|
60
60
|
console.log(isEqual({foo: 'bar'}, {foo: 'bar'})); // true
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
-
|
|
63
|
+
- Use within CommonJS.
|
|
64
64
|
|
|
65
65
|
```javascript
|
|
66
66
|
const isEqual = require('@guanghechen/equal')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guanghechen/equal",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "The fastest deep equal with ES6 Map, Set and Typed arrays support.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "guanghechen",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/guanghechen/sora/tree/@guanghechen/equal@1.0.
|
|
11
|
+
"url": "https://github.com/guanghechen/sora/tree/@guanghechen/equal@1.0.3",
|
|
12
12
|
"directory": "packages/equal"
|
|
13
13
|
},
|
|
14
|
-
"homepage": "https://github.com/guanghechen/sora/tree/@guanghechen/equal@1.0.
|
|
14
|
+
"homepage": "https://github.com/guanghechen/sora/tree/@guanghechen/equal@1.0.3/packages/equal#readme",
|
|
15
15
|
"keywords": [
|
|
16
16
|
"equal",
|
|
17
17
|
"fast deep equal"
|
|
@@ -30,6 +30,13 @@
|
|
|
30
30
|
"module": "./lib/esm/index.mjs",
|
|
31
31
|
"types": "./lib/types/index.d.ts",
|
|
32
32
|
"license": "MIT",
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "rollup -c ../../rollup.config.mjs",
|
|
35
|
+
"clean": "rimraf lib",
|
|
36
|
+
"test": "vitest run --config ../../vitest.config.ts",
|
|
37
|
+
"test:coverage": "vitest run --config ../../vitest.config.ts --coverage",
|
|
38
|
+
"test:update": "vitest run --config ../../vitest.config.ts -u"
|
|
39
|
+
},
|
|
33
40
|
"files": [
|
|
34
41
|
"lib/",
|
|
35
42
|
"!lib/**/*.map",
|
|
@@ -38,5 +45,5 @@
|
|
|
38
45
|
"LICENSE",
|
|
39
46
|
"README.md"
|
|
40
47
|
],
|
|
41
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "12990a720b31d50d217e2e17a6191256dc94eda6"
|
|
42
49
|
}
|