@cloudbase/oauth 2.5.49-beta.1 → 2.5.49-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/oauth",
3
- "version": "2.5.49-beta.1",
3
+ "version": "2.5.49-beta.2",
4
4
  "description": "cloudbase javascript sdk auth componets",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -103,7 +103,7 @@ class DefaultStorage implements SimpleStorage {
103
103
  private readonly _env: string
104
104
 
105
105
  constructor(opts?: { env: string }) {
106
- this._env = opts.env || ''
106
+ this._env = opts?.env || ''
107
107
  }
108
108
  /**
109
109
  * Get item.
@@ -1,5 +1,6 @@
1
1
  /* eslint-disable */
2
2
  /* tslint:disable */
3
+ const navigator = typeof globalThis !== 'undefined' ? globalThis.navigator : window.globalThis;
3
4
  var BI_RM = "0123456789abcdefghijklmnopqrstuvwxyz";
4
5
  function int2char(n) {
5
6
  return BI_RM.charAt(n);
@@ -2606,7 +2607,7 @@ function am3(i, x, w, j, c, n) {
2606
2607
  }
2607
2608
  return c;
2608
2609
  }
2609
- if (j_lm && (navigator?.appName == "Microsoft Internet Explorer")) {
2610
+ if (j_lm && (typeof navigator !== 'undefined' && navigator?.appName == "Microsoft Internet Explorer")) {
2610
2611
  BigInteger.prototype.am = am2;
2611
2612
  dbits = 30;
2612
2613
  }
@@ -3296,7 +3297,7 @@ YAHOO.lang = {
3296
3297
  var _IEEnumFix = function () { },
3297
3298
  ADD = ["toString", "valueOf"];
3298
3299
  try {
3299
- if (/MSIE/.test(navigator.userAgent)) {
3300
+ if (typeof navigator !== 'undefined' && /MSIE/.test(navigator.userAgent)) {
3300
3301
  _IEEnumFix = function (r, s) {
3301
3302
  for (i = 0; i < ADD.length; i = i + 1) {
3302
3303
  var fname = ADD[i], f = s[fname];