xctc-utils 1.6.15 → 1.6.16
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/dist/weixin/index.js +2 -1
- package/package.json +1 -1
package/dist/weixin/index.js
CHANGED
|
@@ -370,6 +370,7 @@ function configReady(config) {
|
|
|
370
370
|
signature: data === null || data === void 0 ? void 0 : data.signature, //必填,生成的签名
|
|
371
371
|
};
|
|
372
372
|
var wx = initSdk();
|
|
373
|
+
(0, index_1.useSessionStorage)("wxconfigdata", obj);
|
|
373
374
|
wx.config(obj);
|
|
374
375
|
wx.ready(function (res) {
|
|
375
376
|
console.log("加载微信分享配置完成:", res);
|
|
@@ -378,7 +379,7 @@ function configReady(config) {
|
|
|
378
379
|
config.cb();
|
|
379
380
|
});
|
|
380
381
|
wx.error(function (err) {
|
|
381
|
-
(0, index_1.useSessionStorage)("configReadyError",
|
|
382
|
+
(0, index_1.useSessionStorage)("configReadyError", err);
|
|
382
383
|
});
|
|
383
384
|
}
|
|
384
385
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xctc-utils",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.16",
|
|
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",
|