@jayfong/x-server 2.21.1 → 2.21.2

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,9 +1,9 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
4
  exports.__esModule = true;
5
5
  exports.SmsService = void 0;
6
- var _tencentcloudSdkNodejsSms = _interopRequireDefault(require("tencentcloud-sdk-nodejs-sms"));
6
+ var TencentCloud = _interopRequireWildcard(require("tencentcloud-sdk-nodejs-sms"));
7
7
  var _http_error = require("../core/http_error");
8
8
  const smsErrorTypeRegexpMap = {
9
9
  TEXT_INTERCEPTION: /驳回|词汇|不合规|敏感词|关键字|钓鱼|审核|内容|欺诈|拦截|违规/,
@@ -28,7 +28,7 @@ class SmsService {
28
28
  }
29
29
  async send(payload) {
30
30
  if (payload.provider === 'tencentCloud') {
31
- const SmsClient = _tencentcloudSdkNodejsSms.default.sms.v20210111.Client;
31
+ const SmsClient = TencentCloud.sms.v20210111.Client;
32
32
  const smsClient = new SmsClient({
33
33
  credential: {
34
34
  secretId: this.options.providerOptions.secretId,
@@ -1,4 +1,4 @@
1
- import TencentCloud from 'tencentcloud-sdk-nodejs-sms';
1
+ import * as TencentCloud from 'tencentcloud-sdk-nodejs-sms';
2
2
  import { HttpError } from "../core/http_error";
3
3
  const smsErrorTypeRegexpMap = {
4
4
  TEXT_INTERCEPTION: /驳回|词汇|不合规|敏感词|关键字|钓鱼|审核|内容|欺诈|拦截|违规/,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayfong/x-server",
3
- "version": "2.21.1",
3
+ "version": "2.21.2",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "lib/_cjs/index.js",