mini_program_gizwits_sdk 1.0.2 → 1.0.3-bololo

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/global.d.ts CHANGED
@@ -1,3 +1,12 @@
1
- declare namespace global {
2
- let wx: any;
1
+
2
+
3
+ declare namespace md5 {
4
+ function hex(data: any): any;
5
+ }
6
+
7
+ declare function md5(data: any): any;
8
+
9
+ declare namespace aesjs {
10
+ const utils: any;
11
+ const ModeOfOperation: any;
3
12
  }
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "mini_program_gizwits_sdk",
3
- "version": "1.0.2",
4
- "description": "小程序配网sdk",
5
- "main": "index.js",
3
+ "version": "1.0.3-bololo",
4
+ "description": "更新类型",
5
+ "main": "./dist/index.js",
6
6
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1",
8
- "compile": "./node_modules/typescript/bin/tsc",
9
- "prepare": "npm run tsc",
10
- "tsc": "node ./node_modules/typescript/lib/tsc.js"
7
+ "test": "node_modules/mocha/bin/_mocha -r ts-node/register tests/**/*.spec.ts -file ./tests/setup-wx.js -timeout 60s",
8
+ "testBle": "node_modules/mocha/bin/_mocha -r ts-node/register tests/utils/randomCode.spec.ts -file ./tests/setup-wx.js -timeout 60s",
9
+ "build": "export NODE_OPTIONS=--openssl-legacy-provider;rm -rf ./dist && webpack",
10
+ "release": "npm run build && release-it",
11
+ "cover": "istanbul cover node_modules/mocha/bin/_mocha -- -r ts-node/register tests/**/*.spec.ts -file ./tests/setup-wx.js -timeout 60s",
12
+ "coveralls": "npm run cover -- --report lcovonly && cat ./coverage/lcov.info | coveralls"
11
13
  },
12
14
  "repository": {
13
15
  "type": "git",
@@ -19,12 +21,35 @@
19
21
  "sdk"
20
22
  ],
21
23
  "devDependencies": {
22
- "typescript": "^3.3.3333"
24
+ "@babel/plugin-transform-modules-commonjs": "^7.12.1",
25
+ "@release-it/conventional-changelog": "^2.0.0",
26
+ "@types/chai": "^4.2.11",
27
+ "@types/crypto-js": "^4.0.2",
28
+ "@types/mocha": "^7.0.2",
29
+ "@types/node": "^12.12.14",
30
+ "@types/sinon": "^10.0.6",
31
+ "chai": "^4.2.0",
32
+ "coveralls": "^3.0.11",
33
+ "istanbul": "^1.1.0-alpha.1",
34
+ "miniprogram-api-typings": "^3.9.0",
35
+ "mocha": "^7.1.1",
36
+ "release-it": "^14.2.2",
37
+ "sinon": "^9.2.4",
38
+ "ts-loader": "^6.2.2",
39
+ "ts-node": "^8.8.1",
40
+ "typescript": "^4.9.5",
41
+ "uglifyjs-webpack-plugin": "^2.2.0",
42
+ "webpack": "^4.42.1",
43
+ "webpack-bundle-analyzer": "^4.5.0",
44
+ "webpack-cli": "^3.3.11"
23
45
  },
24
46
  "author": "gizwits",
25
47
  "license": "ISC",
26
48
  "bugs": {
27
49
  "url": "https://github.com/gizwits/mini_program_gizwits_sdk/issues"
28
50
  },
29
- "homepage": "https://github.com/gizwits/mini_program_gizwits_sdk#readme"
51
+ "homepage": "https://github.com/gizwits/mini_program_gizwits_sdk#readme",
52
+ "dependencies": {
53
+ "crypto-js": "^4.1.1"
54
+ }
30
55
  }