@dora-cell/sdk 3.0.0 → 4.1.0

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/index.js CHANGED
@@ -8,13 +8,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
8
  var __getOwnPropNames = Object.getOwnPropertyNames;
9
9
  var __getProtoOf = Object.getPrototypeOf;
10
10
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
12
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
13
- }) : x)(function(x) {
14
- if (typeof require !== "undefined") return require.apply(this, arguments);
15
- throw Error('Dynamic require of "' + x + '" is not supported');
16
- });
17
- var __commonJS = (cb, mod) => function __require2() {
11
+ var __commonJS = (cb, mod) => function __require() {
18
12
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
13
  };
20
14
  var __copyProps = (to, from, except, desc) => {
@@ -14131,7 +14125,17 @@ var require_browser = __commonJS({
14131
14125
  // stub-node-builtin:tty-stub
14132
14126
  var require_tty_stub = __commonJS({
14133
14127
  "stub-node-builtin:tty-stub"(exports$1, module) {
14134
- module.exports = {};
14128
+ module.exports = { isatty: () => false };
14129
+ }
14130
+ });
14131
+
14132
+ // stub-node-builtin:util-stub
14133
+ var require_util_stub = __commonJS({
14134
+ "stub-node-builtin:util-stub"(exports$1, module) {
14135
+ module.exports = { inspect: { colors: {} }, deprecate: (fn) => fn, format: (msg, ...args) => msg, inherits: (ctor, superCtor) => {
14136
+ ctor.super_ = superCtor;
14137
+ Object.setPrototypeOf(ctor.prototype, superCtor.prototype);
14138
+ } };
14135
14139
  }
14136
14140
  });
14137
14141
 
@@ -14271,7 +14275,7 @@ var require_supports_color = __commonJS({
14271
14275
  var require_node = __commonJS({
14272
14276
  "../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js"(exports$1, module) {
14273
14277
  var tty = require_tty_stub();
14274
- var util = __require("util");
14278
+ var util = require_util_stub();
14275
14279
  exports$1.init = init;
14276
14280
  exports$1.log = log;
14277
14281
  exports$1.formatArgs = formatArgs;
@@ -23557,7 +23561,7 @@ var DoraCell = class {
23557
23561
  this.authProvider = createAuthProvider(config.auth);
23558
23562
  this.apiBaseUrl = this.resolveApiBaseUrl(config);
23559
23563
  this.apiClient = new ApiClient(this.apiBaseUrl);
23560
- if (this.config.debug) {
23564
+ if (this.config.debug && typeof window !== "undefined") {
23561
23565
  import_jssip.default.debug.enable("JsSIP:*");
23562
23566
  }
23563
23567
  }