@dora-cell/sdk 3.0.0 → 4.0.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,14 @@ 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: {} } };
14135
14136
  }
14136
14137
  });
14137
14138
 
@@ -14271,7 +14272,7 @@ var require_supports_color = __commonJS({
14271
14272
  var require_node = __commonJS({
14272
14273
  "../../node_modules/.pnpm/debug@4.4.3_supports-color@8.1.1/node_modules/debug/src/node.js"(exports$1, module) {
14273
14274
  var tty = require_tty_stub();
14274
- var util = __require("util");
14275
+ var util = require_util_stub();
14275
14276
  exports$1.init = init;
14276
14277
  exports$1.log = log;
14277
14278
  exports$1.formatArgs = formatArgs;
@@ -23557,7 +23558,7 @@ var DoraCell = class {
23557
23558
  this.authProvider = createAuthProvider(config.auth);
23558
23559
  this.apiBaseUrl = this.resolveApiBaseUrl(config);
23559
23560
  this.apiClient = new ApiClient(this.apiBaseUrl);
23560
- if (this.config.debug) {
23561
+ if (this.config.debug && typeof window !== "undefined") {
23561
23562
  import_jssip.default.debug.enable("JsSIP:*");
23562
23563
  }
23563
23564
  }