@prosopo/account 0.3.41 → 1.0.1

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.
@@ -83,10 +83,10 @@ class ProsopoDatasetError extends ProsopoBaseError {
83
83
  class ProsopoApiError extends ProsopoBaseError {
84
84
  constructor(error, options) {
85
85
  const errorName = options?.name || "ProsopoApiError";
86
- const errorCode = options?.context?.code || 500;
87
- options = { ...options, name: errorName, context: { ...options?.context, errorCode } };
86
+ const code = options?.context?.code || 500;
87
+ options = { ...options, name: errorName, context: { ...options?.context, code } };
88
88
  super(error, options);
89
- this.code = errorCode;
89
+ this.code = code;
90
90
  }
91
91
  }
92
92
  exports.ProsopoApiError = ProsopoApiError;
@@ -118,7 +118,8 @@ const CAPTCHA = {
118
118
  INVALID_DATASET_CONTENT_ID: "Invalid dataset content id",
119
119
  DAPP_USER_SOLUTION_NOT_FOUND: "Dapp user solution not found",
120
120
  INVALID_PROVIDER_URL: "Invalid provider url",
121
- NO_CAPTCHA: "No captcha found"
121
+ NO_CAPTCHA: "No captcha found",
122
+ INVALID_TOKEN: "Invalid token"
122
123
  };
123
124
  const API = {
124
125
  BODY_UNDEFINED: "Body must be defined in API POST call",
@@ -6,7 +6,7 @@ export declare class ExtensionWeb2 extends Extension {
6
6
  private createAccount;
7
7
  private getFingerprint;
8
8
  getNetwork: (config: ProcaptchaClientConfigOutput) => {
9
- endpoint: string;
9
+ endpoint: string[];
10
10
  contract: {
11
11
  address: string;
12
12
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/account",
3
- "version": "0.3.41",
3
+ "version": "1.0.1",
4
4
  "description": "Services and Utils for Prosopo account gen and management",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -47,12 +47,12 @@
47
47
  "@polkadot/rpc-provider": "10.13.1",
48
48
  "@polkadot/util": "12.6.2",
49
49
  "@polkadot/util-crypto": "12.6.2",
50
- "@prosopo/common": "0.3.41",
51
- "@prosopo/types": "0.3.41",
52
- "@prosopo/util": "0.3.41"
50
+ "@prosopo/common": "1.0.1",
51
+ "@prosopo/types": "1.0.1",
52
+ "@prosopo/util": "1.0.1"
53
53
  },
54
54
  "devDependencies": {
55
- "@prosopo/config": "0.3.41",
55
+ "@prosopo/config": "1.0.1",
56
56
  "tslib": "2.6.2",
57
57
  "typescript": "5.1.6"
58
58
  },