@sprucelabs/schema 30.1.0 → 30.1.2

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.
@@ -8,7 +8,7 @@ function flattenValue(values, prefix = '') {
8
8
  for (const key of keys) {
9
9
  const value = values[key];
10
10
  const dotKey = prefix ? `${prefix}.${key}` : key;
11
- if (typeof value === 'object') {
11
+ if (value && typeof value === 'object') {
12
12
  flattened = { ...flattened, ...flattenValue(value, dotKey) };
13
13
  }
14
14
  else {
@@ -11,7 +11,7 @@ function flattenValue(values, prefix = '') {
11
11
  for (const key of keys) {
12
12
  const value = values[key];
13
13
  const dotKey = prefix ? `${prefix}.${key}` : key;
14
- if (typeof value === 'object') {
14
+ if (value && typeof value === 'object') {
15
15
  flattened = { ...flattened, ...flattenValue(value, dotKey) };
16
16
  }
17
17
  else {
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "!build/__tests__",
9
9
  "esm"
10
10
  ],
11
- "version": "30.1.0",
11
+ "version": "30.1.2",
12
12
  "main": "./build/index.js",
13
13
  "types": "./build/index.d.ts",
14
14
  "module": "./build/esm/index.js",
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "@sprucelabs/error": "^6.0.556",
62
- "@sprucelabs/test-utils": "^5.1.528",
62
+ "@sprucelabs/test-utils": "^5.1.529",
63
63
  "email-validator": "^2.0.4",
64
64
  "just-safe-get": "^4.2.0",
65
65
  "just-safe-set": "^4.2.1"