@ldsg/constants 0.2.10 → 0.2.11

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 +1 @@
1
- [{ "path": ".env", "data": "" }, { "path": "index.ts", "data": "import { createApp } from \"@ldsg/create-app\";\nimport MANIFEST_JSON from \"./manifest.json\";\n\nconst { resourceRecords } = MANIFEST_JSON;\n\nconst app = createApp({\n resourceRecords,\n});\n\nconst port = process.env.PORT || \"3000\";\n\napp.listen(port, () => {\n console.log(`App listening on http://localhost:${port}`);\n\n console.log(`GraphQL listening on http://localhost:${port}/graphql`);\n});\n" }, { "path": "manifest.json", "data": { "resourceRecords": [{ "id": "resource-definition-resource-definition", "kind": "resource_definition", "parentId": "root", "settings": { "title": "资源定义资源定义", "description": "", "kind": "resource_definition", "parentKind": "" } }, { "id": "resource-definition-resource-handler", "kind": "handler", "parentId": "resource-definition-resource-definition", "settings": { "title": "资源定义实例化资源处理程序", "description": "", "code": "export * from \"@ldsg/resource-definition\";", "dependencies": [{ "name": "@ldsg/resource-definition" }] } }, { "id": "handler-resource-definition", "kind": "resource_definition", "parentId": "root", "settings": { "title": "处理程序资源定义", "description": "主要包含引入模块列表与相应的处理程序代码,处理程序类型资源无子级资源。", "kind": "handler", "parentKind": "" } }, { "id": "handler-resource-handler", "kind": "handler", "parentId": "handler-resource-definition", "settings": { "title": "处理程序实例化资源处理程序", "description": "包含处理程序相应的模块,此模块主要通过", "code": "export * from \"@ldsg/handler\";", "dependencies": [{ "name": "@ldsg/handler" }] } }, { "id": "application-resource-definition", "kind": "resource_definition", "parentId": "root", "settings": { "title": "应用资源定义", "description": "", "kind": "application", "parentKind": "" } }, { "id": "application-resource-handler", "kind": "handler", "parentId": "application-resource-definition", "settings": { "title": "应用实例化资源处理程序", "description": "", "code": "export * from \"@ldsg/application\";", "dependencies": [{ "name": "@ldsg/application" }] } }, { "id": "main-app", "kind": "application", "parentId": "root", "settings": { "title": "主要应用", "description": "" } }] } }, { "path": "package.json", "data": { "name": "ldsg-app-template", "version": "0.0.0", "description": "", "author": "", "private": true, "license": "UNLICENSED", "scripts": { "build": "pnpm run --workspace-root build:workspace-root && pnpm run --workspace-root build:recursive", "build:workspace-root": "tsc --project tsconfig.json", "build:recursive": "pnpm run --recursive build", "start": "node dist/index.js" }, "dependencies": { "@ldsg/create-app": "latest", "graphql": "^16.9.0", "graphql-middleware": "^6.1.35", "graphql-shield": "^7.6.5" }, "devDependencies": { "@types/node": "^22.1.0", "ts-loader": "^9.5.1", "tslib": "^2.6.3", "typescript": "^5.5.4" } } }, { "path": "pnpm-workspace.yaml", "data": "packages:\n - \"handlers/*\"\n" }, { "path": "tsconfig.json", "data": { "compilerOptions": { "module": "commonjs", "declaration": true, "removeComments": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", "incremental": true, "skipLibCheck": true, "strictNullChecks": false, "noImplicitAny": false, "strictBindCallApply": false, "forceConsistentCasingInFileNames": false, "noFallthroughCasesInSwitch": false, "resolveJsonModule": true, "esModuleInterop": true }, "include": ["./index.ts", "./service-records.json"] } }]
1
+ [{ "path": ".env", "data": "" }, { "path": "app.ts", "data": "import { createApp } from \"@ldsg/create-app\";\nimport MANIFEST_JSON from \"./manifest.json\";\n\nconst { resourceRecords } = MANIFEST_JSON;\n\nexport const app = createApp({\n resourceRecords,\n});\n" }, { "path": "index.ts", "data": "import { app } from \"./app\";\n\nconst port = process.env.PORT || \"3000\";\n\napp.listen(port, () => {\n console.log(`App listening on http://localhost:${port}`);\n\n console.log(`GraphQL listening on http://localhost:${port}/graphql`);\n});\n" }, { "path": "manifest.json", "data": { "resourceRecords": [{ "id": "resource-definition-resource-definition", "kind": "resource_definition", "parentId": "root", "settings": { "title": "资源定义资源定义", "description": "", "kind": "resource_definition", "parentKind": "" } }, { "id": "resource-definition-resource-handler", "kind": "handler", "parentId": "resource-definition-resource-definition", "settings": { "title": "资源定义实例化资源处理程序", "description": "", "code": "export * from \"@ldsg/resource-definition\";", "dependencies": [{ "name": "@ldsg/resource-definition" }] } }, { "id": "handler-resource-definition", "kind": "resource_definition", "parentId": "root", "settings": { "title": "处理程序资源定义", "description": "主要包含引入模块列表与相应的处理程序代码,处理程序类型资源无子级资源。", "kind": "handler", "parentKind": "" } }, { "id": "handler-resource-handler", "kind": "handler", "parentId": "handler-resource-definition", "settings": { "title": "处理程序实例化资源处理程序", "description": "包含处理程序相应的模块,此模块主要通过", "code": "export * from \"@ldsg/handler\";", "dependencies": [{ "name": "@ldsg/handler" }] } }, { "id": "application-resource-definition", "kind": "resource_definition", "parentId": "root", "settings": { "title": "应用资源定义", "description": "", "kind": "application", "parentKind": "" } }, { "id": "application-resource-handler", "kind": "handler", "parentId": "application-resource-definition", "settings": { "title": "应用实例化资源处理程序", "description": "", "code": "export * from \"@ldsg/application\";", "dependencies": [{ "name": "@ldsg/application" }] } }, { "id": "main-app", "kind": "application", "parentId": "root", "settings": { "title": "主要应用", "description": "" } }] } }, { "path": "package.json", "data": { "name": "ldsg-app-template", "version": "0.0.0", "description": "", "author": "", "private": true, "license": "UNLICENSED", "scripts": { "build": "pnpm run --workspace-root build:workspace-root && pnpm run --workspace-root build:recursive", "build:workspace-root": "tsc --project tsconfig.json", "build:recursive": "pnpm run --recursive build", "start": "node dist/index.js" }, "dependencies": { "@ldsg/create-app": "latest", "graphql": "^16.9.0", "graphql-middleware": "^6.1.35", "graphql-shield": "^7.6.5" }, "devDependencies": { "@types/node": "^22.1.0", "ts-loader": "^9.5.1", "tslib": "^2.6.3", "typescript": "^5.5.4" } } }, { "path": "pnpm-workspace.yaml", "data": "packages:\n - \"handlers/*\"\n" }, { "path": "tsconfig.json", "data": { "compilerOptions": { "module": "commonjs", "declaration": true, "removeComments": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, "target": "ES2021", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", "incremental": true, "skipLibCheck": true, "strictNullChecks": false, "noImplicitAny": false, "strictBindCallApply": false, "forceConsistentCasingInFileNames": false, "noFallthroughCasesInSwitch": false, "resolveJsonModule": true, "esModuleInterop": true }, "include": ["./index.ts", "./service-records.json"] } }]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldsg/constants",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [