vis-util 5.0.4 → 5.0.5
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/esnext/esm/vis-util.js +9 -2
- package/esnext/esm/vis-util.js.map +1 -1
- package/esnext/esm/vis-util.min.js +3 -3
- package/esnext/esm/vis-util.min.js.map +1 -1
- package/esnext/umd/vis-util.js +9 -2
- package/esnext/umd/vis-util.js.map +1 -1
- package/esnext/umd/vis-util.min.js +3 -3
- package/esnext/umd/vis-util.min.js.map +1 -1
- package/package.json +13 -11
- package/peer/esm/vis-util.js +9 -2
- package/peer/esm/vis-util.js.map +1 -1
- package/peer/esm/vis-util.min.js +4 -4
- package/peer/esm/vis-util.min.js.map +1 -1
- package/peer/umd/vis-util.js +9 -2
- package/peer/umd/vis-util.js.map +1 -1
- package/peer/umd/vis-util.min.js +3 -3
- package/peer/umd/vis-util.min.js.map +1 -1
- package/standalone/esm/vis-util.js +9 -2
- package/standalone/esm/vis-util.js.map +1 -1
- package/standalone/esm/vis-util.min.js +4 -4
- package/standalone/esm/vis-util.min.js.map +1 -1
- package/standalone/umd/vis-util.js +9 -2
- package/standalone/umd/vis-util.js.map +1 -1
- package/standalone/umd/vis-util.min.js +3 -3
- package/standalone/umd/vis-util.min.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-util",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.5",
|
|
4
4
|
"description": "utilitie collection for visjs",
|
|
5
5
|
"browser": "peer/umd/vis-util.min.js",
|
|
6
6
|
"jsnext": "esnext/esm/vis-util.js",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"Ben Morton <ben.morton91@gmail.com>",
|
|
29
29
|
"Greg Kubisa <gkubisa@gmail.com>",
|
|
30
30
|
"Kelvin Del Monte <kdelmonten@gmail.com>",
|
|
31
|
+
"Max <nanodeath@gmail.com>",
|
|
31
32
|
"Zuko Mgwili <zuko.mgwili@chillisoft.co.za>"
|
|
32
33
|
],
|
|
33
34
|
"scripts": {
|
|
@@ -42,12 +43,12 @@
|
|
|
42
43
|
"lint-fix": "eslint --fix --ext .js,.ts .",
|
|
43
44
|
"prepublishOnly": "npm run build",
|
|
44
45
|
"test": "run-s test:unit test:types:check-dts test:types:tsc test:interop",
|
|
45
|
-
"test:coverage": "BABEL_ENV=test-cov nyc mocha",
|
|
46
|
+
"test:coverage": "cross-env BABEL_ENV=test-cov nyc mocha",
|
|
46
47
|
"test:interop": "node interop.js",
|
|
47
48
|
"test:interop:debug": "npm run test:interop -- --fail-command \"$SHELL\"",
|
|
48
49
|
"test:types:check-dts": "cd test && check-dts",
|
|
49
50
|
"test:types:tsc": "tsc --noemit --project tsconfig.check.json",
|
|
50
|
-
"test:unit": "BABEL_ENV=test mocha",
|
|
51
|
+
"test:unit": "cross-env BABEL_ENV=test mocha",
|
|
51
52
|
"type-check": "run-s test:types:*",
|
|
52
53
|
"version": "npm run contributors:update && git add package.json",
|
|
53
54
|
"contributors:update": "git-authors-cli",
|
|
@@ -98,25 +99,26 @@
|
|
|
98
99
|
"@egjs/hammerjs": "2.0.17",
|
|
99
100
|
"@types/chai": "4.3.6",
|
|
100
101
|
"@types/jsdom-global": "^3.0.4",
|
|
101
|
-
"@types/mocha": "10.0.
|
|
102
|
-
"@types/node": "18.
|
|
103
|
-
"@types/sinon": "10.0.
|
|
102
|
+
"@types/mocha": "10.0.2",
|
|
103
|
+
"@types/node": "18.18.3",
|
|
104
|
+
"@types/sinon": "10.0.18",
|
|
104
105
|
"assert": "2.1.0",
|
|
105
106
|
"check-dts": "0.7.2",
|
|
106
107
|
"component-emitter": "1.3.0",
|
|
107
|
-
"
|
|
108
|
+
"cross-env": "^7.0.3",
|
|
109
|
+
"eslint": "8.50.0",
|
|
108
110
|
"git-authors-cli": "1.0.46",
|
|
109
111
|
"husky": "8.0.3",
|
|
110
|
-
"jsdom": "
|
|
112
|
+
"jsdom": "22.1.0",
|
|
111
113
|
"jsdom-global": "3.0.2",
|
|
112
114
|
"lint-staged": "13.3.0",
|
|
113
115
|
"mocha": "10.2.0",
|
|
114
116
|
"npm-run-all": "4.1.5",
|
|
115
117
|
"nyc": "15.1.0",
|
|
116
|
-
"rimraf": "5.0.
|
|
118
|
+
"rimraf": "5.0.5",
|
|
117
119
|
"sazerac": "2.0.0",
|
|
118
|
-
"semantic-release": "21.1.
|
|
119
|
-
"sinon": "
|
|
120
|
+
"semantic-release": "21.1.2",
|
|
121
|
+
"sinon": "16.0.0",
|
|
120
122
|
"snap-shot-it": "7.9.10",
|
|
121
123
|
"typedoc": "0.25.1",
|
|
122
124
|
"vis-dev-utils": "4.0.33"
|
package/peer/esm/vis-util.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* utilitie collection for visjs
|
|
6
6
|
*
|
|
7
|
-
* @version 5.0.
|
|
8
|
-
* @date 2023-
|
|
7
|
+
* @version 5.0.5
|
|
8
|
+
* @date 2023-10-03T18:47:58.061Z
|
|
9
9
|
*
|
|
10
10
|
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
|
11
11
|
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
|
@@ -3174,6 +3174,10 @@ function deepObjectAssignNonentry() {
|
|
|
3174
3174
|
}
|
|
3175
3175
|
var a = values[0];
|
|
3176
3176
|
var b = values[1];
|
|
3177
|
+
if (a instanceof Date && b instanceof Date) {
|
|
3178
|
+
a.setTime(b.getTime());
|
|
3179
|
+
return a;
|
|
3180
|
+
}
|
|
3177
3181
|
var _iterator = _createForOfIteratorHelper$2(_Reflect$ownKeys(b)),
|
|
3178
3182
|
_step;
|
|
3179
3183
|
try {
|
|
@@ -3208,6 +3212,9 @@ function clone(a) {
|
|
|
3208
3212
|
return clone(value);
|
|
3209
3213
|
});
|
|
3210
3214
|
} else if (_typeof(a) === "object" && a !== null) {
|
|
3215
|
+
if (a instanceof Date) {
|
|
3216
|
+
return new Date(a.getTime());
|
|
3217
|
+
}
|
|
3211
3218
|
return deepObjectAssignNonentry({}, a);
|
|
3212
3219
|
} else {
|
|
3213
3220
|
return a;
|