@opra/common 1.3.1 → 1.4.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.
@@ -177,7 +177,8 @@ class ComplexTypeBaseClass extends data_type_js_1.DataType {
177
177
  schema[fieldName] = context.partial || !field.required ? valgen_1.vg.optional(fn) : valgen_1.vg.required(fn);
178
178
  }
179
179
  if (context.allowPatchOperators) {
180
- schema.$remove = valgen_1.vg.optional(valgen_1.vg.isAny());
180
+ schema._$pull = valgen_1.vg.optional(valgen_1.vg.isAny());
181
+ schema._$push = valgen_1.vg.optional(valgen_1.vg.isAny());
181
182
  }
182
183
  return schema;
183
184
  }
@@ -174,7 +174,8 @@ class ComplexTypeBaseClass extends DataType {
174
174
  schema[fieldName] = context.partial || !field.required ? vg.optional(fn) : vg.required(fn);
175
175
  }
176
176
  if (context.allowPatchOperators) {
177
- schema.$remove = vg.optional(vg.isAny());
177
+ schema._$pull = vg.optional(vg.isAny());
178
+ schema._$push = vg.optional(vg.isAny());
178
179
  }
179
180
  return schema;
180
181
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/common",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "Opra common package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",