@test2doc/playwright-passkey-gen 0.0.2 → 0.0.4

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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@test2doc/playwright-passkey-gen",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "A utility to generate passkeys using Playwright",
5
5
  "main": "dist/src/generate-passkey/index.js",
6
6
  "module": "dist/src/generate-passkey/index.js",
7
7
  "types": "dist/src/generate-passkey/index.d.ts",
8
8
  "bin": {
9
- "playwright-passkey": "./bin/generate-passkey"
9
+ "playwright-passkey-gen": "./bin/generate-passkey"
10
10
  },
11
11
  "publishConfig": {
12
12
  "access": "public"
@@ -35,7 +35,10 @@ const generatorPath = isInDist
35
35
  ? join(__dirname, "index.js")
36
36
  : join(distRoot, "src/generate-passkey/index.js")
37
37
 
38
- const generator = spawn("node", [generatorPath], {
38
+ // Forward all CLI arguments (skip first 2: node path and script path)
39
+ const args = process.argv.slice(2)
40
+
41
+ const generator = spawn("node", [generatorPath, ...args], {
39
42
  stdio: "inherit",
40
43
  })
41
44
 
package/test-passkey.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export const TESTPASSKEY = {
2
2
  "username": "testuser",
3
- "userId": "f0637078-f60e-43ef-8ae6-aacadc71efee",
4
- "credentialId": "gRw0faI/UOxAZYMXgpJMtkNZiW3qazGDVSuoSvtHphg=",
3
+ "userId": "fe8d446e-96a9-4ef5-a968-328755cb149c",
4
+ "credentialId": "1EdjdkZ9fMkqmiqAf2iRmNMP6QH5Cenz7auxXmGsLZY=",
5
5
  "publicKey": [
6
6
  165,
7
7
  1,
@@ -13,75 +13,75 @@ export const TESTPASSKEY = {
13
13
  33,
14
14
  88,
15
15
  32,
16
- 236,
16
+ 28,
17
+ 90,
18
+ 62,
19
+ 194,
17
20
  20,
18
- 247,
19
- 9,
20
- 218,
21
+ 223,
22
+ 143,
23
+ 168,
24
+ 69,
21
25
  89,
22
- 140,
23
- 105,
24
- 151,
25
- 28,
26
- 200,
27
- 142,
28
- 17,
29
- 228,
26
+ 109,
30
27
  121,
31
- 7,
32
- 22,
33
- 49,
34
- 87,
35
- 132,
36
- 114,
37
- 112,
28
+ 30,
29
+ 210,
30
+ 227,
31
+ 121,
32
+ 202,
33
+ 165,
34
+ 27,
35
+ 51,
36
+ 109,
37
+ 72,
38
+ 137,
39
+ 177,
38
40
  21,
39
- 243,
40
- 239,
41
- 7,
42
- 62,
43
- 24,
44
- 22,
45
- 40,
46
- 237,
47
- 200,
41
+ 181,
42
+ 16,
43
+ 13,
44
+ 73,
45
+ 224,
46
+ 173,
47
+ 221,
48
48
  34,
49
49
  88,
50
50
  32,
51
- 31,
52
- 141,
53
- 120,
54
- 144,
55
- 245,
56
- 141,
57
- 110,
58
- 85,
59
- 69,
60
- 54,
61
- 213,
62
- 103,
51
+ 91,
52
+ 168,
63
53
  136,
64
- 5,
54
+ 147,
55
+ 103,
56
+ 1,
57
+ 127,
58
+ 55,
59
+ 29,
60
+ 87,
61
+ 125,
62
+ 39,
63
+ 122,
64
+ 30,
65
+ 99,
66
+ 48,
67
+ 70,
68
+ 154,
69
+ 87,
65
70
  95,
66
- 245,
67
- 44,
68
- 243,
69
- 31,
70
- 181,
71
- 137,
72
- 96,
73
- 72,
74
- 115,
75
- 191,
71
+ 75,
72
+ 164,
73
+ 55,
74
+ 172,
75
+ 108,
76
76
  77,
77
- 129,
77
+ 87,
78
78
  108,
79
- 42,
80
- 119,
81
- 183,
82
- 83
79
+ 176,
80
+ 24,
81
+ 238,
82
+ 159
83
83
  ],
84
- "privateKey": "MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgE9hVvIVFWusJFmte/OhFx9c790BoPgvN6EUMq6ssVC+hRANCAATsFPcJ2lmMaZccyI4R5HkHFjFXhHJwFfPvBz4YFijtyB+NeJD1jW5VRTbVZ4gFX/Us8x+1iWBIc79NgWwqd7dT",
85
- "credentialDbId": "gRw0faI_UOxAZYMXgpJMtkNZiW3qazGDVSuoSvtHphg",
84
+ "privateKey": "MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgo7IMQ8STknlJFQkOxDsic8VZSIHd4n1Jss9odADmauahRANCAAQcWj7CFN+PqEVZbXke0uN5yqUbM21IibEVtRANSeCt3VuoiJNnAX83HVd9J3oeYzBGmldfS6Q3rGxNV2ywGO6f",
85
+ "credentialDbId": "1EdjdkZ9fMkqmiqAf2iRmNMP6QH5Cenz7auxXmGsLZY",
86
86
  "signCount": 1
87
87
  }
package/test-passkey.js DELETED
@@ -1,87 +0,0 @@
1
- export const TESTPASSKEY = {
2
- "username": "testuser",
3
- "userId": "df7960b4-a02c-4450-a1d2-10a70f643010",
4
- "credentialId": "s3+YeYxumO9KOFdQQoujC1ZHBUznG+nZ+B91Bn40D2Y=",
5
- "publicKey": [
6
- 165,
7
- 1,
8
- 2,
9
- 3,
10
- 38,
11
- 32,
12
- 1,
13
- 33,
14
- 88,
15
- 32,
16
- 122,
17
- 82,
18
- 191,
19
- 244,
20
- 239,
21
- 94,
22
- 52,
23
- 144,
24
- 59,
25
- 63,
26
- 247,
27
- 107,
28
- 91,
29
- 188,
30
- 148,
31
- 168,
32
- 160,
33
- 85,
34
- 168,
35
- 70,
36
- 99,
37
- 220,
38
- 143,
39
- 209,
40
- 175,
41
- 41,
42
- 20,
43
- 142,
44
- 37,
45
- 30,
46
- 198,
47
- 153,
48
- 34,
49
- 88,
50
- 32,
51
- 55,
52
- 222,
53
- 130,
54
- 67,
55
- 194,
56
- 238,
57
- 118,
58
- 128,
59
- 201,
60
- 7,
61
- 75,
62
- 252,
63
- 19,
64
- 11,
65
- 126,
66
- 3,
67
- 102,
68
- 107,
69
- 32,
70
- 17,
71
- 178,
72
- 69,
73
- 44,
74
- 171,
75
- 77,
76
- 128,
77
- 167,
78
- 233,
79
- 83,
80
- 43,
81
- 97,
82
- 171
83
- ],
84
- "privateKey": "MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQg4TDYvyFRnrv39+HRgtnk46kp9AF9PXbYuXHoEpepB+uhRANCAAR6Ur/07140kDs/92tbvJSooFWoRmPcj9GvKRSOJR7GmTfegkPC7naAyQdL/BMLfgNmayARskUsq02Ap+lTK2Gr",
85
- "credentialDbId": "s3-YeYxumO9KOFdQQoujC1ZHBUznG-nZ-B91Bn40D2Y",
86
- "signCount": 1
87
- }