@opra/common 1.2.2 → 1.3.0
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.
|
@@ -176,6 +176,9 @@ class ComplexTypeBaseClass extends data_type_js_1.DataType {
|
|
|
176
176
|
});
|
|
177
177
|
schema[fieldName] = context.partial || !field.required ? valgen_1.vg.optional(fn) : valgen_1.vg.required(fn);
|
|
178
178
|
}
|
|
179
|
+
if (context.allowPatchOperators) {
|
|
180
|
+
schema.$remove = valgen_1.vg.optional(valgen_1.vg.isAny());
|
|
181
|
+
}
|
|
179
182
|
return schema;
|
|
180
183
|
}
|
|
181
184
|
_generateFieldCodec(codec, field, context) {
|
|
@@ -173,6 +173,9 @@ class ComplexTypeBaseClass extends DataType {
|
|
|
173
173
|
});
|
|
174
174
|
schema[fieldName] = context.partial || !field.required ? vg.optional(fn) : vg.required(fn);
|
|
175
175
|
}
|
|
176
|
+
if (context.allowPatchOperators) {
|
|
177
|
+
schema.$remove = vg.optional(vg.isAny());
|
|
178
|
+
}
|
|
176
179
|
return schema;
|
|
177
180
|
}
|
|
178
181
|
_generateFieldCodec(codec, field, context) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
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-r1",
|
|
11
11
|
"@browsery/i18next": "^23.12.3-r1",
|
|
12
12
|
"@browsery/type-is": "^1.6.18-r5",
|
|
13
|
-
"@jsopen/objects": "^1.
|
|
13
|
+
"@jsopen/objects": "^1.5.0",
|
|
14
14
|
"fast-tokenizer": "^1.7.0",
|
|
15
15
|
"putil-promisify": "^1.10.1",
|
|
16
16
|
"putil-varhelpers": "^1.6.5",
|