@plugin-light/shared 0.0.20 → 1.0.0

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## 公共包
1
+ # 公共包
2
2
 
3
3
  <p align="center">
4
4
  <img src="https://img.shields.io/npm/dw/@plugin-light/shared">
@@ -11,7 +11,7 @@
11
11
 
12
12
  除 `t-comm` 外,`plugin-light-shared` 是整个工具库中最底层的依赖。
13
13
 
14
- ### 如何使用
14
+ ## 如何使用
15
15
 
16
16
  安装
17
17
 
@@ -27,6 +27,6 @@ import { getDeps } from '@plugin-light/shared';
27
27
  getDeps(__dirname);
28
28
  ```
29
29
 
30
- ### 更新日志
30
+ ## 更新日志
31
31
 
32
32
  [点此查看](./CHANGELOG.md)
package/lib/index.js CHANGED
@@ -638,8 +638,8 @@ var uni = (typeof wx !== 'undefined' && wx)
638
638
  || (typeof jd !== 'undefined' && jd)
639
639
  || (typeof my !== 'undefined' && my);
640
640
 
641
- var miniProgram = uni.getAccountInfoSync().miniProgram || {};
642
- var systemInfo = uni.getSystemInfoSync() || {};
641
+ var miniProgram = (uni.getAccountInfoSync && uni.getAccountInfoSync().miniProgram) || {};
642
+ var systemInfo = (uni.getSystemInfoSync && uni.getSystemInfoSync()) || {};
643
643
  var envVersionMap = {
644
644
  develop: '开发版',
645
645
  trial: '体验版',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@plugin-light/shared",
3
- "version": "0.0.20",
4
- "homepage": "https://novlan1.github.io/plugin-light/zh/plugin-light-shared.html",
3
+ "version": "1.0.0",
4
+ "homepage": "https://novlan1.github.io/docs/plugin-light/zh/plugin-light-shared.html",
5
5
  "bugs": {
6
6
  "url": "https://github.com/novlan1/plugin-light/issues"
7
7
  },
@@ -16,7 +16,7 @@
16
16
  "lib/"
17
17
  ],
18
18
  "dependencies": {
19
- "t-comm": "^1.5.15"
19
+ "t-comm": "^1.5.40"
20
20
  },
21
21
  "scripts": {
22
22
  "build": "rm -rf lib && rollup -c",