@naturalcycles/nodejs-lib 15.90.1 → 15.91.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.
Files changed (38) hide show
  1. package/dist/exec2/exec2.d.ts +1 -1
  2. package/dist/fs/fs2.d.ts +6 -5
  3. package/dist/fs/kpy.js +1 -1
  4. package/dist/security/crypto.util.d.ts +1 -1
  5. package/dist/slack/slack.service.d.ts +1 -1
  6. package/dist/slack/slack.service.js +1 -1
  7. package/dist/stream/pipeline.d.ts +11 -12
  8. package/dist/stream/pipeline.js +5 -7
  9. package/dist/stream/readable/createReadable.d.ts +1 -1
  10. package/dist/stream/transform/transformMap.d.ts +3 -2
  11. package/dist/stream/transform/transformMap.js +1 -1
  12. package/dist/validation/ajv/ajvSchema.d.ts +660 -3
  13. package/dist/validation/ajv/ajvSchema.js +1148 -4
  14. package/dist/validation/ajv/from-data/generateJsonSchemaFromData.d.ts +2 -2
  15. package/dist/validation/ajv/getAjv.d.ts +2 -1
  16. package/dist/validation/ajv/index.d.ts +0 -1
  17. package/dist/validation/ajv/index.js +0 -1
  18. package/dist/validation/ajv/jsonSchemaBuilder.util.d.ts +1 -1
  19. package/dist/zip/zip.util.d.ts +1 -2
  20. package/package.json +2 -1
  21. package/src/exec2/exec2.ts +2 -1
  22. package/src/security/crypto.util.ts +2 -1
  23. package/src/slack/slack.service.ts +6 -7
  24. package/src/stream/pipeline.ts +30 -34
  25. package/src/stream/readable/createReadable.ts +2 -1
  26. package/src/stream/readable/readableCombined.ts +4 -2
  27. package/src/stream/transform/transformFork.ts +2 -1
  28. package/src/stream/transform/transformMap.ts +12 -12
  29. package/src/stream/transform/worker/workerClassProxy.js +1 -1
  30. package/src/stream/writable/writableChunk.ts +2 -1
  31. package/src/validation/ajv/ajvSchema.ts +2005 -5
  32. package/src/validation/ajv/from-data/generateJsonSchemaFromData.ts +3 -2
  33. package/src/validation/ajv/getAjv.ts +3 -2
  34. package/src/validation/ajv/index.ts +0 -1
  35. package/src/validation/ajv/jsonSchemaBuilder.util.ts +1 -1
  36. package/dist/validation/ajv/jsonSchemaBuilder.d.ts +0 -655
  37. package/dist/validation/ajv/jsonSchemaBuilder.js +0 -1129
  38. package/src/validation/ajv/jsonSchemaBuilder.ts +0 -1985
@@ -1,6 +1,7 @@
1
1
  import { _uniq } from '@naturalcycles/js-lib/array'
2
- import { _stringMapEntries, type AnyObject, type StringMap } from '@naturalcycles/js-lib/types'
3
- import type { JsonSchema } from '../jsonSchemaBuilder.js'
2
+ import { _stringMapEntries } from '@naturalcycles/js-lib/types'
3
+ import type { AnyObject, StringMap } from '@naturalcycles/js-lib/types'
4
+ import type { JsonSchema } from '../ajvSchema.js'
4
5
 
5
6
  type PrimitiveType = 'undefined' | 'null' | 'boolean' | 'string' | 'number'
6
7
  type Type = PrimitiveType | 'array' | 'object'
@@ -3,7 +3,8 @@ import { _assert } from '@naturalcycles/js-lib/error'
3
3
  import { _deepCopy, _mapObject, Set2 } from '@naturalcycles/js-lib/object'
4
4
  import { _substringAfterLast } from '@naturalcycles/js-lib/string'
5
5
  import type { AnyObject } from '@naturalcycles/js-lib/types'
6
- import { Ajv2020, type Options, type ValidateFunction } from 'ajv/dist/2020.js'
6
+ import { Ajv2020 } from 'ajv/dist/2020.js'
7
+ import type { Options, ValidateFunction } from 'ajv/dist/2020.js'
7
8
  import { validTLDs } from '../tlds.js'
8
9
  import type {
9
10
  CustomConverterFn,
@@ -12,7 +13,7 @@ import type {
12
13
  JsonSchemaIsoMonthOptions,
13
14
  JsonSchemaStringEmailOptions,
14
15
  JsonSchemaTerminal,
15
- } from './jsonSchemaBuilder.js'
16
+ } from './ajvSchema.js'
16
17
 
17
18
  /* eslint-disable @typescript-eslint/prefer-string-starts-ends-with */
18
19
  // oxlint-disable unicorn/prefer-code-point
@@ -4,6 +4,5 @@ export * from './ajvSchema.js'
4
4
  export * from './ajvValidationError.js'
5
5
  export * from './from-data/generateJsonSchemaFromData.js'
6
6
  export * from './getAjv.js'
7
- export * from './jsonSchemaBuilder.js'
8
7
 
9
8
  export { Ajv }
@@ -1,7 +1,7 @@
1
1
  import { _uniq } from '@naturalcycles/js-lib/array'
2
2
  import { _filterNullishValues } from '@naturalcycles/js-lib/object'
3
3
  import type { AnyObject } from '@naturalcycles/js-lib/types'
4
- import type { JsonSchema } from './jsonSchemaBuilder.js'
4
+ import type { JsonSchema } from './ajvSchema.js'
5
5
 
6
6
  export const JSON_SCHEMA_ORDER = [
7
7
  '$schema',