@sprucelabs/schema 28.2.54 → 28.2.55

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.
@@ -34,10 +34,11 @@ const normalizeFieldValue_1 = __importStar(require("./utilities/normalizeFieldVa
34
34
  class StaticSchemaEntityImplementation extends AbstractEntity_1.default {
35
35
  constructor(schema, values) {
36
36
  super(schema);
37
+ this.values = {};
37
38
  this.schema = schema;
38
- this.values = values ? values : {};
39
39
  this.fields = {};
40
40
  this.buildFields();
41
+ this.values = Object.assign(Object.assign({}, this.values), values);
41
42
  }
42
43
  buildFields() {
43
44
  const fieldDefinitions = this.schema.fields;
@@ -6,10 +6,11 @@ import normalizeFieldValue, { normalizeValueToArray, } from './utilities/normali
6
6
  export default class StaticSchemaEntityImplementation extends AbstractEntity {
7
7
  constructor(schema, values) {
8
8
  super(schema);
9
+ this.values = {};
9
10
  this.schema = schema;
10
- this.values = values ? values : {};
11
11
  this.fields = {};
12
12
  this.buildFields();
13
+ this.values = Object.assign(Object.assign({}, this.values), values);
13
14
  }
14
15
  buildFields() {
15
16
  const fieldDefinitions = this.schema.fields;
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "!build/__tests__",
9
9
  "esm"
10
10
  ],
11
- "version": "28.2.54",
11
+ "version": "28.2.55",
12
12
  "main": "./build/index.js",
13
13
  "types": "./build/index.d.ts",
14
14
  "module": "./build/esm/index.js",