pareto-fountain-pen 0.1.10 → 0.1.12
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/generated/implementation/generic/resolve.d.ts +81 -0
- package/dist/generated/implementation/generic/resolve.js +261 -0
- package/dist/generated/implementation/generic/unmarshall.d.ts +37 -0
- package/dist/generated/implementation/generic/unmarshall.js +178 -0
- package/dist/generated/implementation/schemas/block/marshall.d.ts +6 -0
- package/dist/generated/implementation/schemas/block/marshall.js +122 -0
- package/dist/generated/implementation/schemas/block/serializer.d.ts +7 -0
- package/dist/generated/implementation/schemas/block/serializer.js +123 -0
- package/dist/generated/implementation/schemas/block/unmarshall.d.ts +6 -0
- package/dist/generated/implementation/schemas/block/unmarshall.js +74 -0
- package/dist/generated/implementation/schemas/lines/marshall.d.ts +3 -0
- package/dist/generated/implementation/schemas/lines/marshall.js +61 -0
- package/dist/generated/implementation/schemas/lines/serializer.d.ts +3 -0
- package/dist/generated/implementation/schemas/lines/serializer.js +51 -0
- package/dist/generated/implementation/schemas/lines/unmarshall.d.ts +3 -0
- package/dist/generated/implementation/schemas/lines/unmarshall.js +52 -0
- package/dist/generated/implementation/schemas/semi_lines/marshall.d.ts +3 -0
- package/dist/generated/implementation/schemas/semi_lines/marshall.js +67 -0
- package/dist/generated/implementation/schemas/semi_lines/serializer.d.ts +3 -0
- package/dist/generated/implementation/schemas/semi_lines/serializer.js +57 -0
- package/dist/generated/implementation/schemas/semi_lines/unmarshall.d.ts +3 -0
- package/dist/generated/implementation/schemas/semi_lines/unmarshall.js +61 -0
- package/dist/generated/implementation/schemas/text/marshall.d.ts +3 -0
- package/dist/generated/implementation/schemas/text/marshall.js +61 -0
- package/dist/generated/implementation/schemas/text/serializer.d.ts +3 -0
- package/dist/generated/implementation/schemas/text/serializer.js +51 -0
- package/dist/generated/implementation/schemas/text/unmarshall.d.ts +3 -0
- package/dist/generated/implementation/schemas/text/unmarshall.js +50 -0
- package/dist/generated/interface/core/astn_source.d.ts +116 -0
- package/dist/generated/interface/core/astn_source.js +3 -0
- package/dist/generated/interface/core/astn_target.d.ts +186 -0
- package/dist/generated/interface/core/astn_target.js +3 -0
- package/dist/generated/interface/core/resolve.d.ts +11 -0
- package/dist/generated/interface/core/resolve.js +3 -0
- package/dist/generated/interface/generic/resolve.d.ts +11 -0
- package/dist/generated/interface/generic/resolve.js +3 -0
- package/dist/generated/interface/schemas/block/marshall.d.ts +196 -0
- package/dist/generated/interface/schemas/block/marshall.js +3 -0
- package/dist/generated/interface/schemas/block/migrate_boilerplate.d.ts +112 -0
- package/dist/generated/interface/schemas/block/migrate_boilerplate.js +3 -0
- package/dist/generated/interface/schemas/block/serializer.d.ts +226 -0
- package/dist/generated/interface/schemas/block/serializer.js +3 -0
- package/dist/generated/interface/schemas/block/unconstrained.d.ts +0 -25
- package/dist/generated/interface/schemas/block/unmarshall.d.ts +112 -0
- package/dist/generated/interface/schemas/block/unmarshall.js +3 -0
- package/dist/generated/interface/schemas/lines/marshall.d.ts +106 -0
- package/dist/generated/interface/schemas/lines/marshall.js +3 -0
- package/dist/generated/interface/schemas/lines/migrate_boilerplate.d.ts +46 -0
- package/dist/generated/interface/schemas/lines/migrate_boilerplate.js +3 -0
- package/dist/generated/interface/schemas/lines/serializer.d.ts +106 -0
- package/dist/generated/interface/schemas/lines/serializer.js +3 -0
- package/dist/generated/interface/schemas/lines/unmarshall.d.ts +46 -0
- package/dist/generated/interface/schemas/lines/unmarshall.js +3 -0
- package/dist/generated/interface/schemas/semi_lines/marshall.d.ts +106 -0
- package/dist/generated/interface/schemas/semi_lines/marshall.js +3 -0
- package/dist/generated/interface/schemas/semi_lines/migrate_boilerplate.d.ts +46 -0
- package/dist/generated/interface/schemas/semi_lines/migrate_boilerplate.js +3 -0
- package/dist/generated/interface/schemas/semi_lines/serializer.d.ts +106 -0
- package/dist/generated/interface/schemas/semi_lines/serializer.js +3 -0
- package/dist/generated/interface/schemas/semi_lines/unmarshall.d.ts +46 -0
- package/dist/generated/interface/schemas/semi_lines/unmarshall.js +3 -0
- package/dist/generated/interface/schemas/text/marshall.d.ts +106 -0
- package/dist/generated/interface/schemas/text/marshall.js +3 -0
- package/dist/generated/interface/schemas/text/migrate_boilerplate.d.ts +46 -0
- package/dist/generated/interface/schemas/text/migrate_boilerplate.js +3 -0
- package/dist/generated/interface/schemas/text/serializer.d.ts +106 -0
- package/dist/generated/interface/schemas/text/serializer.js +3 -0
- package/dist/generated/interface/schemas/text/unmarshall.d.ts +46 -0
- package/dist/generated/interface/schemas/text/unmarshall.js +3 -0
- package/dist/other/write_to_disk.d.ts +6 -2
- package/dist/other/write_to_disk.js +7 -11
- package/package.json +2 -5
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import * as _i_in from "./unconstrained";
|
|
2
|
+
import * as _i_out from "../../core/astn_target";
|
|
3
|
+
export type _T_Value_Serializers = {
|
|
4
|
+
readonly 'boolean': ($$_: boolean, $$_p: null) => string;
|
|
5
|
+
readonly 'custom numbers': null;
|
|
6
|
+
readonly 'default number': ($$_: number, $$_p: null) => string;
|
|
7
|
+
};
|
|
8
|
+
export type _T_s_Directory = ($$_: _i_in._T_Directory, $$_p: {
|
|
9
|
+
readonly 'value serializers': _T_Value_Serializers;
|
|
10
|
+
}) => _i_out._T_Value;
|
|
11
|
+
export type _T_s_Lines = ($$_: _i_in._T_Lines, $$_p: {
|
|
12
|
+
readonly 'value serializers': _T_Value_Serializers;
|
|
13
|
+
}) => _i_out._T_Value;
|
|
14
|
+
export type Value_Serializers = _T_Value_Serializers;
|
|
15
|
+
export type s_Directory = _T_s_Directory;
|
|
16
|
+
export type s_Lines = _T_s_Lines;
|
|
17
|
+
export declare namespace _T_Value_Serializers {
|
|
18
|
+
namespace _boolean {
|
|
19
|
+
type CONTEXT = boolean;
|
|
20
|
+
namespace PARAMS {
|
|
21
|
+
}
|
|
22
|
+
type RESULT = string;
|
|
23
|
+
}
|
|
24
|
+
type _boolean = ($$_: boolean, $$_p: null) => string;
|
|
25
|
+
namespace custom_numbers {
|
|
26
|
+
}
|
|
27
|
+
type custom_numbers = null;
|
|
28
|
+
namespace default_number {
|
|
29
|
+
type CONTEXT = number;
|
|
30
|
+
namespace PARAMS {
|
|
31
|
+
}
|
|
32
|
+
type RESULT = string;
|
|
33
|
+
}
|
|
34
|
+
type default_number = ($$_: number, $$_p: null) => string;
|
|
35
|
+
}
|
|
36
|
+
export declare namespace _T_s_Directory {
|
|
37
|
+
namespace CONTEXT {
|
|
38
|
+
}
|
|
39
|
+
type CONTEXT = _i_in._T_Directory;
|
|
40
|
+
namespace PARAMS {
|
|
41
|
+
namespace value_serializers {
|
|
42
|
+
}
|
|
43
|
+
type value_serializers = _T_Value_Serializers;
|
|
44
|
+
}
|
|
45
|
+
namespace RESULT {
|
|
46
|
+
}
|
|
47
|
+
type RESULT = _i_out._T_Value;
|
|
48
|
+
}
|
|
49
|
+
export declare namespace _T_s_Lines {
|
|
50
|
+
namespace CONTEXT {
|
|
51
|
+
}
|
|
52
|
+
type CONTEXT = _i_in._T_Lines;
|
|
53
|
+
namespace PARAMS {
|
|
54
|
+
namespace value_serializers {
|
|
55
|
+
}
|
|
56
|
+
type value_serializers = _T_Value_Serializers;
|
|
57
|
+
}
|
|
58
|
+
namespace RESULT {
|
|
59
|
+
}
|
|
60
|
+
type RESULT = _i_out._T_Value;
|
|
61
|
+
}
|
|
62
|
+
export declare namespace Value_Serializers {
|
|
63
|
+
namespace _boolean {
|
|
64
|
+
type CONTEXT = boolean;
|
|
65
|
+
namespace PARAMS {
|
|
66
|
+
}
|
|
67
|
+
type RESULT = string;
|
|
68
|
+
}
|
|
69
|
+
type _boolean = ($$_: boolean, $$_p: null) => string;
|
|
70
|
+
namespace custom_numbers {
|
|
71
|
+
}
|
|
72
|
+
type custom_numbers = null;
|
|
73
|
+
namespace default_number {
|
|
74
|
+
type CONTEXT = number;
|
|
75
|
+
namespace PARAMS {
|
|
76
|
+
}
|
|
77
|
+
type RESULT = string;
|
|
78
|
+
}
|
|
79
|
+
type default_number = ($$_: number, $$_p: null) => string;
|
|
80
|
+
}
|
|
81
|
+
export declare namespace s_Directory {
|
|
82
|
+
namespace CONTEXT {
|
|
83
|
+
}
|
|
84
|
+
type CONTEXT = _i_in._T_Directory;
|
|
85
|
+
namespace PARAMS {
|
|
86
|
+
namespace value_serializers {
|
|
87
|
+
}
|
|
88
|
+
type value_serializers = _T_Value_Serializers;
|
|
89
|
+
}
|
|
90
|
+
namespace RESULT {
|
|
91
|
+
}
|
|
92
|
+
type RESULT = _i_out._T_Value;
|
|
93
|
+
}
|
|
94
|
+
export declare namespace s_Lines {
|
|
95
|
+
namespace CONTEXT {
|
|
96
|
+
}
|
|
97
|
+
type CONTEXT = _i_in._T_Lines;
|
|
98
|
+
namespace PARAMS {
|
|
99
|
+
namespace value_serializers {
|
|
100
|
+
}
|
|
101
|
+
type value_serializers = _T_Value_Serializers;
|
|
102
|
+
}
|
|
103
|
+
namespace RESULT {
|
|
104
|
+
}
|
|
105
|
+
type RESULT = _i_out._T_Value;
|
|
106
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFyc2hhbGwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvZ2VuZXJhdGVkL2ludGVyZmFjZS9zY2hlbWFzL3RleHQvbWFyc2hhbGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as _i_in from "./unconstrained";
|
|
2
|
+
import * as _i_out from "./unconstrained";
|
|
3
|
+
export type _T_Directory = ($$_: _i_in._T_Directory, $$_p: null) => _i_out._T_Directory;
|
|
4
|
+
export type _T_Lines = ($$_: _i_in._T_Lines, $$_p: null) => _i_out._T_Lines;
|
|
5
|
+
export type Directory = _T_Directory;
|
|
6
|
+
export type Lines = _T_Lines;
|
|
7
|
+
export declare namespace _T_Directory {
|
|
8
|
+
namespace CONTEXT {
|
|
9
|
+
}
|
|
10
|
+
type CONTEXT = _i_in._T_Directory;
|
|
11
|
+
namespace PARAMS {
|
|
12
|
+
}
|
|
13
|
+
namespace RESULT {
|
|
14
|
+
}
|
|
15
|
+
type RESULT = _i_out._T_Directory;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace _T_Lines {
|
|
18
|
+
namespace CONTEXT {
|
|
19
|
+
}
|
|
20
|
+
type CONTEXT = _i_in._T_Lines;
|
|
21
|
+
namespace PARAMS {
|
|
22
|
+
}
|
|
23
|
+
namespace RESULT {
|
|
24
|
+
}
|
|
25
|
+
type RESULT = _i_out._T_Lines;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace Directory {
|
|
28
|
+
namespace CONTEXT {
|
|
29
|
+
}
|
|
30
|
+
type CONTEXT = _i_in._T_Directory;
|
|
31
|
+
namespace PARAMS {
|
|
32
|
+
}
|
|
33
|
+
namespace RESULT {
|
|
34
|
+
}
|
|
35
|
+
type RESULT = _i_out._T_Directory;
|
|
36
|
+
}
|
|
37
|
+
export declare namespace Lines {
|
|
38
|
+
namespace CONTEXT {
|
|
39
|
+
}
|
|
40
|
+
type CONTEXT = _i_in._T_Lines;
|
|
41
|
+
namespace PARAMS {
|
|
42
|
+
}
|
|
43
|
+
namespace RESULT {
|
|
44
|
+
}
|
|
45
|
+
type RESULT = _i_out._T_Lines;
|
|
46
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWlncmF0ZV9ib2lsZXJwbGF0ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9nZW5lcmF0ZWQvaW50ZXJmYWNlL3NjaGVtYXMvdGV4dC9taWdyYXRlX2JvaWxlcnBsYXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import * as _i_in from "./unconstrained";
|
|
2
|
+
import * as _i_out from "../../core/astn_target";
|
|
3
|
+
export type _T_Value_Serializers = {
|
|
4
|
+
readonly 'boolean': ($$_: boolean, $$_p: null) => string;
|
|
5
|
+
readonly 'custom numbers': null;
|
|
6
|
+
readonly 'default number': ($$_: number, $$_p: null) => string;
|
|
7
|
+
};
|
|
8
|
+
export type _T_s_Directory = ($$_: _i_in._T_Directory, $$_p: {
|
|
9
|
+
readonly 'value serializers': _T_Value_Serializers;
|
|
10
|
+
}) => _i_out._T_Value;
|
|
11
|
+
export type _T_s_Lines = ($$_: _i_in._T_Lines, $$_p: {
|
|
12
|
+
readonly 'value serializers': _T_Value_Serializers;
|
|
13
|
+
}) => _i_out._T_Value;
|
|
14
|
+
export type Value_Serializers = _T_Value_Serializers;
|
|
15
|
+
export type s_Directory = _T_s_Directory;
|
|
16
|
+
export type s_Lines = _T_s_Lines;
|
|
17
|
+
export declare namespace _T_Value_Serializers {
|
|
18
|
+
namespace _boolean {
|
|
19
|
+
type CONTEXT = boolean;
|
|
20
|
+
namespace PARAMS {
|
|
21
|
+
}
|
|
22
|
+
type RESULT = string;
|
|
23
|
+
}
|
|
24
|
+
type _boolean = ($$_: boolean, $$_p: null) => string;
|
|
25
|
+
namespace custom_numbers {
|
|
26
|
+
}
|
|
27
|
+
type custom_numbers = null;
|
|
28
|
+
namespace default_number {
|
|
29
|
+
type CONTEXT = number;
|
|
30
|
+
namespace PARAMS {
|
|
31
|
+
}
|
|
32
|
+
type RESULT = string;
|
|
33
|
+
}
|
|
34
|
+
type default_number = ($$_: number, $$_p: null) => string;
|
|
35
|
+
}
|
|
36
|
+
export declare namespace _T_s_Directory {
|
|
37
|
+
namespace CONTEXT {
|
|
38
|
+
}
|
|
39
|
+
type CONTEXT = _i_in._T_Directory;
|
|
40
|
+
namespace PARAMS {
|
|
41
|
+
namespace value_serializers {
|
|
42
|
+
}
|
|
43
|
+
type value_serializers = _T_Value_Serializers;
|
|
44
|
+
}
|
|
45
|
+
namespace RESULT {
|
|
46
|
+
}
|
|
47
|
+
type RESULT = _i_out._T_Value;
|
|
48
|
+
}
|
|
49
|
+
export declare namespace _T_s_Lines {
|
|
50
|
+
namespace CONTEXT {
|
|
51
|
+
}
|
|
52
|
+
type CONTEXT = _i_in._T_Lines;
|
|
53
|
+
namespace PARAMS {
|
|
54
|
+
namespace value_serializers {
|
|
55
|
+
}
|
|
56
|
+
type value_serializers = _T_Value_Serializers;
|
|
57
|
+
}
|
|
58
|
+
namespace RESULT {
|
|
59
|
+
}
|
|
60
|
+
type RESULT = _i_out._T_Value;
|
|
61
|
+
}
|
|
62
|
+
export declare namespace Value_Serializers {
|
|
63
|
+
namespace _boolean {
|
|
64
|
+
type CONTEXT = boolean;
|
|
65
|
+
namespace PARAMS {
|
|
66
|
+
}
|
|
67
|
+
type RESULT = string;
|
|
68
|
+
}
|
|
69
|
+
type _boolean = ($$_: boolean, $$_p: null) => string;
|
|
70
|
+
namespace custom_numbers {
|
|
71
|
+
}
|
|
72
|
+
type custom_numbers = null;
|
|
73
|
+
namespace default_number {
|
|
74
|
+
type CONTEXT = number;
|
|
75
|
+
namespace PARAMS {
|
|
76
|
+
}
|
|
77
|
+
type RESULT = string;
|
|
78
|
+
}
|
|
79
|
+
type default_number = ($$_: number, $$_p: null) => string;
|
|
80
|
+
}
|
|
81
|
+
export declare namespace s_Directory {
|
|
82
|
+
namespace CONTEXT {
|
|
83
|
+
}
|
|
84
|
+
type CONTEXT = _i_in._T_Directory;
|
|
85
|
+
namespace PARAMS {
|
|
86
|
+
namespace value_serializers {
|
|
87
|
+
}
|
|
88
|
+
type value_serializers = _T_Value_Serializers;
|
|
89
|
+
}
|
|
90
|
+
namespace RESULT {
|
|
91
|
+
}
|
|
92
|
+
type RESULT = _i_out._T_Value;
|
|
93
|
+
}
|
|
94
|
+
export declare namespace s_Lines {
|
|
95
|
+
namespace CONTEXT {
|
|
96
|
+
}
|
|
97
|
+
type CONTEXT = _i_in._T_Lines;
|
|
98
|
+
namespace PARAMS {
|
|
99
|
+
namespace value_serializers {
|
|
100
|
+
}
|
|
101
|
+
type value_serializers = _T_Value_Serializers;
|
|
102
|
+
}
|
|
103
|
+
namespace RESULT {
|
|
104
|
+
}
|
|
105
|
+
type RESULT = _i_out._T_Value;
|
|
106
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9nZW5lcmF0ZWQvaW50ZXJmYWNlL3NjaGVtYXMvdGV4dC9zZXJpYWxpemVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as _i_in from "../../core/astn_source";
|
|
2
|
+
import * as _i_out from "./unconstrained";
|
|
3
|
+
export type _T_Directory = ($$_: _i_in._T_Value, $$_p: null) => _i_out._T_Directory;
|
|
4
|
+
export type _T_Lines = ($$_: _i_in._T_Value, $$_p: null) => _i_out._T_Lines;
|
|
5
|
+
export type Directory = _T_Directory;
|
|
6
|
+
export type Lines = _T_Lines;
|
|
7
|
+
export declare namespace _T_Directory {
|
|
8
|
+
namespace CONTEXT {
|
|
9
|
+
}
|
|
10
|
+
type CONTEXT = _i_in._T_Value;
|
|
11
|
+
namespace PARAMS {
|
|
12
|
+
}
|
|
13
|
+
namespace RESULT {
|
|
14
|
+
}
|
|
15
|
+
type RESULT = _i_out._T_Directory;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace _T_Lines {
|
|
18
|
+
namespace CONTEXT {
|
|
19
|
+
}
|
|
20
|
+
type CONTEXT = _i_in._T_Value;
|
|
21
|
+
namespace PARAMS {
|
|
22
|
+
}
|
|
23
|
+
namespace RESULT {
|
|
24
|
+
}
|
|
25
|
+
type RESULT = _i_out._T_Lines;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace Directory {
|
|
28
|
+
namespace CONTEXT {
|
|
29
|
+
}
|
|
30
|
+
type CONTEXT = _i_in._T_Value;
|
|
31
|
+
namespace PARAMS {
|
|
32
|
+
}
|
|
33
|
+
namespace RESULT {
|
|
34
|
+
}
|
|
35
|
+
type RESULT = _i_out._T_Directory;
|
|
36
|
+
}
|
|
37
|
+
export declare namespace Lines {
|
|
38
|
+
namespace CONTEXT {
|
|
39
|
+
}
|
|
40
|
+
type CONTEXT = _i_in._T_Value;
|
|
41
|
+
namespace PARAMS {
|
|
42
|
+
}
|
|
43
|
+
namespace RESULT {
|
|
44
|
+
}
|
|
45
|
+
type RESULT = _i_out._T_Lines;
|
|
46
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5tYXJzaGFsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9nZW5lcmF0ZWQvaW50ZXJmYWNlL3NjaGVtYXMvdGV4dC91bm1hcnNoYWxsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import * as s_in from "../generated/interface/schemas/
|
|
2
|
-
export declare const File: ($: s_in.
|
|
1
|
+
import * as s_in from "../generated/interface/schemas/block/unconstrained";
|
|
2
|
+
export declare const File: ($: s_in.Block, $p: {
|
|
3
3
|
"directory path": string;
|
|
4
4
|
"filename": string;
|
|
5
|
+
"indentation": string;
|
|
6
|
+
"newline": string;
|
|
5
7
|
}) => void;
|
|
6
8
|
export declare const Directory: ($: s_in.Directory, $p: {
|
|
7
9
|
"path": string;
|
|
10
|
+
"indentation": string;
|
|
11
|
+
"newline": string;
|
|
8
12
|
}) => void;
|
|
@@ -36,30 +36,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.Directory = exports.File = void 0;
|
|
37
37
|
const pa = __importStar(require("exupery-core-alg"));
|
|
38
38
|
const exupery_core_resources_1 = require("exupery-core-resources");
|
|
39
|
+
const t_block_2_lines = __importStar(require("../transformations/block/lines"));
|
|
39
40
|
const pareto_standard_operations_1 = require("pareto-standard-operations");
|
|
40
41
|
const op = {
|
|
41
42
|
'join list of texts': pareto_standard_operations_1.pure.text['join list of texts'],
|
|
42
43
|
};
|
|
43
44
|
const File = ($, $p) => {
|
|
44
45
|
exupery_core_resources_1.temp_resources.fs['make directory']($p['directory path'], true);
|
|
45
|
-
exupery_core_resources_1.temp_resources.fs['write file sync'](`${$p['directory path']}/${$p.filename}`, op['join list of texts'](
|
|
46
|
+
exupery_core_resources_1.temp_resources.fs['write file sync'](`${$p['directory path']}/${$p.filename}`, op['join list of texts'](t_block_2_lines.Block($, { 'indentation': $p.indentation }).map(($) => $ + $p.newline)), true);
|
|
46
47
|
};
|
|
47
48
|
exports.File = File;
|
|
48
49
|
const Directory = ($, $p) => {
|
|
49
|
-
const write_directory_to_disk = ($,
|
|
50
|
+
const write_directory_to_disk = ($, path) => {
|
|
50
51
|
$.map(($, key) => {
|
|
51
52
|
switch ($[0]) {
|
|
52
53
|
case 'file':
|
|
53
54
|
pa.ss($, ($) => {
|
|
54
|
-
|
|
55
|
-
exupery_core_resources_1.temp_resources.fs['write file sync'](`${$p.path}/${key}`, op['join list of texts']($.map(($) => $ + "\n")), true);
|
|
55
|
+
(0, exports.File)($, { 'directory path': path, 'filename': key, 'indentation': $p.indentation, 'newline': $p.newline });
|
|
56
56
|
});
|
|
57
57
|
break;
|
|
58
58
|
case 'directory':
|
|
59
59
|
pa.ss($, ($) => {
|
|
60
|
-
write_directory_to_disk($, {
|
|
61
|
-
'path': `${$p.path}/${key}`
|
|
62
|
-
});
|
|
60
|
+
write_directory_to_disk($, `${path}/${key}`);
|
|
63
61
|
});
|
|
64
62
|
break;
|
|
65
63
|
default: pa.au($[0]);
|
|
@@ -71,9 +69,7 @@ const Directory = ($, $p) => {
|
|
|
71
69
|
'recursive': true,
|
|
72
70
|
});
|
|
73
71
|
}
|
|
74
|
-
write_directory_to_disk($,
|
|
75
|
-
'path': $p.path
|
|
76
|
-
});
|
|
72
|
+
write_directory_to_disk($, $p.path);
|
|
77
73
|
};
|
|
78
74
|
exports.Directory = Directory;
|
|
79
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
75
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3JpdGVfdG9fZGlzay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9vdGhlci93cml0ZV90b19kaXNrLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUNBLHFEQUFzQztBQUV0QyxtRUFBdUQ7QUFJdkQsZ0ZBQWlFO0FBRWpFLDJFQUFpRDtBQUVqRCxNQUFNLEVBQUUsR0FBRztJQUNQLG9CQUFvQixFQUFFLGlDQUFJLENBQUMsSUFBSSxDQUFDLG9CQUFvQixDQUFDO0NBQ3hELENBQUE7QUFFTSxNQUFNLElBQUksR0FBRyxDQUNoQixDQUFhLEVBQ2IsRUFLQyxFQUNILEVBQUU7SUFDQSx1Q0FBYyxDQUFDLEVBQUUsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxnQkFBZ0IsQ0FBQyxFQUFFLElBQUksQ0FBQyxDQUFBO0lBQy9ELHVDQUFjLENBQUMsRUFBRSxDQUFDLGlCQUFpQixDQUFDLENBQ2hDLEdBQUcsRUFBRSxDQUFDLGdCQUFnQixDQUFDLElBQUksRUFBRSxDQUFDLFFBQVEsRUFBRSxFQUN4QyxFQUFFLENBQUMsb0JBQW9CLENBQUMsQ0FDcEIsZUFBZSxDQUFDLEtBQUssQ0FBQyxDQUFDLEVBQUUsRUFBQyxhQUFhLEVBQUUsRUFBRSxDQUFDLFdBQVcsRUFBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLEdBQUcsRUFBRSxDQUFDLE9BQU8sQ0FBQyxDQUN2RixFQUNELElBQUksQ0FDUCxDQUFBO0FBQ0wsQ0FBQyxDQUFBO0FBakJZLFFBQUEsSUFBSSxRQWlCaEI7QUFFTSxNQUFNLFNBQVMsR0FBRyxDQUNyQixDQUFpQixFQUNqQixFQUlDLEVBQ0gsRUFBRTtJQUNBLE1BQU0sdUJBQXVCLEdBQUcsQ0FDNUIsQ0FBaUIsRUFDakIsSUFBWSxFQUNkLEVBQUU7UUFDQSxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFLEdBQUcsRUFBRSxFQUFFO1lBQ2IsUUFBUSxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQztnQkFDWCxLQUFLLE1BQU07b0JBQ1AsRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLEVBQUUsRUFBRTt3QkFDWCxJQUFBLFlBQUksRUFBQyxDQUFDLEVBQUUsRUFBRSxnQkFBZ0IsRUFBRSxJQUFJLEVBQUUsVUFBVSxFQUFFLEdBQUcsRUFBRSxhQUFhLEVBQUUsRUFBRSxDQUFDLFdBQVcsRUFBRSxTQUFTLEVBQUUsRUFBRSxDQUFDLE9BQU8sRUFBRSxDQUFDLENBQUE7b0JBQzlHLENBQUMsQ0FBQyxDQUFBO29CQUNGLE1BQUs7Z0JBQ1QsS0FBSyxXQUFXO29CQUNaLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxFQUFFLEVBQUU7d0JBQ1gsdUJBQXVCLENBQ25CLENBQUMsRUFDRCxHQUFHLElBQUksSUFBSSxHQUFHLEVBQUUsQ0FDbkIsQ0FBQTtvQkFDTCxDQUFDLENBQUMsQ0FBQTtvQkFDRixNQUFLO2dCQUNULE9BQU8sQ0FBQyxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUE7WUFDeEIsQ0FBQztRQUNMLENBQUMsQ0FBQyxDQUFBO0lBRU4sQ0FBQyxDQUFBO0lBQ0QsSUFBSSx1Q0FBYyxDQUFDLEVBQUUsQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDLElBQUksRUFBRSxLQUFLLENBQUMsRUFBRSxDQUFDLENBQUMsc0RBQXNEO1FBQ2xHLHVDQUFjLENBQUMsRUFBRSxDQUFDLGFBQWEsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxJQUFJLEVBQUUsS0FBSyxFQUFFO1lBQzdDLFdBQVcsRUFBRSxJQUFJO1NBQ3BCLENBQUMsQ0FBQTtJQUNOLENBQUM7SUFDRCx1QkFBdUIsQ0FDbkIsQ0FBQyxFQUNELEVBQUUsQ0FBQyxJQUFJLENBQ1YsQ0FBQTtBQUNMLENBQUMsQ0FBQTtBQXpDWSxRQUFBLFNBQVMsYUF5Q3JCIn0=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pareto-fountain-pen",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "A TypeScript library for easily generating source code files with proper indentation in the pareto programming style/language",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -39,12 +39,9 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"exupery-core-alg": "^0.1.4",
|
|
42
|
-
"exupery-core-data": "^0.1.
|
|
42
|
+
"exupery-core-data": "^0.1.4",
|
|
43
43
|
"exupery-core-dev": "^0.1.1",
|
|
44
44
|
"exupery-core-resources": "^0.2.1",
|
|
45
45
|
"pareto-standard-operations": "^0.1.1"
|
|
46
|
-
},
|
|
47
|
-
"devDependencies": {
|
|
48
|
-
"typescript": "^5.0.0"
|
|
49
46
|
}
|
|
50
47
|
}
|