@wildo-ai/saas-workers-node-lib 1.1.5 → 1.1.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/esm/runtime/services/define-worker-init.d.ts +2 -0
- package/dist/esm/runtime/services/define-worker-init.d.ts.map +1 -1
- package/dist/esm/runtime/services/define-worker-init.js.map +1 -1
- package/dist/esm/runtime/services/start-worker-application.backend.service.d.ts.map +1 -1
- package/dist/esm/runtime/services/start-worker-application.backend.service.js +5 -0
- package/dist/esm/runtime/services/start-worker-application.backend.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/runtime/services/define-worker-init.ts +2 -0
- package/src/runtime/services/start-worker-application.backend.service.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildo-ai/saas-workers-node-lib",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "Node worker runtime host boundary for Wildo SaaS applications",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Wildo AI",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"test:watch": "vitest"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@wildo-ai/platform-config-lib": "1.1.
|
|
34
|
-
"@wildo-ai/platform-core-shared": "1.1.
|
|
35
|
-
"@wildo-ai/saas-backend-lib": "1.1.
|
|
36
|
-
"@wildo-ai/saas-models": "1.1.
|
|
33
|
+
"@wildo-ai/platform-config-lib": "1.1.6",
|
|
34
|
+
"@wildo-ai/platform-core-shared": "1.1.6",
|
|
35
|
+
"@wildo-ai/saas-backend-lib": "1.1.6",
|
|
36
|
+
"@wildo-ai/saas-models": "1.1.6",
|
|
37
37
|
"express": "^5.1.0",
|
|
38
38
|
"helmet": "^8.1.0",
|
|
39
39
|
"jsonwebtoken": "^9.0.2",
|
|
@@ -19,6 +19,8 @@ export interface WorkerProviderRuntimeArtifact {
|
|
|
19
19
|
* which would assert, across a package boundary, the very thing nobody checked.
|
|
20
20
|
*/
|
|
21
21
|
providerRuntimeImports?: ProviderRuntimeArtifact['providerRuntimeImports'];
|
|
22
|
+
/** Mirrored for the same reason: the projection narrows and forwards it (#1672). */
|
|
23
|
+
providerRuntimeAugmentations?: ProviderRuntimeArtifact['providerRuntimeAugmentations'];
|
|
22
24
|
providerGraphDigest?: ProviderRuntimeArtifact['providerGraphDigest'];
|
|
23
25
|
lockfileSectionDigest?: ProviderRuntimeArtifact['lockfileSectionDigest'];
|
|
24
26
|
artifactKind: 'nodeWorkers';
|
|
@@ -329,6 +329,10 @@ export class StartWorkerApplicationBackendService {
|
|
|
329
329
|
providerRuntime.providerRuntimeImports ?? {},
|
|
330
330
|
).filter(([providerRef]) => projectedProviderRefs.includes(providerRef)),
|
|
331
331
|
);
|
|
332
|
+
// Narrowed with the refs as well (#1672): a host applies augmentations only to providers it declares, and a
|
|
333
|
+
// sibling's opt-in must not load a package into this process.
|
|
334
|
+
const projectedAugmentations = Object.entries(providerRuntime.providerRuntimeAugmentations ?? {})
|
|
335
|
+
.filter(([providerRef]) => projectedProviderRefs.includes(providerRef));
|
|
332
336
|
|
|
333
337
|
return {
|
|
334
338
|
__AUTOGENERATED__: providerRuntime.__AUTOGENERATED__,
|
|
@@ -337,6 +341,7 @@ export class StartWorkerApplicationBackendService {
|
|
|
337
341
|
sourceDigest: providerRuntime.sourceDigest,
|
|
338
342
|
providerRefs: projectedProviderRefs,
|
|
339
343
|
providerRuntimeImports: projectedProviderRuntimeImports,
|
|
344
|
+
...(projectedAugmentations.length === 0 ? {} : { providerRuntimeAugmentations: Object.fromEntries(projectedAugmentations) }),
|
|
340
345
|
providerGraphDigest: providerRuntime.providerGraphDigest,
|
|
341
346
|
lockfileSectionDigest: providerRuntime.lockfileSectionDigest,
|
|
342
347
|
artifactKind: 'backend',
|