@alanszp/jwt 12.0.0 → 12.0.3

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 (118) hide show
  1. package/package.json +2 -5
  2. package/.gitignore +0 -3
  3. package/.npmignore +0 -3
  4. package/node_modules/@types/node/LICENSE +0 -21
  5. package/node_modules/@types/node/README.md +0 -15
  6. package/node_modules/@types/node/assert/strict.d.ts +0 -8
  7. package/node_modules/@types/node/assert.d.ts +0 -996
  8. package/node_modules/@types/node/async_hooks.d.ts +0 -539
  9. package/node_modules/@types/node/buffer.d.ts +0 -2362
  10. package/node_modules/@types/node/child_process.d.ts +0 -1540
  11. package/node_modules/@types/node/cluster.d.ts +0 -432
  12. package/node_modules/@types/node/console.d.ts +0 -415
  13. package/node_modules/@types/node/constants.d.ts +0 -19
  14. package/node_modules/@types/node/crypto.d.ts +0 -4487
  15. package/node_modules/@types/node/dgram.d.ts +0 -596
  16. package/node_modules/@types/node/diagnostics_channel.d.ts +0 -545
  17. package/node_modules/@types/node/dns/promises.d.ts +0 -425
  18. package/node_modules/@types/node/dns.d.ts +0 -809
  19. package/node_modules/@types/node/dom-events.d.ts +0 -122
  20. package/node_modules/@types/node/domain.d.ts +0 -170
  21. package/node_modules/@types/node/events.d.ts +0 -879
  22. package/node_modules/@types/node/fs/promises.d.ts +0 -1239
  23. package/node_modules/@types/node/fs.d.ts +0 -4311
  24. package/node_modules/@types/node/globals.d.ts +0 -411
  25. package/node_modules/@types/node/globals.global.d.ts +0 -1
  26. package/node_modules/@types/node/http.d.ts +0 -1887
  27. package/node_modules/@types/node/http2.d.ts +0 -2382
  28. package/node_modules/@types/node/https.d.ts +0 -550
  29. package/node_modules/@types/node/index.d.ts +0 -88
  30. package/node_modules/@types/node/inspector.d.ts +0 -2747
  31. package/node_modules/@types/node/module.d.ts +0 -315
  32. package/node_modules/@types/node/net.d.ts +0 -949
  33. package/node_modules/@types/node/os.d.ts +0 -478
  34. package/node_modules/@types/node/package.json +0 -229
  35. package/node_modules/@types/node/path.d.ts +0 -191
  36. package/node_modules/@types/node/perf_hooks.d.ts +0 -645
  37. package/node_modules/@types/node/process.d.ts +0 -1561
  38. package/node_modules/@types/node/punycode.d.ts +0 -117
  39. package/node_modules/@types/node/querystring.d.ts +0 -141
  40. package/node_modules/@types/node/readline/promises.d.ts +0 -150
  41. package/node_modules/@types/node/readline.d.ts +0 -539
  42. package/node_modules/@types/node/repl.d.ts +0 -430
  43. package/node_modules/@types/node/stream/consumers.d.ts +0 -12
  44. package/node_modules/@types/node/stream/promises.d.ts +0 -83
  45. package/node_modules/@types/node/stream/web.d.ts +0 -366
  46. package/node_modules/@types/node/stream.d.ts +0 -1701
  47. package/node_modules/@types/node/string_decoder.d.ts +0 -67
  48. package/node_modules/@types/node/test.d.ts +0 -1465
  49. package/node_modules/@types/node/timers/promises.d.ts +0 -93
  50. package/node_modules/@types/node/timers.d.ts +0 -240
  51. package/node_modules/@types/node/tls.d.ts +0 -1210
  52. package/node_modules/@types/node/trace_events.d.ts +0 -182
  53. package/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
  54. package/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
  55. package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
  56. package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
  57. package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
  58. package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
  59. package/node_modules/@types/node/ts4.8/console.d.ts +0 -415
  60. package/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
  61. package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
  62. package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
  63. package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
  64. package/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
  65. package/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
  66. package/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
  67. package/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
  68. package/node_modules/@types/node/ts4.8/events.d.ts +0 -879
  69. package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
  70. package/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
  71. package/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
  72. package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
  73. package/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
  74. package/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
  75. package/node_modules/@types/node/ts4.8/https.d.ts +0 -550
  76. package/node_modules/@types/node/ts4.8/index.d.ts +0 -88
  77. package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
  78. package/node_modules/@types/node/ts4.8/module.d.ts +0 -315
  79. package/node_modules/@types/node/ts4.8/net.d.ts +0 -949
  80. package/node_modules/@types/node/ts4.8/os.d.ts +0 -478
  81. package/node_modules/@types/node/ts4.8/path.d.ts +0 -191
  82. package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
  83. package/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
  84. package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
  85. package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
  86. package/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
  87. package/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
  88. package/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
  89. package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
  90. package/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
  91. package/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
  92. package/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
  93. package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
  94. package/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
  95. package/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
  96. package/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
  97. package/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
  98. package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
  99. package/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
  100. package/node_modules/@types/node/ts4.8/url.d.ts +0 -927
  101. package/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
  102. package/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
  103. package/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
  104. package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
  105. package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
  106. package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
  107. package/node_modules/@types/node/tty.d.ts +0 -208
  108. package/node_modules/@types/node/url.d.ts +0 -927
  109. package/node_modules/@types/node/util.d.ts +0 -2183
  110. package/node_modules/@types/node/v8.d.ts +0 -764
  111. package/node_modules/@types/node/vm.d.ts +0 -903
  112. package/node_modules/@types/node/wasi.d.ts +0 -179
  113. package/node_modules/@types/node/worker_threads.d.ts +0 -691
  114. package/node_modules/@types/node/zlib.d.ts +0 -517
  115. package/src/JWTUser.ts +0 -85
  116. package/src/index.ts +0 -3
  117. package/src/jwt.ts +0 -81
  118. package/src/types.ts +0 -31
@@ -1,67 +0,0 @@
1
- /**
2
- * The `node:string_decoder` module provides an API for decoding `Buffer` objects
3
- * into strings in a manner that preserves encoded multi-byte UTF-8 and UTF-16
4
- * characters. It can be accessed using:
5
- *
6
- * ```js
7
- * const { StringDecoder } = require('node:string_decoder');
8
- * ```
9
- *
10
- * The following example shows the basic use of the `StringDecoder` class.
11
- *
12
- * ```js
13
- * const { StringDecoder } = require('node:string_decoder');
14
- * const decoder = new StringDecoder('utf8');
15
- *
16
- * const cent = Buffer.from([0xC2, 0xA2]);
17
- * console.log(decoder.write(cent)); // Prints: ¢
18
- *
19
- * const euro = Buffer.from([0xE2, 0x82, 0xAC]);
20
- * console.log(decoder.write(euro)); // Prints: €
21
- * ```
22
- *
23
- * When a `Buffer` instance is written to the `StringDecoder` instance, an
24
- * internal buffer is used to ensure that the decoded string does not contain
25
- * any incomplete multibyte characters. These are held in the buffer until the
26
- * next call to `stringDecoder.write()` or until `stringDecoder.end()` is called.
27
- *
28
- * In the following example, the three UTF-8 encoded bytes of the European Euro
29
- * symbol (`€`) are written over three separate operations:
30
- *
31
- * ```js
32
- * const { StringDecoder } = require('node:string_decoder');
33
- * const decoder = new StringDecoder('utf8');
34
- *
35
- * decoder.write(Buffer.from([0xE2]));
36
- * decoder.write(Buffer.from([0x82]));
37
- * console.log(decoder.end(Buffer.from([0xAC]))); // Prints: €
38
- * ```
39
- * @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/string_decoder.js)
40
- */
41
- declare module "string_decoder" {
42
- class StringDecoder {
43
- constructor(encoding?: BufferEncoding);
44
- /**
45
- * Returns a decoded string, ensuring that any incomplete multibyte characters at
46
- * the end of the `Buffer`, or `TypedArray`, or `DataView` are omitted from the
47
- * returned string and stored in an internal buffer for the next call to`stringDecoder.write()` or `stringDecoder.end()`.
48
- * @since v0.1.99
49
- * @param buffer The bytes to decode.
50
- */
51
- write(buffer: string | Buffer | NodeJS.ArrayBufferView): string;
52
- /**
53
- * Returns any remaining input stored in the internal buffer as a string. Bytes
54
- * representing incomplete UTF-8 and UTF-16 characters will be replaced with
55
- * substitution characters appropriate for the character encoding.
56
- *
57
- * If the `buffer` argument is provided, one final call to `stringDecoder.write()`is performed before returning the remaining input.
58
- * After `end()` is called, the `stringDecoder` object can be reused for new input.
59
- * @since v0.9.3
60
- * @param buffer The bytes to decode.
61
- */
62
- end(buffer?: string | Buffer | NodeJS.ArrayBufferView): string;
63
- }
64
- }
65
- declare module "node:string_decoder" {
66
- export * from "string_decoder";
67
- }