@superorange/zka-js-sdk 1.0.117 → 1.0.118

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/error.d.ts CHANGED
@@ -10,6 +10,7 @@ export declare const ErrorCodeMAP: {
10
10
  '00005': string;
11
11
  '00012': string;
12
12
  '00013': string;
13
+ '00014': string;
13
14
  '00104': string;
14
15
  '10001': string;
15
16
  '10002': string;
package/dist/error.js CHANGED
@@ -15,7 +15,8 @@ exports.ErrorCodeMAP = {
15
15
  // '00010':'Verification failed. Please try again later.',
16
16
  // '00011':'Launch failed: unstable connection.',
17
17
  '00012': 'Invalid Template ID.',
18
- '00013': 'Target data missing. Please check that the JSON path of the data in the response from the request URL matches your template.',
18
+ '00013': 'Target data missing. Please check whether the data json path in the request URL’s response aligns with your template.',
19
+ '00014': 'The verification process timed out.',
19
20
  // "00101":'Insufficient assets in your Trading Account. Please confirm and try again later.',
20
21
  // '00102':'Attestation requirements not met. Insufficient assets balance in Binance Spot Account.',
21
22
  // "00103": 'This account may have already been bound to a wallet address, or your wallet address may already have a zkAttestation with another Binance account.',
package/dist/error.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"error.js","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":";;;AAgBa,QAAA,YAAY,GAAG;IAC1B,OAAO,EAAC,iDAAiD;IACzD,OAAO,EAAC,8BAA8B;IACtC,OAAO,EAAC,qCAAqC;IAC7C,OAAO,EAAC,gEAAgE;IACxE,OAAO,EAAC,sDAAsD;IAC9D,OAAO,EAAC,uBAAuB;IAC/B,oFAAoF;IACpF,0CAA0C;IAC1C,4FAA4F;IAC5F,0EAA0E;IAC1E,0DAA0D;IAC1D,iDAAiD;IACjD,OAAO,EAAC,sBAAsB;IAC9B,OAAO,EAAC,8HAA8H;IACtI,8FAA8F;IAE9F,oGAAoG;IACpG,mKAAmK;IACnK,OAAO,EAAE,wCAAwC;IAEjD,OAAO,EAAC,iDAAiD;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,CAAC;QAC1E,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AATD,gDASC"}
package/package.json CHANGED
@@ -1,22 +1,24 @@
1
1
  {
2
- "name": "@superorange/zka-js-sdk",
3
- "version": "1.0.117",
2
+ "name": "@superorange/zka-js-sdk",
3
+ "version": "1.0.118",
4
4
  "author": "",
5
5
  "description": "",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
- "files": [
9
- "./dist"
10
- ],
8
+ "files": ["./dist"],
11
9
  "scripts": {
12
- "build": "rm -rf dist && tsc --build tsconfig.json",
13
- "build:test": "rm -rf dist && tsc --build tsconfig.json",
10
+ "build": "NODE_ENV=production rm -rf dist && tsc --build tsconfig.json",
11
+ "build:test": "NODE_ENV=development rm -rf dist && tsc --build tsconfig.json",
14
12
  "lint": "eslint -c .eslintrc --ext .ts src",
15
13
  "format": "prettier --check --write src/**/*.ts --config .prettierrc",
16
14
  "pretest:integration": "npm run build && npm link",
17
15
  "publish": "npm publish --access public",
18
16
  "test": "jest"
19
17
  },
18
+ "dependencies": {
19
+ "@ethereum-attestation-service/eas-sdk": "^0.29.0",
20
+ "ethers": "5.7.2"
21
+ },
20
22
  "devDependencies": {
21
23
  "@types/jest": "^29.5.12",
22
24
  "@types/node": "^20.12.7",
@@ -31,20 +33,14 @@
31
33
  "ts-jest": "^29.1.4",
32
34
  "ts-node": "^10.9.2",
33
35
  "tslib": "^2.6.2",
34
- "typescript": "^5.4.5"
36
+ "typescript": "^5.4.5",
37
+ "webpack": "^5.94.0"
35
38
  },
36
39
  "jest": {
37
40
  "transform": {
38
41
  "^.+\\.(ts|tsx)$": "ts-jest"
39
42
  },
40
43
  "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(ts|tsx|js)$",
41
- "moduleFileExtensions": [
42
- "ts",
43
- "tsx",
44
- "js"
45
- ]
46
- },
47
- "dependencies": {
48
- "ethers": "^5.7.2"
44
+ "moduleFileExtensions": ["ts", "tsx", "js"]
49
45
  }
50
- }
46
+ }