@opra/common 1.19.2 → 1.19.3
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.
|
@@ -220,8 +220,9 @@ class DataTypeFactory {
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
if (!metadata)
|
|
223
|
+
if (!metadata) {
|
|
224
224
|
return context.addError(`No DataType metadata found`);
|
|
225
|
+
}
|
|
225
226
|
return context.enterAsync(metadata.name ? `[${metadata.name}]` : '', async () => {
|
|
226
227
|
/** Check for circular dependencies */
|
|
227
228
|
if (metadata.name) {
|
|
@@ -6,6 +6,7 @@ const constants_js_1 = require("../document/constants.js");
|
|
|
6
6
|
function cloneObject(obj, jsonOnly) {
|
|
7
7
|
return (0, objects_1.merge)({}, obj, {
|
|
8
8
|
deep: v => (0, objects_1.isPlainObject)(v) && !v[constants_js_1.DATATYPE_METADATA],
|
|
9
|
+
symbolKeys: true,
|
|
9
10
|
copyDescriptors: true,
|
|
10
11
|
ignoreUndefined: true,
|
|
11
12
|
filter(key, source) {
|
|
@@ -217,8 +217,9 @@ export class DataTypeFactory {
|
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
if (!metadata)
|
|
220
|
+
if (!metadata) {
|
|
221
221
|
return context.addError(`No DataType metadata found`);
|
|
222
|
+
}
|
|
222
223
|
return context.enterAsync(metadata.name ? `[${metadata.name}]` : '', async () => {
|
|
223
224
|
/** Check for circular dependencies */
|
|
224
225
|
if (metadata.name) {
|
|
@@ -3,6 +3,7 @@ import { DATATYPE_METADATA } from '../document/constants.js';
|
|
|
3
3
|
export function cloneObject(obj, jsonOnly) {
|
|
4
4
|
return merge({}, obj, {
|
|
5
5
|
deep: v => isPlainObject(v) && !v[DATATYPE_METADATA],
|
|
6
|
+
symbolKeys: true,
|
|
6
7
|
copyDescriptors: true,
|
|
7
8
|
ignoreUndefined: true,
|
|
8
9
|
filter(key, source) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/common",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.3",
|
|
4
4
|
"description": "Opra common package",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"@browsery/http-parser": "^0.5.9-r4",
|
|
11
11
|
"@browsery/i18next": "^24.2.2",
|
|
12
12
|
"@browsery/type-is": "^1.6.18-r8",
|
|
13
|
-
"@jsopen/objects": "^
|
|
13
|
+
"@jsopen/objects": "^2.0.1",
|
|
14
14
|
"fast-tokenizer": "^1.7.0",
|
|
15
15
|
"object-hash": "^3.0.0",
|
|
16
16
|
"putil-promisify": "^1.10.1",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"super-fast-md5": "^1.0.3",
|
|
20
20
|
"tslib": "^2.8.1",
|
|
21
21
|
"uid": "^2.0.2",
|
|
22
|
-
"valgen": "^5.
|
|
22
|
+
"valgen": "^5.18.0"
|
|
23
23
|
},
|
|
24
24
|
"type": "module",
|
|
25
25
|
"exports": {
|