jubo-sdk 1.6.0-beta.4 → 1.6.0-beta.6
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/JuboSdk.d.ts +8 -0
- package/dist/OldJuboSdk.d.ts +8 -0
- package/dist/index.cjs.js +97 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +97 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +97 -1
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/utils/browserType.d.ts +4 -4
- package/package.json +1 -1
package/dist/JuboSdk.d.ts
CHANGED
|
@@ -30,6 +30,14 @@ declare class JuboSdk {
|
|
|
30
30
|
readonly isOldApp: boolean;
|
|
31
31
|
/** 项目id */
|
|
32
32
|
readonly proid: string;
|
|
33
|
+
/** 设备平台 */
|
|
34
|
+
readonly device_platform: string;
|
|
35
|
+
/** 设备型号 */
|
|
36
|
+
readonly device_model: string;
|
|
37
|
+
/** appid */
|
|
38
|
+
readonly appid: string;
|
|
39
|
+
/** terminal */
|
|
40
|
+
readonly terminal: string;
|
|
33
41
|
get detection(): boolean;
|
|
34
42
|
getOjbUrlFn(url: string): string;
|
|
35
43
|
/**
|
package/dist/OldJuboSdk.d.ts
CHANGED
|
@@ -30,6 +30,14 @@ declare class OldJuboSdk {
|
|
|
30
30
|
readonly isOldApp: boolean;
|
|
31
31
|
/** 项目id */
|
|
32
32
|
readonly proid: string;
|
|
33
|
+
/** 设备平台 */
|
|
34
|
+
readonly device_platform: string;
|
|
35
|
+
/** 设备型号 */
|
|
36
|
+
readonly device_model: string;
|
|
37
|
+
/** appid */
|
|
38
|
+
readonly appid: string;
|
|
39
|
+
/** terminal */
|
|
40
|
+
readonly terminal: string;
|
|
33
41
|
get detection(): boolean;
|
|
34
42
|
getOjbUrlFn(url: string): string;
|
|
35
43
|
/**
|
package/dist/index.cjs.js
CHANGED
|
@@ -5294,6 +5294,22 @@ var browserType = BrowserType({
|
|
|
5294
5294
|
shell: 'proid',
|
|
5295
5295
|
shellRegexp: /proid/g,
|
|
5296
5296
|
shellValueRegexp: /proid=[\d._]+/g
|
|
5297
|
+
}, {
|
|
5298
|
+
shell: 'device_platform',
|
|
5299
|
+
shellRegexp: /device_platform/g,
|
|
5300
|
+
shellValueRegexp: /device_platform=[\d._]+/g
|
|
5301
|
+
}, {
|
|
5302
|
+
shell: 'device_model',
|
|
5303
|
+
shellRegexp: /device_model/g,
|
|
5304
|
+
shellValueRegexp: /device_model=[\d._]+/g
|
|
5305
|
+
}, {
|
|
5306
|
+
shell: 'appid',
|
|
5307
|
+
shellRegexp: /appid/g,
|
|
5308
|
+
shellValueRegexp: /appid=[\d._]+/g
|
|
5309
|
+
}, {
|
|
5310
|
+
shell: 'terminal',
|
|
5311
|
+
shellRegexp: /terminal/g,
|
|
5312
|
+
shellValueRegexp: /terminal=[\d._]+/g
|
|
5297
5313
|
}]
|
|
5298
5314
|
});
|
|
5299
5315
|
|
|
@@ -6441,11 +6457,43 @@ var OldJuboSdk = /** @class */function () {
|
|
|
6441
6457
|
writable: true,
|
|
6442
6458
|
value: void 0
|
|
6443
6459
|
});
|
|
6460
|
+
/** 设备平台 */
|
|
6461
|
+
Object.defineProperty(this, "device_platform", {
|
|
6462
|
+
enumerable: true,
|
|
6463
|
+
configurable: true,
|
|
6464
|
+
writable: true,
|
|
6465
|
+
value: void 0
|
|
6466
|
+
});
|
|
6467
|
+
/** 设备型号 */
|
|
6468
|
+
Object.defineProperty(this, "device_model", {
|
|
6469
|
+
enumerable: true,
|
|
6470
|
+
configurable: true,
|
|
6471
|
+
writable: true,
|
|
6472
|
+
value: void 0
|
|
6473
|
+
});
|
|
6474
|
+
/** appid */
|
|
6475
|
+
Object.defineProperty(this, "appid", {
|
|
6476
|
+
enumerable: true,
|
|
6477
|
+
configurable: true,
|
|
6478
|
+
writable: true,
|
|
6479
|
+
value: void 0
|
|
6480
|
+
});
|
|
6481
|
+
/** terminal */
|
|
6482
|
+
Object.defineProperty(this, "terminal", {
|
|
6483
|
+
enumerable: true,
|
|
6484
|
+
configurable: true,
|
|
6485
|
+
writable: true,
|
|
6486
|
+
value: void 0
|
|
6487
|
+
});
|
|
6444
6488
|
var device = ls.get('device') || '';
|
|
6445
6489
|
var isfull = ls.get('isfull') || '';
|
|
6446
6490
|
var version = browserType.getShell('airmart') || ls.get('version') || '';
|
|
6447
6491
|
var channel = browserType.getShell('channel') || ls.get('channel') || '';
|
|
6448
6492
|
var proid = browserType.getShell('proid') || ls.get('proid') || '';
|
|
6493
|
+
var device_platform = browserType.getShell('device_platform') || ls.get('device_platform') || '';
|
|
6494
|
+
var device_model = browserType.getShell('device_model') || ls.get('device_model') || '';
|
|
6495
|
+
var appid = browserType.getShell('appid') || ls.get('appid') || '';
|
|
6496
|
+
var terminal = browserType.getShell('terminal') || ls.get('terminal') || '';
|
|
6449
6497
|
this.options = options;
|
|
6450
6498
|
this.name = options.name;
|
|
6451
6499
|
this.isApp = browserType.isShell('airmart') || device === 'ios' || device === 'android';
|
|
@@ -6459,7 +6507,11 @@ var OldJuboSdk = /** @class */function () {
|
|
|
6459
6507
|
this.version = version;
|
|
6460
6508
|
this.channel = channel;
|
|
6461
6509
|
this.proid = proid;
|
|
6510
|
+
this.device_platform = device_platform;
|
|
6511
|
+
this.device_model = device_model;
|
|
6462
6512
|
this.isfull = isfull;
|
|
6513
|
+
this.appid = appid;
|
|
6514
|
+
this.terminal = terminal;
|
|
6463
6515
|
return this;
|
|
6464
6516
|
}
|
|
6465
6517
|
Object.defineProperty(OldJuboSdk.prototype, "detection", {
|
|
@@ -7318,11 +7370,43 @@ var JuboSdk = /** @class */function () {
|
|
|
7318
7370
|
writable: true,
|
|
7319
7371
|
value: void 0
|
|
7320
7372
|
});
|
|
7373
|
+
/** 设备平台 */
|
|
7374
|
+
Object.defineProperty(this, "device_platform", {
|
|
7375
|
+
enumerable: true,
|
|
7376
|
+
configurable: true,
|
|
7377
|
+
writable: true,
|
|
7378
|
+
value: void 0
|
|
7379
|
+
});
|
|
7380
|
+
/** 设备型号 */
|
|
7381
|
+
Object.defineProperty(this, "device_model", {
|
|
7382
|
+
enumerable: true,
|
|
7383
|
+
configurable: true,
|
|
7384
|
+
writable: true,
|
|
7385
|
+
value: void 0
|
|
7386
|
+
});
|
|
7387
|
+
/** appid */
|
|
7388
|
+
Object.defineProperty(this, "appid", {
|
|
7389
|
+
enumerable: true,
|
|
7390
|
+
configurable: true,
|
|
7391
|
+
writable: true,
|
|
7392
|
+
value: void 0
|
|
7393
|
+
});
|
|
7394
|
+
/** terminal */
|
|
7395
|
+
Object.defineProperty(this, "terminal", {
|
|
7396
|
+
enumerable: true,
|
|
7397
|
+
configurable: true,
|
|
7398
|
+
writable: true,
|
|
7399
|
+
value: void 0
|
|
7400
|
+
});
|
|
7321
7401
|
var device = ls.get('device') || '';
|
|
7322
7402
|
var isfull = ls.get('isfull') || '';
|
|
7323
7403
|
var version = browserType.getShell('airmart') || ls.get('version') || '';
|
|
7324
7404
|
var channel = browserType.getShell('channel') || ls.get('channel') || '';
|
|
7325
7405
|
var proid = browserType.getShell('proid') || ls.get('proid') || '';
|
|
7406
|
+
var device_platform = browserType.getShell('device_platform') || ls.get('device_platform') || '';
|
|
7407
|
+
var device_model = browserType.getShell('device_model') || ls.get('device_model') || '';
|
|
7408
|
+
var appid = browserType.getShell('appid') || ls.get('appid') || '';
|
|
7409
|
+
var terminal = browserType.getShell('terminal') || ls.get('terminal') || '';
|
|
7326
7410
|
this.options = options;
|
|
7327
7411
|
this.name = options.name;
|
|
7328
7412
|
this.isApp = browserType.isShell('airmart') || device === 'ios' || device === 'android';
|
|
@@ -7337,7 +7421,11 @@ var JuboSdk = /** @class */function () {
|
|
|
7337
7421
|
this.version = version;
|
|
7338
7422
|
this.channel = channel;
|
|
7339
7423
|
this.proid = proid;
|
|
7424
|
+
this.device_platform = device_platform;
|
|
7425
|
+
this.device_model = device_model;
|
|
7340
7426
|
this.isfull = isfull;
|
|
7427
|
+
this.appid = appid;
|
|
7428
|
+
this.terminal = terminal;
|
|
7341
7429
|
this.isOldApp = this.isApp && compareVersions(version, this.options.oldAppVersion) <= 0;
|
|
7342
7430
|
if (this.isOldApp) {
|
|
7343
7431
|
return new OldJuboSdk(options);
|
|
@@ -8070,11 +8158,19 @@ var isfull = urlData.isfull || ls.get('isfull') || '';
|
|
|
8070
8158
|
var version = urlData.version || ls.get('version') || '';
|
|
8071
8159
|
var channel = urlData.channel || ls.get('channel') || '';
|
|
8072
8160
|
var proid = urlData.proid || ls.get('proid') || '';
|
|
8161
|
+
var device_platform = urlData.device_platform || ls.get('device_platform') || '';
|
|
8162
|
+
var device_model = urlData.device_model || ls.get('device_model') || '';
|
|
8163
|
+
var appid = urlData.appid || ls.get('appid') || '';
|
|
8164
|
+
var terminal = urlData.terminal || ls.get('terminal') || '';
|
|
8073
8165
|
ls.set('device', device);
|
|
8074
8166
|
ls.set('isfull', isfull);
|
|
8075
8167
|
ls.set('version', version);
|
|
8076
8168
|
ls.set('channel', channel);
|
|
8077
8169
|
ls.set('proid', proid);
|
|
8170
|
+
ls.set('device_platform', device_platform);
|
|
8171
|
+
ls.set('device_model', device_model);
|
|
8172
|
+
ls.set('appid', appid);
|
|
8173
|
+
ls.set('terminal', terminal);
|
|
8078
8174
|
if (process.env.NODE_ENV === 'development') {
|
|
8079
8175
|
updateNotifier(pkg.name, pkg.version);
|
|
8080
8176
|
}
|
|
@@ -8085,6 +8181,6 @@ exports.default = JuboSdk;
|
|
|
8085
8181
|
exports.ls = ls;
|
|
8086
8182
|
|
|
8087
8183
|
if(typeof window !== 'undefined') {
|
|
8088
|
-
window._juboSDK_VERSION_ = '1.6.0-beta.
|
|
8184
|
+
window._juboSDK_VERSION_ = '1.6.0-beta.6'
|
|
8089
8185
|
}
|
|
8090
8186
|
//# sourceMappingURL=index.cjs.js.map
|