@cedarjs/api 8.0.0-canary.3624 → 8.0.0-canary.3626

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":"cors.d.ts","sourceRoot":"","sources":["../src/cors.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErD,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;IACpC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAClC,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAChD,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE9D,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,SAAS;8BA6ChC,cAAc;+BAGb,cAAc,GAAG,WAAW;EAgC1D"}
1
+ {"version":3,"file":"cors.d.ts","sourceRoot":"","sources":["../src/cors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErD,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;IACpC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAClC,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAChD,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE9D,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,SAAS;8BA6ChC,cAAc;+BAGb,cAAc,GAAG,WAAW;EAgC1D"}
package/dist/cors.js CHANGED
@@ -1,4 +1,3 @@
1
- import { Headers } from "@whatwg-node/fetch";
2
1
  function createCorsContext(cors) {
3
2
  const corsHeaders = new Headers();
4
3
  if (cors) {
package/dist/index.js CHANGED
@@ -8,9 +8,9 @@ export * from "./cors.js";
8
8
  export * from "./event.js";
9
9
  export * from "./signedTokens/index.js";
10
10
  const prismaVersion = "7.10.1";
11
- const redwoodVersion = "8.0.0-canary.3624";
12
- const cedarjsVersion = "8.0.0-canary.3624";
13
- const cedarVersion = "8.0.0-canary.3624";
11
+ const redwoodVersion = "8.0.0-canary.3626";
12
+ const cedarjsVersion = "8.0.0-canary.3626";
13
+ const cedarVersion = "8.0.0-canary.3626";
14
14
  export {
15
15
  cedarVersion,
16
16
  cedarjsVersion,
@@ -1,4 +1,4 @@
1
- import { Headers, Request as PonyfillRequest } from "@whatwg-node/fetch";
1
+ import { Request as PonyfillRequest } from "@whatwg-node/fetch";
2
2
  const parseLambdaEventBody = (event) => {
3
3
  if (!event.body) {
4
4
  return {};
@@ -125,7 +125,7 @@ async function normalizeRequest(event) {
125
125
  }
126
126
  const jsonBody = parseLambdaEventBody(event);
127
127
  return {
128
- headers: new Headers(event.headers),
128
+ headers: new Headers(event.headers ?? {}),
129
129
  method: event.httpMethod,
130
130
  query: event.queryStringParameters,
131
131
  jsonBody
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/api",
3
- "version": "8.0.0-canary.3624",
3
+ "version": "8.0.0-canary.3626",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -83,7 +83,7 @@
83
83
  "title-case": "3.0.3"
84
84
  },
85
85
  "devDependencies": {
86
- "@cedarjs/framework-tools": "8.0.0-canary.3624",
86
+ "@cedarjs/framework-tools": "8.0.0-canary.3626",
87
87
  "@prisma/client": "7.10.1",
88
88
  "@types/aws-lambda": "8.10.164",
89
89
  "@types/memjs": "1",