Skip to content

Commit 16943a4

Browse files
author
shengyonggen
committed
增加npm的支持
1 parent b7fc241 commit 16943a4

File tree

3 files changed

+27
-102
lines changed

3 files changed

+27
-102
lines changed

package.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "sa-sdk-miniprogram",
3+
"version": "1.9.4",
4+
"description": "sensorsdata miniprogram sdk",
5+
"main": "sensorsdata.min.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/sensorsdata/sa-sdk-miniprogram.git"
12+
},
13+
"keywords": [
14+
"sensorsdata",
15+
"mininprogram",
16+
"sdk"
17+
],
18+
"author": "shengyonggen",
19+
"license": "Apache-2.0",
20+
"bugs": {
21+
"url": "https://github.com/sensorsdata/sa-sdk-miniprogram/issues"
22+
},
23+
"homepage": "https://github.com/sensorsdata/sa-sdk-miniprogram#readme"
24+
}

sensorsdata.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var _ = {};
77

88
var sa = {};
99

10-
sa.para = require('sensorsdata_conf.js');
10+
sa.para = require('./sensorsdata_conf.js');
1111

1212
// 初始化各种预定义参数
1313
if (!sa.para.openid_url) {
@@ -23,7 +23,7 @@ var ArrayProto = Array.prototype,
2323
slice = ArrayProto.slice,
2424
toString = ObjProto.toString,
2525
hasOwnProperty = ObjProto.hasOwnProperty,
26-
LIB_VERSION = '1.9.4',
26+
LIB_VERSION = '1.9.5',
2727
LIB_NAME = 'MiniProgram';
2828

2929
var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';

0 commit comments

Comments
 (0)