xctc-utils 1.6.15 → 1.6.17

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.
@@ -365,20 +365,19 @@ function configReady(config) {
365
365
  openTagList: openTagListData,
366
366
  debug: false,
367
367
  appId: data === null || data === void 0 ? void 0 : data.appid,
368
- timestamp: data === null || data === void 0 ? void 0 : data.timestamp,
368
+ timestamp: Number(data === null || data === void 0 ? void 0 : data.timestamp),
369
369
  nonceStr: data === null || data === void 0 ? void 0 : data.noncestr,
370
370
  signature: data === null || data === void 0 ? void 0 : data.signature, //必填,生成的签名
371
371
  };
372
372
  var wx = initSdk();
373
373
  wx.config(obj);
374
374
  wx.ready(function (res) {
375
- console.log("加载微信分享配置完成:", res);
376
- (0, index_1.useSessionStorage)("configReadySuccess", "\u52A0\u8F7D\u5FAE\u4FE1\u5206\u4EAB\u914D\u7F6E\u5B8C\u6210\uFF1A".concat(res));
375
+ (0, index_1.useSessionStorage)("configReadySuccess", res);
377
376
  if (config['cb'] && typeof config.cb === "function")
378
377
  config.cb();
379
378
  });
380
379
  wx.error(function (err) {
381
- (0, index_1.useSessionStorage)("configReadyError", "\u52A0\u8F7D\u5FAE\u4FE1\u5206\u4EAB\u914D\u7F6E\u9519\u8BEF\uFF1A".concat(err));
380
+ (0, index_1.useSessionStorage)("configReadyError", err);
382
381
  });
383
382
  }
384
383
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xctc-utils",
3
- "version": "1.6.15",
3
+ "version": "1.6.17",
4
4
  "description": "localStorage存储\r ```\r sessionStorage存储\r ```\r crypto-js加密、解密\r ```\r 微信授权登录、微信分享\r ```\r 设备环境获取\r ```\r 是否是微信浏览器\r ```\r 时间戳转时间,字符串转时间戳",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",