@ldsg/resource-definition 0.3.31 → 0.3.32

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.
@@ -1,5 +1,5 @@
1
- import { HandlerSpecificResourceSettings } from '@ldsg/handler';
2
- import { GeneralResourceSettings } from '@ldsg/types';
1
+ import { HandlerSpecificResourceSettings } from "@ldsg/handler";
2
+ import { GeneralResourceSettings } from "@ldsg/types";
3
3
  /**
4
4
  * Instantiate Resource Handler General Resource Settings
5
5
  * 实例化资源处理程序普通资源配置
@@ -11,7 +11,7 @@ export declare const INSTANTIATE_RESOURCE_HANDLER_GENERAL_RESOURCE_SETTINGS: Gen
11
11
  * 框架通过此实例化此资源
12
12
  */
13
13
  export declare const INSTANTIATE_RESOURCE_HANDLER_SPECIFIC_RESOURCE_SETTINGS: HandlerSpecificResourceSettings;
14
- import { ResourceDefinitionSpecificResourceSettings } from '@ldsg/resource-definition-part';
14
+ import { ResourceDefinitionSpecificResourceSettings } from "@ldsg/resource-definition-part";
15
15
  export declare const RESOURCE_DEFINITION_GENERAL_RESOURCE_SETTINGS: GeneralResourceSettings;
16
16
  export declare const RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS: ResourceDefinitionSpecificResourceSettings;
17
17
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,sDAAsD,EAAE,uBAGpE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uDAAuD,EAAE,+BAOrE,CAAC;AAEF,OAAO,EAAE,0CAA0C,EAAE,MAAM,gCAAgC,CAAC;AAE5F,eAAO,MAAM,6CAA6C,EAAE,uBAG3D,CAAC;AAEF,eAAO,MAAM,8CAA8C,EAAE,0CAE5D,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,sDAAsD,EAAE,uBAGpE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uDAAuD,EAAE,+BAQnE,CAAC;AAEJ,OAAO,EAAE,0CAA0C,EAAE,MAAM,gCAAgC,CAAC;AAE5F,eAAO,MAAM,6CAA6C,EAAE,uBAG3D,CAAC;AAEF,eAAO,MAAM,8CAA8C,EAAE,0CAG1D,CAAC"}
package/dist/constants.js CHANGED
@@ -6,8 +6,8 @@ exports.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS = exports.RESOURCE_DEFINI
6
6
  * 实例化资源处理程序普通资源配置
7
7
  */
8
8
  exports.INSTANTIATE_RESOURCE_HANDLER_GENERAL_RESOURCE_SETTINGS = {
9
- title: '资源定义实例化资源处理程序',
10
- description: ''
9
+ title: "资源定义实例化资源处理程序",
10
+ description: "",
11
11
  };
12
12
  /**
13
13
  * Instantiate Resource Handler Specific Resource Settings
@@ -18,14 +18,14 @@ exports.INSTANTIATE_RESOURCE_HANDLER_SPECIFIC_RESOURCE_SETTINGS = {
18
18
  code: `export * from "@ldsg/resource-definition";`,
19
19
  dependencies: [
20
20
  {
21
- name: '@ldsg/resource-definition'
22
- }
23
- ]
21
+ name: "@ldsg/resource-definition",
22
+ },
23
+ ],
24
24
  };
25
25
  exports.RESOURCE_DEFINITION_GENERAL_RESOURCE_SETTINGS = {
26
- title: '资源定义资源定义',
27
- description: ''
26
+ title: "资源定义资源定义",
27
+ description: "",
28
28
  };
29
29
  exports.RESOURCE_DEFINITION_SPECIFIC_RESOURCE_SETTINGS = {
30
- kind: 'resource_definition'
30
+ kind: "resource_definition",
31
31
  };
package/dist/handler.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { Handler, HandlerExtendedResourceSettings } from '@ldsg/handler';
2
- import { InstantiateResourceParams, InstantiateResourceRes } from '@ldsg/resource';
3
- import { ResourceDefinitionSpecificResourceSettings } from '@ldsg/resource-definition-part';
4
- import { ResourceDefinitionResource } from './resource';
1
+ import { Handler, HandlerExtendedResourceSettings } from "@ldsg/handler";
2
+ import { InstantiateResourceParams, InstantiateResourceRes } from "@ldsg/resource";
3
+ import { ResourceDefinitionSpecificResourceSettings } from "@ldsg/resource-definition-part";
4
+ import { ResourceDefinitionResource } from "./resource";
5
5
  export declare const handler: Handler<InstantiateResourceParams<HandlerExtendedResourceSettings<ResourceDefinitionSpecificResourceSettings>>, InstantiateResourceRes<ResourceDefinitionResource>>;
6
6
  //# sourceMappingURL=handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../src/handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACnF,OAAO,EAAE,0CAA0C,EAAE,MAAM,gCAAgC,CAAC;AAE5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,eAAO,MAAM,OAAO,EAAE,OAAO,CAC3B,yBAAyB,CAAC,+BAA+B,CAAC,0CAA0C,CAAC,CAAC,EACtG,sBAAsB,CAAC,0BAA0B,CAAC,CAC7B,CAAC"}
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../src/handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACnF,OAAO,EAAE,0CAA0C,EAAE,MAAM,gCAAgC,CAAC;AAE5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,eAAO,MAAM,OAAO,EAAE,OAAO,CAC3B,yBAAyB,CACvB,+BAA+B,CAAC,0CAA0C,CAAC,CAC5E,EACD,sBAAsB,CAAC,0BAA0B,CAAC,CAC7B,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export * from '@ldsg/resource-definition-part';
2
- export * from './constants';
3
- export * from './handler';
4
- export * from './instantiate-resource';
5
- export * from './instantiate-resources';
6
- export * from './resource';
1
+ export * from "@ldsg/resource-definition-part";
2
+ export * from "./constants";
3
+ export * from "./handler";
4
+ export * from "./instantiate-resource";
5
+ export * from "./instantiate-resources";
6
+ export * from "./resource";
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
- import { HandlerExtendedResourceSettings } from '@ldsg/handler';
2
- import { InstantiateResource } from '@ldsg/resource';
3
- import { ResourceDefinitionSpecificResourceSettings } from '@ldsg/resource-definition-part';
4
- import { ResourceDefinitionResource } from './resource';
1
+ import { HandlerExtendedResourceSettings } from "@ldsg/handler";
2
+ import { InstantiateResource } from "@ldsg/resource";
3
+ import { ResourceDefinitionSpecificResourceSettings } from "@ldsg/resource-definition-part";
4
+ import { ResourceDefinitionResource } from "./resource";
5
5
  export declare const instantiateResource: InstantiateResource<HandlerExtendedResourceSettings<ResourceDefinitionSpecificResourceSettings>, ResourceDefinitionResource>;
6
6
  //# sourceMappingURL=instantiate-resource.d.ts.map
@@ -6,7 +6,7 @@ const instantiateResource = (params) => {
6
6
  const { resourceConstructorParams } = params;
7
7
  const resource = new resource_1.ResourceDefinitionResource(resourceConstructorParams);
8
8
  const res = {
9
- resource
9
+ resource,
10
10
  };
11
11
  return res;
12
12
  };
@@ -1,6 +1,6 @@
1
- import { HandlerExtendedResourceSettings } from '@ldsg/handler';
2
- import { InstantiateResources } from '@ldsg/resource';
3
- import { ResourceDefinitionSpecificResourceSettings } from '@ldsg/resource-definition-part';
4
- import { ResourceDefinitionResource } from './resource';
1
+ import { HandlerExtendedResourceSettings } from "@ldsg/handler";
2
+ import { InstantiateResources } from "@ldsg/resource";
3
+ import { ResourceDefinitionSpecificResourceSettings } from "@ldsg/resource-definition-part";
4
+ import { ResourceDefinitionResource } from "./resource";
5
5
  export declare const instantiateResources: InstantiateResources<HandlerExtendedResourceSettings<ResourceDefinitionSpecificResourceSettings>, ResourceDefinitionResource>;
6
6
  //# sourceMappingURL=instantiate-resources.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instantiate-resources.d.ts","sourceRoot":"","sources":["../src/instantiate-resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,0CAA0C,EAAE,MAAM,gCAAgC,CAAC;AAE5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,eAAO,MAAM,oBAAoB,EAAE,oBAAoB,CACrD,+BAA+B,CAAC,0CAA0C,CAAC,EAC3E,0BAA0B,CAqB3B,CAAC"}
1
+ {"version":3,"file":"instantiate-resources.d.ts","sourceRoot":"","sources":["../src/instantiate-resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,0CAA0C,EAAE,MAAM,gCAAgC,CAAC;AAE5F,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,eAAO,MAAM,oBAAoB,EAAE,oBAAoB,CACrD,+BAA+B,CAAC,0CAA0C,CAAC,EAC3E,0BAA0B,CAuB3B,CAAC"}
@@ -4,15 +4,15 @@ exports.instantiateResources = void 0;
4
4
  const instantiate_resource_1 = require("./instantiate-resource");
5
5
  const instantiateResources = (params) => {
6
6
  const { resourceRecords } = params;
7
- const resourceDefinitionManifestResources = resourceRecords.filter((value) => value.kind === 'resource_definition');
7
+ const resourceDefinitionManifestResources = resourceRecords.filter((value) => value.kind === "resource_definition");
8
8
  const resources = resourceDefinitionManifestResources.map((resourceDefinitionManifestResource) => {
9
9
  const { resource } = (0, instantiate_resource_1.instantiateResource)({
10
- resourceConstructorParams: resourceDefinitionManifestResource
10
+ resourceConstructorParams: resourceDefinitionManifestResource,
11
11
  });
12
12
  return resource;
13
13
  });
14
14
  const res = {
15
- resources
15
+ resources,
16
16
  };
17
17
  return res;
18
18
  };
@@ -1,6 +1,6 @@
1
- import { HandlerExtendedResource } from '@ldsg/handler';
2
- import { InstantiateResource } from '@ldsg/resource';
3
- import { ResourceDefinitionSpecificResourceSettings } from '@ldsg/resource-definition-part';
1
+ import { HandlerExtendedResource } from "@ldsg/handler";
2
+ import { InstantiateResource } from "@ldsg/resource";
3
+ import { ResourceDefinitionSpecificResourceSettings } from "@ldsg/resource-definition-part";
4
4
  export declare class ResourceDefinitionResource extends HandlerExtendedResource<ResourceDefinitionSpecificResourceSettings> {
5
5
  /**
6
6
  * 实例化资源
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldsg/resource-definition",
3
- "version": "0.3.31",
3
+ "version": "0.3.32",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -12,16 +12,18 @@
12
12
  ],
13
13
  "dependencies": {
14
14
  "lodash": "^4.17.21",
15
- "@ldsg/constants": "0.3.31",
16
- "@ldsg/types": "0.3.31",
17
- "@ldsg/handler": "0.3.31",
18
- "@ldsg/resource": "0.3.31",
19
- "@ldsg/resource-definition-part": "0.3.31"
15
+ "@ldsg/constants": "0.3.32",
16
+ "@ldsg/resource": "0.3.32",
17
+ "@ldsg/handler": "0.3.32",
18
+ "@ldsg/resource-definition-part": "0.3.32",
19
+ "@ldsg/types": "0.3.32"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/jest": "^29.5.2",
23
23
  "@types/lodash": "^4.14.202",
24
24
  "jest": "^29.5.0",
25
+ "oxfmt": "latest",
26
+ "oxlint": "latest",
25
27
  "supertest": "^6.3.4",
26
28
  "ts-jest": "^29.1.5",
27
29
  "ts-node": "^10.9.2",
@@ -32,6 +34,8 @@
32
34
  },
33
35
  "scripts": {
34
36
  "build": "tsc --project tsconfig.build.json",
35
- "clean": "rm -rf dist"
37
+ "clean": "rm -rf dist",
38
+ "format": "oxfmt --write src/",
39
+ "lint": "oxlint src/"
36
40
  }
37
41
  }