emblem-vault-sdk 2.3.5 → 2.3.6

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.
package/dist/bundle.js CHANGED
@@ -711445,18 +711445,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
711445
711445
  const bignumber_1 = require("@ethersproject/bignumber");
711446
711446
  const utils_1 = require("./utils");
711447
711447
  const derive_1 = require("./derive");
711448
- const SDK_VERSION = '2.3.5';
711448
+ const SDK_VERSION = '2.3.6';
711449
711449
  class EmblemVaultSDK {
711450
- constructor(apiKey, baseUrl) {
711450
+ constructor(apiKey, baseUrl, v3Url, sigUrl) {
711451
711451
  this.apiKey = apiKey;
711452
711452
  console.log('EmblemVaultSDK version:', SDK_VERSION);
711453
711453
  if (!apiKey) {
711454
711454
  throw new Error('API key is required');
711455
711455
  }
711456
- this.v1Url = 'https://api2.emblemvault.io';
711457
711456
  this.baseUrl = baseUrl || 'https://v2.emblemvault.io';
711458
- this.v3Url = 'https://v3.emblemvault.io';
711459
- this.sigUrl = 'https://tor-us-signer-coval.vercel.app';
711457
+ this.v3Url = v3Url || 'https://v3.emblemvault.io';
711458
+ this.sigUrl = sigUrl || 'https://tor-us-signer-coval.vercel.app';
711460
711459
  }
711461
711460
  // Example method structure
711462
711461
  generateUploadUrl() {
package/dist/index.js CHANGED
@@ -35,18 +35,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
35
35
  const bignumber_1 = require("@ethersproject/bignumber");
36
36
  const utils_1 = require("./utils");
37
37
  const derive_1 = require("./derive");
38
- const SDK_VERSION = '2.3.5';
38
+ const SDK_VERSION = '2.3.6';
39
39
  class EmblemVaultSDK {
40
- constructor(apiKey, baseUrl) {
40
+ constructor(apiKey, baseUrl, v3Url, sigUrl) {
41
41
  this.apiKey = apiKey;
42
42
  console.log('EmblemVaultSDK version:', SDK_VERSION);
43
43
  if (!apiKey) {
44
44
  throw new Error('API key is required');
45
45
  }
46
- this.v1Url = 'https://api2.emblemvault.io';
47
46
  this.baseUrl = baseUrl || 'https://v2.emblemvault.io';
48
- this.v3Url = 'https://v3.emblemvault.io';
49
- this.sigUrl = 'https://tor-us-signer-coval.vercel.app';
47
+ this.v3Url = v3Url || 'https://v3.emblemvault.io';
48
+ this.sigUrl = sigUrl || 'https://tor-us-signer-coval.vercel.app';
50
49
  }
51
50
  // Example method structure
52
51
  generateUploadUrl() {
package/docs/bundle.js CHANGED
@@ -711445,18 +711445,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
711445
711445
  const bignumber_1 = require("@ethersproject/bignumber");
711446
711446
  const utils_1 = require("./utils");
711447
711447
  const derive_1 = require("./derive");
711448
- const SDK_VERSION = '2.3.5';
711448
+ const SDK_VERSION = '2.3.6';
711449
711449
  class EmblemVaultSDK {
711450
- constructor(apiKey, baseUrl) {
711450
+ constructor(apiKey, baseUrl, v3Url, sigUrl) {
711451
711451
  this.apiKey = apiKey;
711452
711452
  console.log('EmblemVaultSDK version:', SDK_VERSION);
711453
711453
  if (!apiKey) {
711454
711454
  throw new Error('API key is required');
711455
711455
  }
711456
- this.v1Url = 'https://api2.emblemvault.io';
711457
711456
  this.baseUrl = baseUrl || 'https://v2.emblemvault.io';
711458
- this.v3Url = 'https://v3.emblemvault.io';
711459
- this.sigUrl = 'https://tor-us-signer-coval.vercel.app';
711457
+ this.v3Url = v3Url || 'https://v3.emblemvault.io';
711458
+ this.sigUrl = sigUrl || 'https://tor-us-signer-coval.vercel.app';
711460
711459
  }
711461
711460
  // Example method structure
711462
711461
  generateUploadUrl() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emblem-vault-sdk",
3
- "version": "2.3.5",
3
+ "version": "2.3.6",
4
4
  "description": "Emblem Vault Software Development Kit",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -8,17 +8,15 @@ const SDK_VERSION = '__SDK_VERSION__';
8
8
  class EmblemVaultSDK {
9
9
  private baseUrl: string;
10
10
  private v3Url: string;
11
- private v1Url: string;
12
11
  private sigUrl: string;
13
- constructor(private apiKey: string, baseUrl?: string) {
12
+ constructor(private apiKey: string, baseUrl?: string, v3Url?: string, sigUrl?: string) {
14
13
  console.log('EmblemVaultSDK version:', SDK_VERSION)
15
14
  if (!apiKey) {
16
15
  throw new Error('API key is required');
17
16
  }
18
- this.v1Url = 'https://api2.emblemvault.io';
19
17
  this.baseUrl = baseUrl || 'https://v2.emblemvault.io';
20
- this.v3Url = 'https://v3.emblemvault.io';
21
- this.sigUrl = 'https://tor-us-signer-coval.vercel.app';
18
+ this.v3Url = v3Url || 'https://v3.emblemvault.io';
19
+ this.sigUrl = sigUrl || 'https://tor-us-signer-coval.vercel.app';
22
20
  }
23
21
 
24
22
  // Example method structure
package/types/index.d.ts CHANGED
@@ -4,9 +4,8 @@ declare class EmblemVaultSDK {
4
4
  private apiKey;
5
5
  private baseUrl;
6
6
  private v3Url;
7
- private v1Url;
8
7
  private sigUrl;
9
- constructor(apiKey: string, baseUrl?: string);
8
+ constructor(apiKey: string, baseUrl?: string, v3Url?: string, sigUrl?: string);
10
9
  generateUploadUrl(): void;
11
10
  getAssetMetadata(projectName: string, strict?: boolean): any[];
12
11
  getAllAssetMetadata(): any[];