@celljs/faas-adapter 4.3.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,7 @@
1
- # Cell - FaaS Adapter Component
1
+ # Cell - FaaS Adapter Component
2
+
3
+ Shared base of the Cell 3 function adapters (`fc-adapter`, `scf-adapter`, `lambda-adapter`): event listeners, timers and a `CronJobFactory` for the `remote` mode.
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
+ Installed, it replaces the `CredentialsProvider` / `RegionProvider` of [`@celljs/cloud`](../cloud) with ones that fall back to `CELL_ACCESS_KEY_ID`, `CELL_ACCESS_KEY_SECRET`, `CELL_TOKEN` and `CELL_REGION` when `cloud.*` is not set.
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "properties": {
4
+ "cloud": {
5
+ "type": "object",
6
+ "properties": {
7
+ "function": {
8
+ "type": "object",
9
+ "properties": {
10
+ "callbackWaitsForEmptyEventLoop": {
11
+ "type": "boolean"
12
+ }
13
+ }
14
+ }
15
+ }
16
+ }
17
+ }
18
+ }
package/esm/node/utils.js CHANGED
@@ -2,7 +2,7 @@ import { ConfigUtil } from '@celljs/core/lib/common/config/config-util';
2
2
  export var FaaSUtils;
3
3
  (function (FaaSUtils) {
4
4
  function getCallbackWaitsForEmptyEventLoop() {
5
- return ConfigUtil.get('cell.cloud.function.callbackWaitsForEmptyEventLoop', false);
5
+ return ConfigUtil.get('cloud.function.callbackWaitsForEmptyEventLoop', false);
6
6
  }
7
7
  FaaSUtils.getCallbackWaitsForEmptyEventLoop = getCallbackWaitsForEmptyEventLoop;
8
8
  })(FaaSUtils || (FaaSUtils = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/node/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;AAExE,MAAM,KAAW,SAAS,CAIzB;AAJD,WAAiB,SAAS;IACtB,SAAgB,iCAAiC;QAC7C,OAAO,UAAU,CAAC,GAAG,CAAU,oDAAoD,EAAE,KAAK,CAAC,CAAC;IAChG,CAAC;IAFe,UAAA,iCAAiC,oCAEhD,CAAA;AACL,CAAC,EAJgB,SAAS,KAAT,SAAS,QAIzB"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/node/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;AAExE,MAAM,KAAW,SAAS,CAIzB;AAJD,WAAiB,SAAS;IACtB,SAAgB,iCAAiC;QAC7C,OAAO,UAAU,CAAC,GAAG,CAAU,+CAA+C,EAAE,KAAK,CAAC,CAAC;IAC3F,CAAC;IAFe,UAAA,iCAAiC,oCAEhD,CAAA;AACL,CAAC,EAJgB,SAAS,KAAT,SAAS,QAIzB"}
package/lib/node/utils.js CHANGED
@@ -5,7 +5,7 @@ const config_util_1 = require("@celljs/core/lib/common/config/config-util");
5
5
  var FaaSUtils;
6
6
  (function (FaaSUtils) {
7
7
  function getCallbackWaitsForEmptyEventLoop() {
8
- return config_util_1.ConfigUtil.get('cell.cloud.function.callbackWaitsForEmptyEventLoop', false);
8
+ return config_util_1.ConfigUtil.get('cloud.function.callbackWaitsForEmptyEventLoop', false);
9
9
  }
10
10
  FaaSUtils.getCallbackWaitsForEmptyEventLoop = getCallbackWaitsForEmptyEventLoop;
11
11
  })(FaaSUtils || (exports.FaaSUtils = FaaSUtils = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/node/utils.ts"],"names":[],"mappings":";;;AAAA,4EAAwE;AAExE,IAAiB,SAAS,CAIzB;AAJD,WAAiB,SAAS;IACtB,SAAgB,iCAAiC;QAC7C,OAAO,wBAAU,CAAC,GAAG,CAAU,oDAAoD,EAAE,KAAK,CAAC,CAAC;IAChG,CAAC;IAFe,UAAA,iCAAiC,oCAEhD,CAAA;AACL,CAAC,EAJgB,SAAS,aAAT,SAAS,GAAT,SAAS,QAIzB"}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/node/utils.ts"],"names":[],"mappings":";;;AAAA,4EAAwE;AAExE,IAAiB,SAAS,CAIzB;AAJD,WAAiB,SAAS;IACtB,SAAgB,iCAAiC;QAC7C,OAAO,wBAAU,CAAC,GAAG,CAAU,+CAA+C,EAAE,KAAK,CAAC,CAAC;IAC3F,CAAC;IAFe,UAAA,iCAAiC,oCAEhD,CAAA;AACL,CAAC,EAJgB,SAAS,aAAT,SAAS,GAAT,SAAS,QAIzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/faas-adapter",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "cell-component"
@@ -23,7 +23,7 @@
23
23
  "lib",
24
24
  "esm",
25
25
  "src",
26
- "cell.yml"
26
+ "cell.schema.json"
27
27
  ],
28
28
  "scripts": {
29
29
  "build": "tsc -b && bun ../../scripts/build-esm.ts",
@@ -32,10 +32,10 @@
32
32
  "watch": "tsc -b -w --preserveWatchOutput"
33
33
  },
34
34
  "dependencies": {
35
- "@celljs/cloud": "4.3.0",
36
- "@celljs/core": "4.3.0",
37
- "@celljs/schedule": "4.3.0",
38
- "@celljs/web": "4.3.0",
35
+ "@celljs/cloud": "4.4.0",
36
+ "@celljs/core": "4.4.0",
37
+ "@celljs/schedule": "4.4.0",
38
+ "@celljs/web": "4.4.0",
39
39
  "cron": "^1.8.2"
40
40
  },
41
41
  "publishConfig": {
package/src/node/utils.ts CHANGED
@@ -2,6 +2,6 @@ import { ConfigUtil } from '@celljs/core/lib/common/config/config-util';
2
2
 
3
3
  export namespace FaaSUtils {
4
4
  export function getCallbackWaitsForEmptyEventLoop() {
5
- return ConfigUtil.get<boolean>('cell.cloud.function.callbackWaitsForEmptyEventLoop', false);
5
+ return ConfigUtil.get<boolean>('cloud.function.callbackWaitsForEmptyEventLoop', false);
6
6
  }
7
7
  }
package/cell.yml DELETED
File without changes