@worldcoin/minikit-js 1.4.0 → 1.6.0

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/index.ts CHANGED
@@ -1,29 +1,23 @@
1
- export { MiniKit } from "./minikit";
1
+ export { MiniKit } from './minikit';
2
2
 
3
- export {
4
- VerifyCommandInput,
5
- PayCommandInput,
6
- Command,
7
- SiweMessage,
8
- } from "./types";
9
-
10
- export * from "./types/responses";
11
- export * from "./types/commands";
12
- export * from "./types/errors";
3
+ export * from './types/commands';
4
+ export * from './types/errors';
5
+ export * from './types/payment';
6
+ export * from './types/responses';
7
+ export * from './types/wallet-auth';
13
8
 
14
- export { Tokens, Network, TokenDecimals } from "./types/payment";
15
- export { tokenToDecimals } from "helpers/payment/client";
9
+ export { tokenToDecimals } from 'helpers/payment/client';
16
10
 
17
- export { VerificationLevel, type ISuccessResult } from "@worldcoin/idkit-core";
11
+ export { VerificationLevel, type ISuccessResult } from '@worldcoin/idkit-core';
18
12
  export {
19
13
  verifyCloudProof,
20
14
  type IVerifyResponse,
21
- } from "@worldcoin/idkit-core/backend";
15
+ } from '@worldcoin/idkit-core/backend';
22
16
 
23
17
  export {
24
- parseSiweMessage,
25
18
  SAFE_CONTRACT_ABI,
19
+ parseSiweMessage,
26
20
  verifySiweMessage,
27
- } from "helpers/siwe/siwe";
21
+ } from 'helpers/siwe/siwe';
28
22
 
29
- export { getIsUserVerified } from "helpers/address-book";
23
+ export { getIsUserVerified } from 'helpers/address-book';
package/package.json CHANGED
@@ -1,11 +1,26 @@
1
1
  {
2
- "name": "@worldcoin/minikit-js",
3
- "version": "1.4.0",
4
- "homepage": "https://docs.worldcoin.org/mini-apps",
2
+ "dependencies": {
3
+ "@worldcoin/idkit-core": "^1.3.0",
4
+ "abitype": "^1.0.6"
5
+ },
5
6
  "description": "minikit-js is our SDK for building mini-apps.",
6
- "license": "MIT",
7
- "private": false,
8
- "type": "module",
7
+ "devDependencies": {
8
+ "@types/jest": "^29.5.14",
9
+ "@types/node": "^20",
10
+ "@typescript-eslint/eslint-plugin": "^7.7.0",
11
+ "@typescript-eslint/parser": "^7.7.0",
12
+ "jest": "^29.7.0",
13
+ "prettier": "^3.2.5",
14
+ "prettier-plugin-sort-imports-desc": "^1.0.0",
15
+ "ts-jest": "^29.2.5",
16
+ "ts-node": "^10.9.2",
17
+ "tsup": "^8.0.2",
18
+ "typescript": "^5.4.5",
19
+ "viem": "^2.21.18"
20
+ },
21
+ "engines": {
22
+ "node": ">= 16"
23
+ },
9
24
  "exports": {
10
25
  ".": {
11
26
  "import": {
@@ -18,48 +33,38 @@
18
33
  }
19
34
  }
20
35
  },
21
- "typesVersions": {
22
- "*": {
23
- "*": [
24
- "./build/*/index.d.ts",
25
- "./build/index.d.ts"
26
- ]
27
- }
28
- },
29
- "main": "index.ts",
30
- "types": "index.ts",
31
- "engines": {
32
- "node": ">= 16"
33
- },
34
36
  "files": [
35
37
  "./build/**",
36
38
  "README.md"
37
39
  ],
40
+ "homepage": "https://docs.worldcoin.org/mini-apps",
38
41
  "keywords": [
39
42
  "minikit",
40
43
  "miniapps"
41
44
  ],
42
- "dependencies": {
43
- "@worldcoin/idkit-core": "^1.3.0",
44
- "abitype": "^1.0.6"
45
- },
46
- "devDependencies": {
47
- "@types/node": "^20",
48
- "@typescript-eslint/eslint-plugin": "^7.7.0",
49
- "@typescript-eslint/parser": "^7.7.0",
50
- "prettier": "^3.2.5",
51
- "prettier-plugin-sort-imports-desc": "^1.0.0",
52
- "tsup": "^8.0.2",
53
- "typescript": "^5.4.5",
54
- "viem": "^2.21.18"
55
- },
45
+ "license": "MIT",
46
+ "main": "index.ts",
47
+ "name": "@worldcoin/minikit-js",
56
48
  "peerDependencies": {
57
- "viem": "^2.0.0"
49
+ "viem": "^2.21.10"
50
+ },
51
+ "private": false,
52
+ "type": "module",
53
+ "types": "index.ts",
54
+ "typesVersions": {
55
+ "*": {
56
+ "*": [
57
+ "./build/*/index.d.ts",
58
+ "./build/index.d.ts"
59
+ ]
60
+ }
58
61
  },
62
+ "version": "1.6.0",
59
63
  "scripts": {
60
64
  "build": "tsup",
61
65
  "dev": "tsup --watch",
62
- "lint": "eslint ./ --ext .ts",
66
+ "lint": "prettier --check .",
67
+ "test": "jest",
63
68
  "type-check": "tsc --noEmit"
64
69
  }
65
70
  }