@naturalcycles/nodejs-lib 15.90.2 → 15.92.0
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/dist/fs/fs2.d.ts +6 -5
- package/dist/fs/kpy.js +1 -1
- package/dist/stream/pipeline.d.ts +1 -2
- package/dist/stream/pipeline.js +1 -3
- package/dist/validation/ajv/ajvSchema.d.ts +644 -20
- package/dist/validation/ajv/ajvSchema.js +1179 -8
- package/dist/validation/ajv/from-data/generateJsonSchemaFromData.d.ts +1 -1
- package/dist/validation/ajv/getAjv.js +6 -0
- package/dist/validation/ajv/index.d.ts +0 -1
- package/dist/validation/ajv/index.js +0 -1
- package/dist/validation/ajv/jsonSchemaBuilder.util.d.ts +1 -1
- package/dist/zip/zip.util.d.ts +1 -2
- package/package.json +2 -2
- package/src/validation/ajv/ajvSchema.ts +1930 -50
- package/src/validation/ajv/from-data/generateJsonSchemaFromData.ts +1 -1
- package/src/validation/ajv/getAjv.ts +10 -3
- package/src/validation/ajv/index.ts +0 -1
- package/src/validation/ajv/jsonSchemaBuilder.util.ts +1 -1
- package/dist/validation/ajv/jsonSchemaBuilder.d.ts +0 -653
- package/dist/validation/ajv/jsonSchemaBuilder.js +0 -1128
- package/src/validation/ajv/jsonSchemaBuilder.ts +0 -1975
|
@@ -623,6 +623,12 @@ export function createAjv(opt) {
|
|
|
623
623
|
return true;
|
|
624
624
|
},
|
|
625
625
|
});
|
|
626
|
+
// postValidation is handled in AjvSchema.getValidationResult, not by Ajv itself.
|
|
627
|
+
// We register it here so Ajv's strict mode doesn't reject the keyword.
|
|
628
|
+
ajv.addKeyword({
|
|
629
|
+
keyword: 'postValidation',
|
|
630
|
+
valid: true,
|
|
631
|
+
});
|
|
626
632
|
return ajv;
|
|
627
633
|
}
|
|
628
634
|
const monthLengths = [0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AnyObject } from '@naturalcycles/js-lib/types';
|
|
2
|
-
import type { JsonSchema } from './
|
|
2
|
+
import type { JsonSchema } from './ajvSchema.js';
|
|
3
3
|
export declare const JSON_SCHEMA_ORDER: string[];
|
|
4
4
|
/**
|
|
5
5
|
* Merges s2 into s1 (mutates s1) and returns s1.
|
package/dist/zip/zip.util.d.ts
CHANGED
|
@@ -30,8 +30,7 @@ export declare function gunzipBuffer(buf: Buffer, options?: ZlibOptions): Promis
|
|
|
30
30
|
*/
|
|
31
31
|
export declare function gzipString(s: string, options?: ZlibOptions): Promise<Buffer<ArrayBuffer>>;
|
|
32
32
|
export declare function gunzipToString(buf: Buffer, options?: ZlibOptions): Promise<string>;
|
|
33
|
-
export declare function zstdCompress(input: Buffer | string, level?: Integer,
|
|
34
|
-
options?: ZstdOptions): Promise<Buffer<ArrayBuffer>>;
|
|
33
|
+
export declare function zstdCompress(input: Buffer | string, level?: Integer, options?: ZstdOptions): Promise<Buffer<ArrayBuffer>>;
|
|
35
34
|
export declare function zstdLevelToOptions(level: Integer | undefined, opt?: ZstdOptions): ZstdOptions;
|
|
36
35
|
export declare function zstdDecompressToString(input: Buffer, options?: ZstdOptions): Promise<string>;
|
|
37
36
|
export declare function zstdDecompress(input: Buffer, options?: ZstdOptions): Promise<Buffer<ArrayBuffer>>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/nodejs-lib",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.92.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@naturalcycles/js-lib": "^15",
|
|
7
7
|
"@types/js-yaml": "^4",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"yargs": "^18"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@typescript/native-preview": "
|
|
21
|
+
"@typescript/native-preview": "7.0.0-dev.20260201.1",
|
|
22
22
|
"@naturalcycles/dev-lib": "18.4.2"
|
|
23
23
|
},
|
|
24
24
|
"exports": {
|