@celljs/vercel-adapter 4.2.0 → 4.4.0

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/README.md CHANGED
@@ -1 +1,5 @@
1
- # Cell - Vercel Adapter Component
1
+ # Cell - Vercel Adapter Component
2
+
3
+ Vercel integration from Cell 3.
4
+
5
+ **Deploying with Cell 4 does not need this package**: `cell build --preset <fc|scf|lambda|vercel>` and `cell deploy` run the standard HTTP entry of `@celljs/express-adapter` (see the [CLI reference](https://cell.cellbang.com/cli)). The `*-application-entry` files and `cell.*-mode.yml` files of this package (event, timer and API gateway modes) come from Cell 3 and are not used by the Cell 4 toolchain.
@@ -6,7 +6,7 @@ container.then(async (c) => {
6
6
  ContainerProvider.set(c);
7
7
  await c.get(Application).start();
8
8
  const configProvider = c.get(ConfigProvider);
9
- const { port } = configProvider.get('cell.server', DEFAULT_SERVER_OPTIONS);
9
+ const { port } = configProvider.get('server', DEFAULT_SERVER_OPTIONS);
10
10
  HttpServerUtil.createHttpServer(HttpServerUtil.createHandler(c)).listen(port);
11
11
  console.log(`serve ${port}`);
12
12
  });
@@ -1 +1 @@
1
- {"version":3,"file":"http-application-entry.js","sourceRoot":"","sources":["../../src/node/http-application-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qDAAqD,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9E,SAAS,CAAC,IAAI,CAAC,KAAK,EAAC,CAAC,EAAC,EAAE;IACrB,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACzB,MAAM,CAAC,CAAC,GAAG,CAAc,WAAW,CAAC,CAAC,KAAK,EAAE,CAAC;IAC9C,MAAM,cAAc,GAAG,CAAC,CAAC,GAAG,CAAiB,cAAc,CAAC,CAAC;IAC7D,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,CAAC,GAAG,CAAM,aAAa,EAAE,sBAAsB,CAAC,CAAC;IAChF,cAAc,CAAC,gBAAgB,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC9E,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;AACjC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"http-application-entry.js","sourceRoot":"","sources":["../../src/node/http-application-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qDAAqD,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9E,SAAS,CAAC,IAAI,CAAC,KAAK,EAAC,CAAC,EAAC,EAAE;IACrB,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACzB,MAAM,CAAC,CAAC,GAAG,CAAc,WAAW,CAAC,CAAC,KAAK,EAAE,CAAC;IAC9C,MAAM,cAAc,GAAG,CAAC,CAAC,GAAG,CAAiB,cAAc,CAAC,CAAC;IAC7D,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,CAAC,GAAG,CAAM,QAAQ,EAAE,sBAAsB,CAAC,CAAC;IAC3E,cAAc,CAAC,gBAAgB,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC9E,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;AACjC,CAAC,CAAC,CAAC"}
@@ -8,7 +8,7 @@ dynamic_container_1.container.then(async (c) => {
8
8
  core_1.ContainerProvider.set(c);
9
9
  await c.get(core_1.Application).start();
10
10
  const configProvider = c.get(core_1.ConfigProvider);
11
- const { port } = configProvider.get('cell.server', context_1.DEFAULT_SERVER_OPTIONS);
11
+ const { port } = configProvider.get('server', context_1.DEFAULT_SERVER_OPTIONS);
12
12
  server_1.HttpServerUtil.createHttpServer(server_1.HttpServerUtil.createHandler(c)).listen(port);
13
13
  console.log(`serve ${port}`);
14
14
  });
@@ -1 +1 @@
1
- {"version":3,"file":"http-application-entry.js","sourceRoot":"","sources":["../../src/node/http-application-entry.ts"],"names":[],"mappings":";;AAAA,2FAAgF;AAChF,wDAA6D;AAC7D,uCAAmD;AACnD,uCAA8E;AAE9E,6BAAS,CAAC,IAAI,CAAC,KAAK,EAAC,CAAC,EAAC,EAAE;IACrB,wBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACzB,MAAM,CAAC,CAAC,GAAG,CAAc,kBAAW,CAAC,CAAC,KAAK,EAAE,CAAC;IAC9C,MAAM,cAAc,GAAG,CAAC,CAAC,GAAG,CAAiB,qBAAc,CAAC,CAAC;IAC7D,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,CAAC,GAAG,CAAM,aAAa,EAAE,gCAAsB,CAAC,CAAC;IAChF,uBAAc,CAAC,gBAAgB,CAAC,uBAAc,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC9E,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;AACjC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"http-application-entry.js","sourceRoot":"","sources":["../../src/node/http-application-entry.ts"],"names":[],"mappings":";;AAAA,2FAAgF;AAChF,wDAA6D;AAC7D,uCAAmD;AACnD,uCAA8E;AAE9E,6BAAS,CAAC,IAAI,CAAC,KAAK,EAAC,CAAC,EAAC,EAAE;IACrB,wBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACzB,MAAM,CAAC,CAAC,GAAG,CAAc,kBAAW,CAAC,CAAC,KAAK,EAAE,CAAC;IAC9C,MAAM,cAAc,GAAG,CAAC,CAAC,GAAG,CAAiB,qBAAc,CAAC,CAAC;IAC7D,MAAM,EAAE,IAAI,EAAE,GAAG,cAAc,CAAC,GAAG,CAAM,QAAQ,EAAE,gCAAsB,CAAC,CAAC;IAC3E,uBAAc,CAAC,gBAAgB,CAAC,uBAAc,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC9E,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;AACjC,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/vercel-adapter",
3
- "version": "4.2.0",
3
+ "version": "4.4.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "cell-component"
@@ -22,8 +22,7 @@
22
22
  "files": [
23
23
  "lib",
24
24
  "esm",
25
- "src",
26
- "cell.yml"
25
+ "src"
27
26
  ],
28
27
  "scripts": {
29
28
  "build": "tsc -b && bun ../../scripts/build-esm.ts",
@@ -32,8 +31,8 @@
32
31
  "watch": "tsc -b -w --preserveWatchOutput"
33
32
  },
34
33
  "dependencies": {
35
- "@celljs/core": "4.2.0",
36
- "@celljs/web": "4.2.0"
34
+ "@celljs/core": "4.4.0",
35
+ "@celljs/web": "4.4.0"
37
36
  },
38
37
  "publishConfig": {
39
38
  "access": "public"
@@ -7,7 +7,7 @@ container.then(async c => {
7
7
  ContainerProvider.set(c);
8
8
  await c.get<Application>(Application).start();
9
9
  const configProvider = c.get<ConfigProvider>(ConfigProvider);
10
- const { port } = configProvider.get<any>('cell.server', DEFAULT_SERVER_OPTIONS);
10
+ const { port } = configProvider.get<any>('server', DEFAULT_SERVER_OPTIONS);
11
11
  HttpServerUtil.createHttpServer(HttpServerUtil.createHandler(c)).listen(port);
12
12
  console.log(`serve ${port}`);
13
13
  });
package/cell.yml DELETED
@@ -1,2 +0,0 @@
1
- backend:
2
- entry: lib/node/http-application-entry