@cedarjs/api-server 5.0.0-canary.2374 → 5.0.0-canary.2375

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/api-server",
3
- "version": "5.0.0-canary.2374",
3
+ "version": "5.0.0-canary.2375",
4
4
  "description": "CedarJS's HTTP server for Serverless Functions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -83,12 +83,6 @@
83
83
  "default": "./dist/cjs/fastify.js"
84
84
  }
85
85
  },
86
- "./udFetchable": {
87
- "import": {
88
- "types": "./dist/udFetchable.d.ts",
89
- "default": "./dist/udFetchable.js"
90
- }
91
- },
92
86
  "./watch": {
93
87
  "import": {
94
88
  "types": "./dist/watch.d.ts",
@@ -139,11 +133,11 @@
139
133
  "test:watch": "vitest watch"
140
134
  },
141
135
  "dependencies": {
142
- "@cedarjs/context": "5.0.0-canary.2374",
143
- "@cedarjs/fastify-web": "5.0.0-canary.2374",
144
- "@cedarjs/internal": "5.0.0-canary.2374",
145
- "@cedarjs/project-config": "5.0.0-canary.2374",
146
- "@cedarjs/web-server": "5.0.0-canary.2374",
136
+ "@cedarjs/context": "5.0.0-canary.2375",
137
+ "@cedarjs/fastify-web": "5.0.0-canary.2375",
138
+ "@cedarjs/internal": "5.0.0-canary.2375",
139
+ "@cedarjs/project-config": "5.0.0-canary.2375",
140
+ "@cedarjs/web-server": "5.0.0-canary.2375",
147
141
  "@fastify/multipart": "9.4.0",
148
142
  "@fastify/url-data": "6.0.3",
149
143
  "ansis": "4.2.0",
@@ -161,7 +155,7 @@
161
155
  "yargs": "17.7.2"
162
156
  },
163
157
  "devDependencies": {
164
- "@cedarjs/framework-tools": "5.0.0-canary.2374",
158
+ "@cedarjs/framework-tools": "5.0.0-canary.2375",
165
159
  "@types/aws-lambda": "8.10.161",
166
160
  "@types/dotenv-defaults": "^5.0.0",
167
161
  "@types/split2": "4.2.3",
@@ -1,12 +0,0 @@
1
- import type { CedarHandler } from '@cedarjs/api/runtime';
2
- export interface Fetchable {
3
- fetch(request: Request): Response | Promise<Response>;
4
- }
5
- /**
6
- * Wraps a CedarHandler in a WinterTC-compatible Fetchable.
7
- *
8
- * The Fetchable calls buildCedarContext to produce a CedarRequestContext,
9
- * then delegates to the handler.
10
- */
11
- export declare function createCedarFetchable(handler: CedarHandler): Fetchable;
12
- //# sourceMappingURL=udFetchable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"udFetchable.d.ts","sourceRoot":"","sources":["../../src/udFetchable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,OAAO,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;CACtD;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,YAAY,GAAG,SAAS,CAOrE"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var udFetchable_exports = {};
20
- __export(udFetchable_exports, {
21
- createCedarFetchable: () => createCedarFetchable
22
- });
23
- module.exports = __toCommonJS(udFetchable_exports);
24
- var import_runtime = require("@cedarjs/api/runtime");
25
- function createCedarFetchable(handler) {
26
- return {
27
- async fetch(request) {
28
- const ctx = await (0, import_runtime.buildCedarContext)(request);
29
- return handler(request, ctx);
30
- }
31
- };
32
- }
33
- // Annotate the CommonJS export names for ESM import in node:
34
- 0 && (module.exports = {
35
- createCedarFetchable
36
- });
@@ -1,12 +0,0 @@
1
- import type { CedarHandler } from '@cedarjs/api/runtime';
2
- export interface Fetchable {
3
- fetch(request: Request): Response | Promise<Response>;
4
- }
5
- /**
6
- * Wraps a CedarHandler in a WinterTC-compatible Fetchable.
7
- *
8
- * The Fetchable calls buildCedarContext to produce a CedarRequestContext,
9
- * then delegates to the handler.
10
- */
11
- export declare function createCedarFetchable(handler: CedarHandler): Fetchable;
12
- //# sourceMappingURL=udFetchable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"udFetchable.d.ts","sourceRoot":"","sources":["../src/udFetchable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,OAAO,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;CACtD;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,YAAY,GAAG,SAAS,CAOrE"}
@@ -1,12 +0,0 @@
1
- import { buildCedarContext } from "@cedarjs/api/runtime";
2
- function createCedarFetchable(handler) {
3
- return {
4
- async fetch(request) {
5
- const ctx = await buildCedarContext(request);
6
- return handler(request, ctx);
7
- }
8
- };
9
- }
10
- export {
11
- createCedarFetchable
12
- };