@milaboratories/pl-middle-layer 1.30.4 → 1.30.6
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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +119 -131
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
- package/src/block_registry/registry.ts +20 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-middle-layer",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.6",
|
|
4
4
|
"description": "Pl Middle Layer",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -30,20 +30,20 @@
|
|
|
30
30
|
"yaml": "^2.6.1",
|
|
31
31
|
"zod": "~3.23.8",
|
|
32
32
|
"@milaboratories/pl-http": "^1.1.0",
|
|
33
|
-
"@milaboratories/computable": "^2.3.5",
|
|
34
|
-
"@milaboratories/resolve-helper": "^1.0.2",
|
|
35
33
|
"@platforma-sdk/block-tools": "^2.5.18",
|
|
36
|
-
"@milaboratories/
|
|
34
|
+
"@milaboratories/computable": "^2.3.5",
|
|
37
35
|
"@milaboratories/pl-drivers": "^1.5.25",
|
|
38
|
-
"@milaboratories/pl-
|
|
36
|
+
"@milaboratories/pl-client": "^2.7.12",
|
|
37
|
+
"@milaboratories/pl-model-common": "^1.10.6",
|
|
38
|
+
"@milaboratories/resolve-helper": "^1.0.2",
|
|
39
39
|
"@milaboratories/pl-model-backend": "^1.0.2",
|
|
40
|
+
"@milaboratories/pl-model-middle-layer": "^1.7.6",
|
|
40
41
|
"@milaboratories/pl-tree": "^1.4.31",
|
|
41
|
-
"@milaboratories/pl-model-common": "^1.10.6",
|
|
42
42
|
"@milaboratories/ts-helpers": "^1.1.4",
|
|
43
|
-
"@platforma-sdk/workflow-tengo": "2.15.7",
|
|
44
|
-
"@milaboratories/pl-config": "^1.4.3",
|
|
45
43
|
"@platforma-sdk/model": "^1.22.59",
|
|
46
|
-
"@
|
|
44
|
+
"@platforma-sdk/workflow-tengo": "2.15.8",
|
|
45
|
+
"@milaboratories/pl-deployments": "^1.3.0",
|
|
46
|
+
"@milaboratories/pl-config": "^1.4.3"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"semver": "^7.6.3",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"jest": "^29.7.0",
|
|
56
56
|
"@jest/globals": "^29.7.0",
|
|
57
57
|
"ts-jest": "^29.2.6",
|
|
58
|
-
"@milaboratories/
|
|
59
|
-
"@milaboratories/
|
|
58
|
+
"@milaboratories/platforma-build-configs": "1.0.2",
|
|
59
|
+
"@milaboratories/eslint-config": "^1.0.1"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"type-check": "tsc --noEmit --composite false",
|
|
@@ -125,27 +125,27 @@ export class BlockPackRegistry {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
case 'remote-v2':
|
|
128
|
-
return (await this.v2Provider.getRegistry(regSpec.url).listBlockPacks())
|
|
129
|
-
e.
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
128
|
+
return (await this.v2Provider.getRegistry(regSpec.url).listBlockPacks())
|
|
129
|
+
.map((e) => ({ ...e, registryId: regEntry.id }));
|
|
130
|
+
// e.latestByChannel[StableChannel]
|
|
131
|
+
// ? {
|
|
132
|
+
// ...e,
|
|
133
|
+
// registryId: regEntry.id,
|
|
134
|
+
// }
|
|
135
|
+
// : {
|
|
136
|
+
// ...e,
|
|
137
|
+
// latestByChannel: {
|
|
138
|
+
// ...e.latestByChannel,
|
|
139
|
+
// [StableChannel]: ((s: SingleBlockPackOverview) => {
|
|
140
|
+
// if (s.spec.type === 'from-registry-v2') {
|
|
141
|
+
// return { ...s, spec: { ...s.spec, channel: StableChannel } };
|
|
142
|
+
// }
|
|
142
143
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
);
|
|
144
|
+
// return s;
|
|
145
|
+
// })(e.latestByChannel[AnyChannel]),
|
|
146
|
+
// },
|
|
147
|
+
// registryId: regEntry.id,
|
|
148
|
+
// },
|
|
149
149
|
|
|
150
150
|
case 'local-dev':
|
|
151
151
|
for (const entry of await fs.promises.readdir(regSpec.path, { withFileTypes: true })) {
|