electron-webauthn 0.0.1 → 0.0.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/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/index.js +18 -18
- package/package.json +15 -12
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,QAAQ;;;CAGpB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":";;;AAAA,oCAAuC;AAE1B,QAAA,QAAQ,GAAG;IACtB,MAAM,EAAN,cAAM;IACN,GAAG,EAAH,WAAG;CACJ,CAAC"}
|
package/index.js
CHANGED
|
@@ -37,7 +37,7 @@ switch (platform) {
|
|
|
37
37
|
if (localFileExisted) {
|
|
38
38
|
nativeBinding = require('./electron-webauthn.android-arm64.node')
|
|
39
39
|
} else {
|
|
40
|
-
nativeBinding = require('electron-webauthn-android-arm64')
|
|
40
|
+
nativeBinding = require('@electron-webauthn/pkg-android-arm64')
|
|
41
41
|
}
|
|
42
42
|
} catch (e) {
|
|
43
43
|
loadError = e
|
|
@@ -49,7 +49,7 @@ switch (platform) {
|
|
|
49
49
|
if (localFileExisted) {
|
|
50
50
|
nativeBinding = require('./electron-webauthn.android-arm-eabi.node')
|
|
51
51
|
} else {
|
|
52
|
-
nativeBinding = require('electron-webauthn-android-arm-eabi')
|
|
52
|
+
nativeBinding = require('@electron-webauthn/pkg-android-arm-eabi')
|
|
53
53
|
}
|
|
54
54
|
} catch (e) {
|
|
55
55
|
loadError = e
|
|
@@ -69,7 +69,7 @@ switch (platform) {
|
|
|
69
69
|
if (localFileExisted) {
|
|
70
70
|
nativeBinding = require('./electron-webauthn.win32-x64-msvc.node')
|
|
71
71
|
} else {
|
|
72
|
-
nativeBinding = require('electron-webauthn-win32-x64-msvc')
|
|
72
|
+
nativeBinding = require('@electron-webauthn/pkg-win32-x64-msvc')
|
|
73
73
|
}
|
|
74
74
|
} catch (e) {
|
|
75
75
|
loadError = e
|
|
@@ -83,7 +83,7 @@ switch (platform) {
|
|
|
83
83
|
if (localFileExisted) {
|
|
84
84
|
nativeBinding = require('./electron-webauthn.win32-ia32-msvc.node')
|
|
85
85
|
} else {
|
|
86
|
-
nativeBinding = require('electron-webauthn-win32-ia32-msvc')
|
|
86
|
+
nativeBinding = require('@electron-webauthn/pkg-win32-ia32-msvc')
|
|
87
87
|
}
|
|
88
88
|
} catch (e) {
|
|
89
89
|
loadError = e
|
|
@@ -97,7 +97,7 @@ switch (platform) {
|
|
|
97
97
|
if (localFileExisted) {
|
|
98
98
|
nativeBinding = require('./electron-webauthn.win32-arm64-msvc.node')
|
|
99
99
|
} else {
|
|
100
|
-
nativeBinding = require('electron-webauthn-win32-arm64-msvc')
|
|
100
|
+
nativeBinding = require('@electron-webauthn/pkg-win32-arm64-msvc')
|
|
101
101
|
}
|
|
102
102
|
} catch (e) {
|
|
103
103
|
loadError = e
|
|
@@ -113,7 +113,7 @@ switch (platform) {
|
|
|
113
113
|
if (localFileExisted) {
|
|
114
114
|
nativeBinding = require('./electron-webauthn.darwin-universal.node')
|
|
115
115
|
} else {
|
|
116
|
-
nativeBinding = require('electron-webauthn-darwin-universal')
|
|
116
|
+
nativeBinding = require('@electron-webauthn/pkg-darwin-universal')
|
|
117
117
|
}
|
|
118
118
|
break
|
|
119
119
|
} catch {}
|
|
@@ -124,7 +124,7 @@ switch (platform) {
|
|
|
124
124
|
if (localFileExisted) {
|
|
125
125
|
nativeBinding = require('./electron-webauthn.darwin-x64.node')
|
|
126
126
|
} else {
|
|
127
|
-
nativeBinding = require('electron-webauthn-darwin-x64')
|
|
127
|
+
nativeBinding = require('@electron-webauthn/pkg-darwin-x64')
|
|
128
128
|
}
|
|
129
129
|
} catch (e) {
|
|
130
130
|
loadError = e
|
|
@@ -138,7 +138,7 @@ switch (platform) {
|
|
|
138
138
|
if (localFileExisted) {
|
|
139
139
|
nativeBinding = require('./electron-webauthn.darwin-arm64.node')
|
|
140
140
|
} else {
|
|
141
|
-
nativeBinding = require('electron-webauthn-darwin-arm64')
|
|
141
|
+
nativeBinding = require('@electron-webauthn/pkg-darwin-arm64')
|
|
142
142
|
}
|
|
143
143
|
} catch (e) {
|
|
144
144
|
loadError = e
|
|
@@ -157,7 +157,7 @@ switch (platform) {
|
|
|
157
157
|
if (localFileExisted) {
|
|
158
158
|
nativeBinding = require('./electron-webauthn.freebsd-x64.node')
|
|
159
159
|
} else {
|
|
160
|
-
nativeBinding = require('electron-webauthn-freebsd-x64')
|
|
160
|
+
nativeBinding = require('@electron-webauthn/pkg-freebsd-x64')
|
|
161
161
|
}
|
|
162
162
|
} catch (e) {
|
|
163
163
|
loadError = e
|
|
@@ -174,7 +174,7 @@ switch (platform) {
|
|
|
174
174
|
if (localFileExisted) {
|
|
175
175
|
nativeBinding = require('./electron-webauthn.linux-x64-musl.node')
|
|
176
176
|
} else {
|
|
177
|
-
nativeBinding = require('electron-webauthn-linux-x64-musl')
|
|
177
|
+
nativeBinding = require('@electron-webauthn/pkg-linux-x64-musl')
|
|
178
178
|
}
|
|
179
179
|
} catch (e) {
|
|
180
180
|
loadError = e
|
|
@@ -187,7 +187,7 @@ switch (platform) {
|
|
|
187
187
|
if (localFileExisted) {
|
|
188
188
|
nativeBinding = require('./electron-webauthn.linux-x64-gnu.node')
|
|
189
189
|
} else {
|
|
190
|
-
nativeBinding = require('electron-webauthn-linux-x64-gnu')
|
|
190
|
+
nativeBinding = require('@electron-webauthn/pkg-linux-x64-gnu')
|
|
191
191
|
}
|
|
192
192
|
} catch (e) {
|
|
193
193
|
loadError = e
|
|
@@ -203,7 +203,7 @@ switch (platform) {
|
|
|
203
203
|
if (localFileExisted) {
|
|
204
204
|
nativeBinding = require('./electron-webauthn.linux-arm64-musl.node')
|
|
205
205
|
} else {
|
|
206
|
-
nativeBinding = require('electron-webauthn-linux-arm64-musl')
|
|
206
|
+
nativeBinding = require('@electron-webauthn/pkg-linux-arm64-musl')
|
|
207
207
|
}
|
|
208
208
|
} catch (e) {
|
|
209
209
|
loadError = e
|
|
@@ -216,7 +216,7 @@ switch (platform) {
|
|
|
216
216
|
if (localFileExisted) {
|
|
217
217
|
nativeBinding = require('./electron-webauthn.linux-arm64-gnu.node')
|
|
218
218
|
} else {
|
|
219
|
-
nativeBinding = require('electron-webauthn-linux-arm64-gnu')
|
|
219
|
+
nativeBinding = require('@electron-webauthn/pkg-linux-arm64-gnu')
|
|
220
220
|
}
|
|
221
221
|
} catch (e) {
|
|
222
222
|
loadError = e
|
|
@@ -232,7 +232,7 @@ switch (platform) {
|
|
|
232
232
|
if (localFileExisted) {
|
|
233
233
|
nativeBinding = require('./electron-webauthn.linux-arm-musleabihf.node')
|
|
234
234
|
} else {
|
|
235
|
-
nativeBinding = require('electron-webauthn-linux-arm-musleabihf')
|
|
235
|
+
nativeBinding = require('@electron-webauthn/pkg-linux-arm-musleabihf')
|
|
236
236
|
}
|
|
237
237
|
} catch (e) {
|
|
238
238
|
loadError = e
|
|
@@ -245,7 +245,7 @@ switch (platform) {
|
|
|
245
245
|
if (localFileExisted) {
|
|
246
246
|
nativeBinding = require('./electron-webauthn.linux-arm-gnueabihf.node')
|
|
247
247
|
} else {
|
|
248
|
-
nativeBinding = require('electron-webauthn-linux-arm-gnueabihf')
|
|
248
|
+
nativeBinding = require('@electron-webauthn/pkg-linux-arm-gnueabihf')
|
|
249
249
|
}
|
|
250
250
|
} catch (e) {
|
|
251
251
|
loadError = e
|
|
@@ -261,7 +261,7 @@ switch (platform) {
|
|
|
261
261
|
if (localFileExisted) {
|
|
262
262
|
nativeBinding = require('./electron-webauthn.linux-riscv64-musl.node')
|
|
263
263
|
} else {
|
|
264
|
-
nativeBinding = require('electron-webauthn-linux-riscv64-musl')
|
|
264
|
+
nativeBinding = require('@electron-webauthn/pkg-linux-riscv64-musl')
|
|
265
265
|
}
|
|
266
266
|
} catch (e) {
|
|
267
267
|
loadError = e
|
|
@@ -274,7 +274,7 @@ switch (platform) {
|
|
|
274
274
|
if (localFileExisted) {
|
|
275
275
|
nativeBinding = require('./electron-webauthn.linux-riscv64-gnu.node')
|
|
276
276
|
} else {
|
|
277
|
-
nativeBinding = require('electron-webauthn-linux-riscv64-gnu')
|
|
277
|
+
nativeBinding = require('@electron-webauthn/pkg-linux-riscv64-gnu')
|
|
278
278
|
}
|
|
279
279
|
} catch (e) {
|
|
280
280
|
loadError = e
|
|
@@ -289,7 +289,7 @@ switch (platform) {
|
|
|
289
289
|
if (localFileExisted) {
|
|
290
290
|
nativeBinding = require('./electron-webauthn.linux-s390x-gnu.node')
|
|
291
291
|
} else {
|
|
292
|
-
nativeBinding = require('electron-webauthn-linux-s390x-gnu')
|
|
292
|
+
nativeBinding = require('@electron-webauthn/pkg-linux-s390x-gnu')
|
|
293
293
|
}
|
|
294
294
|
} catch (e) {
|
|
295
295
|
loadError = e
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "electron-webauthn",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"main": "index.js",
|
|
5
|
-
"types": "index.d.ts",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
6
|
"napi": {
|
|
7
7
|
"name": "electron-webauthn",
|
|
8
8
|
"triples": {
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
],
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@napi-rs/cli": "^2.18.4",
|
|
23
|
-
"ava": "^6.0.1"
|
|
23
|
+
"ava": "^6.0.1",
|
|
24
|
+
"typescript": "^5.8.3"
|
|
24
25
|
},
|
|
25
26
|
"ava": {
|
|
26
27
|
"timeout": "3m"
|
|
@@ -30,7 +31,9 @@
|
|
|
30
31
|
},
|
|
31
32
|
"scripts": {
|
|
32
33
|
"artifacts": "napi artifacts",
|
|
33
|
-
"build": "
|
|
34
|
+
"build": "yarn run build:ts && yarn run build:rust",
|
|
35
|
+
"build:ts": "tsc",
|
|
36
|
+
"build:rust": "napi build --platform --release",
|
|
34
37
|
"build:debug": "napi build --platform",
|
|
35
38
|
"prepublishOnly": "napi prepublish -t npm",
|
|
36
39
|
"test": "ava",
|
|
@@ -38,13 +41,13 @@
|
|
|
38
41
|
"version": "napi version"
|
|
39
42
|
},
|
|
40
43
|
"packageManager": "yarn@4.9.2",
|
|
41
|
-
"repository": "https://github.com/iamEvanYT/electron-webauthn
|
|
42
|
-
"description": "Add support for WebAuthn
|
|
44
|
+
"repository": "https://github.com/iamEvanYT/electron-webauthn.git",
|
|
45
|
+
"description": "Add support for WebAuthn in Electron.",
|
|
43
46
|
"optionalDependencies": {
|
|
44
|
-
"electron-webauthn-win32-x64-msvc": "0.0.
|
|
45
|
-
"electron-webauthn-darwin-x64": "0.0.
|
|
46
|
-
"electron-webauthn-linux-x64-gnu": "0.0.
|
|
47
|
-
"electron-webauthn-darwin-arm64": "0.0.
|
|
48
|
-
"electron-webauthn-win32-arm64-msvc": "0.0.
|
|
47
|
+
"electron-webauthn-win32-x64-msvc": "0.0.2",
|
|
48
|
+
"electron-webauthn-darwin-x64": "0.0.2",
|
|
49
|
+
"electron-webauthn-linux-x64-gnu": "0.0.2",
|
|
50
|
+
"electron-webauthn-darwin-arm64": "0.0.2",
|
|
51
|
+
"electron-webauthn-win32-arm64-msvc": "0.0.2"
|
|
49
52
|
}
|
|
50
53
|
}
|