@sprucelabs/schema 25.6.121 → 25.6.125
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const assertOptions: <Options extends Record<string, any>>(options: Options, toCheck:
|
|
1
|
+
declare const assertOptions: <Options extends Record<string, any>>(options: Options, toCheck: (keyof Options)[]) => Options;
|
|
2
2
|
export default assertOptions;
|
|
@@ -3,7 +3,7 @@ const assertOptions = function (options, toCheck) {
|
|
|
3
3
|
const missing = [];
|
|
4
4
|
for (const check of toCheck) {
|
|
5
5
|
//@ts-ignore
|
|
6
|
-
if (
|
|
6
|
+
if (typeof (options === null || options === void 0 ? void 0 : options[check]) === 'undefined') {
|
|
7
7
|
missing.push(check);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const assertOptions: <Options extends Record<string, any>>(options: Options, toCheck:
|
|
1
|
+
declare const assertOptions: <Options extends Record<string, any>>(options: Options, toCheck: (keyof Options)[]) => Options;
|
|
2
2
|
export default assertOptions;
|
|
@@ -8,7 +8,7 @@ const assertOptions = function (options, toCheck) {
|
|
|
8
8
|
const missing = [];
|
|
9
9
|
for (const check of toCheck) {
|
|
10
10
|
//@ts-ignore
|
|
11
|
-
if (
|
|
11
|
+
if (typeof (options === null || options === void 0 ? void 0 : options[check]) === 'undefined') {
|
|
12
12
|
missing.push(check);
|
|
13
13
|
}
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"!build/__tests__",
|
|
9
9
|
"esm"
|
|
10
10
|
],
|
|
11
|
-
"version": "25.6.
|
|
11
|
+
"version": "25.6.125",
|
|
12
12
|
"main": "./build/index.js",
|
|
13
13
|
"types": "./build/index.d.ts",
|
|
14
14
|
"module": "./build/esm/index.js",
|
|
@@ -71,11 +71,11 @@
|
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@sprucelabs/esm-postbuild": "^1.0.333",
|
|
73
73
|
"@sprucelabs/jest-json-reporter": "^6.0.316",
|
|
74
|
-
"@sprucelabs/jest-sheets-reporter": "^1.2.
|
|
74
|
+
"@sprucelabs/jest-sheets-reporter": "^1.2.318",
|
|
75
75
|
"@sprucelabs/resolve-path-aliases": "^1.0.256",
|
|
76
76
|
"@sprucelabs/semantic-release": "^4.0.8",
|
|
77
|
-
"@sprucelabs/spruce-test-fixtures": "^23.0.
|
|
78
|
-
"@sprucelabs/test-utils": "^3.0.
|
|
77
|
+
"@sprucelabs/spruce-test-fixtures": "^23.0.43",
|
|
78
|
+
"@sprucelabs/test-utils": "^3.0.393",
|
|
79
79
|
"@types/lodash": "^4.14.178",
|
|
80
80
|
"@types/mime-db": "^1.43.1",
|
|
81
81
|
"chokidar-cli": "^3.0.0",
|