@ldsg/resource-instantiator 0.1.0-alpha.17 → 0.1.0-alpha.19
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/utils/instantiate-resource-definition-resources-with-sub-handler-resources.d.ts.map +1 -1
- package/dist/utils/instantiate-resource-definition-resources-with-sub-handler-resources.js +2 -1
- package/dist/utils/instantiate-resources-required-by-app.spec.d.ts +2 -0
- package/dist/utils/instantiate-resources-required-by-app.spec.d.ts.map +1 -0
- package/dist/utils/instantiate-resources-required-by-app.spec.js +11 -0
- package/package.json +7 -7
package/dist/utils/instantiate-resource-definition-resources-with-sub-handler-resources.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instantiate-resource-definition-resources-with-sub-handler-resources.d.ts","sourceRoot":"","sources":["../../src/utils/instantiate-resource-definition-resources-with-sub-handler-resources.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAKtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAkB,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,6DAA6D,EAAE,oBAAoB,CAC9F,wBAAwB,EACxB,0BAA0B,
|
|
1
|
+
{"version":3,"file":"instantiate-resource-definition-resources-with-sub-handler-resources.d.ts","sourceRoot":"","sources":["../../src/utils/instantiate-resource-definition-resources-with-sub-handler-resources.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAKtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAkB,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,6DAA6D,EAAE,oBAAoB,CAC9F,wBAAwB,EACxB,0BAA0B,CAoC3B,CAAC"}
|
|
@@ -11,7 +11,8 @@ const instantiateResourceDefinitionResourcesWithSubHandlerResources = (params) =
|
|
|
11
11
|
const { resourceRecords } = params;
|
|
12
12
|
const resourceDefinitionResourceRecords = resourceRecords.filter((value) => value.kind === "RESOURCE_DEFINITION");
|
|
13
13
|
const handlerResourceRecords = resourceRecords.filter((value) => value.kind === "HANDLER" &&
|
|
14
|
-
resourceDefinitionResourceRecords.find((resourceDefinitionResourceRecord) => resourceDefinitionResourceRecord.
|
|
14
|
+
resourceDefinitionResourceRecords.find((resourceDefinitionResourceRecord) => resourceDefinitionResourceRecord.settings.handlerResourceId ===
|
|
15
|
+
value.id));
|
|
15
16
|
const { resources: resourceDefinitionResources } = (0, resource_definition_1.instantiateResources)({
|
|
16
17
|
resourceRecords: resourceDefinitionResourceRecords,
|
|
17
18
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instantiate-resources-required-by-app.spec.d.ts","sourceRoot":"","sources":["../../src/utils/instantiate-resources-required-by-app.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const constants_1 = require("@ldsg/constants");
|
|
4
|
+
const instantiate_resources_required_by_app_1 = require("./instantiate-resources-required-by-app");
|
|
5
|
+
test("resolve-manifest-resources", () => {
|
|
6
|
+
const { resourceRecords } = constants_1.APP_MANIFEST;
|
|
7
|
+
const { resources } = (0, instantiate_resources_required_by_app_1.instantiateResourcesRequiredByApp)({
|
|
8
|
+
resourceRecords,
|
|
9
|
+
});
|
|
10
|
+
expect(resources).toMatchSnapshot();
|
|
11
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldsg/resource-instantiator",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.19",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"lodash": "^4.17.21",
|
|
18
|
-
"@ldsg/handler": "0.1.0-alpha.
|
|
19
|
-
"@ldsg/resource": "0.1.0-alpha.
|
|
20
|
-
"@ldsg/
|
|
21
|
-
"@ldsg/
|
|
18
|
+
"@ldsg/handler": "0.1.0-alpha.19",
|
|
19
|
+
"@ldsg/resource": "0.1.0-alpha.19",
|
|
20
|
+
"@ldsg/resource-definition": "0.1.0-alpha.19",
|
|
21
|
+
"@ldsg/types": "0.1.0-alpha.19"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/lodash": "^4.14.202",
|
|
25
|
-
"@ldsg/application": "0.1.0-alpha.
|
|
26
|
-
"@ldsg/constants": "0.1.0-alpha.
|
|
25
|
+
"@ldsg/application": "0.1.0-alpha.19",
|
|
26
|
+
"@ldsg/constants": "0.1.0-alpha.19"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "npm run clean && tsc --project tsconfig.build.json",
|