@sprucelabs/schema 26.0.6 → 26.0.10

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.
@@ -2,8 +2,9 @@ import SpruceError from '../errors/SpruceError.js';
2
2
  const assertOptions = function (options, toCheck) {
3
3
  const missing = [];
4
4
  for (const check of toCheck) {
5
+ const value = options === null || options === void 0 ? void 0 : options[check];
5
6
  //@ts-ignore
6
- if (typeof (options === null || options === void 0 ? void 0 : options[check]) === 'undefined') {
7
+ if (value === null || typeof value === 'undefined') {
7
8
  missing.push(check);
8
9
  }
9
10
  }
@@ -7,8 +7,9 @@ const SpruceError_1 = __importDefault(require("../errors/SpruceError"));
7
7
  const assertOptions = function (options, toCheck) {
8
8
  const missing = [];
9
9
  for (const check of toCheck) {
10
+ const value = options === null || options === void 0 ? void 0 : options[check];
10
11
  //@ts-ignore
11
- if (typeof (options === null || options === void 0 ? void 0 : options[check]) === 'undefined') {
12
+ if (value === null || typeof value === 'undefined') {
12
13
  missing.push(check);
13
14
  }
14
15
  }
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "!build/__tests__",
9
9
  "esm"
10
10
  ],
11
- "version": "26.0.6",
11
+ "version": "26.0.10",
12
12
  "main": "./build/index.js",
13
13
  "types": "./build/index.d.ts",
14
14
  "module": "./build/esm/index.js",
@@ -61,7 +61,7 @@
61
61
  "build.copy-files": "mkdir -p build && rsync -avzq --exclude='*.ts' ./src/ ./build/"
62
62
  },
63
63
  "dependencies": {
64
- "@sprucelabs/error": "^5.0.386",
64
+ "@sprucelabs/error": "^5.0.387",
65
65
  "@sprucelabs/test": "^7.7.277",
66
66
  "email-validator": "^2.0.4",
67
67
  "lodash": "^4.17.21",
@@ -69,13 +69,13 @@
69
69
  "mime-type": "^4.0.0"
70
70
  },
71
71
  "devDependencies": {
72
- "@sprucelabs/esm-postbuild": "^1.0.333",
73
- "@sprucelabs/jest-json-reporter": "^6.0.316",
72
+ "@sprucelabs/esm-postbuild": "^1.0.334",
73
+ "@sprucelabs/jest-json-reporter": "^6.0.317",
74
74
  "@sprucelabs/jest-sheets-reporter": "^1.2.319",
75
75
  "@sprucelabs/resolve-path-aliases": "^1.0.256",
76
76
  "@sprucelabs/semantic-release": "^4.0.8",
77
- "@sprucelabs/spruce-test-fixtures": "^24.0.4",
78
- "@sprucelabs/test-utils": "^3.0.395",
77
+ "@sprucelabs/spruce-test-fixtures": "^24.0.6",
78
+ "@sprucelabs/test-utils": "^3.0.397",
79
79
  "@types/lodash": "^4.14.178",
80
80
  "@types/mime-db": "^1.43.1",
81
81
  "chokidar-cli": "^3.0.0",