jubo-sdk 1.6.0-beta.5 → 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 CHANGED
@@ -34,6 +34,10 @@ declare class JuboSdk {
34
34
  readonly device_platform: string;
35
35
  /** 设备型号 */
36
36
  readonly device_model: string;
37
+ /** appid */
38
+ readonly appid: string;
39
+ /** terminal */
40
+ readonly terminal: string;
37
41
  get detection(): boolean;
38
42
  getOjbUrlFn(url: string): string;
39
43
  /**
@@ -34,6 +34,10 @@ declare class OldJuboSdk {
34
34
  readonly device_platform: string;
35
35
  /** 设备型号 */
36
36
  readonly device_model: string;
37
+ /** appid */
38
+ readonly appid: string;
39
+ /** terminal */
40
+ readonly terminal: string;
37
41
  get detection(): boolean;
38
42
  getOjbUrlFn(url: string): string;
39
43
  /**
package/dist/index.cjs.js CHANGED
@@ -5302,6 +5302,14 @@ var browserType = BrowserType({
5302
5302
  shell: 'device_model',
5303
5303
  shellRegexp: /device_model/g,
5304
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
5305
5313
  }]
5306
5314
  });
5307
5315
 
@@ -6463,6 +6471,20 @@ var OldJuboSdk = /** @class */function () {
6463
6471
  writable: true,
6464
6472
  value: void 0
6465
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
+ });
6466
6488
  var device = ls.get('device') || '';
6467
6489
  var isfull = ls.get('isfull') || '';
6468
6490
  var version = browserType.getShell('airmart') || ls.get('version') || '';
@@ -6470,6 +6492,8 @@ var OldJuboSdk = /** @class */function () {
6470
6492
  var proid = browserType.getShell('proid') || ls.get('proid') || '';
6471
6493
  var device_platform = browserType.getShell('device_platform') || ls.get('device_platform') || '';
6472
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') || '';
6473
6497
  this.options = options;
6474
6498
  this.name = options.name;
6475
6499
  this.isApp = browserType.isShell('airmart') || device === 'ios' || device === 'android';
@@ -6486,6 +6510,8 @@ var OldJuboSdk = /** @class */function () {
6486
6510
  this.device_platform = device_platform;
6487
6511
  this.device_model = device_model;
6488
6512
  this.isfull = isfull;
6513
+ this.appid = appid;
6514
+ this.terminal = terminal;
6489
6515
  return this;
6490
6516
  }
6491
6517
  Object.defineProperty(OldJuboSdk.prototype, "detection", {
@@ -7358,6 +7384,20 @@ var JuboSdk = /** @class */function () {
7358
7384
  writable: true,
7359
7385
  value: void 0
7360
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
+ });
7361
7401
  var device = ls.get('device') || '';
7362
7402
  var isfull = ls.get('isfull') || '';
7363
7403
  var version = browserType.getShell('airmart') || ls.get('version') || '';
@@ -7365,6 +7405,8 @@ var JuboSdk = /** @class */function () {
7365
7405
  var proid = browserType.getShell('proid') || ls.get('proid') || '';
7366
7406
  var device_platform = browserType.getShell('device_platform') || ls.get('device_platform') || '';
7367
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') || '';
7368
7410
  this.options = options;
7369
7411
  this.name = options.name;
7370
7412
  this.isApp = browserType.isShell('airmart') || device === 'ios' || device === 'android';
@@ -7382,6 +7424,8 @@ var JuboSdk = /** @class */function () {
7382
7424
  this.device_platform = device_platform;
7383
7425
  this.device_model = device_model;
7384
7426
  this.isfull = isfull;
7427
+ this.appid = appid;
7428
+ this.terminal = terminal;
7385
7429
  this.isOldApp = this.isApp && compareVersions(version, this.options.oldAppVersion) <= 0;
7386
7430
  if (this.isOldApp) {
7387
7431
  return new OldJuboSdk(options);
@@ -8116,6 +8160,8 @@ var channel = urlData.channel || ls.get('channel') || '';
8116
8160
  var proid = urlData.proid || ls.get('proid') || '';
8117
8161
  var device_platform = urlData.device_platform || ls.get('device_platform') || '';
8118
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') || '';
8119
8165
  ls.set('device', device);
8120
8166
  ls.set('isfull', isfull);
8121
8167
  ls.set('version', version);
@@ -8123,6 +8169,8 @@ ls.set('channel', channel);
8123
8169
  ls.set('proid', proid);
8124
8170
  ls.set('device_platform', device_platform);
8125
8171
  ls.set('device_model', device_model);
8172
+ ls.set('appid', appid);
8173
+ ls.set('terminal', terminal);
8126
8174
  if (process.env.NODE_ENV === 'development') {
8127
8175
  updateNotifier(pkg.name, pkg.version);
8128
8176
  }
@@ -8133,6 +8181,6 @@ exports.default = JuboSdk;
8133
8181
  exports.ls = ls;
8134
8182
 
8135
8183
  if(typeof window !== 'undefined') {
8136
- window._juboSDK_VERSION_ = '1.6.0-beta.5'
8184
+ window._juboSDK_VERSION_ = '1.6.0-beta.6'
8137
8185
  }
8138
8186
  //# sourceMappingURL=index.cjs.js.map