rahad-all-downloader 2.1.15 → 2.1.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. package/.github/workflows/Run.yml +20 -0
  2. package/README.md +0 -1
  3. package/index.js +1 -1
  4. package/package.json +4 -2
  5. package/.cache/nix/binary-cache-v6.sqlite +0 -0
  6. package/.cache/nix/binary-cache-v6.sqlite-journal +0 -0
  7. package/.cache/replit/modules/nix.res +0 -1
  8. package/.cache/replit/modules/nodejs-20.res +0 -1
  9. package/.cache/replit/modules/replit.res +0 -1
  10. package/.cache/replit/modules.stamp +0 -0
  11. package/.cache/replit/nix/env.json +0 -1
  12. package/.cache/typescript/5.4/node_modules/.package-lock.json +0 -137
  13. package/.cache/typescript/5.4/node_modules/@types/caseless/LICENSE +0 -21
  14. package/.cache/typescript/5.4/node_modules/@types/caseless/README.md +0 -48
  15. package/.cache/typescript/5.4/node_modules/@types/caseless/index.d.ts +0 -29
  16. package/.cache/typescript/5.4/node_modules/@types/caseless/package.json +0 -35
  17. package/.cache/typescript/5.4/node_modules/@types/node/LICENSE +0 -21
  18. package/.cache/typescript/5.4/node_modules/@types/node/README.md +0 -15
  19. package/.cache/typescript/5.4/node_modules/@types/node/assert/strict.d.ts +0 -8
  20. package/.cache/typescript/5.4/node_modules/@types/node/assert.d.ts +0 -1040
  21. package/.cache/typescript/5.4/node_modules/@types/node/async_hooks.d.ts +0 -541
  22. package/.cache/typescript/5.4/node_modules/@types/node/buffer.d.ts +0 -2363
  23. package/.cache/typescript/5.4/node_modules/@types/node/child_process.d.ts +0 -1544
  24. package/.cache/typescript/5.4/node_modules/@types/node/cluster.d.ts +0 -578
  25. package/.cache/typescript/5.4/node_modules/@types/node/console.d.ts +0 -452
  26. package/.cache/typescript/5.4/node_modules/@types/node/constants.d.ts +0 -19
  27. package/.cache/typescript/5.4/node_modules/@types/node/crypto.d.ts +0 -4523
  28. package/.cache/typescript/5.4/node_modules/@types/node/dgram.d.ts +0 -596
  29. package/.cache/typescript/5.4/node_modules/@types/node/diagnostics_channel.d.ts +0 -554
  30. package/.cache/typescript/5.4/node_modules/@types/node/dns/promises.d.ts +0 -474
  31. package/.cache/typescript/5.4/node_modules/@types/node/dns.d.ts +0 -864
  32. package/.cache/typescript/5.4/node_modules/@types/node/dom-events.d.ts +0 -124
  33. package/.cache/typescript/5.4/node_modules/@types/node/domain.d.ts +0 -170
  34. package/.cache/typescript/5.4/node_modules/@types/node/events.d.ts +0 -909
  35. package/.cache/typescript/5.4/node_modules/@types/node/fs/promises.d.ts +0 -1245
  36. package/.cache/typescript/5.4/node_modules/@types/node/fs.d.ts +0 -4317
  37. package/.cache/typescript/5.4/node_modules/@types/node/globals.d.ts +0 -411
  38. package/.cache/typescript/5.4/node_modules/@types/node/globals.global.d.ts +0 -1
  39. package/.cache/typescript/5.4/node_modules/@types/node/http.d.ts +0 -1908
  40. package/.cache/typescript/5.4/node_modules/@types/node/http2.d.ts +0 -2418
  41. package/.cache/typescript/5.4/node_modules/@types/node/https.d.ts +0 -550
  42. package/.cache/typescript/5.4/node_modules/@types/node/index.d.ts +0 -89
  43. package/.cache/typescript/5.4/node_modules/@types/node/inspector.d.ts +0 -2746
  44. package/.cache/typescript/5.4/node_modules/@types/node/module.d.ts +0 -315
  45. package/.cache/typescript/5.4/node_modules/@types/node/net.d.ts +0 -999
  46. package/.cache/typescript/5.4/node_modules/@types/node/os.d.ts +0 -495
  47. package/.cache/typescript/5.4/node_modules/@types/node/package.json +0 -217
  48. package/.cache/typescript/5.4/node_modules/@types/node/path.d.ts +0 -191
  49. package/.cache/typescript/5.4/node_modules/@types/node/perf_hooks.d.ts +0 -905
  50. package/.cache/typescript/5.4/node_modules/@types/node/process.d.ts +0 -1754
  51. package/.cache/typescript/5.4/node_modules/@types/node/punycode.d.ts +0 -117
  52. package/.cache/typescript/5.4/node_modules/@types/node/querystring.d.ts +0 -153
  53. package/.cache/typescript/5.4/node_modules/@types/node/readline/promises.d.ts +0 -150
  54. package/.cache/typescript/5.4/node_modules/@types/node/readline.d.ts +0 -540
  55. package/.cache/typescript/5.4/node_modules/@types/node/repl.d.ts +0 -430
  56. package/.cache/typescript/5.4/node_modules/@types/node/sea.d.ts +0 -153
  57. package/.cache/typescript/5.4/node_modules/@types/node/stream/consumers.d.ts +0 -12
  58. package/.cache/typescript/5.4/node_modules/@types/node/stream/promises.d.ts +0 -83
  59. package/.cache/typescript/5.4/node_modules/@types/node/stream/web.d.ts +0 -367
  60. package/.cache/typescript/5.4/node_modules/@types/node/stream.d.ts +0 -1707
  61. package/.cache/typescript/5.4/node_modules/@types/node/string_decoder.d.ts +0 -67
  62. package/.cache/typescript/5.4/node_modules/@types/node/test.d.ts +0 -1718
  63. package/.cache/typescript/5.4/node_modules/@types/node/timers/promises.d.ts +0 -97
  64. package/.cache/typescript/5.4/node_modules/@types/node/timers.d.ts +0 -240
  65. package/.cache/typescript/5.4/node_modules/@types/node/tls.d.ts +0 -1217
  66. package/.cache/typescript/5.4/node_modules/@types/node/trace_events.d.ts +0 -197
  67. package/.cache/typescript/5.4/node_modules/@types/node/tty.d.ts +0 -208
  68. package/.cache/typescript/5.4/node_modules/@types/node/url.d.ts +0 -952
  69. package/.cache/typescript/5.4/node_modules/@types/node/util.d.ts +0 -2292
  70. package/.cache/typescript/5.4/node_modules/@types/node/v8.d.ts +0 -808
  71. package/.cache/typescript/5.4/node_modules/@types/node/vm.d.ts +0 -924
  72. package/.cache/typescript/5.4/node_modules/@types/node/wasi.d.ts +0 -181
  73. package/.cache/typescript/5.4/node_modules/@types/node/worker_threads.d.ts +0 -691
  74. package/.cache/typescript/5.4/node_modules/@types/node/zlib.d.ts +0 -530
  75. package/.cache/typescript/5.4/node_modules/@types/node-fetch/LICENSE +0 -21
  76. package/.cache/typescript/5.4/node_modules/@types/node-fetch/README.md +0 -15
  77. package/.cache/typescript/5.4/node_modules/@types/node-fetch/externals.d.ts +0 -32
  78. package/.cache/typescript/5.4/node_modules/@types/node-fetch/index.d.ts +0 -238
  79. package/.cache/typescript/5.4/node_modules/@types/node-fetch/package.json +0 -83
  80. package/.cache/typescript/5.4/node_modules/@types/request/LICENSE +0 -21
  81. package/.cache/typescript/5.4/node_modules/@types/request/README.md +0 -15
  82. package/.cache/typescript/5.4/node_modules/@types/request/index.d.ts +0 -395
  83. package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/License +0 -19
  84. package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/README.md +0 -350
  85. package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/README.md.bak +0 -350
  86. package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/index.d.ts +0 -51
  87. package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/lib/browser.js +0 -2
  88. package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/lib/form_data.js +0 -483
  89. package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/lib/populate.js +0 -10
  90. package/.cache/typescript/5.4/node_modules/@types/request/node_modules/form-data/package.json +0 -68
  91. package/.cache/typescript/5.4/node_modules/@types/request/package.json +0 -70
  92. package/.cache/typescript/5.4/node_modules/@types/tough-cookie/LICENSE +0 -21
  93. package/.cache/typescript/5.4/node_modules/@types/tough-cookie/README.md +0 -15
  94. package/.cache/typescript/5.4/node_modules/@types/tough-cookie/index.d.ts +0 -321
  95. package/.cache/typescript/5.4/node_modules/@types/tough-cookie/package.json +0 -35
  96. package/.cache/typescript/5.4/node_modules/asynckit/LICENSE +0 -21
  97. package/.cache/typescript/5.4/node_modules/asynckit/README.md +0 -233
  98. package/.cache/typescript/5.4/node_modules/asynckit/bench.js +0 -76
  99. package/.cache/typescript/5.4/node_modules/asynckit/index.js +0 -6
  100. package/.cache/typescript/5.4/node_modules/asynckit/lib/abort.js +0 -29
  101. package/.cache/typescript/5.4/node_modules/asynckit/lib/async.js +0 -34
  102. package/.cache/typescript/5.4/node_modules/asynckit/lib/defer.js +0 -26
  103. package/.cache/typescript/5.4/node_modules/asynckit/lib/iterate.js +0 -75
  104. package/.cache/typescript/5.4/node_modules/asynckit/lib/readable_asynckit.js +0 -91
  105. package/.cache/typescript/5.4/node_modules/asynckit/lib/readable_parallel.js +0 -25
  106. package/.cache/typescript/5.4/node_modules/asynckit/lib/readable_serial.js +0 -25
  107. package/.cache/typescript/5.4/node_modules/asynckit/lib/readable_serial_ordered.js +0 -29
  108. package/.cache/typescript/5.4/node_modules/asynckit/lib/state.js +0 -37
  109. package/.cache/typescript/5.4/node_modules/asynckit/lib/streamify.js +0 -141
  110. package/.cache/typescript/5.4/node_modules/asynckit/lib/terminator.js +0 -29
  111. package/.cache/typescript/5.4/node_modules/asynckit/package.json +0 -63
  112. package/.cache/typescript/5.4/node_modules/asynckit/parallel.js +0 -43
  113. package/.cache/typescript/5.4/node_modules/asynckit/serial.js +0 -17
  114. package/.cache/typescript/5.4/node_modules/asynckit/serialOrdered.js +0 -75
  115. package/.cache/typescript/5.4/node_modules/asynckit/stream.js +0 -21
  116. package/.cache/typescript/5.4/node_modules/combined-stream/License +0 -19
  117. package/.cache/typescript/5.4/node_modules/combined-stream/Readme.md +0 -138
  118. package/.cache/typescript/5.4/node_modules/combined-stream/lib/combined_stream.js +0 -208
  119. package/.cache/typescript/5.4/node_modules/combined-stream/package.json +0 -25
  120. package/.cache/typescript/5.4/node_modules/combined-stream/yarn.lock +0 -17
  121. package/.cache/typescript/5.4/node_modules/delayed-stream/License +0 -19
  122. package/.cache/typescript/5.4/node_modules/delayed-stream/Makefile +0 -7
  123. package/.cache/typescript/5.4/node_modules/delayed-stream/Readme.md +0 -141
  124. package/.cache/typescript/5.4/node_modules/delayed-stream/lib/delayed_stream.js +0 -107
  125. package/.cache/typescript/5.4/node_modules/delayed-stream/package.json +0 -27
  126. package/.cache/typescript/5.4/node_modules/form-data/License +0 -19
  127. package/.cache/typescript/5.4/node_modules/form-data/README.md.bak +0 -358
  128. package/.cache/typescript/5.4/node_modules/form-data/Readme.md +0 -358
  129. package/.cache/typescript/5.4/node_modules/form-data/index.d.ts +0 -62
  130. package/.cache/typescript/5.4/node_modules/form-data/lib/browser.js +0 -2
  131. package/.cache/typescript/5.4/node_modules/form-data/lib/form_data.js +0 -501
  132. package/.cache/typescript/5.4/node_modules/form-data/lib/populate.js +0 -10
  133. package/.cache/typescript/5.4/node_modules/form-data/package.json +0 -68
  134. package/.cache/typescript/5.4/node_modules/mime-db/HISTORY.md +0 -507
  135. package/.cache/typescript/5.4/node_modules/mime-db/LICENSE +0 -23
  136. package/.cache/typescript/5.4/node_modules/mime-db/README.md +0 -100
  137. package/.cache/typescript/5.4/node_modules/mime-db/db.json +0 -8519
  138. package/.cache/typescript/5.4/node_modules/mime-db/index.js +0 -12
  139. package/.cache/typescript/5.4/node_modules/mime-db/package.json +0 -60
  140. package/.cache/typescript/5.4/node_modules/mime-types/HISTORY.md +0 -397
  141. package/.cache/typescript/5.4/node_modules/mime-types/LICENSE +0 -23
  142. package/.cache/typescript/5.4/node_modules/mime-types/README.md +0 -113
  143. package/.cache/typescript/5.4/node_modules/mime-types/index.js +0 -188
  144. package/.cache/typescript/5.4/node_modules/mime-types/package.json +0 -44
  145. package/.cache/typescript/5.4/node_modules/types-registry/README.md +0 -2
  146. package/.cache/typescript/5.4/node_modules/types-registry/index.json +0 -1
  147. package/.cache/typescript/5.4/node_modules/types-registry/package.json +0 -20
  148. package/.cache/typescript/5.4/node_modules/undici-types/README.md +0 -6
  149. package/.cache/typescript/5.4/node_modules/undici-types/agent.d.ts +0 -31
  150. package/.cache/typescript/5.4/node_modules/undici-types/api.d.ts +0 -43
  151. package/.cache/typescript/5.4/node_modules/undici-types/balanced-pool.d.ts +0 -18
  152. package/.cache/typescript/5.4/node_modules/undici-types/cache.d.ts +0 -36
  153. package/.cache/typescript/5.4/node_modules/undici-types/client.d.ts +0 -97
  154. package/.cache/typescript/5.4/node_modules/undici-types/connector.d.ts +0 -34
  155. package/.cache/typescript/5.4/node_modules/undici-types/content-type.d.ts +0 -21
  156. package/.cache/typescript/5.4/node_modules/undici-types/cookies.d.ts +0 -28
  157. package/.cache/typescript/5.4/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
  158. package/.cache/typescript/5.4/node_modules/undici-types/dispatcher.d.ts +0 -241
  159. package/.cache/typescript/5.4/node_modules/undici-types/errors.d.ts +0 -128
  160. package/.cache/typescript/5.4/node_modules/undici-types/fetch.d.ts +0 -209
  161. package/.cache/typescript/5.4/node_modules/undici-types/file.d.ts +0 -39
  162. package/.cache/typescript/5.4/node_modules/undici-types/filereader.d.ts +0 -54
  163. package/.cache/typescript/5.4/node_modules/undici-types/formdata.d.ts +0 -108
  164. package/.cache/typescript/5.4/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  165. package/.cache/typescript/5.4/node_modules/undici-types/global-origin.d.ts +0 -7
  166. package/.cache/typescript/5.4/node_modules/undici-types/handlers.d.ts +0 -9
  167. package/.cache/typescript/5.4/node_modules/undici-types/header.d.ts +0 -4
  168. package/.cache/typescript/5.4/node_modules/undici-types/index.d.ts +0 -63
  169. package/.cache/typescript/5.4/node_modules/undici-types/interceptors.d.ts +0 -5
  170. package/.cache/typescript/5.4/node_modules/undici-types/mock-agent.d.ts +0 -50
  171. package/.cache/typescript/5.4/node_modules/undici-types/mock-client.d.ts +0 -25
  172. package/.cache/typescript/5.4/node_modules/undici-types/mock-errors.d.ts +0 -12
  173. package/.cache/typescript/5.4/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  174. package/.cache/typescript/5.4/node_modules/undici-types/mock-pool.d.ts +0 -25
  175. package/.cache/typescript/5.4/node_modules/undici-types/package.json +0 -55
  176. package/.cache/typescript/5.4/node_modules/undici-types/patch.d.ts +0 -71
  177. package/.cache/typescript/5.4/node_modules/undici-types/pool-stats.d.ts +0 -19
  178. package/.cache/typescript/5.4/node_modules/undici-types/pool.d.ts +0 -28
  179. package/.cache/typescript/5.4/node_modules/undici-types/proxy-agent.d.ts +0 -30
  180. package/.cache/typescript/5.4/node_modules/undici-types/readable.d.ts +0 -61
  181. package/.cache/typescript/5.4/node_modules/undici-types/webidl.d.ts +0 -220
  182. package/.cache/typescript/5.4/node_modules/undici-types/websocket.d.ts +0 -131
  183. package/.cache/typescript/5.4/package-lock.json +0 -146
  184. package/.cache/typescript/5.4/package.json +0 -1
  185. package/.replit +0 -21
  186. package/replit.nix +0 -3
@@ -1,220 +0,0 @@
1
- // These types are not exported, and are only used internally
2
-
3
- /**
4
- * Take in an unknown value and return one that is of type T
5
- */
6
- type Converter<T> = (object: unknown) => T
7
-
8
- type SequenceConverter<T> = (object: unknown) => T[]
9
-
10
- type RecordConverter<K extends string, V> = (object: unknown) => Record<K, V>
11
-
12
- interface ConvertToIntOpts {
13
- clamp?: boolean
14
- enforceRange?: boolean
15
- }
16
-
17
- interface WebidlErrors {
18
- exception (opts: { header: string, message: string }): TypeError
19
- /**
20
- * @description Throw an error when conversion from one type to another has failed
21
- */
22
- conversionFailed (opts: {
23
- prefix: string
24
- argument: string
25
- types: string[]
26
- }): TypeError
27
- /**
28
- * @description Throw an error when an invalid argument is provided
29
- */
30
- invalidArgument (opts: {
31
- prefix: string
32
- value: string
33
- type: string
34
- }): TypeError
35
- }
36
-
37
- interface WebidlUtil {
38
- /**
39
- * @see https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values
40
- */
41
- Type (object: unknown):
42
- | 'Undefined'
43
- | 'Boolean'
44
- | 'String'
45
- | 'Symbol'
46
- | 'Number'
47
- | 'BigInt'
48
- | 'Null'
49
- | 'Object'
50
-
51
- /**
52
- * @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
53
- */
54
- ConvertToInt (
55
- V: unknown,
56
- bitLength: number,
57
- signedness: 'signed' | 'unsigned',
58
- opts?: ConvertToIntOpts
59
- ): number
60
-
61
- /**
62
- * @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
63
- */
64
- IntegerPart (N: number): number
65
- }
66
-
67
- interface WebidlConverters {
68
- /**
69
- * @see https://webidl.spec.whatwg.org/#es-DOMString
70
- */
71
- DOMString (V: unknown, opts?: {
72
- legacyNullToEmptyString: boolean
73
- }): string
74
-
75
- /**
76
- * @see https://webidl.spec.whatwg.org/#es-ByteString
77
- */
78
- ByteString (V: unknown): string
79
-
80
- /**
81
- * @see https://webidl.spec.whatwg.org/#es-USVString
82
- */
83
- USVString (V: unknown): string
84
-
85
- /**
86
- * @see https://webidl.spec.whatwg.org/#es-boolean
87
- */
88
- boolean (V: unknown): boolean
89
-
90
- /**
91
- * @see https://webidl.spec.whatwg.org/#es-any
92
- */
93
- any <Value>(V: Value): Value
94
-
95
- /**
96
- * @see https://webidl.spec.whatwg.org/#es-long-long
97
- */
98
- ['long long'] (V: unknown): number
99
-
100
- /**
101
- * @see https://webidl.spec.whatwg.org/#es-unsigned-long-long
102
- */
103
- ['unsigned long long'] (V: unknown): number
104
-
105
- /**
106
- * @see https://webidl.spec.whatwg.org/#es-unsigned-long
107
- */
108
- ['unsigned long'] (V: unknown): number
109
-
110
- /**
111
- * @see https://webidl.spec.whatwg.org/#es-unsigned-short
112
- */
113
- ['unsigned short'] (V: unknown, opts?: ConvertToIntOpts): number
114
-
115
- /**
116
- * @see https://webidl.spec.whatwg.org/#idl-ArrayBuffer
117
- */
118
- ArrayBuffer (V: unknown): ArrayBufferLike
119
- ArrayBuffer (V: unknown, opts: { allowShared: false }): ArrayBuffer
120
-
121
- /**
122
- * @see https://webidl.spec.whatwg.org/#es-buffer-source-types
123
- */
124
- TypedArray (
125
- V: unknown,
126
- TypedArray: NodeJS.TypedArray | ArrayBufferLike
127
- ): NodeJS.TypedArray | ArrayBufferLike
128
- TypedArray (
129
- V: unknown,
130
- TypedArray: NodeJS.TypedArray | ArrayBufferLike,
131
- opts?: { allowShared: false }
132
- ): NodeJS.TypedArray | ArrayBuffer
133
-
134
- /**
135
- * @see https://webidl.spec.whatwg.org/#es-buffer-source-types
136
- */
137
- DataView (V: unknown, opts?: { allowShared: boolean }): DataView
138
-
139
- /**
140
- * @see https://webidl.spec.whatwg.org/#BufferSource
141
- */
142
- BufferSource (
143
- V: unknown,
144
- opts?: { allowShared: boolean }
145
- ): NodeJS.TypedArray | ArrayBufferLike | DataView
146
-
147
- ['sequence<ByteString>']: SequenceConverter<string>
148
-
149
- ['sequence<sequence<ByteString>>']: SequenceConverter<string[]>
150
-
151
- ['record<ByteString, ByteString>']: RecordConverter<string, string>
152
-
153
- [Key: string]: (...args: any[]) => unknown
154
- }
155
-
156
- export interface Webidl {
157
- errors: WebidlErrors
158
- util: WebidlUtil
159
- converters: WebidlConverters
160
-
161
- /**
162
- * @description Performs a brand-check on {@param V} to ensure it is a
163
- * {@param cls} object.
164
- */
165
- brandCheck <Interface>(V: unknown, cls: Interface, opts?: { strict?: boolean }): asserts V is Interface
166
-
167
- /**
168
- * @see https://webidl.spec.whatwg.org/#es-sequence
169
- * @description Convert a value, V, to a WebIDL sequence type.
170
- */
171
- sequenceConverter <Type>(C: Converter<Type>): SequenceConverter<Type>
172
-
173
- illegalConstructor (): never
174
-
175
- /**
176
- * @see https://webidl.spec.whatwg.org/#es-to-record
177
- * @description Convert a value, V, to a WebIDL record type.
178
- */
179
- recordConverter <K extends string, V>(
180
- keyConverter: Converter<K>,
181
- valueConverter: Converter<V>
182
- ): RecordConverter<K, V>
183
-
184
- /**
185
- * Similar to {@link Webidl.brandCheck} but allows skipping the check if third party
186
- * interfaces are allowed.
187
- */
188
- interfaceConverter <Interface>(cls: Interface): (
189
- V: unknown,
190
- opts?: { strict: boolean }
191
- ) => asserts V is typeof cls
192
-
193
- // TODO(@KhafraDev): a type could likely be implemented that can infer the return type
194
- // from the converters given?
195
- /**
196
- * Converts a value, V, to a WebIDL dictionary types. Allows limiting which keys are
197
- * allowed, values allowed, optional and required keys. Auto converts the value to
198
- * a type given a converter.
199
- */
200
- dictionaryConverter (converters: {
201
- key: string,
202
- defaultValue?: unknown,
203
- required?: boolean,
204
- converter: (...args: unknown[]) => unknown,
205
- allowedValues?: unknown[]
206
- }[]): (V: unknown) => Record<string, unknown>
207
-
208
- /**
209
- * @see https://webidl.spec.whatwg.org/#idl-nullable-type
210
- * @description allows a type, V, to be null
211
- */
212
- nullableConverter <T>(
213
- converter: Converter<T>
214
- ): (V: unknown) => ReturnType<typeof converter> | null
215
-
216
- argumentLengthCheck (args: { length: number }, min: number, context: {
217
- header: string
218
- message?: string
219
- }): void
220
- }
@@ -1,131 +0,0 @@
1
- /// <reference types="node" />
2
-
3
- import type { Blob } from 'buffer'
4
- import type { MessagePort } from 'worker_threads'
5
- import {
6
- EventTarget,
7
- Event,
8
- EventInit,
9
- EventListenerOptions,
10
- AddEventListenerOptions,
11
- EventListenerOrEventListenerObject
12
- } from './patch'
13
- import Dispatcher from './dispatcher'
14
- import { HeadersInit } from './fetch'
15
-
16
- export type BinaryType = 'blob' | 'arraybuffer'
17
-
18
- interface WebSocketEventMap {
19
- close: CloseEvent
20
- error: Event
21
- message: MessageEvent
22
- open: Event
23
- }
24
-
25
- interface WebSocket extends EventTarget {
26
- binaryType: BinaryType
27
-
28
- readonly bufferedAmount: number
29
- readonly extensions: string
30
-
31
- onclose: ((this: WebSocket, ev: WebSocketEventMap['close']) => any) | null
32
- onerror: ((this: WebSocket, ev: WebSocketEventMap['error']) => any) | null
33
- onmessage: ((this: WebSocket, ev: WebSocketEventMap['message']) => any) | null
34
- onopen: ((this: WebSocket, ev: WebSocketEventMap['open']) => any) | null
35
-
36
- readonly protocol: string
37
- readonly readyState: number
38
- readonly url: string
39
-
40
- close(code?: number, reason?: string): void
41
- send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void
42
-
43
- readonly CLOSED: number
44
- readonly CLOSING: number
45
- readonly CONNECTING: number
46
- readonly OPEN: number
47
-
48
- addEventListener<K extends keyof WebSocketEventMap>(
49
- type: K,
50
- listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any,
51
- options?: boolean | AddEventListenerOptions
52
- ): void
53
- addEventListener(
54
- type: string,
55
- listener: EventListenerOrEventListenerObject,
56
- options?: boolean | AddEventListenerOptions
57
- ): void
58
- removeEventListener<K extends keyof WebSocketEventMap>(
59
- type: K,
60
- listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any,
61
- options?: boolean | EventListenerOptions
62
- ): void
63
- removeEventListener(
64
- type: string,
65
- listener: EventListenerOrEventListenerObject,
66
- options?: boolean | EventListenerOptions
67
- ): void
68
- }
69
-
70
- export declare const WebSocket: {
71
- prototype: WebSocket
72
- new (url: string | URL, protocols?: string | string[] | WebSocketInit): WebSocket
73
- readonly CLOSED: number
74
- readonly CLOSING: number
75
- readonly CONNECTING: number
76
- readonly OPEN: number
77
- }
78
-
79
- interface CloseEventInit extends EventInit {
80
- code?: number
81
- reason?: string
82
- wasClean?: boolean
83
- }
84
-
85
- interface CloseEvent extends Event {
86
- readonly code: number
87
- readonly reason: string
88
- readonly wasClean: boolean
89
- }
90
-
91
- export declare const CloseEvent: {
92
- prototype: CloseEvent
93
- new (type: string, eventInitDict?: CloseEventInit): CloseEvent
94
- }
95
-
96
- interface MessageEventInit<T = any> extends EventInit {
97
- data?: T
98
- lastEventId?: string
99
- origin?: string
100
- ports?: (typeof MessagePort)[]
101
- source?: typeof MessagePort | null
102
- }
103
-
104
- interface MessageEvent<T = any> extends Event {
105
- readonly data: T
106
- readonly lastEventId: string
107
- readonly origin: string
108
- readonly ports: ReadonlyArray<typeof MessagePort>
109
- readonly source: typeof MessagePort | null
110
- initMessageEvent(
111
- type: string,
112
- bubbles?: boolean,
113
- cancelable?: boolean,
114
- data?: any,
115
- origin?: string,
116
- lastEventId?: string,
117
- source?: typeof MessagePort | null,
118
- ports?: (typeof MessagePort)[]
119
- ): void;
120
- }
121
-
122
- export declare const MessageEvent: {
123
- prototype: MessageEvent
124
- new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>
125
- }
126
-
127
- interface WebSocketInit {
128
- protocols?: string | string[],
129
- dispatcher?: Dispatcher,
130
- headers?: HeadersInit
131
- }
@@ -1,146 +0,0 @@
1
- {
2
- "name": "5.4",
3
- "lockfileVersion": 3,
4
- "requires": true,
5
- "packages": {
6
- "": {
7
- "dependencies": {
8
- "types-registry": "^0.1.685"
9
- },
10
- "devDependencies": {
11
- "@types/node-fetch": "^2.6.11",
12
- "@types/request": "^2.48.12"
13
- }
14
- },
15
- "node_modules/@types/caseless": {
16
- "version": "0.12.5",
17
- "resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.5.tgz",
18
- "integrity": "sha512-hWtVTC2q7hc7xZ/RLbxapMvDMgUnDvKvMOpKal4DrMyfGBUfB1oKaZlIRr6mJL+If3bAP6sV/QneGzF6tJjZDg==",
19
- "dev": true
20
- },
21
- "node_modules/@types/node": {
22
- "version": "20.14.2",
23
- "resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.2.tgz",
24
- "integrity": "sha512-xyu6WAMVwv6AKFLB+e/7ySZVr/0zLCzOa7rSpq6jNwpqOrUbcACDWC+53d4n2QHOnDou0fbIsg8wZu/sxrnI4Q==",
25
- "dev": true,
26
- "dependencies": {
27
- "undici-types": "~5.26.4"
28
- }
29
- },
30
- "node_modules/@types/node-fetch": {
31
- "version": "2.6.11",
32
- "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.11.tgz",
33
- "integrity": "sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==",
34
- "dev": true,
35
- "dependencies": {
36
- "@types/node": "*",
37
- "form-data": "^4.0.0"
38
- }
39
- },
40
- "node_modules/@types/request": {
41
- "version": "2.48.12",
42
- "resolved": "https://registry.npmjs.org/@types/request/-/request-2.48.12.tgz",
43
- "integrity": "sha512-G3sY+NpsA9jnwm0ixhAFQSJ3Q9JkpLZpJbI3GMv0mIAT0y3mRabYeINzal5WOChIiaTEGQYlHOKgkaM9EisWHw==",
44
- "dev": true,
45
- "dependencies": {
46
- "@types/caseless": "*",
47
- "@types/node": "*",
48
- "@types/tough-cookie": "*",
49
- "form-data": "^2.5.0"
50
- }
51
- },
52
- "node_modules/@types/request/node_modules/form-data": {
53
- "version": "2.5.1",
54
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.1.tgz",
55
- "integrity": "sha512-m21N3WOmEEURgk6B9GLOE4RuWOFf28Lhh9qGYeNlGq4VDXUlJy2th2slBNU8Gp8EzloYZOibZJ7t5ecIrFSjVA==",
56
- "dev": true,
57
- "dependencies": {
58
- "asynckit": "^0.4.0",
59
- "combined-stream": "^1.0.6",
60
- "mime-types": "^2.1.12"
61
- },
62
- "engines": {
63
- "node": ">= 0.12"
64
- }
65
- },
66
- "node_modules/@types/tough-cookie": {
67
- "version": "4.0.5",
68
- "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.5.tgz",
69
- "integrity": "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==",
70
- "dev": true
71
- },
72
- "node_modules/asynckit": {
73
- "version": "0.4.0",
74
- "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
75
- "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
76
- "dev": true
77
- },
78
- "node_modules/combined-stream": {
79
- "version": "1.0.8",
80
- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
81
- "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
82
- "dev": true,
83
- "dependencies": {
84
- "delayed-stream": "~1.0.0"
85
- },
86
- "engines": {
87
- "node": ">= 0.8"
88
- }
89
- },
90
- "node_modules/delayed-stream": {
91
- "version": "1.0.0",
92
- "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
93
- "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
94
- "dev": true,
95
- "engines": {
96
- "node": ">=0.4.0"
97
- }
98
- },
99
- "node_modules/form-data": {
100
- "version": "4.0.0",
101
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
102
- "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
103
- "dev": true,
104
- "dependencies": {
105
- "asynckit": "^0.4.0",
106
- "combined-stream": "^1.0.8",
107
- "mime-types": "^2.1.12"
108
- },
109
- "engines": {
110
- "node": ">= 6"
111
- }
112
- },
113
- "node_modules/mime-db": {
114
- "version": "1.52.0",
115
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
116
- "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
117
- "dev": true,
118
- "engines": {
119
- "node": ">= 0.6"
120
- }
121
- },
122
- "node_modules/mime-types": {
123
- "version": "2.1.35",
124
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
125
- "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
126
- "dev": true,
127
- "dependencies": {
128
- "mime-db": "1.52.0"
129
- },
130
- "engines": {
131
- "node": ">= 0.6"
132
- }
133
- },
134
- "node_modules/types-registry": {
135
- "version": "0.1.685",
136
- "resolved": "https://registry.npmjs.org/types-registry/-/types-registry-0.1.685.tgz",
137
- "integrity": "sha512-dC3Nqu/q2Ey8Jj/YV0plEub0oycMiu3VaAf+tf8X5uhtiRS4iF1BubY5cra1LIaKr+fTblxQvoVAYIPeVj1A9g=="
138
- },
139
- "node_modules/undici-types": {
140
- "version": "5.26.5",
141
- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
142
- "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",
143
- "dev": true
144
- }
145
- }
146
- }
@@ -1 +0,0 @@
1
- {"private":true,"dependencies":{"types-registry":"^0.1.685"},"devDependencies":{"@types/node-fetch":"^2.6.11","@types/request":"^2.48.12"}}
package/.replit DELETED
@@ -1,21 +0,0 @@
1
- modules = ["nix", "nodejs-20"]
2
- hidden = [".config", "package-lock.json"]
3
- run = "node index.js"
4
-
5
- [gitHubImport]
6
- requiredFiles = [".replit", "replit.nix", "package.json", "package-lock.json"]
7
-
8
- [nix]
9
- channel = "stable-23_11"
10
-
11
- [unitTest]
12
- language = "nodejs"
13
-
14
- [deployment]
15
- run = ["sh", "-c", "node index.js"]
16
- deploymentTarget = "cloudrun"
17
- ignorePorts = false
18
-
19
- [[ports]]
20
- localPort = 3000
21
- externalPort = 80
package/replit.nix DELETED
@@ -1,3 +0,0 @@
1
- {pkgs}: {
2
- deps = [ ];
3
- }