@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.
Files changed (44) hide show
  1. package/dist/cmds/dev.d.ts.map +1 -1
  2. package/dist/cmds/dev.js +6 -0
  3. package/dist/cmds/dev.js.map +1 -1
  4. package/dist/dev/handler.d.ts +1 -0
  5. package/dist/dev/handler.d.ts.map +1 -1
  6. package/dist/dev/handler.js +5 -0
  7. package/dist/dev/handler.js.map +1 -1
  8. package/dist/dev/zuplo-local-gitignore.d.ts +4 -0
  9. package/dist/dev/zuplo-local-gitignore.d.ts.map +1 -0
  10. package/dist/dev/zuplo-local-gitignore.js +29 -0
  11. package/dist/dev/zuplo-local-gitignore.js.map +1 -0
  12. package/dist/dev/zuplo-local-gitignore.test.d.ts +2 -0
  13. package/dist/dev/zuplo-local-gitignore.test.d.ts.map +1 -0
  14. package/dist/dev/zuplo-local-gitignore.test.js +58 -0
  15. package/dist/dev/zuplo-local-gitignore.test.js.map +1 -0
  16. package/dist/tsconfig.tsbuildinfo +1 -1
  17. package/node_modules/@zuplo/core/customer.cli.minified.js +238 -238
  18. package/node_modules/@zuplo/core/index.minified.js +250 -250
  19. package/node_modules/@zuplo/core/package.json +1 -1
  20. package/node_modules/@zuplo/graphql/package.json +1 -1
  21. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  22. package/node_modules/@zuplo/otel/package.json +1 -1
  23. package/node_modules/@zuplo/runtime/out/esm/{chunk-7Z5GGYF5.js → chunk-OAVAM6CR.js} +122 -122
  24. package/node_modules/@zuplo/runtime/out/esm/chunk-OAVAM6CR.js.map +1 -0
  25. package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
  26. package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
  27. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
  28. package/node_modules/@zuplo/runtime/out/types/index.d.ts +282 -128
  29. package/node_modules/@zuplo/runtime/package.json +1 -1
  30. package/node_modules/hono/dist/cjs/helper/streaming/sse.js +1 -1
  31. package/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js +10 -4
  32. package/node_modules/hono/dist/cjs/request.js +1 -1
  33. package/node_modules/hono/dist/cjs/utils/accept.js +1 -1
  34. package/node_modules/hono/dist/cjs/utils/url.js +1 -1
  35. package/node_modules/hono/dist/helper/streaming/sse.js +1 -1
  36. package/node_modules/hono/dist/middleware/secure-headers/secure-headers.js +10 -4
  37. package/node_modules/hono/dist/request.js +1 -1
  38. package/node_modules/hono/dist/types/adapter/aws-lambda/types.d.ts +9 -0
  39. package/node_modules/hono/dist/utils/accept.js +1 -1
  40. package/node_modules/hono/dist/utils/url.js +1 -1
  41. package/node_modules/hono/package.json +1 -1
  42. package/package.json +6 -6
  43. package/node_modules/@zuplo/runtime/out/esm/chunk-7Z5GGYF5.js.map +0 -1
  44. /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(options.contentSecurityPolicy);
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(options.contentSecurityPolicyReportOnly);
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] === "Content-Security-Policy" || values[0] === "Content-Security-Policy-Report-Only") {
123
+ if (values[0] === headerName) {
118
124
  const clone = values[1].slice();
119
125
  callbacks.forEach((cb) => {
120
126
  cb(ctx, clone);
@@ -76,7 +76,7 @@ var HonoRequest = class {
76
76
  if (name) {
77
77
  return this.raw.headers.get(name) ?? void 0;
78
78
  }
79
- const headerData = {};
79
+ const headerData = /* @__PURE__ */ Object.create(null);
80
80
  this.raw.headers.forEach((value, key) => {
81
81
  headerData[key] = value;
82
82
  });
@@ -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) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hono",
3
- "version": "4.12.31",
3
+ "version": "4.12.32",
4
4
  "description": "Web framework built on Web Standards",
5
5
  "main": "dist/cjs/index.js",
6
6
  "type": "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/cli",
3
- "version": "6.73.13",
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.13",
30
+ "@zuplo/core": "6.73.15",
31
31
  "@zuplo/editor": "1.0.29844086763",
32
- "@zuplo/openapi-tools": "6.73.13",
33
- "@zuplo/runtime": "6.73.13",
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.13",
65
- "@zuplo/otel": "6.73.13"
64
+ "@zuplo/graphql": "6.73.15",
65
+ "@zuplo/otel": "6.73.15"
66
66
  },
67
67
  "bundleDependencies": [
68
68
  "@inquirer/prompts",