@0xsequence/metadata 2.1.6 → 2.1.8

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.
@@ -1178,7 +1178,6 @@ const webrpcErrorByCode = {
1178
1178
  [4001]: TokenDirectoryDisabledError
1179
1179
  };
1180
1180
 
1181
- const fetch = globalThis.fetch;
1182
1181
  class SequenceMetadata extends Metadata {
1183
1182
  constructor(hostname = 'https://metadata.sequence.app', projectAccessKey, jwtAuth) {
1184
1183
  super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
@@ -1178,7 +1178,6 @@ const webrpcErrorByCode = {
1178
1178
  [4001]: TokenDirectoryDisabledError
1179
1179
  };
1180
1180
 
1181
- const fetch = globalThis.fetch;
1182
1181
  class SequenceMetadata extends Metadata {
1183
1182
  constructor(hostname = 'https://metadata.sequence.app', projectAccessKey, jwtAuth) {
1184
1183
  super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
@@ -1174,7 +1174,6 @@ const webrpcErrorByCode = {
1174
1174
  [4001]: TokenDirectoryDisabledError
1175
1175
  };
1176
1176
 
1177
- const fetch = globalThis.fetch;
1178
1177
  class SequenceMetadata extends Metadata {
1179
1178
  constructor(hostname = 'https://metadata.sequence.app', projectAccessKey, jwtAuth) {
1180
1179
  super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xsequence/metadata",
3
- "version": "2.1.6",
3
+ "version": "2.1.8",
4
4
  "description": "metadata sub-package for Sequence",
5
5
  "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/metadata",
6
6
  "source": "src/index.ts",
package/src/index.ts CHANGED
@@ -2,8 +2,6 @@ export * from './metadata.gen'
2
2
 
3
3
  import { Metadata as MetadataRpc, Collections as CollectionsRpc } from './metadata.gen'
4
4
 
5
- const fetch = globalThis.fetch
6
-
7
5
  export class SequenceMetadata extends MetadataRpc {
8
6
  constructor(
9
7
  hostname: string = 'https://metadata.sequence.app',