@lowdefy/helpers 4.0.0-alpha.6 → 4.0.0-alpha.9
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/applyArrayIndices.js +1 -1
- package/dist/cachedPromises.js +5 -5
- package/dist/get.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mergeObjects.js +1 -1
- package/dist/omit.js +1 -1
- package/dist/serializer.js +1 -1
- package/dist/set.js +1 -1
- package/dist/stableStringify.js +1 -1
- package/dist/swap.js +1 -1
- package/dist/type.js +1 -1
- package/dist/unset.js +1 -1
- package/dist/urlQuery.js +1 -1
- package/dist/wait.js +1 -1
- package/package.json +6 -6
package/dist/cachedPromises.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2022 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
|
-
*/ function
|
|
15
|
+
*/ function createCachedPromises(getter) {
|
|
16
16
|
const cache = new Map();
|
|
17
|
-
function
|
|
17
|
+
function cachedPromises(key) {
|
|
18
18
|
if (cache.has(key)) {
|
|
19
19
|
return Promise.resolve(cache.get(key));
|
|
20
20
|
}
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
cache.set(key, promise);
|
|
23
23
|
return Promise.resolve(promise);
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return cachedPromises;
|
|
26
26
|
}
|
|
27
|
-
export default
|
|
27
|
+
export default createCachedPromises;
|
package/dist/get.js
CHANGED
package/dist/index.js
CHANGED
package/dist/mergeObjects.js
CHANGED
package/dist/omit.js
CHANGED
package/dist/serializer.js
CHANGED
package/dist/set.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable no-plusplus */ /* eslint-disable no-use-before-define */ /* eslint-disable no-param-reassign */ /*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2022 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
package/dist/stableStringify.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable no-continue */ /* eslint-disable no-plusplus */ /* eslint-disable consistent-return */ /* eslint-disable no-param-reassign */ /*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2022 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
package/dist/swap.js
CHANGED
package/dist/type.js
CHANGED
package/dist/unset.js
CHANGED
package/dist/urlQuery.js
CHANGED
package/dist/wait.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/helpers",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.9",
|
|
4
4
|
"licence": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"lodash.merge": "4.6.2",
|
|
42
|
-
"query-string": "7.0
|
|
42
|
+
"query-string": "7.1.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@swc/cli": "0.1.55",
|
|
46
|
-
"@swc/core": "1.2.
|
|
46
|
+
"@swc/core": "1.2.135",
|
|
47
47
|
"@swc/jest": "0.2.17",
|
|
48
|
-
"jest": "27.
|
|
49
|
-
"jest-diff": "27.
|
|
48
|
+
"jest": "27.5.1",
|
|
49
|
+
"jest-diff": "27.5.1"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "98b544eca231bdcfca6c3a8601a891835d5ce571"
|
|
55
55
|
}
|