xctc-utils 1.0.3 → 1.0.4
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 +3 -2
- package/package.json +9 -3
    
        package/dist/weixin/index.js
    CHANGED
    
    | @@ -1,7 +1,8 @@ | |
| 1 1 | 
             
            "use strict";
         | 
| 2 2 | 
             
            Object.defineProperty(exports, "__esModule", { value: true });
         | 
| 3 3 | 
             
            exports.weixinCode = exports.weixinInit = exports.formatSearch = exports.weixinUrlCode = void 0;
         | 
| 4 | 
            -
             | 
| 4 | 
            +
            // import * as weixin from 'weixin-js-sdk' // 引入微信SDK
         | 
| 5 | 
            +
            var weixin = require("weixin-js-sdk");
         | 
| 5 6 | 
             
            var utils_1 = require("../utils");
         | 
| 6 7 | 
             
            var crypto_1 = require("../crypto");
         | 
| 7 8 | 
             
            var w = window;
         | 
| @@ -140,7 +141,7 @@ function weixinInit() { | |
| 140 141 | 
             
                    wx = w.wx;
         | 
| 141 142 | 
             
                }
         | 
| 142 143 | 
             
                else {
         | 
| 143 | 
            -
                    wx =  | 
| 144 | 
            +
                    wx = weixin;
         | 
| 144 145 | 
             
                }
         | 
| 145 146 | 
             
                return wx;
         | 
| 146 147 | 
             
            }
         | 
    
        package/package.json
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            {
         | 
| 2 2 | 
             
              "name": "xctc-utils",
         | 
| 3 | 
            -
              "version": "1.0. | 
| 4 | 
            -
              "description": "",
         | 
| 3 | 
            +
              "version": "1.0.4",
         | 
| 4 | 
            +
              "description": "LocalStorage存储\r ```\r useLocalStorage(key,value)\r ```\r 获取LocalStorage值\r ```\r getLocalStorage(key)\r ```\r 设备环境:\r ```\r deviceEnvironment() // android ios\r ```\r 是否微信APP环境\r ```\r weixinBrowser() // true false\r ```",
         | 
| 5 5 | 
             
              "main": "./dist/index.js",
         | 
| 6 6 | 
             
              "types": "./dist/index.d.ts",
         | 
| 7 7 | 
             
              "scripts": {
         | 
| @@ -12,6 +12,7 @@ | |
| 12 12 | 
             
              "author": "",
         | 
| 13 13 | 
             
              "license": "ISC",
         | 
| 14 14 | 
             
              "devDependencies": {
         | 
| 15 | 
            +
                "@types/node": "^18.11.19",
         | 
| 15 16 | 
             
                "typescript": "^4.9.5"
         | 
| 16 17 | 
             
              },
         | 
| 17 18 | 
             
              "dependencies": {
         | 
| @@ -19,5 +20,10 @@ | |
| 19 20 | 
             
                "crypto-js": "^4.1.1",
         | 
| 20 21 | 
             
                "weixin-js-sdk": "^1.6.0",
         | 
| 21 22 | 
             
                "weixin-js-sdk-ts": "^1.6.1"
         | 
| 22 | 
            -
              }
         | 
| 23 | 
            +
              },
         | 
| 24 | 
            +
              "repository": {
         | 
| 25 | 
            +
                "type": "git",
         | 
| 26 | 
            +
                "url": "git@gitee.com:npm-management/xctc-utils.git"
         | 
| 27 | 
            +
              },
         | 
| 28 | 
            +
              "keywords": []
         | 
| 23 29 | 
             
            }
         |