@agnostack/verifyd 2.4.1-alpha.1 → 2.5.0-alpha.2
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/README.md +75 -64
- package/dist/esm/lib/index.js +3 -0
- package/dist/esm/lib/types.js +1 -0
- package/dist/esm/lib/utils/index.js +1 -0
- package/dist/esm/lib/utils/rawbody.js +35 -0
- package/dist/esm/lib/verification.js +94 -0
- package/dist/esm/react/hooks/index.js +1 -0
- package/dist/esm/react/hooks/useVerification.js +47 -0
- package/dist/esm/react/index.js +2 -0
- package/dist/esm/react/types.js +0 -0
- package/dist/esm/shared/WebCrypto.js +350 -0
- package/dist/esm/shared/authorization.js +26 -0
- package/dist/esm/shared/display.js +429 -0
- package/dist/esm/shared/errors.js +37 -0
- package/dist/esm/shared/index.js +6 -0
- package/dist/esm/shared/request.js +60 -0
- package/dist/esm/shared/types.js +0 -0
- package/dist/esm/shared/verification.js +94 -0
- package/package.json +21 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agnostack/verifyd",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0-alpha.2",
|
|
4
4
|
"author": "agnoStack Dev <developers@agnostack.com> (https://agnostack.com)",
|
|
5
5
|
"owner": "agnoStack",
|
|
6
6
|
"description": "Please contact agnoStack via info@agnostack.com for any questions",
|
|
@@ -22,6 +22,10 @@
|
|
|
22
22
|
"require": "./dist/lib/index.js",
|
|
23
23
|
"default": "./dist/lib/index.js"
|
|
24
24
|
},
|
|
25
|
+
"./esm": {
|
|
26
|
+
"types": "./dist/lib/index.d.ts",
|
|
27
|
+
"import": "./dist/esm/lib/index.js"
|
|
28
|
+
},
|
|
25
29
|
"./external": {
|
|
26
30
|
"types": "./dist/umd/lib/index.d.ts",
|
|
27
31
|
"require": "./dist/umd/lib/index.js",
|
|
@@ -32,6 +36,10 @@
|
|
|
32
36
|
"require": "./dist/react/index.js",
|
|
33
37
|
"import": "./dist/react/index.js"
|
|
34
38
|
},
|
|
39
|
+
"./react/esm": {
|
|
40
|
+
"types": "./dist/react/index.d.ts",
|
|
41
|
+
"import": "./dist/esm/react/index.js"
|
|
42
|
+
},
|
|
35
43
|
"./package.json": "./package.json"
|
|
36
44
|
},
|
|
37
45
|
"files": [
|
|
@@ -48,8 +56,8 @@
|
|
|
48
56
|
"prebuild": "yarn tsc --build --clean && npx rimraf@4.4.1 dist _storage",
|
|
49
57
|
"prebuild:staging": "yarn tsc --build --clean && npx rimraf@4.4.1 dist _storage",
|
|
50
58
|
"watch": "yarn tsc -w",
|
|
51
|
-
"build": "yarn tsc && ENVIRONMENT=production rollup -c",
|
|
52
|
-
"build:staging": "yarn tsc && ENVIRONMENT=staging rollup -c",
|
|
59
|
+
"build": "yarn tsc && yarn tsc -p tsconfig.esm.json && ENVIRONMENT=production rollup -c",
|
|
60
|
+
"build:staging": "yarn tsc && yarn tsc -p tsconfig.esm.json && ENVIRONMENT=staging rollup -c",
|
|
53
61
|
"clean": "npx rimraf@4.4.1 dist node_modules _storage",
|
|
54
62
|
"clean:install": "yarn clean && yarn install --force",
|
|
55
63
|
"lint": "eslint 'src/**' --fix",
|
|
@@ -63,6 +71,12 @@
|
|
|
63
71
|
"eslint --fix"
|
|
64
72
|
]
|
|
65
73
|
},
|
|
74
|
+
"sideEffects": [
|
|
75
|
+
"./dist/lib/**",
|
|
76
|
+
"./dist/react/**",
|
|
77
|
+
"./dist/shared/**",
|
|
78
|
+
"./dist/umd/**"
|
|
79
|
+
],
|
|
66
80
|
"browser": {
|
|
67
81
|
"isomorphic-webcrypto": false,
|
|
68
82
|
"crypto": false,
|
|
@@ -83,19 +97,20 @@
|
|
|
83
97
|
},
|
|
84
98
|
"react-is": {
|
|
85
99
|
"optional": true
|
|
100
|
+
},
|
|
101
|
+
"isomorphic-webcrypto": {
|
|
102
|
+
"optional": true
|
|
86
103
|
}
|
|
87
104
|
},
|
|
88
105
|
"peerDependencies": {
|
|
89
106
|
"http-proxy": ">=1.18.1",
|
|
107
|
+
"isomorphic-webcrypto": ">=2.3.8",
|
|
90
108
|
"next": ">=12.1.0",
|
|
91
109
|
"raw-body": ">=2.5.2",
|
|
92
110
|
"react": ">=17.0.2",
|
|
93
111
|
"react-dom": ">=17.0.2",
|
|
94
112
|
"react-is": ">=17.0.2"
|
|
95
113
|
},
|
|
96
|
-
"dependencies": {
|
|
97
|
-
"isomorphic-webcrypto": "2.3.8"
|
|
98
|
-
},
|
|
99
114
|
"devDependencies": {
|
|
100
115
|
"@babel/core": "7.22.15",
|
|
101
116
|
"@babel/eslint-parser": "7.21.3",
|
|
@@ -134,7 +149,6 @@
|
|
|
134
149
|
"ts-node": "10.9.2",
|
|
135
150
|
"typescript": "5.4.2"
|
|
136
151
|
},
|
|
137
|
-
"bundledDependencies": [],
|
|
138
152
|
"resolutions": {
|
|
139
153
|
"**/npm": "10.8.2",
|
|
140
154
|
"**/rimraf": "4.4.1"
|