@hypequery/cli 1.10.2 → 1.10.4
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
|
-
{"version":3,"file":"deployment-runtime-artifact.d.ts","sourceRoot":"","sources":["../../src/utils/deployment-runtime-artifact.ts"],"names":[],"mappings":"AAyBA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,kBAAkB,EAAE,SAAS,MAAM,EAAE,CAAC;CAChD;AASD,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,OAAO,GAAG,SAAS,MAAM,EAAE,CA6BjF;
|
|
1
|
+
{"version":3,"file":"deployment-runtime-artifact.d.ts","sourceRoot":"","sources":["../../src/utils/deployment-runtime-artifact.ts"],"names":[],"mappings":"AAyBA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,kBAAkB,EAAE,SAAS,MAAM,EAAE,CAAC;CAChD;AASD,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,OAAO,GAAG,SAAS,MAAM,EAAE,CA6BjF;AAuDD,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,MAAM,EACf,kBAAkB,EAAE,SAAS,MAAM,EAAE,EACrC,gBAAgB,SAAY,GAC3B,OAAO,CAAC,mBAAmB,CAAC,CAmD9B"}
|
|
@@ -62,7 +62,17 @@ function runtimeEntrySource(apiSpecifier, runtimeEntrypoints, entrypointPrefix)
|
|
|
62
62
|
'const api = apiModule.api ?? Reflect.get(apiModule, "default");',
|
|
63
63
|
'if (!api || typeof api !== "object") throw new Error("Runtime API export is unavailable.");',
|
|
64
64
|
'const resolveQuery = (name) => {',
|
|
65
|
-
'
|
|
65
|
+
' if (typeof api.execute === "function") {',
|
|
66
|
+
' // Serve entrypoint names are validated against api.queries before bundling.',
|
|
67
|
+
' return (argument = {}) => api.execute(name, {',
|
|
68
|
+
' input: argument.input,',
|
|
69
|
+
' ...(argument.context === undefined ? {} : { context: argument.context }),',
|
|
70
|
+
' ...(argument.request === undefined ? {} : { request: argument.request }),',
|
|
71
|
+
' ...(argument.requestId === undefined ? {} : { requestId: argument.requestId }),',
|
|
72
|
+
' });',
|
|
73
|
+
' }',
|
|
74
|
+
' const entry = api.queries?.[name];',
|
|
75
|
+
' const query = entry?.query;',
|
|
66
76
|
' if (typeof query === "function") return query;',
|
|
67
77
|
' if (query && typeof query === "object" && typeof query.run === "function") {',
|
|
68
78
|
' return query.run.bind(query);',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hypequery/cli",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.4",
|
|
4
4
|
"description": "Command-line interface for hypequery",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"open": "^10.0.0",
|
|
20
20
|
"ora": "^8.0.1",
|
|
21
21
|
"prompts": "^2.4.2",
|
|
22
|
-
"@hypequery/deployment": "0.
|
|
22
|
+
"@hypequery/deployment": "0.6.0",
|
|
23
23
|
"@hypequery/protocol": "0.9.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|