jubo-sdk 1.6.0-beta.3 → 1.6.0-beta.5
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 +4 -0
- package/dist/OldJuboSdk.d.ts +4 -0
- package/dist/index.cjs.js +51 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +51 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +51 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/types/juboSdk.d.ts +2 -0
- package/dist/utils/browserType.d.ts +4 -4
- package/package.json +1 -1
package/dist/JuboSdk.d.ts
CHANGED
|
@@ -30,6 +30,10 @@ 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;
|
|
33
37
|
get detection(): boolean;
|
|
34
38
|
getOjbUrlFn(url: string): string;
|
|
35
39
|
/**
|
package/dist/OldJuboSdk.d.ts
CHANGED
|
@@ -30,6 +30,10 @@ 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;
|
|
33
37
|
get detection(): boolean;
|
|
34
38
|
getOjbUrlFn(url: string): string;
|
|
35
39
|
/**
|
package/dist/index.cjs.js
CHANGED
|
@@ -5294,6 +5294,14 @@ 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
|
|
5297
5305
|
}]
|
|
5298
5306
|
});
|
|
5299
5307
|
|
|
@@ -6441,11 +6449,27 @@ var OldJuboSdk = /** @class */function () {
|
|
|
6441
6449
|
writable: true,
|
|
6442
6450
|
value: void 0
|
|
6443
6451
|
});
|
|
6452
|
+
/** 设备平台 */
|
|
6453
|
+
Object.defineProperty(this, "device_platform", {
|
|
6454
|
+
enumerable: true,
|
|
6455
|
+
configurable: true,
|
|
6456
|
+
writable: true,
|
|
6457
|
+
value: void 0
|
|
6458
|
+
});
|
|
6459
|
+
/** 设备型号 */
|
|
6460
|
+
Object.defineProperty(this, "device_model", {
|
|
6461
|
+
enumerable: true,
|
|
6462
|
+
configurable: true,
|
|
6463
|
+
writable: true,
|
|
6464
|
+
value: void 0
|
|
6465
|
+
});
|
|
6444
6466
|
var device = ls.get('device') || '';
|
|
6445
6467
|
var isfull = ls.get('isfull') || '';
|
|
6446
6468
|
var version = browserType.getShell('airmart') || ls.get('version') || '';
|
|
6447
6469
|
var channel = browserType.getShell('channel') || ls.get('channel') || '';
|
|
6448
6470
|
var proid = browserType.getShell('proid') || ls.get('proid') || '';
|
|
6471
|
+
var device_platform = browserType.getShell('device_platform') || ls.get('device_platform') || '';
|
|
6472
|
+
var device_model = browserType.getShell('device_model') || ls.get('device_model') || '';
|
|
6449
6473
|
this.options = options;
|
|
6450
6474
|
this.name = options.name;
|
|
6451
6475
|
this.isApp = browserType.isShell('airmart') || device === 'ios' || device === 'android';
|
|
@@ -6459,6 +6483,8 @@ var OldJuboSdk = /** @class */function () {
|
|
|
6459
6483
|
this.version = version;
|
|
6460
6484
|
this.channel = channel;
|
|
6461
6485
|
this.proid = proid;
|
|
6486
|
+
this.device_platform = device_platform;
|
|
6487
|
+
this.device_model = device_model;
|
|
6462
6488
|
this.isfull = isfull;
|
|
6463
6489
|
return this;
|
|
6464
6490
|
}
|
|
@@ -7318,11 +7344,27 @@ var JuboSdk = /** @class */function () {
|
|
|
7318
7344
|
writable: true,
|
|
7319
7345
|
value: void 0
|
|
7320
7346
|
});
|
|
7347
|
+
/** 设备平台 */
|
|
7348
|
+
Object.defineProperty(this, "device_platform", {
|
|
7349
|
+
enumerable: true,
|
|
7350
|
+
configurable: true,
|
|
7351
|
+
writable: true,
|
|
7352
|
+
value: void 0
|
|
7353
|
+
});
|
|
7354
|
+
/** 设备型号 */
|
|
7355
|
+
Object.defineProperty(this, "device_model", {
|
|
7356
|
+
enumerable: true,
|
|
7357
|
+
configurable: true,
|
|
7358
|
+
writable: true,
|
|
7359
|
+
value: void 0
|
|
7360
|
+
});
|
|
7321
7361
|
var device = ls.get('device') || '';
|
|
7322
7362
|
var isfull = ls.get('isfull') || '';
|
|
7323
7363
|
var version = browserType.getShell('airmart') || ls.get('version') || '';
|
|
7324
7364
|
var channel = browserType.getShell('channel') || ls.get('channel') || '';
|
|
7325
7365
|
var proid = browserType.getShell('proid') || ls.get('proid') || '';
|
|
7366
|
+
var device_platform = browserType.getShell('device_platform') || ls.get('device_platform') || '';
|
|
7367
|
+
var device_model = browserType.getShell('device_model') || ls.get('device_model') || '';
|
|
7326
7368
|
this.options = options;
|
|
7327
7369
|
this.name = options.name;
|
|
7328
7370
|
this.isApp = browserType.isShell('airmart') || device === 'ios' || device === 'android';
|
|
@@ -7337,6 +7379,8 @@ var JuboSdk = /** @class */function () {
|
|
|
7337
7379
|
this.version = version;
|
|
7338
7380
|
this.channel = channel;
|
|
7339
7381
|
this.proid = proid;
|
|
7382
|
+
this.device_platform = device_platform;
|
|
7383
|
+
this.device_model = device_model;
|
|
7340
7384
|
this.isfull = isfull;
|
|
7341
7385
|
this.isOldApp = this.isApp && compareVersions(version, this.options.oldAppVersion) <= 0;
|
|
7342
7386
|
if (this.isOldApp) {
|
|
@@ -7584,7 +7628,8 @@ var JuboSdk = /** @class */function () {
|
|
|
7584
7628
|
imgUrl: options.thumbImage,
|
|
7585
7629
|
title: options.title,
|
|
7586
7630
|
base64: options.base64,
|
|
7587
|
-
webpage: options.webpage
|
|
7631
|
+
webpage: options.webpage,
|
|
7632
|
+
type: options.type || 0
|
|
7588
7633
|
});
|
|
7589
7634
|
this.postReport('NewUserInvite', {
|
|
7590
7635
|
page_url: options.webpage,
|
|
@@ -8069,11 +8114,15 @@ var isfull = urlData.isfull || ls.get('isfull') || '';
|
|
|
8069
8114
|
var version = urlData.version || ls.get('version') || '';
|
|
8070
8115
|
var channel = urlData.channel || ls.get('channel') || '';
|
|
8071
8116
|
var proid = urlData.proid || ls.get('proid') || '';
|
|
8117
|
+
var device_platform = urlData.device_platform || ls.get('device_platform') || '';
|
|
8118
|
+
var device_model = urlData.device_model || ls.get('device_model') || '';
|
|
8072
8119
|
ls.set('device', device);
|
|
8073
8120
|
ls.set('isfull', isfull);
|
|
8074
8121
|
ls.set('version', version);
|
|
8075
8122
|
ls.set('channel', channel);
|
|
8076
8123
|
ls.set('proid', proid);
|
|
8124
|
+
ls.set('device_platform', device_platform);
|
|
8125
|
+
ls.set('device_model', device_model);
|
|
8077
8126
|
if (process.env.NODE_ENV === 'development') {
|
|
8078
8127
|
updateNotifier(pkg.name, pkg.version);
|
|
8079
8128
|
}
|
|
@@ -8084,6 +8133,6 @@ exports.default = JuboSdk;
|
|
|
8084
8133
|
exports.ls = ls;
|
|
8085
8134
|
|
|
8086
8135
|
if(typeof window !== 'undefined') {
|
|
8087
|
-
window._juboSDK_VERSION_ = '1.6.0-beta.
|
|
8136
|
+
window._juboSDK_VERSION_ = '1.6.0-beta.5'
|
|
8088
8137
|
}
|
|
8089
8138
|
//# sourceMappingURL=index.cjs.js.map
|