@zuplo/cli 6.73.13 → 6.73.15
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/cmds/dev.d.ts.map +1 -1
- package/dist/cmds/dev.js +6 -0
- package/dist/cmds/dev.js.map +1 -1
- package/dist/dev/handler.d.ts +1 -0
- package/dist/dev/handler.d.ts.map +1 -1
- package/dist/dev/handler.js +5 -0
- package/dist/dev/handler.js.map +1 -1
- package/dist/dev/zuplo-local-gitignore.d.ts +4 -0
- package/dist/dev/zuplo-local-gitignore.d.ts.map +1 -0
- package/dist/dev/zuplo-local-gitignore.js +29 -0
- package/dist/dev/zuplo-local-gitignore.js.map +1 -0
- package/dist/dev/zuplo-local-gitignore.test.d.ts +2 -0
- package/dist/dev/zuplo-local-gitignore.test.d.ts.map +1 -0
- package/dist/dev/zuplo-local-gitignore.test.js +58 -0
- package/dist/dev/zuplo-local-gitignore.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@zuplo/core/customer.cli.minified.js +238 -238
- package/node_modules/@zuplo/core/index.minified.js +250 -250
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/{chunk-7Z5GGYF5.js → chunk-OAVAM6CR.js} +122 -122
- package/node_modules/@zuplo/runtime/out/esm/chunk-OAVAM6CR.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +282 -128
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/node_modules/hono/dist/cjs/helper/streaming/sse.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js +10 -4
- package/node_modules/hono/dist/cjs/request.js +1 -1
- package/node_modules/hono/dist/cjs/utils/accept.js +1 -1
- package/node_modules/hono/dist/cjs/utils/url.js +1 -1
- package/node_modules/hono/dist/helper/streaming/sse.js +1 -1
- package/node_modules/hono/dist/middleware/secure-headers/secure-headers.js +10 -4
- package/node_modules/hono/dist/request.js +1 -1
- package/node_modules/hono/dist/types/adapter/aws-lambda/types.d.ts +9 -0
- package/node_modules/hono/dist/utils/accept.js +1 -1
- package/node_modules/hono/dist/utils/url.js +1 -1
- package/node_modules/hono/package.json +1 -1
- package/package.json +6 -6
- package/node_modules/@zuplo/runtime/out/esm/chunk-7Z5GGYF5.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-7Z5GGYF5.js.LEGAL.txt → chunk-OAVAM6CR.js.LEGAL.txt} +0 -0
|
@@ -49,14 +49,20 @@ var secureHeaders = (customOptions) => {
|
|
|
49
49
|
const headersToSet = getFilteredHeaders(options);
|
|
50
50
|
const callbacks = [];
|
|
51
51
|
if (options.contentSecurityPolicy) {
|
|
52
|
-
const [callback, value] = getCSPDirectives(
|
|
52
|
+
const [callback, value] = getCSPDirectives(
|
|
53
|
+
options.contentSecurityPolicy,
|
|
54
|
+
"Content-Security-Policy"
|
|
55
|
+
);
|
|
53
56
|
if (callback) {
|
|
54
57
|
callbacks.push(callback);
|
|
55
58
|
}
|
|
56
59
|
headersToSet.push(["Content-Security-Policy", value]);
|
|
57
60
|
}
|
|
58
61
|
if (options.contentSecurityPolicyReportOnly) {
|
|
59
|
-
const [callback, value] = getCSPDirectives(
|
|
62
|
+
const [callback, value] = getCSPDirectives(
|
|
63
|
+
options.contentSecurityPolicyReportOnly,
|
|
64
|
+
"Content-Security-Policy-Report-Only"
|
|
65
|
+
);
|
|
60
66
|
if (callback) {
|
|
61
67
|
callbacks.push(callback);
|
|
62
68
|
}
|
|
@@ -89,7 +95,7 @@ function getFilteredHeaders(options) {
|
|
|
89
95
|
return typeof overrideValue === "string" ? [defaultValue[0], overrideValue] : defaultValue;
|
|
90
96
|
});
|
|
91
97
|
}
|
|
92
|
-
function getCSPDirectives(contentSecurityPolicy) {
|
|
98
|
+
function getCSPDirectives(contentSecurityPolicy, headerName) {
|
|
93
99
|
const callbacks = [];
|
|
94
100
|
const resultValues = [];
|
|
95
101
|
for (const [directive, value] of Object.entries(contentSecurityPolicy)) {
|
|
@@ -114,7 +120,7 @@ function getCSPDirectives(contentSecurityPolicy) {
|
|
|
114
120
|
resultValues.pop();
|
|
115
121
|
return callbacks.length === 0 ? [void 0, resultValues.join("")] : [
|
|
116
122
|
(ctx, headersToSet) => headersToSet.map((values) => {
|
|
117
|
-
if (values[0] ===
|
|
123
|
+
if (values[0] === headerName) {
|
|
118
124
|
const clone = values[1].slice();
|
|
119
125
|
callbacks.forEach((cb) => {
|
|
120
126
|
cb(ctx, clone);
|
|
@@ -96,6 +96,15 @@ interface Authorizer {
|
|
|
96
96
|
userArn: string;
|
|
97
97
|
userId: string;
|
|
98
98
|
};
|
|
99
|
+
jwt?: {
|
|
100
|
+
claims: Record<string, string | number | boolean | string[]>;
|
|
101
|
+
scopes: string[] | null;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* The `context` object returned by a Lambda (REQUEST) authorizer.
|
|
105
|
+
* It is `null` when the authorizer returns no context.
|
|
106
|
+
*/
|
|
107
|
+
lambda?: Record<string, unknown> | null;
|
|
99
108
|
}
|
|
100
109
|
export interface ApiGatewayRequestContextV2 {
|
|
101
110
|
accountId: string;
|
|
@@ -125,7 +125,7 @@ var getNextParam = (acceptHeader, startIndex) => {
|
|
|
125
125
|
var getNextAcceptValue = (acceptHeader, startIndex) => {
|
|
126
126
|
const accept = {
|
|
127
127
|
type: "",
|
|
128
|
-
params:
|
|
128
|
+
params: /* @__PURE__ */ Object.create(null),
|
|
129
129
|
q: 1
|
|
130
130
|
};
|
|
131
131
|
startIndex = consumeWhitespace(acceptHeader, startIndex);
|
|
@@ -159,7 +159,7 @@ var _getQueryParam = (url, key, multiple) => {
|
|
|
159
159
|
return void 0;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
const results =
|
|
162
|
+
const results = /* @__PURE__ */ Object.create(null);
|
|
163
163
|
encoded ??= /[%+]/.test(url);
|
|
164
164
|
let keyIndex = url.indexOf("?", 8);
|
|
165
165
|
while (keyIndex !== -1) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zuplo/cli",
|
|
3
|
-
"version": "6.73.
|
|
3
|
+
"version": "6.73.15",
|
|
4
4
|
"repository": "https://github.com/zuplo/zuplo",
|
|
5
5
|
"author": "Zuplo, Inc.",
|
|
6
6
|
"type": "module",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"@opentelemetry/api": "1.9.0",
|
|
28
28
|
"@opentelemetry/api-logs": "0.201.1",
|
|
29
29
|
"@swc/core": "1.10.18",
|
|
30
|
-
"@zuplo/core": "6.73.
|
|
30
|
+
"@zuplo/core": "6.73.15",
|
|
31
31
|
"@zuplo/editor": "1.0.29844086763",
|
|
32
|
-
"@zuplo/openapi-tools": "6.73.
|
|
33
|
-
"@zuplo/runtime": "6.73.
|
|
32
|
+
"@zuplo/openapi-tools": "6.73.15",
|
|
33
|
+
"@zuplo/runtime": "6.73.15",
|
|
34
34
|
"chalk": "5.4.1",
|
|
35
35
|
"chokidar": "3.5.3",
|
|
36
36
|
"cookie": "1.0.2",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"workerd": "1.20241230.0",
|
|
62
62
|
"yargs": "17.7.2",
|
|
63
63
|
"zod": "3.25.76",
|
|
64
|
-
"@zuplo/graphql": "6.73.
|
|
65
|
-
"@zuplo/otel": "6.73.
|
|
64
|
+
"@zuplo/graphql": "6.73.15",
|
|
65
|
+
"@zuplo/otel": "6.73.15"
|
|
66
66
|
},
|
|
67
67
|
"bundleDependencies": [
|
|
68
68
|
"@inquirer/prompts",
|