@ldsg/constants 0.3.10 → 0.3.17
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/app-manifest.json
CHANGED
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
"handlerResourceId": "graphql-workflow-resource-definition-handler",
|
|
168
168
|
"title": "GraphQL工作流资源定义",
|
|
169
169
|
"description": "",
|
|
170
|
-
"kind": "
|
|
170
|
+
"kind": "graphql_workflow"
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
173
|
{
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
"handlerResourceId": "graphql-workflows-resource-definition-handler",
|
|
194
194
|
"title": "GraphQL工作流组资源定义",
|
|
195
195
|
"description": "",
|
|
196
|
-
"kind": "
|
|
196
|
+
"kind": "graphql_workflows"
|
|
197
197
|
}
|
|
198
198
|
},
|
|
199
199
|
{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
3
|
"path": "app.ts",
|
|
4
|
-
"data": "import { createApp } from '@ldsg/create-app';\nimport { Express } from 'express';\nimport MANIFEST_JSON from './manifest.json';\n\nconst { resourceRecords } = MANIFEST_JSON as any;\n\nexport const app: Express = createApp({\n resourceRecords\n});\n"
|
|
4
|
+
"data": "import { createApp } from '@ldsg/create-app';\nimport { Express } from 'express';\nimport MANIFEST_JSON from './manifest.json' with { type: 'json' };\n\nconst { resourceRecords } = MANIFEST_JSON as any;\n\nexport const app: Express = createApp({\n resourceRecords\n});\n"
|
|
5
5
|
},
|
|
6
6
|
{
|
|
7
7
|
"path": "index.ts",
|
|
8
|
-
"data": "import { app } from './app';\n\nconst port = process.env.PORT || '
|
|
8
|
+
"data": "import { app } from './app.js';\n\nconst port = process.env.PORT || '3253';\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"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
"path": "manifest.json",
|
|
@@ -110,12 +110,16 @@
|
|
|
110
110
|
"description": "",
|
|
111
111
|
"license": "UNLICENSED",
|
|
112
112
|
"author": "",
|
|
113
|
+
"type": "module",
|
|
113
114
|
"scripts": {
|
|
114
115
|
"build": "tsc --project tsconfig.json",
|
|
115
|
-
"
|
|
116
|
+
"dev:obs": "tsx --import @ldsg/opentelemetry-node index.ts",
|
|
117
|
+
"start": "node dist/index.js",
|
|
118
|
+
"start:obs": "node --import @ldsg/opentelemetry-node ./dist/index.js"
|
|
116
119
|
},
|
|
117
120
|
"dependencies": {
|
|
118
121
|
"@ldsg/create-app": "workspace:*",
|
|
122
|
+
"@ldsg/opentelemetry-node": "workspace:*",
|
|
119
123
|
"graphql": "^16.9.0",
|
|
120
124
|
"graphql-middleware": "^6.1.35",
|
|
121
125
|
"graphql-shield": "^7.6.5"
|
|
@@ -124,7 +128,9 @@
|
|
|
124
128
|
"@types/express": "^4.17.17",
|
|
125
129
|
"@types/node": "^22.1.0",
|
|
126
130
|
"ts-loader": "^9.5.1",
|
|
131
|
+
"ts-node": "~10.9.2",
|
|
127
132
|
"tslib": "^2.6.3",
|
|
133
|
+
"tsx": "~4.21.0",
|
|
128
134
|
"typescript": "^5.5.4"
|
|
129
135
|
}
|
|
130
136
|
}
|
|
@@ -133,13 +139,13 @@
|
|
|
133
139
|
"path": "tsconfig.json",
|
|
134
140
|
"data": {
|
|
135
141
|
"compilerOptions": {
|
|
136
|
-
"module": "
|
|
142
|
+
"module": "NodeNext",
|
|
137
143
|
"declaration": true,
|
|
138
144
|
"removeComments": true,
|
|
139
145
|
"emitDecoratorMetadata": true,
|
|
140
146
|
"experimentalDecorators": true,
|
|
141
147
|
"allowSyntheticDefaultImports": true,
|
|
142
|
-
"target": "
|
|
148
|
+
"target": "esnext",
|
|
143
149
|
"sourceMap": true,
|
|
144
150
|
"outDir": "./dist",
|
|
145
151
|
"baseUrl": "./",
|
|
@@ -153,7 +159,7 @@
|
|
|
153
159
|
"resolveJsonModule": true,
|
|
154
160
|
"esModuleInterop": true
|
|
155
161
|
},
|
|
156
|
-
"include": ["
|
|
162
|
+
"include": ["./*.ts", "./service-records.json"]
|
|
157
163
|
}
|
|
158
164
|
}
|
|
159
165
|
]
|
package/dist/index.d.ts
CHANGED
|
@@ -151,6 +151,7 @@ export declare const FILES_IN_APP_TEMPLATE_MODULE: ({
|
|
|
151
151
|
description?: undefined;
|
|
152
152
|
license?: undefined;
|
|
153
153
|
author?: undefined;
|
|
154
|
+
type?: undefined;
|
|
154
155
|
scripts?: undefined;
|
|
155
156
|
dependencies?: undefined;
|
|
156
157
|
devDependencies?: undefined;
|
|
@@ -166,12 +167,16 @@ export declare const FILES_IN_APP_TEMPLATE_MODULE: ({
|
|
|
166
167
|
description: string;
|
|
167
168
|
license: string;
|
|
168
169
|
author: string;
|
|
170
|
+
type: string;
|
|
169
171
|
scripts: {
|
|
170
172
|
build: string;
|
|
173
|
+
"dev:obs": string;
|
|
171
174
|
start: string;
|
|
175
|
+
"start:obs": string;
|
|
172
176
|
};
|
|
173
177
|
dependencies: {
|
|
174
178
|
"@ldsg/create-app": string;
|
|
179
|
+
"@ldsg/opentelemetry-node": string;
|
|
175
180
|
graphql: string;
|
|
176
181
|
"graphql-middleware": string;
|
|
177
182
|
"graphql-shield": string;
|
|
@@ -180,7 +185,9 @@ export declare const FILES_IN_APP_TEMPLATE_MODULE: ({
|
|
|
180
185
|
"@types/express": string;
|
|
181
186
|
"@types/node": string;
|
|
182
187
|
"ts-loader": string;
|
|
188
|
+
"ts-node": string;
|
|
183
189
|
tslib: string;
|
|
190
|
+
tsx: string;
|
|
184
191
|
typescript: string;
|
|
185
192
|
};
|
|
186
193
|
resourceRecords?: undefined;
|
|
@@ -219,6 +226,7 @@ export declare const FILES_IN_APP_TEMPLATE_MODULE: ({
|
|
|
219
226
|
description?: undefined;
|
|
220
227
|
license?: undefined;
|
|
221
228
|
author?: undefined;
|
|
229
|
+
type?: undefined;
|
|
222
230
|
scripts?: undefined;
|
|
223
231
|
dependencies?: undefined;
|
|
224
232
|
devDependencies?: undefined;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,UAA2B,CAAC;AAE5D,eAAO,MAAM,gBAAgB,QAAwB,CAAC;AAEtD,eAAO,MAAM,kBAAkB,QAA0B,CAAC;AAE1D,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAoD,CAAC;AAE9G,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,CAAC;AAE9C,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,UAA2B,CAAC;AAE5D,eAAO,MAAM,gBAAgB,QAAwB,CAAC;AAEtD,eAAO,MAAM,kBAAkB,QAA0B,CAAC;AAE1D,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAoD,CAAC;AAE9G,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,CAAC;AAE9C,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAoC,CAAC;AAE9E,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAwC,CAAC"}
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"handlerResourceId": "graphql-workflow-resource-definition-handler",
|
|
167
167
|
"title": "GraphQL工作流资源定义",
|
|
168
168
|
"description": "",
|
|
169
|
-
"kind": "
|
|
169
|
+
"kind": "graphql_workflow"
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
172
|
{
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
"handlerResourceId": "graphql-workflows-resource-definition-handler",
|
|
193
193
|
"title": "GraphQL工作流组资源定义",
|
|
194
194
|
"description": "",
|
|
195
|
-
"kind": "
|
|
195
|
+
"kind": "graphql_workflows"
|
|
196
196
|
}
|
|
197
197
|
},
|
|
198
198
|
{
|