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/dist/esm.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:40:25.511Z
|
|
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
|
|
@@ -2561,10 +2561,10 @@ var getOwnPropertyNames = getBuiltIn$6('Object', 'getOwnPropertyNames');
|
|
|
2561
2561
|
var thisSymbolValue = uncurryThis$8(Symbol$1.prototype.valueOf);
|
|
2562
2562
|
var WellKnownSymbolsStore = shared('wks');
|
|
2563
2563
|
|
|
2564
|
-
for (var i
|
|
2564
|
+
for (var i = 0, symbolKeys = getOwnPropertyNames(Symbol$1), symbolKeysLength = symbolKeys.length; i < symbolKeysLength; i++) {
|
|
2565
2565
|
// some old engines throws on access to some keys like `arguments` or `caller`
|
|
2566
2566
|
try {
|
|
2567
|
-
var symbolKey = symbolKeys[i
|
|
2567
|
+
var symbolKey = symbolKeys[i];
|
|
2568
2568
|
if (isSymbol(Symbol$1[symbolKey])) wellKnownSymbol$8(symbolKey);
|
|
2569
2569
|
} catch (error) { /* empty */ }
|
|
2570
2570
|
}
|
|
@@ -10527,7 +10527,7 @@ var values = function (it) {
|
|
|
10527
10527
|
var _valuesInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(valuesExports);
|
|
10528
10528
|
|
|
10529
10529
|
var stringifyExports = {};
|
|
10530
|
-
var stringify$
|
|
10530
|
+
var stringify$2 = {
|
|
10531
10531
|
get exports(){ return stringifyExports; },
|
|
10532
10532
|
set exports(v){ stringifyExports = v; },
|
|
10533
10533
|
};
|
|
@@ -10539,17 +10539,17 @@ var apply$1 = functionApply;
|
|
|
10539
10539
|
if (!path$3.JSON) path$3.JSON = { stringify: JSON.stringify };
|
|
10540
10540
|
|
|
10541
10541
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
10542
|
-
var stringify$
|
|
10542
|
+
var stringify$1 = function stringify(it, replacer, space) {
|
|
10543
10543
|
return apply$1(path$3.JSON.stringify, null, arguments);
|
|
10544
10544
|
};
|
|
10545
10545
|
|
|
10546
|
-
var parent$7 = stringify$
|
|
10546
|
+
var parent$7 = stringify$1;
|
|
10547
10547
|
|
|
10548
|
-
var stringify
|
|
10548
|
+
var stringify = parent$7;
|
|
10549
10549
|
|
|
10550
10550
|
(function (module) {
|
|
10551
|
-
module.exports = stringify
|
|
10552
|
-
} (stringify$
|
|
10551
|
+
module.exports = stringify;
|
|
10552
|
+
} (stringify$2));
|
|
10553
10553
|
|
|
10554
10554
|
var _JSON$stringify = /*@__PURE__*/getDefaultExportFromCjs(stringifyExports);
|
|
10555
10555
|
|
|
@@ -10606,14 +10606,13 @@ var _entriesInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(entriesExpor
|
|
|
10606
10606
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
10607
10607
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
10608
10608
|
// generators (like Math.random()).
|
|
10609
|
-
|
|
10610
|
-
|
|
10609
|
+
let getRandomValues;
|
|
10610
|
+
const rnds8 = new Uint8Array(16);
|
|
10611
10611
|
function rng() {
|
|
10612
10612
|
// lazy load so that environments that need to polyfill have a chance to do so
|
|
10613
10613
|
if (!getRandomValues) {
|
|
10614
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
10615
|
-
|
|
10616
|
-
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
|
|
10614
|
+
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
10615
|
+
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
10617
10616
|
|
|
10618
10617
|
if (!getRandomValues) {
|
|
10619
10618
|
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
@@ -10623,43 +10622,35 @@ function rng() {
|
|
|
10623
10622
|
return getRandomValues(rnds8);
|
|
10624
10623
|
}
|
|
10625
10624
|
|
|
10626
|
-
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;
|
|
10627
|
-
|
|
10628
|
-
function validate(uuid) {
|
|
10629
|
-
return typeof uuid === 'string' && REGEX.test(uuid);
|
|
10630
|
-
}
|
|
10631
|
-
|
|
10632
10625
|
/**
|
|
10633
10626
|
* Convert array of 16 byte values to UUID string format of the form:
|
|
10634
10627
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
10635
10628
|
*/
|
|
10636
10629
|
|
|
10637
|
-
|
|
10630
|
+
const byteToHex = [];
|
|
10638
10631
|
|
|
10639
|
-
for (
|
|
10640
|
-
byteToHex.push((i + 0x100).toString(16).
|
|
10632
|
+
for (let i = 0; i < 256; ++i) {
|
|
10633
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
10641
10634
|
}
|
|
10642
10635
|
|
|
10643
|
-
function
|
|
10644
|
-
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
10636
|
+
function unsafeStringify(arr, offset = 0) {
|
|
10645
10637
|
// Note: Be careful editing this code! It's been tuned for performance
|
|
10646
10638
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
10647
|
-
|
|
10648
|
-
// of the following:
|
|
10649
|
-
// - One or more input array values don't map to a hex octet (leading to
|
|
10650
|
-
// "undefined" in the uuid)
|
|
10651
|
-
// - Invalid input values for the RFC `version` or `variant` fields
|
|
10652
|
-
|
|
10653
|
-
if (!validate(uuid)) {
|
|
10654
|
-
throw TypeError('Stringified UUID is invalid');
|
|
10655
|
-
}
|
|
10656
|
-
|
|
10657
|
-
return uuid;
|
|
10639
|
+
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();
|
|
10658
10640
|
}
|
|
10659
10641
|
|
|
10642
|
+
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
10643
|
+
var native = {
|
|
10644
|
+
randomUUID
|
|
10645
|
+
};
|
|
10646
|
+
|
|
10660
10647
|
function v4(options, buf, offset) {
|
|
10648
|
+
if (native.randomUUID && !buf && !options) {
|
|
10649
|
+
return native.randomUUID();
|
|
10650
|
+
}
|
|
10651
|
+
|
|
10661
10652
|
options = options || {};
|
|
10662
|
-
|
|
10653
|
+
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
10663
10654
|
|
|
10664
10655
|
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
10665
10656
|
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
@@ -10667,14 +10658,14 @@ function v4(options, buf, offset) {
|
|
|
10667
10658
|
if (buf) {
|
|
10668
10659
|
offset = offset || 0;
|
|
10669
10660
|
|
|
10670
|
-
for (
|
|
10661
|
+
for (let i = 0; i < 16; ++i) {
|
|
10671
10662
|
buf[offset + i] = rnds[i];
|
|
10672
10663
|
}
|
|
10673
10664
|
|
|
10674
10665
|
return buf;
|
|
10675
10666
|
}
|
|
10676
10667
|
|
|
10677
|
-
return
|
|
10668
|
+
return unsafeStringify(rnds);
|
|
10678
10669
|
}
|
|
10679
10670
|
|
|
10680
10671
|
/**
|