@multiplatform.one/utils 5.0.27 → 6.0.1
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/lib/dev.cjs +22622 -84
- package/lib/dev.mjs +22604 -0
- package/lib/index.cjs +4 -3
- package/lib/index.mjs +5 -0
- package/package.json +44 -36
- package/src/dev.ts +10 -37
- package/src/index.ts +0 -21
- package/src/wait.spec.ts +35 -0
- package/src/wait.ts +29 -47
- package/types/.tsbuildinfo +1 -1
- package/types/dev.d.ts.map +1 -1
- package/types/index.d.ts +0 -20
- package/types/index.d.ts.map +1 -1
- package/types/wait.d.ts +2 -2
- package/types/wait.d.ts.map +1 -1
- package/types/wait.spec.d.ts +2 -0
- package/types/wait.spec.d.ts.map +1 -0
- package/lib/chunk-55ZF3CTQ.cjs +0 -84
- package/lib/chunk-QMKU5DBF.js +0 -84
- package/lib/dev.js +0 -102
- package/lib/index.js +0 -5
- package/lib/meshConfig.cjs +0 -98
- package/lib/meshConfig.js +0 -98
- package/lib/wait.cjs +0 -16
- package/lib/wait.js +0 -16
- package/src/meshConfig.ts +0 -130
- package/types/meshConfig.d.ts +0 -86
- package/types/meshConfig.d.ts.map +0 -1
package/lib/meshConfig.cjs
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/meshConfig.ts
|
|
2
|
-
var meshConfig = {
|
|
3
|
-
sources: [
|
|
4
|
-
...process.env.MESH_API === "1" ? [
|
|
5
|
-
{
|
|
6
|
-
name: "API",
|
|
7
|
-
handler: {
|
|
8
|
-
graphql: {
|
|
9
|
-
endpoint: `http://localhost:${process.env.API_PORT}/graphql`,
|
|
10
|
-
subscriptionsEndpoint: `ws://localhost:${process.env.API_PORT}/graphql`,
|
|
11
|
-
subscriptionsProtocol: "WS",
|
|
12
|
-
operationHeaders: {
|
|
13
|
-
Authorization: "{context.headers.Authorization}",
|
|
14
|
-
Cookie: "{context.headers.Cookie}"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
transforms: [
|
|
19
|
-
{
|
|
20
|
-
prefix: {
|
|
21
|
-
mode: "wrap",
|
|
22
|
-
value: "API"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
filterSchema: {
|
|
27
|
-
mode: "wrap",
|
|
28
|
-
filters: []
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
] : [],
|
|
34
|
-
...process.env.MESH_FRAPPE === "1" ? [
|
|
35
|
-
{
|
|
36
|
-
name: "Frappe",
|
|
37
|
-
handler: {
|
|
38
|
-
graphql: {
|
|
39
|
-
endpoint: `${process.env.FRAPPE_BASE_URL}/api/method/graphql`,
|
|
40
|
-
subscriptionsEndpoint: `${process.env.FRAPPE_BASE_URL}/api/method/graphql`.replace(
|
|
41
|
-
/^https?/,
|
|
42
|
-
"ws"
|
|
43
|
-
),
|
|
44
|
-
subscriptionsProtocol: "WS",
|
|
45
|
-
operationHeaders: {
|
|
46
|
-
Authorization: "{context.headers.Authorization}",
|
|
47
|
-
Cookie: "{context.headers.Cookie}"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
transforms: [
|
|
52
|
-
{
|
|
53
|
-
prefix: {
|
|
54
|
-
mode: "wrap",
|
|
55
|
-
value: "Frappe"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
filterSchema: {
|
|
60
|
-
mode: "wrap",
|
|
61
|
-
filters: ["Subscription.doc_events"]
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
}
|
|
66
|
-
] : []
|
|
67
|
-
],
|
|
68
|
-
additionalEnvelopPlugins: "./envelopPlugins.js",
|
|
69
|
-
serve: {
|
|
70
|
-
browser: false
|
|
71
|
-
},
|
|
72
|
-
plugins: [
|
|
73
|
-
{
|
|
74
|
-
rateLimit: {
|
|
75
|
-
config: []
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
maxTokens: {
|
|
80
|
-
n: 1e3
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
maxDepth: {
|
|
85
|
-
n: 10
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
blockFieldSuggestions: {}
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
responseCache: {}
|
|
93
|
-
}
|
|
94
|
-
]
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
exports.meshConfig = meshConfig;
|
package/lib/meshConfig.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
// src/meshConfig.ts
|
|
2
|
-
var meshConfig = {
|
|
3
|
-
sources: [
|
|
4
|
-
...process.env.MESH_API === "1" ? [
|
|
5
|
-
{
|
|
6
|
-
name: "API",
|
|
7
|
-
handler: {
|
|
8
|
-
graphql: {
|
|
9
|
-
endpoint: `http://localhost:${process.env.API_PORT}/graphql`,
|
|
10
|
-
subscriptionsEndpoint: `ws://localhost:${process.env.API_PORT}/graphql`,
|
|
11
|
-
subscriptionsProtocol: "WS",
|
|
12
|
-
operationHeaders: {
|
|
13
|
-
Authorization: "{context.headers.Authorization}",
|
|
14
|
-
Cookie: "{context.headers.Cookie}"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
transforms: [
|
|
19
|
-
{
|
|
20
|
-
prefix: {
|
|
21
|
-
mode: "wrap",
|
|
22
|
-
value: "API"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
filterSchema: {
|
|
27
|
-
mode: "wrap",
|
|
28
|
-
filters: []
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
] : [],
|
|
34
|
-
...process.env.MESH_FRAPPE === "1" ? [
|
|
35
|
-
{
|
|
36
|
-
name: "Frappe",
|
|
37
|
-
handler: {
|
|
38
|
-
graphql: {
|
|
39
|
-
endpoint: `${process.env.FRAPPE_BASE_URL}/api/method/graphql`,
|
|
40
|
-
subscriptionsEndpoint: `${process.env.FRAPPE_BASE_URL}/api/method/graphql`.replace(
|
|
41
|
-
/^https?/,
|
|
42
|
-
"ws"
|
|
43
|
-
),
|
|
44
|
-
subscriptionsProtocol: "WS",
|
|
45
|
-
operationHeaders: {
|
|
46
|
-
Authorization: "{context.headers.Authorization}",
|
|
47
|
-
Cookie: "{context.headers.Cookie}"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
transforms: [
|
|
52
|
-
{
|
|
53
|
-
prefix: {
|
|
54
|
-
mode: "wrap",
|
|
55
|
-
value: "Frappe"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
filterSchema: {
|
|
60
|
-
mode: "wrap",
|
|
61
|
-
filters: ["Subscription.doc_events"]
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
}
|
|
66
|
-
] : []
|
|
67
|
-
],
|
|
68
|
-
additionalEnvelopPlugins: "./envelopPlugins.js",
|
|
69
|
-
serve: {
|
|
70
|
-
browser: false
|
|
71
|
-
},
|
|
72
|
-
plugins: [
|
|
73
|
-
{
|
|
74
|
-
rateLimit: {
|
|
75
|
-
config: []
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
maxTokens: {
|
|
80
|
-
n: 1e3
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
maxDepth: {
|
|
85
|
-
n: 10
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
blockFieldSuggestions: {}
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
responseCache: {}
|
|
93
|
-
}
|
|
94
|
-
]
|
|
95
|
-
};
|
|
96
|
-
export {
|
|
97
|
-
meshConfig
|
|
98
|
-
};
|
package/lib/wait.cjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var _chunk55ZF3CTQcjs = require('./chunk-55ZF3CTQ.cjs');
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
exports.formatServiceList = _chunk55ZF3CTQcjs.formatServiceList; exports.waitForApi = _chunk55ZF3CTQcjs.waitForApi; exports.waitForFrappe = _chunk55ZF3CTQcjs.waitForFrappe; exports.waitForKeycloak = _chunk55ZF3CTQcjs.waitForKeycloak; exports.waitForPostgres = _chunk55ZF3CTQcjs.waitForPostgres; exports.waitServices = _chunk55ZF3CTQcjs.waitServices;
|
package/lib/wait.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
formatServiceList,
|
|
3
|
-
waitForApi,
|
|
4
|
-
waitForFrappe,
|
|
5
|
-
waitForKeycloak,
|
|
6
|
-
waitForPostgres,
|
|
7
|
-
waitServices
|
|
8
|
-
} from "./chunk-QMKU5DBF.js";
|
|
9
|
-
export {
|
|
10
|
-
formatServiceList,
|
|
11
|
-
waitForApi,
|
|
12
|
-
waitForFrappe,
|
|
13
|
-
waitForKeycloak,
|
|
14
|
-
waitForPostgres,
|
|
15
|
-
waitServices
|
|
16
|
-
};
|
package/src/meshConfig.ts
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* File: /src/meshConfig.ts
|
|
3
|
-
* Project: @multiplatform.one/utils
|
|
4
|
-
* File Created: 18-01-2025 18:38:49
|
|
5
|
-
* Author: Clay Risser
|
|
6
|
-
* -----
|
|
7
|
-
* BitSpur (c) Copyright 2021 - 2025
|
|
8
|
-
*
|
|
9
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
-
* you may not use this file except in compliance with the License.
|
|
11
|
-
* You may obtain a copy of the License at
|
|
12
|
-
*
|
|
13
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
-
*
|
|
15
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
-
* See the License for the specific language governing permissions and
|
|
19
|
-
* limitations under the License.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* File: /src/meshConfig.ts
|
|
24
|
-
* Project: utils
|
|
25
|
-
* -----
|
|
26
|
-
* BitSpur (c) Copyright 2021 - 2024
|
|
27
|
-
*
|
|
28
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
29
|
-
* you may not use this file except in compliance with the License.
|
|
30
|
-
*/
|
|
31
|
-
|
|
32
|
-
export const meshConfig = {
|
|
33
|
-
sources: [
|
|
34
|
-
...(process.env.MESH_API === "1"
|
|
35
|
-
? [
|
|
36
|
-
{
|
|
37
|
-
name: "API",
|
|
38
|
-
handler: {
|
|
39
|
-
graphql: {
|
|
40
|
-
endpoint: `http://localhost:${process.env.API_PORT}/graphql`,
|
|
41
|
-
subscriptionsEndpoint: `ws://localhost:${process.env.API_PORT}/graphql`,
|
|
42
|
-
subscriptionsProtocol: "WS",
|
|
43
|
-
operationHeaders: {
|
|
44
|
-
Authorization: "{context.headers.Authorization}",
|
|
45
|
-
Cookie: "{context.headers.Cookie}",
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
transforms: [
|
|
50
|
-
{
|
|
51
|
-
prefix: {
|
|
52
|
-
mode: "wrap",
|
|
53
|
-
value: "API",
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
filterSchema: {
|
|
58
|
-
mode: "wrap",
|
|
59
|
-
filters: [],
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
],
|
|
63
|
-
},
|
|
64
|
-
]
|
|
65
|
-
: []),
|
|
66
|
-
...(process.env.MESH_FRAPPE === "1"
|
|
67
|
-
? [
|
|
68
|
-
{
|
|
69
|
-
name: "Frappe",
|
|
70
|
-
handler: {
|
|
71
|
-
graphql: {
|
|
72
|
-
endpoint: `${process.env.FRAPPE_BASE_URL}/api/method/graphql`,
|
|
73
|
-
subscriptionsEndpoint:
|
|
74
|
-
`${process.env.FRAPPE_BASE_URL}/api/method/graphql`.replace(
|
|
75
|
-
/^https?/,
|
|
76
|
-
"ws",
|
|
77
|
-
),
|
|
78
|
-
subscriptionsProtocol: "WS",
|
|
79
|
-
operationHeaders: {
|
|
80
|
-
Authorization: "{context.headers.Authorization}",
|
|
81
|
-
Cookie: "{context.headers.Cookie}",
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
transforms: [
|
|
86
|
-
{
|
|
87
|
-
prefix: {
|
|
88
|
-
mode: "wrap",
|
|
89
|
-
value: "Frappe",
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
filterSchema: {
|
|
94
|
-
mode: "wrap",
|
|
95
|
-
filters: ["Subscription.doc_events"],
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
},
|
|
100
|
-
]
|
|
101
|
-
: []),
|
|
102
|
-
],
|
|
103
|
-
additionalEnvelopPlugins: "./envelopPlugins.js",
|
|
104
|
-
serve: {
|
|
105
|
-
browser: false,
|
|
106
|
-
},
|
|
107
|
-
plugins: [
|
|
108
|
-
{
|
|
109
|
-
rateLimit: {
|
|
110
|
-
config: [],
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
maxTokens: {
|
|
115
|
-
n: 1000,
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
maxDepth: {
|
|
120
|
-
n: 10,
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
blockFieldSuggestions: {},
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
responseCache: {},
|
|
128
|
-
},
|
|
129
|
-
],
|
|
130
|
-
} as const;
|
package/types/meshConfig.d.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* File: /src/meshConfig.ts
|
|
3
|
-
* Project: utils
|
|
4
|
-
* -----
|
|
5
|
-
* BitSpur (c) Copyright 2021 - 2024
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
-
* you may not use this file except in compliance with the License.
|
|
9
|
-
*/
|
|
10
|
-
export declare const meshConfig: {
|
|
11
|
-
readonly sources: readonly ({
|
|
12
|
-
name: string;
|
|
13
|
-
handler: {
|
|
14
|
-
graphql: {
|
|
15
|
-
endpoint: string;
|
|
16
|
-
subscriptionsEndpoint: string;
|
|
17
|
-
subscriptionsProtocol: string;
|
|
18
|
-
operationHeaders: {
|
|
19
|
-
Authorization: string;
|
|
20
|
-
Cookie: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
transforms: ({
|
|
25
|
-
prefix: {
|
|
26
|
-
mode: string;
|
|
27
|
-
value: string;
|
|
28
|
-
};
|
|
29
|
-
filterSchema?: undefined;
|
|
30
|
-
} | {
|
|
31
|
-
filterSchema: {
|
|
32
|
-
mode: string;
|
|
33
|
-
filters: never[];
|
|
34
|
-
};
|
|
35
|
-
prefix?: undefined;
|
|
36
|
-
})[];
|
|
37
|
-
} | {
|
|
38
|
-
name: string;
|
|
39
|
-
handler: {
|
|
40
|
-
graphql: {
|
|
41
|
-
endpoint: string;
|
|
42
|
-
subscriptionsEndpoint: string;
|
|
43
|
-
subscriptionsProtocol: string;
|
|
44
|
-
operationHeaders: {
|
|
45
|
-
Authorization: string;
|
|
46
|
-
Cookie: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
transforms: ({
|
|
51
|
-
prefix: {
|
|
52
|
-
mode: string;
|
|
53
|
-
value: string;
|
|
54
|
-
};
|
|
55
|
-
filterSchema?: undefined;
|
|
56
|
-
} | {
|
|
57
|
-
filterSchema: {
|
|
58
|
-
mode: string;
|
|
59
|
-
filters: string[];
|
|
60
|
-
};
|
|
61
|
-
prefix?: undefined;
|
|
62
|
-
})[];
|
|
63
|
-
})[];
|
|
64
|
-
readonly additionalEnvelopPlugins: "./envelopPlugins.js";
|
|
65
|
-
readonly serve: {
|
|
66
|
-
readonly browser: false;
|
|
67
|
-
};
|
|
68
|
-
readonly plugins: readonly [{
|
|
69
|
-
readonly rateLimit: {
|
|
70
|
-
readonly config: readonly [];
|
|
71
|
-
};
|
|
72
|
-
}, {
|
|
73
|
-
readonly maxTokens: {
|
|
74
|
-
readonly n: 1000;
|
|
75
|
-
};
|
|
76
|
-
}, {
|
|
77
|
-
readonly maxDepth: {
|
|
78
|
-
readonly n: 10;
|
|
79
|
-
};
|
|
80
|
-
}, {
|
|
81
|
-
readonly blockFieldSuggestions: {};
|
|
82
|
-
}, {
|
|
83
|
-
readonly responseCache: {};
|
|
84
|
-
}];
|
|
85
|
-
};
|
|
86
|
-
//# sourceMappingURL=meshConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meshConfig.d.ts","sourceRoot":"","sources":["../src/meshConfig.ts"],"names":[],"mappings":"AAqBA;;;;;;;;GAQG;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkGb,CAAC"}
|