@stone-js/tencent-scf-adapter 0.8.0 → 0.8.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 +10 -5
- package/dist/index.js +10 -10
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
# Stone.js - Tencent SCF Adapter
|
|
2
2
|
|
|
3
|
-
[](https://opensource.org/licenses/MIT)
|
|
4
|
-
[](https://www.npmjs.com/package/@stone-js/tencent-scf-adapter)
|
|
5
|
-
[](https://www.npmjs.com/package/@stone-js/tencent-scf-adapter)
|
|
3
|
+
[](https://opensource.org/licenses/MIT)
|
|
4
|
+
[](https://www.npmjs.com/package/@stone-js/tencent-scf-adapter)
|
|
5
|
+
[](https://www.npmjs.com/package/@stone-js/tencent-scf-adapter)
|
|
6
6
|

|
|
7
|
-
[](https://github.com/stone-foundation/stone-js-framework/actions/workflows/ci.yml)
|
|
8
|
+
[](https://github.com/stone-foundation/stone-js-framework/actions/workflows/release.yml)
|
|
9
|
+
[](https://sonarcloud.io/summary/new_code?id=stone-foundation_stone-js-framework)
|
|
10
|
+
[](https://sonarcloud.io/summary/new_code?id=stone-foundation_stone-js-framework)
|
|
11
|
+
[](https://github.com/stone-foundation/stone-js-framework/blob/main/SECURITY.md)
|
|
12
|
+
[](https://github.com/stone-foundation/stone-js-framework/security/code-scanning)
|
|
13
|
+
[](https://github.com/stone-foundation/stone-js-framework/network/updates)
|
|
9
14
|
[](https://conventionalcommits.org)
|
|
10
15
|
|
|
11
16
|
The **Tencent SCF Adapter** lets your Stone.js application run on **event-driven** Tencent Cloud Serverless Cloud Function, beyond HTTP. It normalizes any non-HTTP trigger (COS, CMQ/TDMQ, Timer, CKafka) into a Stone.js `IncomingEvent`, fully aligned with the Continuum Architecture.
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IntegrationError, Adapter, AdapterEventBuilder, IncomingEvent, defaultLoggerResolver, OutgoingResponse, defaultKernelResolver, isNotEmpty, classDecoratorLegacyWrapper, addBlueprint } from '@stone-js/core';
|
|
2
|
-
import { getString } from '@stone-js/env';
|
|
3
2
|
import { cloneValue, deepMerge } from '@stone-js/config';
|
|
3
|
+
import { getString } from '@stone-js/env';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Wrapper for generic raw responses.
|
|
@@ -206,15 +206,6 @@ class TencentScfAdapter extends Adapter {
|
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
/**
|
|
210
|
-
* A constant representing the Tencent SCF platform identifier.
|
|
211
|
-
*
|
|
212
|
-
* This constant is used as an alias for the Tencent SCF Adapter within the Stone.js framework.
|
|
213
|
-
* It helps in identifying and configuring platform-specific adapters or components for handling
|
|
214
|
-
* incoming requests and responses.
|
|
215
|
-
*/
|
|
216
|
-
const TENCENT_SCF_PLATFORM = 'tencent_scf';
|
|
217
|
-
|
|
218
209
|
/**
|
|
219
210
|
* Class representing an TencentScfErrorHandler.
|
|
220
211
|
*/
|
|
@@ -243,6 +234,15 @@ class TencentScfErrorHandler {
|
|
|
243
234
|
}
|
|
244
235
|
}
|
|
245
236
|
|
|
237
|
+
/**
|
|
238
|
+
* A constant representing the Tencent SCF platform identifier.
|
|
239
|
+
*
|
|
240
|
+
* This constant is used as an alias for the Tencent SCF Adapter within the Stone.js framework.
|
|
241
|
+
* It helps in identifying and configuring platform-specific adapters or components for handling
|
|
242
|
+
* incoming requests and responses.
|
|
243
|
+
*/
|
|
244
|
+
const TENCENT_SCF_PLATFORM = 'tencent_scf';
|
|
245
|
+
|
|
246
246
|
/**
|
|
247
247
|
* Adapter resolver for generic Tencent SCF adapter.
|
|
248
248
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stone-js/tencent-scf-adapter",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "General-purpose Tencent Cloud SCF adapter for Stone.js, run any app on event-driven Serverless Cloud Function triggers, beyond HTTP. Supports COS, CMQ/TDMQ, Timer and CKafka.",
|
|
5
5
|
"author": "Mr. Stone <evensstone@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"node": ">=18.17.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@stone-js/core": "0.8.
|
|
46
|
-
"@stone-js/env": "0.8.
|
|
45
|
+
"@stone-js/core": "0.8.1",
|
|
46
|
+
"@stone-js/env": "0.8.1"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@stone-js/config": "0.8.
|
|
49
|
+
"@stone-js/config": "0.8.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@commitlint/cli": "^19.8.1",
|