crh-jssdk 1.0.38 → 1.0.39
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/business/index.js
CHANGED
|
@@ -81,9 +81,19 @@ var utils_1 = require("./utils");
|
|
|
81
81
|
var base_1 = __importDefault(require("./base")); // 基础
|
|
82
82
|
var profession_1 = __importDefault(require("./profession")); // 业务
|
|
83
83
|
var user_1 = __importDefault(require("./user")); // 用户
|
|
84
|
+
//SDK版本号,运行时读取package.json的version
|
|
85
|
+
var SDK_VERSION = "";
|
|
86
|
+
try {
|
|
87
|
+
SDK_VERSION = require("../../package.json").version;
|
|
88
|
+
}
|
|
89
|
+
catch (e) {
|
|
90
|
+
console.warn("获取SDK版本号失败:", e);
|
|
91
|
+
}
|
|
84
92
|
var BUSINESS = /** @class */ (function () {
|
|
85
93
|
function BUSINESS(sdkType) {
|
|
94
|
+
this.sdkObj = {}; //具体的sdk对象
|
|
86
95
|
this.isApp = false; //是否是app
|
|
96
|
+
this.version = SDK_VERSION; //SDK版本号(crh-jssdk包版本)
|
|
87
97
|
this.sdkType = sdkType; // 1 财人汇 2 财信 3 新意 4 联储 5 金圆 6 诚通 7 东亚前海
|
|
88
98
|
this.bridge = sdkType === 2 ? utils_1.cxBridge : utils_1.globalBridge; // 初始化Bridge实例
|
|
89
99
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "crh-jssdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"description": "crh-jssdk",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"build": "node build.js"
|
|
7
|
+
"build": "node build.js",
|
|
8
|
+
"release": "bumpp --commit --tag --push && npm publish",
|
|
9
|
+
"release:patch": "bumpp patch --commit --tag --push && npm publish",
|
|
10
|
+
"release:minor": "bumpp minor --commit --tag --push && npm publish",
|
|
11
|
+
"release:major": "bumpp major --commit --tag --push && npm publish",
|
|
12
|
+
"prepublishOnly": "npm run build"
|
|
8
13
|
},
|
|
9
14
|
"keywords": [
|
|
10
15
|
"typescript"
|
|
@@ -15,6 +20,7 @@
|
|
|
15
20
|
"author": "crh-fe",
|
|
16
21
|
"license": "ISC",
|
|
17
22
|
"devDependencies": {
|
|
23
|
+
"bumpp": "^12.2.0",
|
|
18
24
|
"typescript": "^5.5.2"
|
|
19
25
|
},
|
|
20
26
|
"files": [
|