@sprucelabs/schema 28.4.38 → 28.5.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.
- package/build/esm/fields/AbstractField.d.ts +1 -1
- package/build/esm/fields/FileField.types.d.ts +1 -1
- package/build/esm/fields/FileField.types.js +1 -0
- package/build/esm/fields/SelectField.js +1 -1
- package/build/fields/AbstractField.d.ts +1 -1
- package/build/fields/FileField.types.d.ts +1 -1
- package/build/fields/FileField.types.js +1 -0
- package/build/fields/SelectField.js +1 -1
- package/package.json +6 -6
|
@@ -32,7 +32,7 @@ export default abstract class AbstractField<F extends FieldDefinitions> implemen
|
|
|
32
32
|
} | {
|
|
33
33
|
dateTimeFormat?: string | undefined;
|
|
34
34
|
} | {
|
|
35
|
-
acceptableTypes: ("image/svg+xml" | "image/png" | "image/jpeg" | "application/pdf" | "*")[];
|
|
35
|
+
acceptableTypes: ("image/svg+xml" | "image/png" | "image/jpeg" | "application/pdf" | "text/csv" | "*")[];
|
|
36
36
|
} | {
|
|
37
37
|
relativeTo?: string | undefined;
|
|
38
38
|
} | {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldDefinition } from './field.static.types';
|
|
2
|
-
export declare const supportedFileTypes: readonly ["image/png", "image/svg+xml", "image/jpeg", "application/pdf", "*"];
|
|
2
|
+
export declare const supportedFileTypes: readonly ["image/png", "image/svg+xml", "image/jpeg", "application/pdf", "text/csv", "*"];
|
|
3
3
|
export declare type SupportedFileType = typeof supportedFileTypes[number];
|
|
4
4
|
export interface FileFieldValue {
|
|
5
5
|
name: string;
|
|
@@ -22,7 +22,7 @@ export default class SelectField extends AbstractField {
|
|
|
22
22
|
errors.push({
|
|
23
23
|
code: 'INVALID_PARAMETER',
|
|
24
24
|
name: this.name,
|
|
25
|
-
friendlyMessage: `Valid choices are: '${Object.keys(validChoices).join("','")}'`,
|
|
25
|
+
friendlyMessage: `'${value}' is not valid! Valid choices are: '${Object.keys(validChoices).join("','")}'`,
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
return errors;
|
|
@@ -32,7 +32,7 @@ export default abstract class AbstractField<F extends FieldDefinitions> implemen
|
|
|
32
32
|
} | {
|
|
33
33
|
dateTimeFormat?: string | undefined;
|
|
34
34
|
} | {
|
|
35
|
-
acceptableTypes: ("image/png" | "image/svg+xml" | "image/jpeg" | "application/pdf" | "*")[];
|
|
35
|
+
acceptableTypes: ("image/png" | "image/svg+xml" | "image/jpeg" | "application/pdf" | "text/csv" | "*")[];
|
|
36
36
|
} | {
|
|
37
37
|
relativeTo?: string | undefined;
|
|
38
38
|
} | {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldDefinition } from './field.static.types';
|
|
2
|
-
export declare const supportedFileTypes: readonly ["image/png", "image/svg+xml", "image/jpeg", "application/pdf", "*"];
|
|
2
|
+
export declare const supportedFileTypes: readonly ["image/png", "image/svg+xml", "image/jpeg", "application/pdf", "text/csv", "*"];
|
|
3
3
|
export declare type SupportedFileType = typeof supportedFileTypes[number];
|
|
4
4
|
export interface FileFieldValue {
|
|
5
5
|
name: string;
|
|
@@ -27,7 +27,7 @@ class SelectField extends AbstractField_1.default {
|
|
|
27
27
|
errors.push({
|
|
28
28
|
code: 'INVALID_PARAMETER',
|
|
29
29
|
name: this.name,
|
|
30
|
-
friendlyMessage: `Valid choices are: '${Object.keys(validChoices).join("','")}'`,
|
|
30
|
+
friendlyMessage: `'${value}' is not valid! Valid choices are: '${Object.keys(validChoices).join("','")}'`,
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
return errors;
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"!build/__tests__",
|
|
9
9
|
"esm"
|
|
10
10
|
],
|
|
11
|
-
"version": "28.
|
|
11
|
+
"version": "28.5.2",
|
|
12
12
|
"main": "./build/index.js",
|
|
13
13
|
"types": "./build/index.d.ts",
|
|
14
14
|
"module": "./build/esm/index.js",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"build.copy-files": "mkdir -p build && rsync -avzq --exclude='*.ts' ./src/ ./build/"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@sprucelabs/error": "^5.0.
|
|
70
|
-
"@sprucelabs/test": "^7.7.
|
|
69
|
+
"@sprucelabs/error": "^5.0.507",
|
|
70
|
+
"@sprucelabs/test": "^7.7.356",
|
|
71
71
|
"email-validator": "^2.0.4",
|
|
72
72
|
"just-safe-get": "^4.1.1",
|
|
73
73
|
"just-safe-set": "^4.1.1"
|
|
@@ -78,13 +78,13 @@
|
|
|
78
78
|
"@sprucelabs/jest-sheets-reporter": "^1.3.29",
|
|
79
79
|
"@sprucelabs/resolve-path-aliases": "^1.1.14",
|
|
80
80
|
"@sprucelabs/semantic-release": "^4.0.8",
|
|
81
|
-
"@sprucelabs/test-utils": "^3.1.
|
|
81
|
+
"@sprucelabs/test-utils": "^3.1.78",
|
|
82
82
|
"chokidar-cli": "^3.0.0",
|
|
83
83
|
"concurrently": "^7.4.0",
|
|
84
84
|
"eslint": "^8.23.0",
|
|
85
85
|
"eslint-config-spruce": "^10.11.4",
|
|
86
|
-
"jest": "^29.0.
|
|
87
|
-
"jest-circus": "^29.0.
|
|
86
|
+
"jest": "^29.0.3",
|
|
87
|
+
"jest-circus": "^29.0.3",
|
|
88
88
|
"prettier": "^2.7.1",
|
|
89
89
|
"ts-node": "^10.9.1",
|
|
90
90
|
"tsc-watch": "^5.0.3",
|