vis-data 7.1.5 → 7.1.6
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/dist/esm.js +31 -40
- package/dist/esm.js.map +1 -1
- package/dist/umd.js +31 -40
- package/dist/umd.js.map +1 -1
- package/esnext/esm/vis-data.js +2 -2
- package/esnext/esm/vis-data.min.js +2 -2
- package/esnext/umd/vis-data.js +2 -2
- package/esnext/umd/vis-data.min.js +2 -2
- package/package.json +3 -3
- package/peer/esm/vis-data.js +31 -40
- package/peer/esm/vis-data.js.map +1 -1
- package/peer/esm/vis-data.min.js +4 -4
- package/peer/esm/vis-data.min.js.map +1 -1
- package/peer/umd/vis-data.js +31 -40
- package/peer/umd/vis-data.js.map +1 -1
- package/peer/umd/vis-data.min.js +4 -4
- package/peer/umd/vis-data.min.js.map +1 -1
- package/standalone/esm/vis-data.js +31 -40
- package/standalone/esm/vis-data.js.map +1 -1
- package/standalone/esm/vis-data.min.js +4 -4
- package/standalone/esm/vis-data.min.js.map +1 -1
- package/standalone/umd/vis-data.js +31 -40
- package/standalone/umd/vis-data.js.map +1 -1
- package/standalone/umd/vis-data.min.js +4 -4
- package/standalone/umd/vis-data.min.js.map +1 -1
package/peer/umd/vis-data.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
|
|
6
6
|
*
|
|
7
|
-
* @version 7.1.
|
|
8
|
-
* @date 2023-03-
|
|
7
|
+
* @version 7.1.6
|
|
8
|
+
* @date 2023-03-22T11:39:37.256Z
|
|
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
|
|
@@ -2566,10 +2566,10 @@
|
|
|
2566
2566
|
var thisSymbolValue = uncurryThis$e(Symbol$2.prototype.valueOf);
|
|
2567
2567
|
var WellKnownSymbolsStore = shared('wks');
|
|
2568
2568
|
|
|
2569
|
-
for (var i
|
|
2569
|
+
for (var i = 0, symbolKeys = getOwnPropertyNames(Symbol$2), symbolKeysLength = symbolKeys.length; i < symbolKeysLength; i++) {
|
|
2570
2570
|
// some old engines throws on access to some keys like `arguments` or `caller`
|
|
2571
2571
|
try {
|
|
2572
|
-
var symbolKey = symbolKeys[i
|
|
2572
|
+
var symbolKey = symbolKeys[i];
|
|
2573
2573
|
if (isSymbol(Symbol$2[symbolKey])) wellKnownSymbol$a(symbolKey);
|
|
2574
2574
|
} catch (error) { /* empty */ }
|
|
2575
2575
|
}
|
|
@@ -5062,7 +5062,7 @@
|
|
|
5062
5062
|
var _Object$create$1 = /*@__PURE__*/getDefaultExportFromCjs(createExports$2);
|
|
5063
5063
|
|
|
5064
5064
|
var stringifyExports = {};
|
|
5065
|
-
var stringify$
|
|
5065
|
+
var stringify$2 = {
|
|
5066
5066
|
get exports(){ return stringifyExports; },
|
|
5067
5067
|
set exports(v){ stringifyExports = v; },
|
|
5068
5068
|
};
|
|
@@ -5074,17 +5074,17 @@
|
|
|
5074
5074
|
if (!path$6.JSON) path$6.JSON = { stringify: JSON.stringify };
|
|
5075
5075
|
|
|
5076
5076
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
5077
|
-
var stringify$
|
|
5077
|
+
var stringify$1 = function stringify(it, replacer, space) {
|
|
5078
5078
|
return apply$3(path$6.JSON.stringify, null, arguments);
|
|
5079
5079
|
};
|
|
5080
5080
|
|
|
5081
|
-
var parent$s = stringify$
|
|
5081
|
+
var parent$s = stringify$1;
|
|
5082
5082
|
|
|
5083
|
-
var stringify
|
|
5083
|
+
var stringify = parent$s;
|
|
5084
5084
|
|
|
5085
5085
|
(function (module) {
|
|
5086
|
-
module.exports = stringify
|
|
5087
|
-
} (stringify$
|
|
5086
|
+
module.exports = stringify;
|
|
5087
|
+
} (stringify$2));
|
|
5088
5088
|
|
|
5089
5089
|
var _JSON$stringify = /*@__PURE__*/getDefaultExportFromCjs(stringifyExports);
|
|
5090
5090
|
|
|
@@ -11344,14 +11344,13 @@
|
|
|
11344
11344
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
11345
11345
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
11346
11346
|
// generators (like Math.random()).
|
|
11347
|
-
|
|
11348
|
-
|
|
11347
|
+
let getRandomValues;
|
|
11348
|
+
const rnds8 = new Uint8Array(16);
|
|
11349
11349
|
function rng() {
|
|
11350
11350
|
// lazy load so that environments that need to polyfill have a chance to do so
|
|
11351
11351
|
if (!getRandomValues) {
|
|
11352
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
11353
|
-
|
|
11354
|
-
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
|
|
11352
|
+
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
11353
|
+
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
11355
11354
|
|
|
11356
11355
|
if (!getRandomValues) {
|
|
11357
11356
|
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
@@ -11361,43 +11360,35 @@
|
|
|
11361
11360
|
return getRandomValues(rnds8);
|
|
11362
11361
|
}
|
|
11363
11362
|
|
|
11364
|
-
var REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
11365
|
-
|
|
11366
|
-
function validate(uuid) {
|
|
11367
|
-
return typeof uuid === 'string' && REGEX.test(uuid);
|
|
11368
|
-
}
|
|
11369
|
-
|
|
11370
11363
|
/**
|
|
11371
11364
|
* Convert array of 16 byte values to UUID string format of the form:
|
|
11372
11365
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
11373
11366
|
*/
|
|
11374
11367
|
|
|
11375
|
-
|
|
11368
|
+
const byteToHex = [];
|
|
11376
11369
|
|
|
11377
|
-
for (
|
|
11378
|
-
byteToHex.push((i + 0x100).toString(16).
|
|
11370
|
+
for (let i = 0; i < 256; ++i) {
|
|
11371
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
11379
11372
|
}
|
|
11380
11373
|
|
|
11381
|
-
function
|
|
11382
|
-
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
11374
|
+
function unsafeStringify(arr, offset = 0) {
|
|
11383
11375
|
// Note: Be careful editing this code! It's been tuned for performance
|
|
11384
11376
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
11385
|
-
|
|
11386
|
-
// of the following:
|
|
11387
|
-
// - One or more input array values don't map to a hex octet (leading to
|
|
11388
|
-
// "undefined" in the uuid)
|
|
11389
|
-
// - Invalid input values for the RFC `version` or `variant` fields
|
|
11390
|
-
|
|
11391
|
-
if (!validate(uuid)) {
|
|
11392
|
-
throw TypeError('Stringified UUID is invalid');
|
|
11393
|
-
}
|
|
11394
|
-
|
|
11395
|
-
return uuid;
|
|
11377
|
+
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
11396
11378
|
}
|
|
11397
11379
|
|
|
11380
|
+
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
11381
|
+
var native = {
|
|
11382
|
+
randomUUID
|
|
11383
|
+
};
|
|
11384
|
+
|
|
11398
11385
|
function v4(options, buf, offset) {
|
|
11386
|
+
if (native.randomUUID && !buf && !options) {
|
|
11387
|
+
return native.randomUUID();
|
|
11388
|
+
}
|
|
11389
|
+
|
|
11399
11390
|
options = options || {};
|
|
11400
|
-
|
|
11391
|
+
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
11401
11392
|
|
|
11402
11393
|
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
11403
11394
|
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
@@ -11405,14 +11396,14 @@
|
|
|
11405
11396
|
if (buf) {
|
|
11406
11397
|
offset = offset || 0;
|
|
11407
11398
|
|
|
11408
|
-
for (
|
|
11399
|
+
for (let i = 0; i < 16; ++i) {
|
|
11409
11400
|
buf[offset + i] = rnds[i];
|
|
11410
11401
|
}
|
|
11411
11402
|
|
|
11412
11403
|
return buf;
|
|
11413
11404
|
}
|
|
11414
11405
|
|
|
11415
|
-
return
|
|
11406
|
+
return unsafeStringify(rnds);
|
|
11416
11407
|
}
|
|
11417
11408
|
|
|
11418
11409
|
/**
|