@domql/utils 2.4.7 → 2.4.12
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/cjs/key.js +4 -4
- package/key.js +2 -2
- package/package.json +2 -2
package/dist/cjs/key.js
CHANGED
|
@@ -18,11 +18,11 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var key_exports = {};
|
|
20
20
|
__export(key_exports, {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
createSnapshotId: () => createSnapshotId,
|
|
22
|
+
generateKey: () => generateKey
|
|
23
23
|
});
|
|
24
24
|
module.exports = __toCommonJS(key_exports);
|
|
25
|
-
const
|
|
25
|
+
const generateKey = function() {
|
|
26
26
|
let index = 0;
|
|
27
27
|
function newId() {
|
|
28
28
|
index++;
|
|
@@ -30,4 +30,4 @@ const createKey = function() {
|
|
|
30
30
|
}
|
|
31
31
|
return newId;
|
|
32
32
|
}();
|
|
33
|
-
const createSnapshotId =
|
|
33
|
+
const createSnapshotId = generateKey;
|
package/key.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
export const
|
|
3
|
+
export const generateKey = (function () {
|
|
4
4
|
let index = 0
|
|
5
5
|
|
|
6
6
|
function newId () {
|
|
@@ -11,4 +11,4 @@ export const createKey = (function () {
|
|
|
11
11
|
return newId
|
|
12
12
|
})()
|
|
13
13
|
|
|
14
|
-
export const createSnapshotId =
|
|
14
|
+
export const createSnapshotId = generateKey
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/utils",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.12",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"build": "yarn build:cjs",
|
|
24
24
|
"prepublish": "rimraf -I dist && yarn build && yarn copy:package:cjs"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "fb655eb1dbbde28cb1b843f13aad21afcfcece40",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/core": "^7.12.0"
|
|
29
29
|
}
|