@0xsequence/indexer 0.43.16 → 0.43.17
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.
|
@@ -232,7 +232,7 @@ exports.SequenceIndexerServices = void 0;
|
|
|
232
232
|
SequenceIndexerServices["BSC_TESTNET"] = "https://bsc-testnet-indexer.sequence.app";
|
|
233
233
|
SequenceIndexerServices["GOERLI"] = "https://goerli-indexer.sequence.app";
|
|
234
234
|
})(exports.SequenceIndexerServices || (exports.SequenceIndexerServices = {}));
|
|
235
|
-
const fetch = global
|
|
235
|
+
const fetch = global.fetch ;
|
|
236
236
|
class SequenceIndexerClient extends Indexer {
|
|
237
237
|
constructor(hostname, jwtAuth) {
|
|
238
238
|
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
|
@@ -232,7 +232,7 @@ exports.SequenceIndexerServices = void 0;
|
|
|
232
232
|
SequenceIndexerServices["BSC_TESTNET"] = "https://bsc-testnet-indexer.sequence.app";
|
|
233
233
|
SequenceIndexerServices["GOERLI"] = "https://goerli-indexer.sequence.app";
|
|
234
234
|
})(exports.SequenceIndexerServices || (exports.SequenceIndexerServices = {}));
|
|
235
|
-
const fetch = global
|
|
235
|
+
const fetch = global.fetch ;
|
|
236
236
|
class SequenceIndexerClient extends Indexer {
|
|
237
237
|
constructor(hostname, jwtAuth) {
|
|
238
238
|
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
|
@@ -228,7 +228,7 @@ let SequenceIndexerServices;
|
|
|
228
228
|
SequenceIndexerServices["BSC_TESTNET"] = "https://bsc-testnet-indexer.sequence.app";
|
|
229
229
|
SequenceIndexerServices["GOERLI"] = "https://goerli-indexer.sequence.app";
|
|
230
230
|
})(SequenceIndexerServices || (SequenceIndexerServices = {}));
|
|
231
|
-
const fetch = global
|
|
231
|
+
const fetch = global.fetch ;
|
|
232
232
|
class SequenceIndexerClient extends Indexer {
|
|
233
233
|
constructor(hostname, jwtAuth) {
|
|
234
234
|
super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -22,7 +22,7 @@ export enum SequenceIndexerServices {
|
|
|
22
22
|
GOERLI = 'https://goerli-indexer.sequence.app'
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
const fetch = global ? global.fetch : window.fetch
|
|
25
|
+
const fetch = typeof 'global' !== undefined ? global.fetch : window.fetch
|
|
26
26
|
|
|
27
27
|
export class SequenceIndexerClient extends IndexerRpc {
|
|
28
28
|
constructor(hostname: string, public jwtAuth?: string) {
|