not-node 6.3.30 → 6.3.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "not-node",
3
- "version": "6.3.30",
3
+ "version": "6.3.31",
4
4
  "description": "node complimentary part for client side notFramework.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/form/form.js CHANGED
@@ -186,7 +186,7 @@ class Form {
186
186
  );
187
187
  if (!validationResult.clean) {
188
188
  throw new notValidationError(
189
- "not-core:form_validation_error",
189
+ "not-node:form_validation_error",
190
190
  validationResult.getReport(),
191
191
  null,
192
192
  data
@@ -305,7 +305,7 @@ class Form {
305
305
  throw e;
306
306
  } else {
307
307
  throw new notError(
308
- "core:form_validation_error",
308
+ "not-node:form_validation_error",
309
309
  {
310
310
  FORM_NAME: this.#FORM_NAME,
311
311
  PROTO_FIELDS: this.#PROTO_FIELDS,
@@ -394,7 +394,11 @@ function close(data = undefined) {
394
394
  }
395
395
 
396
396
  function saveNewVersion() {
397
- return routine.update(this.constructor, { _id: this._id }, this.toObject());
397
+ return routine.update(
398
+ this.constructor,
399
+ { _id: this._id },
400
+ this.toObject({ minimize: false })
401
+ );
398
402
  }
399
403
 
400
404
  module.exports.thisMethods = {
@@ -12,7 +12,7 @@ const TECH_FIELDS = [
12
12
  ];
13
13
 
14
14
  function toObject(obj) {
15
- return obj.toObject ? obj.toObject() : obj;
15
+ return obj.toObject ? obj.toObject({ minimize: false }) : obj;
16
16
  }
17
17
 
18
18
  const {