@zkpassport/sdk 0.5.6 → 0.5.7-beta.10

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.
@@ -1,12 +1,14 @@
1
- export declare const customLogger: {
1
+ declare const customLogger: {
2
2
  debug: (message: string, ...args: any[]) => void;
3
3
  info: (message: string, ...args: any[]) => void;
4
4
  warn: (message: string, ...args: any[]) => void;
5
5
  error: (message: string, ...args: any[]) => void;
6
6
  };
7
- export declare const noLogger: {
7
+ declare const noLogger: {
8
8
  debug: (..._: any[]) => void;
9
9
  info: (..._: any[]) => void;
10
10
  warn: (..._: any[]) => void;
11
11
  error: (..._: any[]) => void;
12
12
  };
13
+
14
+ export { customLogger, noLogger };
@@ -1,12 +1,8 @@
1
- export const customLogger = {
2
- debug: (message, ...args) => console.debug(message, ...args),
3
- info: (message, ...args) => console.info(message, ...args),
4
- warn: (message, ...args) => console.warn(message, ...args),
5
- error: (message, ...args) => console.error(message, ...args),
6
- };
7
- export const noLogger = {
8
- debug: (..._) => { },
9
- info: (..._) => { },
10
- warn: (..._) => { },
11
- error: (..._) => { },
1
+ import {
2
+ customLogger,
3
+ noLogger
4
+ } from "./chunk-AFLQN3AC.js";
5
+ export {
6
+ customLogger,
7
+ noLogger
12
8
  };
package/package.json CHANGED
@@ -1,55 +1,52 @@
1
1
  {
2
2
  "name": "@zkpassport/sdk",
3
- "version": "0.5.6",
3
+ "version": "0.5.7-beta.10",
4
4
  "description": "Privacy-preserving identity verification using passports and ID cards",
5
- "main": "./dist/cjs/index.js",
6
- "module": "./dist/esm/index.js",
7
- "types": "./dist/esm/index.d.ts",
5
+ "author": "ZKPassport",
6
+ "license": "Apache-2.0",
8
7
  "type": "module",
9
- "files": [
10
- "src/",
11
- "dist/**",
12
- "tsconfig.json",
13
- "README.md"
14
- ],
15
- "scripts": {
16
- "prepublishOnly": "npm run test && npm run build",
17
- "build": "npm run build:esm && npm run build:cjs",
18
- "build:esm": "tsc -p tsconfig.json",
19
- "build:cjs": "tsc -p tsconfig.cjs.json",
20
- "test": "NODE_OPTIONS='--require ts-node/register' NODE_NO_WARNINGS=1 node node_modules/.bin/jest --no-cache --passWithNoTests --runInBand **/*.test.ts",
21
- "test:debug": "NODE_OPTIONS='--require ts-node/register' NODE_NO_WARNINGS=1 node --inspect-brk=0.0.0.0 node_modules/.bin/jest --no-cache --passWithNoTests --runInBand **/*.test.ts",
22
- "deploy": "npm publish --access public"
8
+ "main": "./dist/esm/index.js",
9
+ "types": "./dist/esm/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/esm/index.js",
13
+ "require": "./dist/cjs/index.cjs"
14
+ }
23
15
  },
24
- "keywords": [],
25
- "author": "",
26
- "license": "Apache-2.0",
27
- "devDependencies": {
28
- "@babel/plugin-proposal-decorators": "^7.25.9",
29
- "@babel/preset-env": "^7.26.0",
30
- "@babel/preset-typescript": "^7.26.0",
31
- "@jest/globals": "^29.7.0",
32
- "@types/jest": "^29.5.14",
33
- "@types/node": "^22.10.9",
34
- "@types/pako": "^2.0.3",
35
- "@types/ws": "^8.5.12",
36
- "jest": "^29.7.0",
37
- "ts-node": "^10.9.2",
38
- "typescript": "^5.6.2"
16
+ "scripts": {
17
+ "test": "bun test",
18
+ "coverage": "bun test --coverage",
19
+ "check": "tsc --noEmit && prettier -c src tests",
20
+ "format": "prettier -c -w src tests",
21
+ "build": "tsup",
22
+ "prepublishOnly": "./scripts/prepublish.sh"
39
23
  },
24
+ "files": [
25
+ "dist/esm",
26
+ "dist/cjs"
27
+ ],
28
+ "keywords": [
29
+ "zkpassport",
30
+ "zkpassport-sdk",
31
+ "sdk"
32
+ ],
40
33
  "dependencies": {
41
34
  "@aztec/bb.js": "^0.82.2",
42
35
  "@noble/ciphers": "^1.2.1",
43
36
  "@noble/hashes": "^1.7.2",
44
37
  "@noble/secp256k1": "^2.2.3",
45
- "@obsidion/bridge": "^0.10.2",
46
- "@zkpassport/registry": "^0.5.2",
47
- "@zkpassport/utils": "^0.15.3",
38
+ "@obsidion/bridge": "^0.10.3-beta.1",
39
+ "@zkpassport/registry": "0.5.3",
40
+ "@zkpassport/utils": "0.16.2",
48
41
  "buffer": "^6.0.3",
49
42
  "i18n-iso-countries": "^7.12.0",
50
43
  "pako": "^2.1.0",
51
44
  "viem": "^2.27.2",
52
45
  "ws": "^8.18.0"
53
46
  },
54
- "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
47
+ "devDependencies": {
48
+ "@types/pako": "^2.0.3",
49
+ "@types/ws": "^8.5.12"
50
+ },
51
+ "packageManager": "bun@1.2.13"
55
52
  }