@stone-js/tencent-scf-adapter 0.8.8 → 0.8.9

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.
@@ -1,4 +1,4 @@
1
- import { RawResponse } from './declarations';
1
+ import { RawResponse } from './declarations.js';
2
2
  import { IRawResponseWrapper, RawResponseOptions } from '@stone-js/core';
3
3
  /**
4
4
  * Wrapper for generic raw responses.
@@ -1,4 +1,4 @@
1
- import { RawResponse, TencentScfEvent, TencentScfContext, TencentScfAdapterContext, TencentScfEventHandlerFunction } from './declarations';
1
+ import { RawResponse, TencentScfEvent, TencentScfContext, TencentScfAdapterContext, TencentScfEventHandlerFunction } from './declarations.js';
2
2
  import { Adapter, IBlueprint, IncomingEvent, OutgoingResponse, IncomingEventOptions } from '@stone-js/core';
3
3
  /**
4
4
  * Tencent SCF Adapter for Stone.js.
@@ -1,5 +1,5 @@
1
1
  import { IBlueprint, AdapterErrorContext, IAdapterErrorHandler, AdapterEventBuilderType } from '@stone-js/core';
2
- import { TencentScfContext, TencentScfEvent, RawResponse } from './declarations';
2
+ import { TencentScfContext, TencentScfEvent, RawResponse } from './declarations.js';
3
3
  /**
4
4
  * TencentScfErrorHandler options.
5
5
  */
@@ -1,4 +1,4 @@
1
- import { RawResponseWrapper } from './RawResponseWrapper';
1
+ import { RawResponseWrapper } from './RawResponseWrapper.js';
2
2
  import { AdapterContext, IAdapterEventBuilder, IncomingEvent, IncomingEventOptions, OutgoingResponse, RawResponseOptions } from '@stone-js/core';
3
3
  /**
4
4
  * Represents a generic raw response as a key-value pair.
@@ -1,5 +1,5 @@
1
1
  import { ClassType } from '@stone-js/core';
2
- import { TencentScfAdapterAdapterConfig } from '../options/TencentScfAdapterBlueprint';
2
+ import { TencentScfAdapterAdapterConfig } from '../options/TencentScfAdapterBlueprint.js';
3
3
  /**
4
4
  * Configuration options for the `TencentScf` decorator.
5
5
  * These options extend the default Tencent SCF adapter configuration.
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- export * from './RawResponseWrapper';
2
- export * from './TencentScfAdapter';
3
- export * from './TencentScfErrorHandler';
4
- export * from './constants';
5
- export * from './declarations';
6
- export * from './decorators/TencentScf';
7
- export * from './errors/TencentScfAdapterError';
8
- export * from './middleware/BlueprintMiddleware';
9
- export * from './middleware/IncomingEventMiddleware';
10
- export * from './options/TencentScfAdapterBlueprint';
11
- export * from './resolvers';
1
+ export * from './RawResponseWrapper.js';
2
+ export * from './TencentScfAdapter.js';
3
+ export * from './TencentScfErrorHandler.js';
4
+ export * from './constants.js';
5
+ export * from './declarations.js';
6
+ export * from './decorators/TencentScf.js';
7
+ export * from './errors/TencentScfAdapterError.js';
8
+ export * from './middleware/BlueprintMiddleware.js';
9
+ export * from './middleware/IncomingEventMiddleware.js';
10
+ export * from './options/TencentScfAdapterBlueprint.js';
11
+ export * from './resolvers.js';
package/dist/index.js CHANGED
@@ -234,6 +234,15 @@ class TencentScfErrorHandler {
234
234
  }
235
235
  }
236
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
+
237
246
  /**
238
247
  * Adapter resolver for generic Tencent SCF adapter.
239
248
  *
@@ -246,15 +255,6 @@ const tencentScfAdapterResolver = (blueprint) => {
246
255
  return TencentScfAdapter.create(blueprint);
247
256
  };
248
257
 
249
- /**
250
- * A constant representing the Tencent SCF platform identifier.
251
- *
252
- * This constant is used as an alias for the Tencent SCF Adapter within the Stone.js framework.
253
- * It helps in identifying and configuring platform-specific adapters or components for handling
254
- * incoming requests and responses.
255
- */
256
- const TENCENT_SCF_PLATFORM = 'tencent_scf';
257
-
258
258
  /**
259
259
  * Middleware to dynamically set response resolver for adapter.
260
260
  *
@@ -1,5 +1,5 @@
1
1
  import { NextMiddleware, type MetaMiddleware } from '@stone-js/core';
2
- import { TencentScfAdapterContext, TencentScfAdapterResponseBuilder } from '../declarations';
2
+ import { TencentScfAdapterContext, TencentScfAdapterResponseBuilder } from '../declarations.js';
3
3
  /**
4
4
  * Middleware for handling incoming events and transforming them into Stone.js events.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { TencentScfContext, TencentScfEvent, RawResponse } from '../declarations';
1
+ import { TencentScfContext, TencentScfEvent, RawResponse } from '../declarations.js';
2
2
  import { AdapterConfig, IncomingEvent, IncomingEventOptions, OutgoingResponse, StoneBlueprint } from '@stone-js/core';
3
3
  /**
4
4
  * Configuration interface for the Tencent SCF Adapter.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stone-js/tencent-scf-adapter",
3
- "version": "0.8.8",
3
+ "version": "0.8.9",
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.8",
46
- "@stone-js/env": "0.8.8"
45
+ "@stone-js/core": "0.8.9",
46
+ "@stone-js/env": "0.8.9"
47
47
  },
48
48
  "dependencies": {
49
- "@stone-js/config": "0.8.8"
49
+ "@stone-js/config": "0.8.9"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@commitlint/cli": "^19.8.1",