Skip to content
This repository was archived by the owner on May 25, 2025. It is now read-only.

Commit f58592d

Browse files
fix(deps): adapt to latest js-lib
1 parent a050e73 commit f58592d

File tree

4 files changed

+93
-124
lines changed

4 files changed

+93
-124
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"json2env-debug": "tsn ./src/bin/json2env.ts ./src/test/someFile.json"
1515
},
1616
"dependencies": {
17-
"@naturalcycles/js-lib": "^14.0.0",
17+
"@naturalcycles/js-lib": "^14.244.0",
1818
"@types/js-yaml": "^4.0.9",
1919
"@types/jsonwebtoken": "^9.0.0",
2020
"@types/through2-concurrent": "^2.0.0",

src/util/buildInfo.util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface GenerateBuildInfoOptions {
2222

2323
export function generateBuildInfo(opt: GenerateBuildInfoOptions = {}): BuildInfo {
2424
const now = localTime.orNow(opt.overrideTimestamp)
25-
const ts = now.unix()
25+
const ts = now.unix
2626

2727
const rev = gitCurrentCommitSha()
2828
const branchName = gitCurrentBranchName()

src/validation/ajv/ajv.test.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,9 @@ test.each([
187187
[{ type: 'string', format: 'countryCode' }, ['se', 'sve']],
188188
[{ type: 'string', format: 'currency' }, ['sek', 'us']],
189189
[{ type: 'number', format: 'unixTimestamp' }, [1232342342000, -1]],
190-
[
191-
{ type: 'number', format: 'unixTimestamp2000' },
192-
[1232342342000, localTime('1999-01-01').unix()],
193-
],
190+
[{ type: 'number', format: 'unixTimestamp2000' }, [1232342342000, localTime('1999-01-01').unix]],
194191
[{ type: 'number', format: 'unixTimestampMillis' }, [-1]],
195-
[
196-
{ type: 'number', format: 'unixTimestampMillis2000' },
197-
[-1, localTime('1999-01-01').unixMillis()],
198-
],
192+
[{ type: 'number', format: 'unixTimestampMillis2000' }, [-1, localTime('1999-01-01').unixMillis]],
199193
[{ type: 'number', format: 'utcOffset' }, [-15 * 60]],
200194
[{ type: 'number', format: 'utcOffsetHours' }, [-15, 15]],
201195
] as [JsonSchema, any[]][])('%s should be invalid', (schema, objects: any[]) => {

0 commit comments

Comments
 (0)