@databeat/tracker
Advanced tools
Comparing version 0.8.3 to 0.9.0
@@ -6,5 +6,5 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class; var _class2; var _class3;// src/rpc/proto/databeat.gen.ts | ||
__init() {this.path = "/rpc/Databeat/"} | ||
constructor(hostname, fetch2) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this); | ||
constructor(hostname, fetch) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this); | ||
this.hostname = hostname; | ||
this.fetch = (input, init) => fetch2(input, init); | ||
this.fetch = (input, init) => fetch(input, init); | ||
} | ||
@@ -269,9 +269,11 @@ url(name) { | ||
// src/rpc/proto/index.ts | ||
var fetch = typeof global === "object" ? global.fetch : window.fetch; | ||
var DatabeatRpcClient = (_class2 = class extends Databeat { | ||
constructor(hostname, auth) { | ||
super(hostname.endsWith("/") ? hostname.slice(0, -1) : hostname, fetch);_class2.prototype.__init7.call(this);; | ||
const globalFetch = typeof global === "object" ? global.fetch : window.fetch; | ||
super(hostname.endsWith("/") ? hostname.slice(0, -1) : hostname, globalFetch);_class2.prototype.__init7.call(this);; | ||
this.auth = auth; | ||
this._globalFetch = globalFetch; | ||
this.fetch = this._fetch; | ||
} | ||
__init7() {this._fetch = (input, init) => { | ||
@@ -288,3 +290,3 @@ if (this.auth) { | ||
} | ||
return fetch(input, init); | ||
return this._globalFetch(input, init); | ||
}} | ||
@@ -291,0 +293,0 @@ }, _class2); |
{ | ||
"name": "@databeat/tracker", | ||
"version": "0.8.3", | ||
"version": "0.9.0", | ||
"description": "databeat tracker client for Web browsers and node.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/databeat-tracker.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
161856
1449
2