@takeshape/schema 8.77.2 → 8.78.2
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.
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
|
|
3
1
|
import { pascalCase, isDefined } from '@takeshape/util';
|
|
4
2
|
import unset from 'lodash/unset';
|
|
5
3
|
import isFunction from 'lodash/isFunction';
|
|
@@ -14,11 +12,8 @@ export const MAX_RELATIONSHIP_DEPTH = 1;
|
|
|
14
12
|
export const exceededRelationshipDepth = (depth = 0) => depth >= MAX_RELATIONSHIP_DEPTH;
|
|
15
13
|
|
|
16
14
|
class ShapeCache {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
_defineProperty(this, "unresolved", new Set());
|
|
21
|
-
}
|
|
15
|
+
thunks = new Map();
|
|
16
|
+
unresolved = new Set();
|
|
22
17
|
|
|
23
18
|
has(shapeName) {
|
|
24
19
|
return this.thunks.has(shapeName);
|
|
@@ -33,8 +33,6 @@ var _blueimpMd = _interopRequireDefault(require("blueimp-md5"));
|
|
|
33
33
|
|
|
34
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
35
35
|
|
|
36
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
37
|
-
|
|
38
36
|
const MAX_RELATIONSHIP_DEPTH = 1;
|
|
39
37
|
exports.MAX_RELATIONSHIP_DEPTH = MAX_RELATIONSHIP_DEPTH;
|
|
40
38
|
|
|
@@ -43,11 +41,8 @@ const exceededRelationshipDepth = (depth = 0) => depth >= MAX_RELATIONSHIP_DEPTH
|
|
|
43
41
|
exports.exceededRelationshipDepth = exceededRelationshipDepth;
|
|
44
42
|
|
|
45
43
|
class ShapeCache {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
_defineProperty(this, "unresolved", new Set());
|
|
50
|
-
}
|
|
44
|
+
thunks = new Map();
|
|
45
|
+
unresolved = new Set();
|
|
51
46
|
|
|
52
47
|
has(shapeName) {
|
|
53
48
|
return this.thunks.has(shapeName);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.78.2",
|
|
4
4
|
"description": "TakeShape Schema",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"examples"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@takeshape/errors": "8.
|
|
25
|
-
"@takeshape/json-schema": "8.
|
|
26
|
-
"@takeshape/util": "8.
|
|
24
|
+
"@takeshape/errors": "8.78.2",
|
|
25
|
+
"@takeshape/json-schema": "8.78.2",
|
|
26
|
+
"@takeshape/util": "8.78.2",
|
|
27
27
|
"ajv": "^7.0.4",
|
|
28
28
|
"ajv-formats": "^1.5.1",
|
|
29
29
|
"blueimp-md5": "^2.10.0",
|