@0xsequence/api 2.1.6 → 2.1.7

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.
@@ -1146,7 +1146,6 @@ const webrpcErrorByCode = {
1146
1146
  [3000]: NotFoundError
1147
1147
  };
1148
1148
 
1149
- const fetch = globalThis.fetch;
1150
1149
  class SequenceAPIClient extends API {
1151
1150
  constructor(hostname, projectAccessKey, jwtAuth) {
1152
1151
  super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
@@ -1146,7 +1146,6 @@ const webrpcErrorByCode = {
1146
1146
  [3000]: NotFoundError
1147
1147
  };
1148
1148
 
1149
- const fetch = globalThis.fetch;
1150
1149
  class SequenceAPIClient extends API {
1151
1150
  constructor(hostname, projectAccessKey, jwtAuth) {
1152
1151
  super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
@@ -1142,7 +1142,6 @@ const webrpcErrorByCode = {
1142
1142
  [3000]: NotFoundError
1143
1143
  };
1144
1144
 
1145
- const fetch = globalThis.fetch;
1146
1145
  class SequenceAPIClient extends API {
1147
1146
  constructor(hostname, projectAccessKey, jwtAuth) {
1148
1147
  super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xsequence/api",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "description": "api sub-package for Sequence",
5
5
  "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/api",
6
6
  "source": "src/index.ts",
package/src/index.ts CHANGED
@@ -2,8 +2,6 @@ export * from './api.gen'
2
2
 
3
3
  import { API as ApiRpc } from './api.gen'
4
4
 
5
- const fetch = globalThis.fetch
6
-
7
5
  export class SequenceAPIClient extends ApiRpc {
8
6
  constructor(
9
7
  hostname: string,