@fgv/ts-extras-argon2 5.1.0-47 → 5.1.0-49

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.
Files changed (37) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +18 -8
  3. package/.rush/temp/chunked-rush-logs/ts-extras-argon2.build.chunks.jsonl +0 -9
  4. package/.rush/temp/eb061fb1c7e3a355a03b204add873a27586efa0d.tar.log +0 -48
  5. package/.rush/temp/operation/build/all.log +0 -9
  6. package/.rush/temp/operation/build/log-chunks.jsonl +0 -9
  7. package/.rush/temp/operation/build/state.json +0 -3
  8. package/.rush/temp/shrinkwrap-deps.json +0 -694
  9. package/config/api-extractor.json +0 -343
  10. package/config/jest.config.json +0 -14
  11. package/config/rig.json +0 -4
  12. package/dist/test/unit/argon2/crossRuntime.test.js +0 -117
  13. package/dist/test/unit/argon2/crossRuntime.test.js.map +0 -1
  14. package/dist/test/unit/argon2/nodeArgon2Provider.test.js +0 -144
  15. package/dist/test/unit/argon2/nodeArgon2Provider.test.js.map +0 -1
  16. package/eslint.config.js +0 -15
  17. package/etc/ts-extras-argon2.api.md +0 -20
  18. package/lib/test/unit/argon2/crossRuntime.test.d.ts +0 -2
  19. package/lib/test/unit/argon2/crossRuntime.test.d.ts.map +0 -1
  20. package/lib/test/unit/argon2/crossRuntime.test.js +0 -119
  21. package/lib/test/unit/argon2/crossRuntime.test.js.map +0 -1
  22. package/lib/test/unit/argon2/nodeArgon2Provider.test.d.ts +0 -2
  23. package/lib/test/unit/argon2/nodeArgon2Provider.test.d.ts.map +0 -1
  24. package/lib/test/unit/argon2/nodeArgon2Provider.test.js +0 -146
  25. package/lib/test/unit/argon2/nodeArgon2Provider.test.js.map +0 -1
  26. package/rush-logs/ts-extras-argon2.build.cache.log +0 -3
  27. package/rush-logs/ts-extras-argon2.build.log +0 -9
  28. package/src/index.ts +0 -21
  29. package/src/packlets/argon2/index.ts +0 -25
  30. package/src/packlets/argon2/nodeArgon2Provider.ts +0 -101
  31. package/src/test/unit/argon2/crossRuntime.test.ts +0 -137
  32. package/src/test/unit/argon2/nodeArgon2Provider.test.ts +0 -186
  33. package/temp/build/lint/_eslint-5eVG3S6w.json +0 -26
  34. package/temp/build/typescript/ts_8nwakTlr.json +0 -1
  35. package/temp/ts-extras-argon2.api.json +0 -399
  36. package/temp/ts-extras-argon2.api.md +0 -20
  37. package/tsconfig.json +0 -8
@@ -1,399 +0,0 @@
1
- {
2
- "metadata": {
3
- "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.58.9",
5
- "schemaVersion": 1011,
6
- "oldestForwardsCompatibleVersion": 1001,
7
- "tsdocConfig": {
8
- "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
9
- "noStandardTags": true,
10
- "tagDefinitions": [
11
- {
12
- "tagName": "@alpha",
13
- "syntaxKind": "modifier"
14
- },
15
- {
16
- "tagName": "@beta",
17
- "syntaxKind": "modifier"
18
- },
19
- {
20
- "tagName": "@defaultValue",
21
- "syntaxKind": "block"
22
- },
23
- {
24
- "tagName": "@decorator",
25
- "syntaxKind": "block",
26
- "allowMultiple": true
27
- },
28
- {
29
- "tagName": "@deprecated",
30
- "syntaxKind": "block"
31
- },
32
- {
33
- "tagName": "@eventProperty",
34
- "syntaxKind": "modifier"
35
- },
36
- {
37
- "tagName": "@example",
38
- "syntaxKind": "block",
39
- "allowMultiple": true
40
- },
41
- {
42
- "tagName": "@experimental",
43
- "syntaxKind": "modifier"
44
- },
45
- {
46
- "tagName": "@inheritDoc",
47
- "syntaxKind": "inline"
48
- },
49
- {
50
- "tagName": "@internal",
51
- "syntaxKind": "modifier"
52
- },
53
- {
54
- "tagName": "@label",
55
- "syntaxKind": "inline"
56
- },
57
- {
58
- "tagName": "@link",
59
- "syntaxKind": "inline",
60
- "allowMultiple": true
61
- },
62
- {
63
- "tagName": "@override",
64
- "syntaxKind": "modifier"
65
- },
66
- {
67
- "tagName": "@packageDocumentation",
68
- "syntaxKind": "modifier"
69
- },
70
- {
71
- "tagName": "@param",
72
- "syntaxKind": "block",
73
- "allowMultiple": true
74
- },
75
- {
76
- "tagName": "@privateRemarks",
77
- "syntaxKind": "block"
78
- },
79
- {
80
- "tagName": "@public",
81
- "syntaxKind": "modifier"
82
- },
83
- {
84
- "tagName": "@readonly",
85
- "syntaxKind": "modifier"
86
- },
87
- {
88
- "tagName": "@remarks",
89
- "syntaxKind": "block"
90
- },
91
- {
92
- "tagName": "@returns",
93
- "syntaxKind": "block"
94
- },
95
- {
96
- "tagName": "@sealed",
97
- "syntaxKind": "modifier"
98
- },
99
- {
100
- "tagName": "@see",
101
- "syntaxKind": "block"
102
- },
103
- {
104
- "tagName": "@throws",
105
- "syntaxKind": "block",
106
- "allowMultiple": true
107
- },
108
- {
109
- "tagName": "@typeParam",
110
- "syntaxKind": "block",
111
- "allowMultiple": true
112
- },
113
- {
114
- "tagName": "@virtual",
115
- "syntaxKind": "modifier"
116
- },
117
- {
118
- "tagName": "@jsx",
119
- "syntaxKind": "block"
120
- },
121
- {
122
- "tagName": "@jsxRuntime",
123
- "syntaxKind": "block"
124
- },
125
- {
126
- "tagName": "@jsxFrag",
127
- "syntaxKind": "block"
128
- },
129
- {
130
- "tagName": "@jsxImportSource",
131
- "syntaxKind": "block"
132
- },
133
- {
134
- "tagName": "@betaDocumentation",
135
- "syntaxKind": "modifier"
136
- },
137
- {
138
- "tagName": "@internalRemarks",
139
- "syntaxKind": "block"
140
- },
141
- {
142
- "tagName": "@preapproved",
143
- "syntaxKind": "modifier"
144
- }
145
- ],
146
- "supportForTags": {
147
- "@alpha": true,
148
- "@beta": true,
149
- "@defaultValue": true,
150
- "@decorator": true,
151
- "@deprecated": true,
152
- "@eventProperty": true,
153
- "@example": true,
154
- "@experimental": true,
155
- "@inheritDoc": true,
156
- "@internal": true,
157
- "@label": true,
158
- "@link": true,
159
- "@override": true,
160
- "@packageDocumentation": true,
161
- "@param": true,
162
- "@privateRemarks": true,
163
- "@public": true,
164
- "@readonly": true,
165
- "@remarks": true,
166
- "@returns": true,
167
- "@sealed": true,
168
- "@see": true,
169
- "@throws": true,
170
- "@typeParam": true,
171
- "@virtual": true,
172
- "@betaDocumentation": true,
173
- "@internalRemarks": true,
174
- "@preapproved": true
175
- },
176
- "reportUnsupportedHtmlElements": false
177
- }
178
- },
179
- "kind": "Package",
180
- "canonicalReference": "@fgv/ts-extras-argon2!",
181
- "docComment": "",
182
- "name": "@fgv/ts-extras-argon2",
183
- "preserveMemberOrder": false,
184
- "members": [
185
- {
186
- "kind": "EntryPoint",
187
- "canonicalReference": "@fgv/ts-extras-argon2!",
188
- "name": "",
189
- "preserveMemberOrder": false,
190
- "members": [
191
- {
192
- "kind": "Class",
193
- "canonicalReference": "@fgv/ts-extras-argon2!NodeArgon2Provider:class",
194
- "docComment": "/**\n * Node.js implementation of {@link @fgv/ts-extras#IArgon2idProvider} backed by the `argon2` (kelektiv) native binding.\n *\n * @public\n */\n",
195
- "excerptTokens": [
196
- {
197
- "kind": "Content",
198
- "text": "export declare class NodeArgon2Provider implements "
199
- },
200
- {
201
- "kind": "Reference",
202
- "text": "CryptoUtils.IArgon2idProvider",
203
- "canonicalReference": "@fgv/ts-extras!IArgon2idProvider:interface"
204
- },
205
- {
206
- "kind": "Content",
207
- "text": " "
208
- }
209
- ],
210
- "fileUrlPath": "src/packlets/argon2/nodeArgon2Provider.ts",
211
- "releaseTag": "Public",
212
- "isAbstract": false,
213
- "name": "NodeArgon2Provider",
214
- "preserveMemberOrder": false,
215
- "members": [
216
- {
217
- "kind": "Method",
218
- "canonicalReference": "@fgv/ts-extras-argon2!NodeArgon2Provider#argon2id:member(1)",
219
- "docComment": "/**\n * Derives a key using Argon2id.\n *\n * @param password - The password or passphrase (string or raw bytes).\n *\n * @param salt - The salt (must be at least 8 bytes; 16+ bytes recommended).\n *\n * @param params - Argon2id parameters. All values are validated before derivation.\n *\n * @param options - Optional {@link @fgv/ts-extras#CryptoUtils.IArgon2idKeyingOptions | keyed-hashing inputs} (RFC 9106 secret K and/or associated data X). Both are wired through to the underlying `argon2` binding when present and non-empty; omitting them (or passing empty arrays) leaves the output byte-identical to prior behavior.\n *\n * @returns Success with the derived key bytes, or Failure with a descriptive message.\n *\n * @public\n */\n",
220
- "excerptTokens": [
221
- {
222
- "kind": "Content",
223
- "text": "argon2id(password: "
224
- },
225
- {
226
- "kind": "Reference",
227
- "text": "Uint8Array",
228
- "canonicalReference": "!Uint8Array:interface"
229
- },
230
- {
231
- "kind": "Content",
232
- "text": " | string"
233
- },
234
- {
235
- "kind": "Content",
236
- "text": ", salt: "
237
- },
238
- {
239
- "kind": "Reference",
240
- "text": "Uint8Array",
241
- "canonicalReference": "!Uint8Array:interface"
242
- },
243
- {
244
- "kind": "Content",
245
- "text": ", params: "
246
- },
247
- {
248
- "kind": "Reference",
249
- "text": "CryptoUtils.IArgon2idParams",
250
- "canonicalReference": "@fgv/ts-extras!IArgon2idParams:interface"
251
- },
252
- {
253
- "kind": "Content",
254
- "text": ", options?: "
255
- },
256
- {
257
- "kind": "Reference",
258
- "text": "CryptoUtils.IArgon2idKeyingOptions",
259
- "canonicalReference": "@fgv/ts-extras!IArgon2idKeyingOptions:interface"
260
- },
261
- {
262
- "kind": "Content",
263
- "text": "): "
264
- },
265
- {
266
- "kind": "Reference",
267
- "text": "Promise",
268
- "canonicalReference": "!Promise:interface"
269
- },
270
- {
271
- "kind": "Content",
272
- "text": "<"
273
- },
274
- {
275
- "kind": "Reference",
276
- "text": "Result",
277
- "canonicalReference": "@fgv/ts-utils!Result:type"
278
- },
279
- {
280
- "kind": "Content",
281
- "text": "<"
282
- },
283
- {
284
- "kind": "Reference",
285
- "text": "Uint8Array",
286
- "canonicalReference": "!Uint8Array:interface"
287
- },
288
- {
289
- "kind": "Content",
290
- "text": ">>"
291
- },
292
- {
293
- "kind": "Content",
294
- "text": ";"
295
- }
296
- ],
297
- "isStatic": false,
298
- "returnTypeTokenRange": {
299
- "startIndex": 10,
300
- "endIndex": 16
301
- },
302
- "releaseTag": "Public",
303
- "isProtected": false,
304
- "overloadIndex": 1,
305
- "parameters": [
306
- {
307
- "parameterName": "password",
308
- "parameterTypeTokenRange": {
309
- "startIndex": 1,
310
- "endIndex": 3
311
- },
312
- "isOptional": false
313
- },
314
- {
315
- "parameterName": "salt",
316
- "parameterTypeTokenRange": {
317
- "startIndex": 4,
318
- "endIndex": 5
319
- },
320
- "isOptional": false
321
- },
322
- {
323
- "parameterName": "params",
324
- "parameterTypeTokenRange": {
325
- "startIndex": 6,
326
- "endIndex": 7
327
- },
328
- "isOptional": false
329
- },
330
- {
331
- "parameterName": "options",
332
- "parameterTypeTokenRange": {
333
- "startIndex": 8,
334
- "endIndex": 9
335
- },
336
- "isOptional": true
337
- }
338
- ],
339
- "isOptional": false,
340
- "isAbstract": false,
341
- "name": "argon2id"
342
- },
343
- {
344
- "kind": "Method",
345
- "canonicalReference": "@fgv/ts-extras-argon2!NodeArgon2Provider.create:member(1)",
346
- "docComment": "/**\n * Creates a new {@link NodeArgon2Provider} instance.\n *\n * @returns Success with a new provider instance.\n *\n * @public\n */\n",
347
- "excerptTokens": [
348
- {
349
- "kind": "Content",
350
- "text": "static create(): "
351
- },
352
- {
353
- "kind": "Reference",
354
- "text": "Result",
355
- "canonicalReference": "@fgv/ts-utils!Result:type"
356
- },
357
- {
358
- "kind": "Content",
359
- "text": "<"
360
- },
361
- {
362
- "kind": "Reference",
363
- "text": "NodeArgon2Provider",
364
- "canonicalReference": "@fgv/ts-extras-argon2!NodeArgon2Provider:class"
365
- },
366
- {
367
- "kind": "Content",
368
- "text": ">"
369
- },
370
- {
371
- "kind": "Content",
372
- "text": ";"
373
- }
374
- ],
375
- "isStatic": true,
376
- "returnTypeTokenRange": {
377
- "startIndex": 1,
378
- "endIndex": 5
379
- },
380
- "releaseTag": "Public",
381
- "isProtected": false,
382
- "overloadIndex": 1,
383
- "parameters": [],
384
- "isOptional": false,
385
- "isAbstract": false,
386
- "name": "create"
387
- }
388
- ],
389
- "implementsTokenRanges": [
390
- {
391
- "startIndex": 1,
392
- "endIndex": 2
393
- }
394
- ]
395
- }
396
- ]
397
- }
398
- ]
399
- }
@@ -1,20 +0,0 @@
1
- ## API Report File for "@fgv/ts-extras-argon2"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import { CryptoUtils } from '@fgv/ts-extras';
8
- import { Result } from '@fgv/ts-utils';
9
-
10
- export { CryptoUtils }
11
-
12
- // @public
13
- export class NodeArgon2Provider implements CryptoUtils.IArgon2idProvider {
14
- argon2id(password: Uint8Array | string, salt: Uint8Array, params: CryptoUtils.IArgon2idParams, options?: CryptoUtils.IArgon2idKeyingOptions): Promise<Result<Uint8Array>>;
15
- static create(): Result<NodeArgon2Provider>;
16
- }
17
-
18
- // (No @packageDocumentation comment for this package)
19
-
20
- ```
package/tsconfig.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json",
3
- "compilerOptions": {
4
- "resolveJsonModule": true,
5
- "types": ["heft-jest", "node"],
6
- "lib": ["es2020", "DOM"]
7
- }
8
- }