@0xsequence/metadata 0.0.0-20231205222341 → 0.0.0-20240111142017

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.
@@ -67,6 +67,8 @@ let SortOrder = /*#__PURE__*/function (SortOrder) {
67
67
  //
68
68
  class Metadata {
69
69
  constructor(hostname, fetch) {
70
+ this.hostname = void 0;
71
+ this.fetch = void 0;
70
72
  this.path = '/rpc/Metadata/';
71
73
  this.ping = headers => {
72
74
  return this.fetch(this.url('Ping'), createHTTPRequest({}, headers)).then(res => {
@@ -271,8 +273,10 @@ const buildResponse = res => {
271
273
 
272
274
  const fetch = typeof global === 'object' ? global.fetch : window.fetch;
273
275
  class SequenceMetadata extends Metadata {
274
- constructor(hostname = 'https://metadata.sequence.app', _projectAccessKey, _jwtAuth) {
276
+ constructor(hostname = 'https://metadata.sequence.app', projectAccessKey, jwtAuth) {
275
277
  super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
278
+ this.projectAccessKey = projectAccessKey;
279
+ this.jwtAuth = jwtAuth;
276
280
  this._fetch = (input, init) => {
277
281
  // automatically include jwt and access key auth header to requests
278
282
  // if its been set on the api client
@@ -290,8 +294,6 @@ class SequenceMetadata extends Metadata {
290
294
  init.headers = _extends({}, init.headers, headers);
291
295
  return fetch(input, init);
292
296
  };
293
- this.projectAccessKey = _projectAccessKey;
294
- this.jwtAuth = _jwtAuth;
295
297
  this.fetch = this._fetch;
296
298
  }
297
299
  }
@@ -67,6 +67,8 @@ let SortOrder = /*#__PURE__*/function (SortOrder) {
67
67
  //
68
68
  class Metadata {
69
69
  constructor(hostname, fetch) {
70
+ this.hostname = void 0;
71
+ this.fetch = void 0;
70
72
  this.path = '/rpc/Metadata/';
71
73
  this.ping = headers => {
72
74
  return this.fetch(this.url('Ping'), createHTTPRequest({}, headers)).then(res => {
@@ -271,8 +273,10 @@ const buildResponse = res => {
271
273
 
272
274
  const fetch = typeof global === 'object' ? global.fetch : window.fetch;
273
275
  class SequenceMetadata extends Metadata {
274
- constructor(hostname = 'https://metadata.sequence.app', _projectAccessKey, _jwtAuth) {
276
+ constructor(hostname = 'https://metadata.sequence.app', projectAccessKey, jwtAuth) {
275
277
  super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
278
+ this.projectAccessKey = projectAccessKey;
279
+ this.jwtAuth = jwtAuth;
276
280
  this._fetch = (input, init) => {
277
281
  // automatically include jwt and access key auth header to requests
278
282
  // if its been set on the api client
@@ -290,8 +294,6 @@ class SequenceMetadata extends Metadata {
290
294
  init.headers = _extends({}, init.headers, headers);
291
295
  return fetch(input, init);
292
296
  };
293
- this.projectAccessKey = _projectAccessKey;
294
- this.jwtAuth = _jwtAuth;
295
297
  this.fetch = this._fetch;
296
298
  }
297
299
  }
@@ -63,6 +63,8 @@ let SortOrder = /*#__PURE__*/function (SortOrder) {
63
63
  //
64
64
  class Metadata {
65
65
  constructor(hostname, fetch) {
66
+ this.hostname = void 0;
67
+ this.fetch = void 0;
66
68
  this.path = '/rpc/Metadata/';
67
69
  this.ping = headers => {
68
70
  return this.fetch(this.url('Ping'), createHTTPRequest({}, headers)).then(res => {
@@ -267,8 +269,10 @@ const buildResponse = res => {
267
269
 
268
270
  const fetch = typeof global === 'object' ? global.fetch : window.fetch;
269
271
  class SequenceMetadata extends Metadata {
270
- constructor(hostname = 'https://metadata.sequence.app', _projectAccessKey, _jwtAuth) {
272
+ constructor(hostname = 'https://metadata.sequence.app', projectAccessKey, jwtAuth) {
271
273
  super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
274
+ this.projectAccessKey = projectAccessKey;
275
+ this.jwtAuth = jwtAuth;
272
276
  this._fetch = (input, init) => {
273
277
  // automatically include jwt and access key auth header to requests
274
278
  // if its been set on the api client
@@ -286,8 +290,6 @@ class SequenceMetadata extends Metadata {
286
290
  init.headers = _extends({}, init.headers, headers);
287
291
  return fetch(input, init);
288
292
  };
289
- this.projectAccessKey = _projectAccessKey;
290
- this.jwtAuth = _jwtAuth;
291
293
  this.fetch = this._fetch;
292
294
  }
293
295
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xsequence/metadata",
3
- "version": "0.0.0-20231205222341",
3
+ "version": "0.0.0-20240111142017",
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",