Skip to content

Commit f0df580

Browse files
authored
Update jet-validators to the latest version (small performance improvement) (#1748)
1 parent d3c0b4d commit f0df580

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

cases/jet-validators.ts

+8-9
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { isString, isNumber, isBoolean } from 'jet-validators';
22

33
import {
44
parseObject,
5-
testObject,
65
looseTestObject,
76
strictParseObject,
87
strictTestObject,
@@ -19,11 +18,11 @@ const safeParse = parseObject({
1918
string: isString,
2019
longString: isString,
2120
boolean: isBoolean,
22-
deeplyNested: testObject({
21+
deeplyNested: {
2322
foo: isString,
2423
num: isNumber,
2524
bool: isBoolean,
26-
}),
25+
},
2726
});
2827

2928
const looseTest = looseTestObject({
@@ -33,11 +32,11 @@ const looseTest = looseTestObject({
3332
string: isString,
3433
longString: isString,
3534
boolean: isBoolean,
36-
deeplyNested: looseTestObject({
35+
deeplyNested: {
3736
foo: isString,
3837
num: isNumber,
3938
bool: isBoolean,
40-
}),
39+
},
4140
});
4241

4342
const strictParse = strictParseObject({
@@ -47,11 +46,11 @@ const strictParse = strictParseObject({
4746
string: isString,
4847
longString: isString,
4948
boolean: isBoolean,
50-
deeplyNested: strictTestObject({
49+
deeplyNested: {
5150
foo: isString,
5251
num: isNumber,
5352
bool: isBoolean,
54-
}),
53+
},
5554
});
5655

5756
const strictTest = strictTestObject({
@@ -61,11 +60,11 @@ const strictTest = strictTestObject({
6160
string: isString,
6261
longString: isString,
6362
boolean: isBoolean,
64-
deeplyNested: strictTestObject({
63+
deeplyNested: {
6564
foo: isString,
6665
num: isNumber,
6766
bool: isBoolean,
68-
}),
67+
},
6968
});
7069

7170
const checkFailed = (arg: unknown) => {

package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"fp-ts": "2.16.9",
6666
"io-ts": "2.2.22",
6767
"jet-schema": "1.4.3",
68-
"jet-validators": "1.3.8",
68+
"jet-validators": "1.3.9",
6969
"joi": "17.13.3",
7070
"jointz": "7.0.4",
7171
"json-decoder": "1.4.1",

0 commit comments

Comments
 (0)