@celljs/faas-adapter 4.3.0 → 4.4.1
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 +7 -1
- package/cell.schema.json +18 -0
- package/esm/node/utils.js +1 -1
- package/esm/node/utils.js.map +1 -1
- package/lib/node/utils.js +1 -1
- package/lib/node/utils.js.map +1 -1
- package/package.json +6 -6
- package/src/node/utils.ts +1 -1
- package/cell.yml +0 -0
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.
|
package/cell.schema.json
ADDED
|
@@ -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('
|
|
5
|
+
return ConfigUtil.get('cloud.function.callbackWaitsForEmptyEventLoop', false);
|
|
6
6
|
}
|
|
7
7
|
FaaSUtils.getCallbackWaitsForEmptyEventLoop = getCallbackWaitsForEmptyEventLoop;
|
|
8
8
|
})(FaaSUtils || (FaaSUtils = {}));
|
package/esm/node/utils.js.map
CHANGED
|
@@ -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,
|
|
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('
|
|
8
|
+
return config_util_1.ConfigUtil.get('cloud.function.callbackWaitsForEmptyEventLoop', false);
|
|
9
9
|
}
|
|
10
10
|
FaaSUtils.getCallbackWaitsForEmptyEventLoop = getCallbackWaitsForEmptyEventLoop;
|
|
11
11
|
})(FaaSUtils || (exports.FaaSUtils = FaaSUtils = {}));
|
package/lib/node/utils.js.map
CHANGED
|
@@ -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,
|
|
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
|
+
"version": "4.4.1",
|
|
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.
|
|
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.
|
|
36
|
-
"@celljs/core": "4.
|
|
37
|
-
"@celljs/schedule": "4.
|
|
38
|
-
"@celljs/web": "4.
|
|
35
|
+
"@celljs/cloud": "4.4.1",
|
|
36
|
+
"@celljs/core": "4.4.1",
|
|
37
|
+
"@celljs/schedule": "4.4.1",
|
|
38
|
+
"@celljs/web": "4.4.1",
|
|
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>('
|
|
5
|
+
return ConfigUtil.get<boolean>('cloud.function.callbackWaitsForEmptyEventLoop', false);
|
|
6
6
|
}
|
|
7
7
|
}
|
package/cell.yml
DELETED
|
File without changes
|