@prosopo/datasets-fs 0.3.39 → 0.3.41

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.
@@ -1,12 +1,14 @@
1
1
  /// <reference types="yargs" />
2
2
  import * as z from 'zod';
3
3
  import { InputOutputCliCommand } from '../utils/inputOutput.js';
4
- export declare const ArgsSchema: z.ZodObject<{
4
+ export declare const ArgsSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5
5
  input: z.ZodString;
6
+ }, {
6
7
  output: z.ZodString;
7
8
  overwrite: z.ZodOptional<z.ZodBoolean>;
9
+ }>, {
8
10
  allowDuplicates: z.ZodOptional<z.ZodBoolean>;
9
- }, "strip", z.ZodTypeAny, {
11
+ }>, "strip", z.ZodTypeAny, {
10
12
  input: string;
11
13
  output: string;
12
14
  overwrite?: boolean | undefined;
@@ -20,12 +22,14 @@ export declare const ArgsSchema: z.ZodObject<{
20
22
  export type ArgsSchemaType = typeof ArgsSchema;
21
23
  export type Args = z.infer<ArgsSchemaType>;
22
24
  export declare class Flatten extends InputOutputCliCommand<ArgsSchemaType> {
23
- getArgSchema(): z.ZodObject<{
25
+ getArgSchema(): z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
24
26
  input: z.ZodString;
27
+ }, {
25
28
  output: z.ZodString;
26
29
  overwrite: z.ZodOptional<z.ZodBoolean>;
30
+ }>, {
27
31
  allowDuplicates: z.ZodOptional<z.ZodBoolean>;
28
- }, "strip", z.ZodTypeAny, {
32
+ }>, "strip", z.ZodTypeAny, {
29
33
  input: string;
30
34
  output: string;
31
35
  overwrite?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"flatten.d.ts","sourceRoot":"","sources":["../../src/commands/flatten.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAkD,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAS/G,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;EAErB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAA;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;AAE1C,qBAAa,OAAQ,SAAQ,qBAAqB,CAAC,cAAc,CAAC;IAC9C,YAAY;;;;;;;;;;;;;;;;IAIZ,cAAc,IAAI,MAAM;IAIxB,UAAU;;;;;;;;;;;;;;IAeJ,IAAI,CAAC,IAAI,EAAE,IAAI;CAkFxC"}
1
+ {"version":3,"file":"flatten.d.ts","sourceRoot":"","sources":["../../src/commands/flatten.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAkD,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAS/G,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;EAErB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAA;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;AAE1C,qBAAa,OAAQ,SAAQ,qBAAqB,CAAC,cAAc,CAAC;IAC9C,YAAY;;;;;;;;;;;;;;;;;;IAIZ,cAAc,IAAI,MAAM;IAIxB,UAAU;;;;;;;;;;;;;;IAeJ,IAAI,CAAC,IAAI,EAAE,IAAI;CAkFxC"}
@@ -2,8 +2,10 @@
2
2
  import * as z from 'zod';
3
3
  import { Item, LabelledItem } from '@prosopo/types';
4
4
  import { OutputCliCommand } from '../utils/output.js';
5
- export declare const ArgsSchema: z.ZodObject<{
5
+ export declare const ArgsSchema: z.ZodObject<z.objectUtil.extendShape<{
6
6
  output: z.ZodString;
7
+ overwrite: z.ZodOptional<z.ZodBoolean>;
8
+ }, {
7
9
  labels: z.ZodOptional<z.ZodString>;
8
10
  labelled: z.ZodOptional<z.ZodString>;
9
11
  unlabelled: z.ZodOptional<z.ZodString>;
@@ -13,26 +15,26 @@ export declare const ArgsSchema: z.ZodObject<{
13
15
  allowDuplicates: z.ZodOptional<z.ZodBoolean>;
14
16
  allowDuplicatesLabelled: z.ZodOptional<z.ZodBoolean>;
15
17
  allowDuplicatesUnlabelled: z.ZodOptional<z.ZodBoolean>;
16
- }, "strip", z.ZodTypeAny, {
18
+ }>, "strip", z.ZodTypeAny, {
17
19
  output: string;
18
20
  seed: number;
21
+ overwrite?: boolean | undefined;
22
+ allowDuplicates?: boolean | undefined;
19
23
  labels?: string | undefined;
20
24
  labelled?: string | undefined;
21
25
  unlabelled?: string | undefined;
22
26
  size?: number | undefined;
23
- overwrite?: boolean | undefined;
24
- allowDuplicates?: boolean | undefined;
25
27
  allowDuplicatesLabelled?: boolean | undefined;
26
28
  allowDuplicatesUnlabelled?: boolean | undefined;
27
29
  }, {
28
30
  output: string;
29
31
  seed: number;
32
+ overwrite?: boolean | undefined;
33
+ allowDuplicates?: boolean | undefined;
30
34
  labels?: string | undefined;
31
35
  labelled?: string | undefined;
32
36
  unlabelled?: string | undefined;
33
37
  size?: number | undefined;
34
- overwrite?: boolean | undefined;
35
- allowDuplicates?: boolean | undefined;
36
38
  allowDuplicatesLabelled?: boolean | undefined;
37
39
  allowDuplicatesUnlabelled?: boolean | undefined;
38
40
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/commands/generate.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAc,IAAI,EAAsB,YAAY,EAAyB,MAAM,gBAAgB,CAAA;AAC1G,OAAO,EAAoB,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAKvE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUrB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAA;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;AAE1C,8BAAsB,QAAQ,CAAC,CAAC,SAAS,cAAc,CAAE,SAAQ,gBAAgB,CAAC,CAAC,CAAC;IAChE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4CJ,MAAM,CAAC,IAAI,EAAE,IAAI;IAkBvC,QAAQ,EAAE,YAAY,EAAE,CAAK;IAC7B,UAAU,EAAE,IAAI,EAAE,CAAK;IACvB,MAAM,EAAE,MAAM,EAAE,CAAK;IACrB,eAAe,SAAK;IACpB,iBAAiB,SAAK;IACtB,aAAa,EAAE;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,CAAA;KAAE,CAAK;IAC/C,OAAO,EAAE,MAAM,EAAE,CAAK;IACtB,UAAU,SAAK;IAEf,OAAO,CAAC,QAAQ;IA4BhB,OAAO,CAAC,UAAU;IAeI,IAAI,CAAC,IAAI,EAAE,IAAI;CAWxC;AAED,eAAO,MAAM,eAAe,aACd,YAAY,EAAE,cACZ,IAAI,EAAE,WACT;IACL,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,yBAAyB,CAAC,EAAE,OAAO,CAAA;CACtC,SAMJ,CAAA"}
1
+ {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/commands/generate.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAc,IAAI,EAAsB,YAAY,EAAyB,MAAM,gBAAgB,CAAA;AAC1G,OAAO,EAAoB,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAKvE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUrB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAA;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;AAE1C,8BAAsB,QAAQ,CAAC,CAAC,SAAS,cAAc,CAAE,SAAQ,gBAAgB,CAAC,CAAC,CAAC;IAChE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4CJ,MAAM,CAAC,IAAI,EAAE,IAAI;IAkBvC,QAAQ,EAAE,YAAY,EAAE,CAAK;IAC7B,UAAU,EAAE,IAAI,EAAE,CAAK;IACvB,MAAM,EAAE,MAAM,EAAE,CAAK;IACrB,eAAe,SAAK;IACpB,iBAAiB,SAAK;IACtB,aAAa,EAAE;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,CAAA;KAAE,CAAK;IAC/C,OAAO,EAAE,MAAM,EAAE,CAAK;IACtB,UAAU,SAAK;IAEf,OAAO,CAAC,QAAQ;IA4BhB,OAAO,CAAC,UAAU;IAeI,IAAI,CAAC,IAAI,EAAE,IAAI;CAWxC;AAED,eAAO,MAAM,eAAe,aACd,YAAY,EAAE,cACZ,IAAI,EAAE,WACT;IACL,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,yBAAyB,CAAC,EAAE,OAAO,CAAA;CACtC,SAMJ,CAAA"}
@@ -1,22 +1,25 @@
1
1
  /// <reference types="yargs" />
2
2
  import * as z from 'zod';
3
3
  import { Generate } from './generate.js';
4
- export declare const ArgsSchema: z.ZodObject<{
4
+ export declare const ArgsSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5
5
  output: z.ZodString;
6
6
  overwrite: z.ZodOptional<z.ZodBoolean>;
7
- allowDuplicates: z.ZodOptional<z.ZodBoolean>;
7
+ }, {
8
8
  labels: z.ZodOptional<z.ZodString>;
9
9
  labelled: z.ZodOptional<z.ZodString>;
10
10
  unlabelled: z.ZodOptional<z.ZodString>;
11
11
  seed: z.ZodNumber;
12
12
  size: z.ZodOptional<z.ZodNumber>;
13
+ overwrite: z.ZodOptional<z.ZodBoolean>;
14
+ allowDuplicates: z.ZodOptional<z.ZodBoolean>;
13
15
  allowDuplicatesLabelled: z.ZodOptional<z.ZodBoolean>;
14
16
  allowDuplicatesUnlabelled: z.ZodOptional<z.ZodBoolean>;
17
+ }>, {
15
18
  solved: z.ZodOptional<z.ZodNumber>;
16
19
  unsolved: z.ZodOptional<z.ZodNumber>;
17
20
  minCorrect: z.ZodOptional<z.ZodNumber>;
18
21
  maxCorrect: z.ZodOptional<z.ZodNumber>;
19
- }, "strip", z.ZodTypeAny, {
22
+ }>, "strip", z.ZodTypeAny, {
20
23
  output: string;
21
24
  seed: number;
22
25
  overwrite?: boolean | undefined;
@@ -50,22 +53,25 @@ export declare const ArgsSchema: z.ZodObject<{
50
53
  export type ArgsSchemaType = typeof ArgsSchema;
51
54
  export type Args = z.infer<ArgsSchemaType>;
52
55
  export declare class GenerateV1 extends Generate<ArgsSchemaType> {
53
- getArgSchema(): z.ZodObject<{
56
+ getArgSchema(): z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
54
57
  output: z.ZodString;
55
58
  overwrite: z.ZodOptional<z.ZodBoolean>;
56
- allowDuplicates: z.ZodOptional<z.ZodBoolean>;
59
+ }, {
57
60
  labels: z.ZodOptional<z.ZodString>;
58
61
  labelled: z.ZodOptional<z.ZodString>;
59
62
  unlabelled: z.ZodOptional<z.ZodString>;
60
63
  seed: z.ZodNumber;
61
64
  size: z.ZodOptional<z.ZodNumber>;
65
+ overwrite: z.ZodOptional<z.ZodBoolean>;
66
+ allowDuplicates: z.ZodOptional<z.ZodBoolean>;
62
67
  allowDuplicatesLabelled: z.ZodOptional<z.ZodBoolean>;
63
68
  allowDuplicatesUnlabelled: z.ZodOptional<z.ZodBoolean>;
69
+ }>, {
64
70
  solved: z.ZodOptional<z.ZodNumber>;
65
71
  unsolved: z.ZodOptional<z.ZodNumber>;
66
72
  minCorrect: z.ZodOptional<z.ZodNumber>;
67
73
  maxCorrect: z.ZodOptional<z.ZodNumber>;
68
- }, "strip", z.ZodTypeAny, {
74
+ }>, "strip", z.ZodTypeAny, {
69
75
  output: string;
70
76
  seed: number;
71
77
  overwrite?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"generateV1.d.ts","sourceRoot":"","sources":["../../src/commands/generateV1.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,QAAQ,EAAoC,MAAM,eAAe,CAAA;AAS1E,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKrB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAA;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;AAE1C,qBAAa,UAAW,SAAQ,QAAQ,CAAC,cAAc,CAAC;IACpC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIZ,cAAc,IAAI,MAAM;IAIxB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqB1B,OAAO,CAAC,cAAc;IAuFtB,OAAO,CAAC,gBAAgB;IAgDF,IAAI,CAAC,IAAI,EAAE,IAAI;CAkCxC"}
1
+ {"version":3,"file":"generateV1.d.ts","sourceRoot":"","sources":["../../src/commands/generateV1.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,QAAQ,EAAoC,MAAM,eAAe,CAAA;AAS1E,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKrB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAA;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;AAE1C,qBAAa,UAAW,SAAQ,QAAQ,CAAC,cAAc,CAAC;IACpC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIZ,cAAc,IAAI,MAAM;IAIxB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqB1B,OAAO,CAAC,cAAc;IAuFtB,OAAO,CAAC,gBAAgB;IAgDF,IAAI,CAAC,IAAI,EAAE,IAAI;CAkCxC"}
@@ -1,25 +1,29 @@
1
1
  /// <reference types="yargs" />
2
2
  import * as z from 'zod';
3
3
  import { Generate } from './generate.js';
4
- export declare const ArgsSchema: z.ZodObject<{
4
+ export declare const ArgsSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5
5
  output: z.ZodString;
6
6
  overwrite: z.ZodOptional<z.ZodBoolean>;
7
- allowDuplicates: z.ZodOptional<z.ZodBoolean>;
7
+ }, {
8
8
  labels: z.ZodOptional<z.ZodString>;
9
9
  labelled: z.ZodOptional<z.ZodString>;
10
10
  unlabelled: z.ZodOptional<z.ZodString>;
11
11
  seed: z.ZodNumber;
12
12
  size: z.ZodOptional<z.ZodNumber>;
13
+ overwrite: z.ZodOptional<z.ZodBoolean>;
14
+ allowDuplicates: z.ZodOptional<z.ZodBoolean>;
13
15
  allowDuplicatesLabelled: z.ZodOptional<z.ZodBoolean>;
14
16
  allowDuplicatesUnlabelled: z.ZodOptional<z.ZodBoolean>;
17
+ }>, {
15
18
  minCorrect: z.ZodOptional<z.ZodNumber>;
16
19
  minIncorrect: z.ZodOptional<z.ZodNumber>;
17
20
  minLabelled: z.ZodOptional<z.ZodNumber>;
18
21
  maxLabelled: z.ZodOptional<z.ZodNumber>;
19
22
  count: z.ZodOptional<z.ZodNumber>;
20
- }, "strip", z.ZodTypeAny, {
23
+ }>, "strip", z.ZodTypeAny, {
21
24
  output: string;
22
25
  seed: number;
26
+ count?: number | undefined;
23
27
  overwrite?: boolean | undefined;
24
28
  allowDuplicates?: boolean | undefined;
25
29
  labels?: string | undefined;
@@ -32,10 +36,10 @@ export declare const ArgsSchema: z.ZodObject<{
32
36
  minIncorrect?: number | undefined;
33
37
  minLabelled?: number | undefined;
34
38
  maxLabelled?: number | undefined;
35
- count?: number | undefined;
36
39
  }, {
37
40
  output: string;
38
41
  seed: number;
42
+ count?: number | undefined;
39
43
  overwrite?: boolean | undefined;
40
44
  allowDuplicates?: boolean | undefined;
41
45
  labels?: string | undefined;
@@ -48,31 +52,34 @@ export declare const ArgsSchema: z.ZodObject<{
48
52
  minIncorrect?: number | undefined;
49
53
  minLabelled?: number | undefined;
50
54
  maxLabelled?: number | undefined;
51
- count?: number | undefined;
52
55
  }>;
53
56
  export type ArgsSchemaType = typeof ArgsSchema;
54
57
  export type Args = z.infer<ArgsSchemaType>;
55
58
  export declare class GenerateV2 extends Generate<ArgsSchemaType> {
56
59
  #private;
57
- getArgSchema(): z.ZodObject<{
60
+ getArgSchema(): z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
58
61
  output: z.ZodString;
59
62
  overwrite: z.ZodOptional<z.ZodBoolean>;
60
- allowDuplicates: z.ZodOptional<z.ZodBoolean>;
63
+ }, {
61
64
  labels: z.ZodOptional<z.ZodString>;
62
65
  labelled: z.ZodOptional<z.ZodString>;
63
66
  unlabelled: z.ZodOptional<z.ZodString>;
64
67
  seed: z.ZodNumber;
65
68
  size: z.ZodOptional<z.ZodNumber>;
69
+ overwrite: z.ZodOptional<z.ZodBoolean>;
70
+ allowDuplicates: z.ZodOptional<z.ZodBoolean>;
66
71
  allowDuplicatesLabelled: z.ZodOptional<z.ZodBoolean>;
67
72
  allowDuplicatesUnlabelled: z.ZodOptional<z.ZodBoolean>;
73
+ }>, {
68
74
  minCorrect: z.ZodOptional<z.ZodNumber>;
69
75
  minIncorrect: z.ZodOptional<z.ZodNumber>;
70
76
  minLabelled: z.ZodOptional<z.ZodNumber>;
71
77
  maxLabelled: z.ZodOptional<z.ZodNumber>;
72
78
  count: z.ZodOptional<z.ZodNumber>;
73
- }, "strip", z.ZodTypeAny, {
79
+ }>, "strip", z.ZodTypeAny, {
74
80
  output: string;
75
81
  seed: number;
82
+ count?: number | undefined;
76
83
  overwrite?: boolean | undefined;
77
84
  allowDuplicates?: boolean | undefined;
78
85
  labels?: string | undefined;
@@ -85,10 +92,10 @@ export declare class GenerateV2 extends Generate<ArgsSchemaType> {
85
92
  minIncorrect?: number | undefined;
86
93
  minLabelled?: number | undefined;
87
94
  maxLabelled?: number | undefined;
88
- count?: number | undefined;
89
95
  }, {
90
96
  output: string;
91
97
  seed: number;
98
+ count?: number | undefined;
92
99
  overwrite?: boolean | undefined;
93
100
  allowDuplicates?: boolean | undefined;
94
101
  labels?: string | undefined;
@@ -101,7 +108,6 @@ export declare class GenerateV2 extends Generate<ArgsSchemaType> {
101
108
  minIncorrect?: number | undefined;
102
109
  minLabelled?: number | undefined;
103
110
  maxLabelled?: number | undefined;
104
- count?: number | undefined;
105
111
  }>;
106
112
  getDescription(): string;
107
113
  getOptions(): {
@@ -1 +1 @@
1
- {"version":3,"file":"generateV2.d.ts","sourceRoot":"","sources":["../../src/commands/generateV2.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,QAAQ,EAAoC,MAAM,eAAe,CAAA;AAS1E,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMrB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAA;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;AAE1C,qBAAa,UAAW,SAAQ,QAAQ,CAAC,cAAc,CAAC;;IAmBpC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIZ,cAAc,IAAI,MAAM;IAIxB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyB1B,OAAO,CAAC,WAAW;IAgDG,IAAI,CAAC,IAAI,EAAE,IAAI;CAiHxC"}
1
+ {"version":3,"file":"generateV2.d.ts","sourceRoot":"","sources":["../../src/commands/generateV2.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAE,QAAQ,EAAoC,MAAM,eAAe,CAAA;AAS1E,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMrB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAA;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;AAE1C,qBAAa,UAAW,SAAQ,QAAQ,CAAC,cAAc,CAAC;;IAmBpC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIZ,cAAc,IAAI,MAAM;IAIxB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyB1B,OAAO,CAAC,WAAW;IAgDG,IAAI,CAAC,IAAI,EAAE,IAAI;CAiHxC"}
@@ -1,8 +1,8 @@
1
1
  import * as z from 'zod';
2
2
  import { InputCliCommand } from '../utils/input.js';
3
- export declare const ArgsSchema: z.ZodObject<{
3
+ export declare const ArgsSchema: z.ZodObject<z.objectUtil.extendShape<{
4
4
  input: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
5
+ }, {}>, "strip", z.ZodTypeAny, {
6
6
  input: string;
7
7
  }, {
8
8
  input: string;
@@ -10,9 +10,9 @@ export declare const ArgsSchema: z.ZodObject<{
10
10
  export type ArgsSchemaType = typeof ArgsSchema;
11
11
  export type Args = z.infer<ArgsSchemaType>;
12
12
  export declare class Get extends InputCliCommand<ArgsSchemaType> {
13
- getArgSchema(): z.ZodObject<{
13
+ getArgSchema(): z.ZodObject<z.objectUtil.extendShape<{
14
14
  input: z.ZodString;
15
- }, "strip", z.ZodTypeAny, {
15
+ }, {}>, "strip", z.ZodTypeAny, {
16
16
  input: string;
17
17
  }, {
18
18
  input: string;
@@ -1,11 +1,12 @@
1
1
  /// <reference types="yargs" />
2
2
  import * as z from 'zod';
3
3
  import { InputOutputCliCommand } from '../utils/inputOutput.js';
4
- export declare const ArgsSchema: z.ZodObject<{
4
+ export declare const ArgsSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5
5
  input: z.ZodString;
6
+ }, {
6
7
  output: z.ZodString;
7
8
  overwrite: z.ZodOptional<z.ZodBoolean>;
8
- }, "strip", z.ZodTypeAny, {
9
+ }>, {}>, "strip", z.ZodTypeAny, {
9
10
  input: string;
10
11
  output: string;
11
12
  overwrite?: boolean | undefined;
@@ -17,11 +18,12 @@ export declare const ArgsSchema: z.ZodObject<{
17
18
  export type ArgsSchemaType = typeof ArgsSchema;
18
19
  export type Args = z.infer<ArgsSchemaType>;
19
20
  export declare class Labels extends InputOutputCliCommand<ArgsSchemaType> {
20
- getArgSchema(): z.ZodObject<{
21
+ getArgSchema(): z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
21
22
  input: z.ZodString;
23
+ }, {
22
24
  output: z.ZodString;
23
25
  overwrite: z.ZodOptional<z.ZodBoolean>;
24
- }, "strip", z.ZodTypeAny, {
26
+ }>, {}>, "strip", z.ZodTypeAny, {
25
27
  input: string;
26
28
  output: string;
27
29
  overwrite?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../src/commands/labels.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAkD,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAM/G,eAAO,MAAM,UAAU;;;;;;;;;;;;EAAmC,CAAA;AAC1D,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAA;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;AAE1C,qBAAa,MAAO,SAAQ,qBAAqB,CAAC,cAAc,CAAC;IAC7C,YAAY;;;;;;;;;;;;;IAIZ,UAAU;;;;;;;;;;IAWJ,IAAI,CAAC,IAAI,EAAE,IAAI;IAyBrB,cAAc,IAAI,MAAM;CAG3C"}
1
+ {"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../src/commands/labels.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAkD,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAM/G,eAAO,MAAM,UAAU;;;;;;;;;;;;;EAAmC,CAAA;AAC1D,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAA;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;AAE1C,qBAAa,MAAO,SAAQ,qBAAqB,CAAC,cAAc,CAAC;IAC7C,YAAY;;;;;;;;;;;;;;IAIZ,UAAU;;;;;;;;;;IAWJ,IAAI,CAAC,IAAI,EAAE,IAAI;IAyBrB,cAAc,IAAI,MAAM;CAG3C"}
@@ -1,13 +1,15 @@
1
1
  /// <reference types="yargs" />
2
2
  import * as z from 'zod';
3
3
  import { InputOutputCliCommand } from '../utils/inputOutput.js';
4
- export declare const ArgsSchema: z.ZodObject<{
4
+ export declare const ArgsSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5
5
  input: z.ZodString;
6
+ }, {
6
7
  output: z.ZodString;
7
8
  overwrite: z.ZodOptional<z.ZodBoolean>;
9
+ }>, {
8
10
  from: z.ZodString;
9
11
  to: z.ZodString;
10
- }, "strip", z.ZodTypeAny, {
12
+ }>, "strip", z.ZodTypeAny, {
11
13
  input: string;
12
14
  output: string;
13
15
  from: string;
@@ -23,13 +25,15 @@ export declare const ArgsSchema: z.ZodObject<{
23
25
  export type ArgsSchemaType = typeof ArgsSchema;
24
26
  export type Args = z.infer<ArgsSchemaType>;
25
27
  export declare class Relocate extends InputOutputCliCommand<ArgsSchemaType> {
26
- getArgSchema(): z.ZodObject<{
28
+ getArgSchema(): z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
27
29
  input: z.ZodString;
30
+ }, {
28
31
  output: z.ZodString;
29
32
  overwrite: z.ZodOptional<z.ZodBoolean>;
33
+ }>, {
30
34
  from: z.ZodString;
31
35
  to: z.ZodString;
32
- }, "strip", z.ZodTypeAny, {
36
+ }>, "strip", z.ZodTypeAny, {
33
37
  input: string;
34
38
  output: string;
35
39
  from: string;
@@ -1 +1 @@
1
- {"version":3,"file":"relocate.d.ts","sourceRoot":"","sources":["../../src/commands/relocate.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAkD,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAK/G,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;EAGrB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAA;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;AAE1C,qBAAa,QAAS,SAAQ,qBAAqB,CAAC,cAAc,CAAC;IAC/C,YAAY;;;;;;;;;;;;;;;;;;;IAIZ,UAAU;;;;;;;;;;;;;;;;;;;;IAqBJ,IAAI,CAAC,IAAI,EAAE,IAAI;IAyCrB,cAAc,IAAI,MAAM;CAG3C"}
1
+ {"version":3,"file":"relocate.d.ts","sourceRoot":"","sources":["../../src/commands/relocate.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAkD,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAK/G,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;EAGrB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAA;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;AAE1C,qBAAa,QAAS,SAAQ,qBAAqB,CAAC,cAAc,CAAC;IAC/C,YAAY;;;;;;;;;;;;;;;;;;;;;IAIZ,UAAU;;;;;;;;;;;;;;;;;;;;IAqBJ,IAAI,CAAC,IAAI,EAAE,IAAI;IAyCrB,cAAc,IAAI,MAAM;CAG3C"}
@@ -1,13 +1,15 @@
1
1
  /// <reference types="yargs" />
2
2
  import * as z from 'zod';
3
3
  import { InputOutputCliCommand } from '../utils/inputOutput.js';
4
- export declare const ArgsSchema: z.ZodObject<{
4
+ export declare const ArgsSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
5
5
  input: z.ZodString;
6
+ }, {
6
7
  output: z.ZodString;
7
8
  overwrite: z.ZodOptional<z.ZodBoolean>;
9
+ }>, {
8
10
  size: z.ZodNumber;
9
11
  square: z.ZodOptional<z.ZodBoolean>;
10
- }, "strip", z.ZodTypeAny, {
12
+ }>, "strip", z.ZodTypeAny, {
11
13
  input: string;
12
14
  output: string;
13
15
  size: number;
@@ -23,13 +25,15 @@ export declare const ArgsSchema: z.ZodObject<{
23
25
  export type ArgsSchemaType = typeof ArgsSchema;
24
26
  export type Args = z.infer<ArgsSchemaType>;
25
27
  export declare class Resize extends InputOutputCliCommand<ArgsSchemaType> {
26
- getArgSchema(): z.ZodObject<{
28
+ getArgSchema(): z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
27
29
  input: z.ZodString;
30
+ }, {
28
31
  output: z.ZodString;
29
32
  overwrite: z.ZodOptional<z.ZodBoolean>;
33
+ }>, {
30
34
  size: z.ZodNumber;
31
35
  square: z.ZodOptional<z.ZodBoolean>;
32
- }, "strip", z.ZodTypeAny, {
36
+ }>, "strip", z.ZodTypeAny, {
33
37
  input: string;
34
38
  output: string;
35
39
  size: number;
@@ -1 +1 @@
1
- {"version":3,"file":"resize.d.ts","sourceRoot":"","sources":["../../src/commands/resize.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAkD,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAS/G,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;EAGrB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAA;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;AAE1C,qBAAa,MAAO,SAAQ,qBAAqB,CAAC,cAAc,CAAC;IAC7C,YAAY;;;;;;;;;;;;;;;;;;;IAIZ,UAAU;;;;;;;;;;;;;;;;;;IAsBJ,IAAI,CAAC,IAAI,EAAE,IAAI;IA4FrB,cAAc,IAAI,MAAM;CAG3C"}
1
+ {"version":3,"file":"resize.d.ts","sourceRoot":"","sources":["../../src/commands/resize.ts"],"names":[],"mappings":";AAaA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,OAAO,EAAkD,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAS/G,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;EAGrB,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAA;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;AAE1C,qBAAa,MAAO,SAAQ,qBAAqB,CAAC,cAAc,CAAC;IAC7C,YAAY;;;;;;;;;;;;;;;;;;;;;IAIZ,UAAU;;;;;;;;;;;;;;;;;;IAsBJ,IAAI,CAAC,IAAI,EAAE,IAAI;IA4FrB,cAAc,IAAI,MAAM;CAG3C"}
@@ -1,10 +1,11 @@
1
1
  import * as z from 'zod';
2
2
  import { CliCommandComposite } from '../cli/cliCommandComposite.js';
3
- export declare const InputOutputArgsSchema: z.ZodObject<{
3
+ export declare const InputOutputArgsSchema: z.ZodObject<z.objectUtil.extendShape<{
4
4
  input: z.ZodString;
5
+ }, {
5
6
  output: z.ZodString;
6
7
  overwrite: z.ZodOptional<z.ZodBoolean>;
7
- }, "strip", z.ZodTypeAny, {
8
+ }>, "strip", z.ZodTypeAny, {
8
9
  input: string;
9
10
  output: string;
10
11
  overwrite?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"inputOutput.d.ts","sourceRoot":"","sources":["../../src/utils/inputOutput.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA;AAInE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;EAA0C,CAAA;AAE5E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,8BAAsB,qBAAqB,CAAC,CAAC,SAAS,OAAO,qBAAqB,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;;CAIjH"}
1
+ {"version":3,"file":"inputOutput.d.ts","sourceRoot":"","sources":["../../src/utils/inputOutput.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA;AAInE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;EAA0C,CAAA;AAE5E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,8BAAsB,qBAAqB,CAAC,CAAC,SAAS,OAAO,qBAAqB,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;;CAIjH"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/datasets-fs",
3
- "version": "0.3.39",
3
+ "version": "0.3.41",
4
4
  "author": "PROSOPO LIMITED <info@prosopo.io>",
5
5
  "license": "Apache-2.0",
6
6
  "private": false,
@@ -13,7 +13,7 @@
13
13
  "build": "tsc --build --verbose tsconfig.json",
14
14
  "build:cjs": "npx vite --config vite.cjs.config.ts build",
15
15
  "test": "npx vitest run --config ./vite.test.config.ts",
16
- "eslint": "npx eslint . --no-error-on-unmatched-pattern --ignore-path ../../.eslintignore",
16
+ "eslint": "npx eslint . --no-error-on-unmatched-pattern --ignore-path ../../.eslintignore --quiet",
17
17
  "eslint:fix": "npm run eslint -- --fix",
18
18
  "prettier": "npx prettier . --check --no-error-on-unmatched-pattern --ignore-path ../../.eslintignore",
19
19
  "prettier:fix": "npm run prettier -- --write",
@@ -31,26 +31,22 @@
31
31
  },
32
32
  "types": "./dist/index.d.ts",
33
33
  "dependencies": {
34
+ "@noble/hashes": "1.3.3",
34
35
  "@polkadot/util": "12.6.2",
35
- "@prosopo/common": "0.3.39",
36
- "@prosopo/config": "0.3.39",
37
- "@prosopo/types": "0.3.39",
38
- "@prosopo/util": "0.3.39",
36
+ "@polkadot/util-crypto": "12.6.2",
37
+ "@prosopo/common": "0.3.41",
38
+ "@prosopo/types": "0.3.41",
39
+ "@prosopo/util": "0.3.41",
39
40
  "bcrypt": "^5.1.0",
40
41
  "cli-progress": "^3.12.0",
41
- "fs": "^0.0.1-security",
42
- "lodash": "^4.17.21",
43
- "noble-hashes": "^0.3.1",
44
- "node-fetch": "^3.3.2",
45
- "seedrandom": "^3.0.5",
46
42
  "sharp": "^0.32.1",
43
+ "vitest": "^1.3.1",
47
44
  "yargs": "^17.7.2",
48
45
  "zod": "^3.22.3"
49
46
  },
50
47
  "devDependencies": {
51
48
  "@types/bcrypt": "^5.0.0",
52
49
  "@types/cli-progress": "^3.11.2",
53
- "@types/node-fetch": "^3.0.2",
54
50
  "dotenv": "^16.0.1",
55
51
  "tslib": "2.6.2",
56
52
  "typescript": "5.1.6"