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.
@@ -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.5
8
- * @date 2023-03-21T20:54:51.525Z
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
@@ -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.5
8
- * @date 2023-03-21T20:54:51.525Z
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
@@ -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.5
8
- * @date 2023-03-21T20:54:51.525Z
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
@@ -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.5
8
- * @date 2023-03-21T20:54:51.525Z
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-data",
3
- "version": "7.1.5",
3
+ "version": "7.1.6",
4
4
  "description": "Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.",
5
5
  "homepage": "http://visjs.org/",
6
6
  "license": "(Apache-2.0 OR MIT)",
@@ -81,7 +81,7 @@
81
81
  "@types/chai": "4.3.4",
82
82
  "@types/mocha": "10.0.1",
83
83
  "@types/sinon": "10.0.12",
84
- "@types/uuid": "8.3.4",
84
+ "@types/uuid": "9.0.1",
85
85
  "component-emitter": "1.3.0",
86
86
  "eslint": "8.18.0",
87
87
  "git-authors-cli": "1.0.45",
@@ -95,7 +95,7 @@
95
95
  "sinon": "15.0.2",
96
96
  "snap-shot-it": "7.9.10",
97
97
  "typedoc": "0.23.28",
98
- "uuid": "8.3.2",
98
+ "uuid": "9.0.0",
99
99
  "vis-dev-utils": "4.0.6",
100
100
  "vis-util": "5.0.3"
101
101
  },
@@ -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.5
8
- * @date 2023-03-21T20:54:51.525Z
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
@@ -2561,10 +2561,10 @@ var getOwnPropertyNames = getBuiltIn$6('Object', 'getOwnPropertyNames');
2561
2561
  var thisSymbolValue = uncurryThis$e(Symbol$2.prototype.valueOf);
2562
2562
  var WellKnownSymbolsStore = shared('wks');
2563
2563
 
2564
- for (var i$1 = 0, symbolKeys = getOwnPropertyNames(Symbol$2), symbolKeysLength = symbolKeys.length; i$1 < symbolKeysLength; i$1++) {
2564
+ for (var i = 0, symbolKeys = getOwnPropertyNames(Symbol$2), 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$1];
2567
+ var symbolKey = symbolKeys[i];
2568
2568
  if (isSymbol(Symbol$2[symbolKey])) wellKnownSymbol$a(symbolKey);
2569
2569
  } catch (error) { /* empty */ }
2570
2570
  }
@@ -5057,7 +5057,7 @@ var create$7 = parent$t;
5057
5057
  var _Object$create$1 = /*@__PURE__*/getDefaultExportFromCjs(createExports$2);
5058
5058
 
5059
5059
  var stringifyExports = {};
5060
- var stringify$3 = {
5060
+ var stringify$2 = {
5061
5061
  get exports(){ return stringifyExports; },
5062
5062
  set exports(v){ stringifyExports = v; },
5063
5063
  };
@@ -5069,17 +5069,17 @@ var apply$3 = functionApply;
5069
5069
  if (!path$6.JSON) path$6.JSON = { stringify: JSON.stringify };
5070
5070
 
5071
5071
  // eslint-disable-next-line no-unused-vars -- required for `.length`
5072
- var stringify$2 = function stringify(it, replacer, space) {
5072
+ var stringify$1 = function stringify(it, replacer, space) {
5073
5073
  return apply$3(path$6.JSON.stringify, null, arguments);
5074
5074
  };
5075
5075
 
5076
- var parent$s = stringify$2;
5076
+ var parent$s = stringify$1;
5077
5077
 
5078
- var stringify$1 = parent$s;
5078
+ var stringify = parent$s;
5079
5079
 
5080
5080
  (function (module) {
5081
- module.exports = stringify$1;
5082
- } (stringify$3));
5081
+ module.exports = stringify;
5082
+ } (stringify$2));
5083
5083
 
5084
5084
  var _JSON$stringify = /*@__PURE__*/getDefaultExportFromCjs(stringifyExports);
5085
5085
 
@@ -11339,14 +11339,13 @@ var _entriesInstanceProperty = /*@__PURE__*/getDefaultExportFromCjs(entriesExpor
11339
11339
  // Unique ID creation requires a high quality random # generator. In the browser we therefore
11340
11340
  // require the crypto API and do not support built-in fallback to lower quality random number
11341
11341
  // generators (like Math.random()).
11342
- var getRandomValues;
11343
- var rnds8 = new Uint8Array(16);
11342
+ let getRandomValues;
11343
+ const rnds8 = new Uint8Array(16);
11344
11344
  function rng() {
11345
11345
  // lazy load so that environments that need to polyfill have a chance to do so
11346
11346
  if (!getRandomValues) {
11347
- // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
11348
- // find the complete implementation of crypto (msCrypto) on IE11.
11349
- getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
11347
+ // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
11348
+ getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
11350
11349
 
11351
11350
  if (!getRandomValues) {
11352
11351
  throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
@@ -11356,43 +11355,35 @@ function rng() {
11356
11355
  return getRandomValues(rnds8);
11357
11356
  }
11358
11357
 
11359
- 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;
11360
-
11361
- function validate(uuid) {
11362
- return typeof uuid === 'string' && REGEX.test(uuid);
11363
- }
11364
-
11365
11358
  /**
11366
11359
  * Convert array of 16 byte values to UUID string format of the form:
11367
11360
  * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
11368
11361
  */
11369
11362
 
11370
- var byteToHex = [];
11363
+ const byteToHex = [];
11371
11364
 
11372
- for (var i = 0; i < 256; ++i) {
11373
- byteToHex.push((i + 0x100).toString(16).substr(1));
11365
+ for (let i = 0; i < 256; ++i) {
11366
+ byteToHex.push((i + 0x100).toString(16).slice(1));
11374
11367
  }
11375
11368
 
11376
- function stringify(arr) {
11377
- var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
11369
+ function unsafeStringify(arr, offset = 0) {
11378
11370
  // Note: Be careful editing this code! It's been tuned for performance
11379
11371
  // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
11380
- var uuid = (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(); // Consistency check for valid UUID. If this throws, it's likely due to one
11381
- // of the following:
11382
- // - One or more input array values don't map to a hex octet (leading to
11383
- // "undefined" in the uuid)
11384
- // - Invalid input values for the RFC `version` or `variant` fields
11385
-
11386
- if (!validate(uuid)) {
11387
- throw TypeError('Stringified UUID is invalid');
11388
- }
11389
-
11390
- return uuid;
11372
+ 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();
11391
11373
  }
11392
11374
 
11375
+ const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
11376
+ var native = {
11377
+ randomUUID
11378
+ };
11379
+
11393
11380
  function v4(options, buf, offset) {
11381
+ if (native.randomUUID && !buf && !options) {
11382
+ return native.randomUUID();
11383
+ }
11384
+
11394
11385
  options = options || {};
11395
- var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
11386
+ const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
11396
11387
 
11397
11388
  rnds[6] = rnds[6] & 0x0f | 0x40;
11398
11389
  rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
@@ -11400,14 +11391,14 @@ function v4(options, buf, offset) {
11400
11391
  if (buf) {
11401
11392
  offset = offset || 0;
11402
11393
 
11403
- for (var i = 0; i < 16; ++i) {
11394
+ for (let i = 0; i < 16; ++i) {
11404
11395
  buf[offset + i] = rnds[i];
11405
11396
  }
11406
11397
 
11407
11398
  return buf;
11408
11399
  }
11409
11400
 
11410
- return stringify(rnds);
11401
+ return unsafeStringify(rnds);
11411
11402
  }
11412
11403
 
11413
11404
  /**