@clementine-solutions/jane-io 1.0.8 → 1.0.9
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.
|
@@ -135,47 +135,6 @@ export declare const janeRegistry: {
|
|
|
135
135
|
readonly duration: import("./shapes").ParseRule<unknown>;
|
|
136
136
|
readonly scientific: import("./shapes").ParseRule<unknown>;
|
|
137
137
|
};
|
|
138
|
-
readonly normalizers: {
|
|
139
|
-
readonly collapseWhitespace: import("./shapes").NormalizationRule<unknown>;
|
|
140
|
-
readonly compactSparseArray: import("./shapes").NormalizationRule<unknown>;
|
|
141
|
-
readonly emptyToUndefined: import("./shapes").NormalizationRule<unknown>;
|
|
142
|
-
readonly flattenOneLevel: import("./shapes").NormalizationRule<unknown>;
|
|
143
|
-
readonly infinityToUndefined: import("./shapes").NormalizationRule<unknown>;
|
|
144
|
-
readonly invalidDateToUndefined: import("./shapes").NormalizationRule<unknown>;
|
|
145
|
-
readonly nanToUndefined: import("./shapes").NormalizationRule<unknown>;
|
|
146
|
-
readonly normalizeNegativeZero: import("./shapes").NormalizationRule<unknown>;
|
|
147
|
-
readonly removeEmptyArrayKeys: import("./shapes").NormalizationRule<unknown>;
|
|
148
|
-
readonly removeEmptyObjectKeys: import("./shapes").NormalizationRule<unknown>;
|
|
149
|
-
readonly removeEmptyStringItems: import("./shapes").NormalizationRule<unknown>;
|
|
150
|
-
readonly removeEmptyStringKeys: import("./shapes").NormalizationRule<unknown>;
|
|
151
|
-
readonly removeNullItems: import("./shapes").NormalizationRule<unknown>;
|
|
152
|
-
readonly removeNullKeys: import("./shapes").NormalizationRule<unknown>;
|
|
153
|
-
readonly removeUndefinedItems: import("./shapes").NormalizationRule<unknown>;
|
|
154
|
-
readonly removeUndefinedKeys: import("./shapes").NormalizationRule<unknown>;
|
|
155
|
-
readonly trim: import("./shapes").NormalizationRule<unknown>;
|
|
156
|
-
};
|
|
157
|
-
readonly scanners: {
|
|
158
|
-
readonly arrayIsDeep: import("./shapes").ScanRule;
|
|
159
|
-
readonly arrayIsHeterogeneous: import("./shapes").ScanRule;
|
|
160
|
-
readonly arrayIsLarge: import("./shapes").ScanRule;
|
|
161
|
-
readonly bigintIsLarge: import("./shapes").ScanRule;
|
|
162
|
-
readonly bigintNotSafe: import("./shapes").ScanRule;
|
|
163
|
-
readonly dateIsBeforeEpoch: import("./shapes").ScanRule;
|
|
164
|
-
readonly dateIsFarFuture: import("./shapes").ScanRule;
|
|
165
|
-
readonly dateIsInvalid: import("./shapes").ScanRule;
|
|
166
|
-
readonly numberIsInfinite: import("./shapes").ScanRule;
|
|
167
|
-
readonly numberIsNaN: import("./shapes").ScanRule;
|
|
168
|
-
readonly numberIsTooLarge: import("./shapes").ScanRule;
|
|
169
|
-
readonly numberIsUnsafeInteger: import("./shapes").ScanRule;
|
|
170
|
-
readonly objectHasCircularReferences: import("./shapes").ScanRule;
|
|
171
|
-
readonly objectHasManyKeys: import("./shapes").ScanRule;
|
|
172
|
-
readonly objectIsDeep: import("./shapes").ScanRule;
|
|
173
|
-
readonly scanForSentinels: import("./shapes").ScanRule;
|
|
174
|
-
readonly stringHasUnsafeUnicode: import("./shapes").ScanRule;
|
|
175
|
-
readonly stringHasWhitespaceEdges: import("./shapes").ScanRule;
|
|
176
|
-
readonly stringIsLong: import("./shapes").ScanRule;
|
|
177
|
-
readonly unknownNotScannable: import("./shapes").ScanRule;
|
|
178
|
-
};
|
|
179
138
|
readonly policies: {
|
|
180
139
|
readonly default: import("./shapes").Policy;
|
|
181
140
|
readonly lax: import("./shapes").Policy;
|
|
@@ -184,8 +143,4 @@ export declare const janeRegistry: {
|
|
|
184
143
|
readonly boundaryLax: import("./shapes").BoundaryDecideConfig;
|
|
185
144
|
readonly boundaryStrict: import("./shapes").BoundaryDecideConfig;
|
|
186
145
|
};
|
|
187
|
-
readonly registries: {
|
|
188
|
-
readonly normalizationRuleRegistry: Record<import("./shapes").StructuralType, readonly import("./shapes").NormalizationRule[]>;
|
|
189
|
-
readonly scanRuleRegistry: import("./shapes").ScanRuleSet;
|
|
190
|
-
};
|
|
191
146
|
};
|
|
@@ -10,19 +10,7 @@
|
|
|
10
10
|
/* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
|
|
11
11
|
|* Parsers *|
|
|
12
12
|
\* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
|
|
13
|
-
import { parseArrayString, parseBigIntString, parseBinaryString, parseBooleanString, parseDurationString, parseHexString, parseIsoDateString, parseJsonString, parseNumericString, parseObjectString, parseOctalString, parseUrlString, } from './parsers';
|
|
14
|
-
import { parseIntegerString } from './parsers/parse-integer-string';
|
|
15
|
-
import { parseScientificNotationString } from './parsers/parse-scientific-notation-string';
|
|
16
|
-
/* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
|
|
17
|
-
||* Normalizers *|
|
|
18
|
-
\* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
|
|
19
|
-
import { collapseWhitespace, compactSparseArray, emptyToUndefined, flattenOneLevel, infinityToUndefined, invalidDateToUndefined, nanToUndefined, normalizeNegativeZero, removeEmptyArrayKeys, removeEmptyObjectKeys, removeEmptyStringItems, removeEmptyStringKeys, removeNullItems, removeNullKeys, removeUndefinedItems, removeUndefinedKeys, trim, } from './normalizers';
|
|
20
|
-
import { normalizationRuleRegistry } from './normalizers';
|
|
21
|
-
/* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
|
|
22
|
-
||* Scanners *|
|
|
23
|
-
\* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
|
|
24
|
-
import { arrayIsDeep, arrayIsHeterogeneous, arrayIsLarge, bigintIsLarge, bigintNotSafe, dateIsBeforeEpoch, dateIsFarFuture, dateIsInvalid, numberIsInfinite, numberIsNaN, numberIsTooLarge, numberIsUnsafeInteger, objectHasCircularReferences, objectHasManyKeys, objectIsDeep, scanForSentinels, stringHasUnsafeUnicode, stringHasWhitespaceEdges, stringIsLong, unknownNotScannable, } from './scanners';
|
|
25
|
-
import { scanRuleRegistry } from './scanners';
|
|
13
|
+
import { parseArrayString, parseBigIntString, parseBinaryString, parseBooleanString, parseDurationString, parseHexString, parseIntegerString, parseIsoDateString, parseJsonString, parseNumericString, parseObjectString, parseOctalString, parseScientificNotationString, parseUrlString, } from './parsers';
|
|
26
14
|
/* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
|
|
27
15
|
||* Policies *|
|
|
28
16
|
\* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
|
|
@@ -162,47 +150,6 @@ export const janeRegistry = {
|
|
|
162
150
|
duration: parseDurationString,
|
|
163
151
|
scientific: parseScientificNotationString,
|
|
164
152
|
},
|
|
165
|
-
normalizers: {
|
|
166
|
-
collapseWhitespace,
|
|
167
|
-
compactSparseArray,
|
|
168
|
-
emptyToUndefined,
|
|
169
|
-
flattenOneLevel,
|
|
170
|
-
infinityToUndefined,
|
|
171
|
-
invalidDateToUndefined,
|
|
172
|
-
nanToUndefined,
|
|
173
|
-
normalizeNegativeZero,
|
|
174
|
-
removeEmptyArrayKeys,
|
|
175
|
-
removeEmptyObjectKeys,
|
|
176
|
-
removeEmptyStringItems,
|
|
177
|
-
removeEmptyStringKeys,
|
|
178
|
-
removeNullItems,
|
|
179
|
-
removeNullKeys,
|
|
180
|
-
removeUndefinedItems,
|
|
181
|
-
removeUndefinedKeys,
|
|
182
|
-
trim,
|
|
183
|
-
},
|
|
184
|
-
scanners: {
|
|
185
|
-
arrayIsDeep,
|
|
186
|
-
arrayIsHeterogeneous,
|
|
187
|
-
arrayIsLarge,
|
|
188
|
-
bigintIsLarge,
|
|
189
|
-
bigintNotSafe,
|
|
190
|
-
dateIsBeforeEpoch,
|
|
191
|
-
dateIsFarFuture,
|
|
192
|
-
dateIsInvalid,
|
|
193
|
-
numberIsInfinite,
|
|
194
|
-
numberIsNaN,
|
|
195
|
-
numberIsTooLarge,
|
|
196
|
-
numberIsUnsafeInteger,
|
|
197
|
-
objectHasCircularReferences,
|
|
198
|
-
objectHasManyKeys,
|
|
199
|
-
objectIsDeep,
|
|
200
|
-
scanForSentinels,
|
|
201
|
-
stringHasUnsafeUnicode,
|
|
202
|
-
stringHasWhitespaceEdges,
|
|
203
|
-
stringIsLong,
|
|
204
|
-
unknownNotScannable,
|
|
205
|
-
},
|
|
206
153
|
policies: {
|
|
207
154
|
default: defaultPolicy,
|
|
208
155
|
lax: laxPolicy,
|
|
@@ -211,8 +158,4 @@ export const janeRegistry = {
|
|
|
211
158
|
boundaryLax: boundaryPolicyLax,
|
|
212
159
|
boundaryStrict: boundaryPolicyStrict,
|
|
213
160
|
},
|
|
214
|
-
registries: {
|
|
215
|
-
normalizationRuleRegistry,
|
|
216
|
-
scanRuleRegistry,
|
|
217
|
-
},
|
|
218
161
|
};
|
|
@@ -17,6 +17,8 @@ export { parseOctalString } from './parse-octal-string';
|
|
|
17
17
|
export { parseBooleanString } from './parse-boolean-string';
|
|
18
18
|
export { parseIsoDateString } from './parse-date-string';
|
|
19
19
|
export { parseDurationString } from './parse-duration-string';
|
|
20
|
+
export { parseIntegerString } from './parse-integer-string';
|
|
20
21
|
export { parseNumericString } from './parse-numeric-string';
|
|
22
|
+
export { parseScientificNotationString } from './parse-scientific-notation-string';
|
|
21
23
|
export { parseObjectString } from './parse-object-string';
|
|
22
24
|
export { parseUrlString } from './parse-url-string';
|
|
@@ -32,7 +32,9 @@ export { parseDurationString } from './parse-duration-string';
|
|
|
32
32
|
/* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
|
|
33
33
|
|* Number Values *|
|
|
34
34
|
\* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
|
|
35
|
+
export { parseIntegerString } from './parse-integer-string';
|
|
35
36
|
export { parseNumericString } from './parse-numeric-string';
|
|
37
|
+
export { parseScientificNotationString } from './parse-scientific-notation-string';
|
|
36
38
|
/* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— *\
|
|
37
39
|
|* Object Values *|
|
|
38
40
|
\* ——— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ————— * ——— */
|
package/package.json
CHANGED
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
57
57
|
"@types/node": "^25.0.1",
|
|
58
58
|
"@vitest/coverage-v8": "^4.0.15",
|
|
59
|
+
"esbuild": "^0.27.2",
|
|
59
60
|
"eslint": "^9.39.2",
|
|
60
61
|
"husky": "^9.1.7",
|
|
61
62
|
"lint-staged": "^16.2.7",
|
|
@@ -109,5 +110,5 @@
|
|
|
109
110
|
"registry": "https://registry.npmjs.org/",
|
|
110
111
|
"ignoreScripts": true
|
|
111
112
|
},
|
|
112
|
-
"version": "1.0.
|
|
113
|
+
"version": "1.0.9"
|
|
113
114
|
}
|