@idlebox/stripe-node-types 24.0.14-patch.0

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 (113) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +16 -0
  3. package/assert/strict.d.ts +5 -0
  4. package/assert.d.ts +1053 -0
  5. package/async_hooks.d.ts +621 -0
  6. package/buffer.buffer.d.ts +464 -0
  7. package/buffer.d.ts +1928 -0
  8. package/child_process.d.ts +1547 -0
  9. package/cluster.d.ts +576 -0
  10. package/compatibility/iterators.d.ts +22 -0
  11. package/console.d.ts +449 -0
  12. package/constants.d.ts +18 -0
  13. package/crypto.d.ts +4514 -0
  14. package/dgram.d.ts +597 -0
  15. package/diagnostics_channel.d.ts +576 -0
  16. package/dns/promises.d.ts +501 -0
  17. package/dns.d.ts +916 -0
  18. package/dom-events.d.ts +100 -0
  19. package/domain.d.ts +168 -0
  20. package/events.d.ts +927 -0
  21. package/fs/promises.d.ts +1278 -0
  22. package/fs.d.ts +4444 -0
  23. package/globals.d.ts +368 -0
  24. package/globals.typedarray.d.ts +23 -0
  25. package/http.d.ts +2044 -0
  26. package/http2.d.ts +2626 -0
  27. package/https.d.ts +543 -0
  28. package/index.d.ts +96 -0
  29. package/inspector.d.ts +3993 -0
  30. package/module.d.ts +866 -0
  31. package/my-shim.d.ts +57 -0
  32. package/net.d.ts +1030 -0
  33. package/os.d.ts +494 -0
  34. package/package.json +158 -0
  35. package/path.d.ts +189 -0
  36. package/perf_hooks.d.ts +968 -0
  37. package/process.d.ts +2016 -0
  38. package/punycode.d.ts +115 -0
  39. package/querystring.d.ts +150 -0
  40. package/readline/promises.d.ts +159 -0
  41. package/readline.d.ts +592 -0
  42. package/repl.d.ts +426 -0
  43. package/sea.d.ts +154 -0
  44. package/sqlite.d.ts +689 -0
  45. package/stream/consumers.d.ts +36 -0
  46. package/stream/promises.d.ts +88 -0
  47. package/stream/web.d.ts +616 -0
  48. package/stream.d.ts +1654 -0
  49. package/string_decoder.d.ts +65 -0
  50. package/test.d.ts +2216 -0
  51. package/timers/promises.d.ts +106 -0
  52. package/timers.d.ts +285 -0
  53. package/tls.d.ts +1211 -0
  54. package/trace_events.d.ts +195 -0
  55. package/ts5.1/compatibility/disposable.d.ts +13 -0
  56. package/ts5.1/index.d.ts +100 -0
  57. package/ts5.6/buffer.buffer.d.ts +461 -0
  58. package/ts5.6/compatibility/float16array.d.ts +72 -0
  59. package/ts5.6/globals.typedarray.d.ts +21 -0
  60. package/ts5.6/index.d.ts +98 -0
  61. package/ts5.7/compatibility/float16array.d.ts +73 -0
  62. package/ts5.7/index.d.ts +98 -0
  63. package/tty.d.ts +206 -0
  64. package/undici-types/LICENSE +22 -0
  65. package/undici-types/README.md +7 -0
  66. package/undici-types/agent.d.ts +32 -0
  67. package/undici-types/api.d.ts +44 -0
  68. package/undici-types/balanced-pool.d.ts +30 -0
  69. package/undici-types/cache-interceptor.d.ts +173 -0
  70. package/undici-types/cache.d.ts +37 -0
  71. package/undici-types/client.d.ts +108 -0
  72. package/undici-types/connector.d.ts +35 -0
  73. package/undici-types/content-type.d.ts +22 -0
  74. package/undici-types/cookies.d.ts +31 -0
  75. package/undici-types/diagnostics-channel.d.ts +67 -0
  76. package/undici-types/dispatcher.d.ts +282 -0
  77. package/undici-types/env-http-proxy-agent.d.ts +22 -0
  78. package/undici-types/errors.d.ts +172 -0
  79. package/undici-types/eventsource.d.ts +62 -0
  80. package/undici-types/fetch.d.ts +211 -0
  81. package/undici-types/formdata.d.ts +109 -0
  82. package/undici-types/global-dispatcher.d.ts +10 -0
  83. package/undici-types/global-origin.d.ts +8 -0
  84. package/undici-types/h2c-client.d.ts +76 -0
  85. package/undici-types/handlers.d.ts +16 -0
  86. package/undici-types/header.d.ts +161 -0
  87. package/undici-types/index.d.ts +76 -0
  88. package/undici-types/interceptors.d.ts +35 -0
  89. package/undici-types/mock-agent.d.ts +66 -0
  90. package/undici-types/mock-call-history.d.ts +112 -0
  91. package/undici-types/mock-client.d.ts +26 -0
  92. package/undici-types/mock-errors.d.ts +13 -0
  93. package/undici-types/mock-interceptor.d.ts +94 -0
  94. package/undici-types/mock-pool.d.ts +26 -0
  95. package/undici-types/package.json +55 -0
  96. package/undici-types/patch.d.ts +30 -0
  97. package/undici-types/pool-stats.d.ts +20 -0
  98. package/undici-types/pool.d.ts +40 -0
  99. package/undici-types/proxy-agent.d.ts +29 -0
  100. package/undici-types/readable.d.ts +69 -0
  101. package/undici-types/retry-agent.d.ts +9 -0
  102. package/undici-types/retry-handler.d.ts +117 -0
  103. package/undici-types/util.d.ts +19 -0
  104. package/undici-types/utility.d.ts +8 -0
  105. package/undici-types/webidl.d.ts +267 -0
  106. package/undici-types/websocket.d.ts +185 -0
  107. package/url.d.ts +1012 -0
  108. package/util.d.ts +2300 -0
  109. package/v8.d.ts +917 -0
  110. package/vm.d.ts +1034 -0
  111. package/wasi.d.ts +179 -0
  112. package/worker_threads.d.ts +773 -0
  113. package/zlib.d.ts +666 -0
@@ -0,0 +1,195 @@
1
+ /**
2
+ * The `node:trace_events` module provides a mechanism to centralize tracing information
3
+ * generated by V8, Node.js core, and userspace code.
4
+ *
5
+ * Tracing can be enabled with the `--trace-event-categories` command-line flag
6
+ * or by using the `trace_events` module. The `--trace-event-categories` flag
7
+ * accepts a list of comma-separated category names.
8
+ *
9
+ * The available categories are:
10
+ *
11
+ * * `node`: An empty placeholder.
12
+ * * `node.async_hooks`: Enables capture of detailed [`async_hooks`](https://nodejs.org/docs/latest-v24.x/api/async_hooks.html) trace data.
13
+ * The [`async_hooks`](https://nodejs.org/docs/latest-v24.x/api/async_hooks.html) events have a unique `asyncId` and a special `triggerId` `triggerAsyncId` property.
14
+ * * `node.bootstrap`: Enables capture of Node.js bootstrap milestones.
15
+ * * `node.console`: Enables capture of `console.time()` and `console.count()` output.
16
+ * * `node.threadpoolwork.sync`: Enables capture of trace data for threadpool synchronous operations, such as `blob`, `zlib`, `crypto` and `node_api`.
17
+ * * `node.threadpoolwork.async`: Enables capture of trace data for threadpool asynchronous operations, such as `blob`, `zlib`, `crypto` and `node_api`.
18
+ * * `node.dns.native`: Enables capture of trace data for DNS queries.
19
+ * * `node.net.native`: Enables capture of trace data for network.
20
+ * * `node.environment`: Enables capture of Node.js Environment milestones.
21
+ * * `node.fs.sync`: Enables capture of trace data for file system sync methods.
22
+ * * `node.fs_dir.sync`: Enables capture of trace data for file system sync directory methods.
23
+ * * `node.fs.async`: Enables capture of trace data for file system async methods.
24
+ * * `node.fs_dir.async`: Enables capture of trace data for file system async directory methods.
25
+ * * `node.perf`: Enables capture of [Performance API](https://nodejs.org/docs/latest-v24.x/api/perf_hooks.html) measurements.
26
+ * * `node.perf.usertiming`: Enables capture of only Performance API User Timing
27
+ * measures and marks.
28
+ * * `node.perf.timerify`: Enables capture of only Performance API timerify
29
+ * measurements.
30
+ * * `node.promises.rejections`: Enables capture of trace data tracking the number
31
+ * of unhandled Promise rejections and handled-after-rejections.
32
+ * * `node.vm.script`: Enables capture of trace data for the `node:vm` module's `runInNewContext()`, `runInContext()`, and `runInThisContext()` methods.
33
+ * * `v8`: The [V8](https://nodejs.org/docs/latest-v24.x/api/v8.html) events are GC, compiling, and execution related.
34
+ * * `node.http`: Enables capture of trace data for http request / response.
35
+ *
36
+ * By default the `node`, `node.async_hooks`, and `v8` categories are enabled.
37
+ *
38
+ * ```bash
39
+ * node --trace-event-categories v8,node,node.async_hooks server.js
40
+ * ```
41
+ *
42
+ * Prior versions of Node.js required the use of the `--trace-events-enabled` flag to enable trace events. This requirement has been removed. However, the `--trace-events-enabled` flag _may_ still be
43
+ * used and will enable the `node`, `node.async_hooks`, and `v8` trace event categories by default.
44
+ *
45
+ * ```bash
46
+ * node --trace-events-enabled
47
+ *
48
+ * # is equivalent to
49
+ *
50
+ * node --trace-event-categories v8,node,node.async_hooks
51
+ * ```
52
+ *
53
+ * Alternatively, trace events may be enabled using the `node:trace_events` module:
54
+ *
55
+ * ```js
56
+ * import trace_events from 'node:trace_events';
57
+ * const tracing = trace_events.createTracing({ categories: ['node.perf'] });
58
+ * tracing.enable(); // Enable trace event capture for the 'node.perf' category
59
+ *
60
+ * // do work
61
+ *
62
+ * tracing.disable(); // Disable trace event capture for the 'node.perf' category
63
+ * ```
64
+ *
65
+ * Running Node.js with tracing enabled will produce log files that can be opened
66
+ * in the [`chrome://tracing`](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool) tab of Chrome.
67
+ *
68
+ * The logging file is by default called `node_trace.${rotation}.log`, where `${rotation}` is an incrementing log-rotation id. The filepath pattern can
69
+ * be specified with `--trace-event-file-pattern` that accepts a template
70
+ * string that supports `${rotation}` and `${pid}`:
71
+ *
72
+ * ```bash
73
+ * node --trace-event-categories v8 --trace-event-file-pattern '${pid}-${rotation}.log' server.js
74
+ * ```
75
+ *
76
+ * To guarantee that the log file is properly generated after signal events like `SIGINT`, `SIGTERM`, or `SIGBREAK`, make sure to have the appropriate handlers
77
+ * in your code, such as:
78
+ *
79
+ * ```js
80
+ * process.on('SIGINT', function onSigint() {
81
+ * console.info('Received SIGINT.');
82
+ * process.exit(130); // Or applicable exit code depending on OS and signal
83
+ * });
84
+ * ```
85
+ *
86
+ * The tracing system uses the same time source
87
+ * as the one used by `process.hrtime()`.
88
+ * However the trace-event timestamps are expressed in microseconds,
89
+ * unlike `process.hrtime()` which returns nanoseconds.
90
+ *
91
+ * The features from this module are not available in [`Worker`](https://nodejs.org/docs/latest-v24.x/api/worker_threads.html#class-worker) threads.
92
+ * @experimental
93
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/trace_events.js)
94
+ */
95
+
96
+ declare module "node:trace_events" {
97
+ /**
98
+ * The `Tracing` object is used to enable or disable tracing for sets of
99
+ * categories. Instances are created using the
100
+ * `trace_events.createTracing()` method.
101
+ *
102
+ * When created, the `Tracing` object is disabled. Calling the
103
+ * `tracing.enable()` method adds the categories to the set of enabled trace
104
+ * event categories. Calling `tracing.disable()` will remove the categories
105
+ * from the set of enabled trace event categories.
106
+ */
107
+ interface Tracing {
108
+ /**
109
+ * A comma-separated list of the trace event categories covered by this
110
+ * `Tracing` object.
111
+ * @since v10.0.0
112
+ */
113
+ readonly categories: string;
114
+ /**
115
+ * Disables this `Tracing` object.
116
+ *
117
+ * Only trace event categories _not_ covered by other enabled `Tracing`
118
+ * objects and _not_ specified by the `--trace-event-categories` flag
119
+ * will be disabled.
120
+ *
121
+ * ```js
122
+ * import trace_events from 'node:trace_events';
123
+ * const t1 = trace_events.createTracing({ categories: ['node', 'v8'] });
124
+ * const t2 = trace_events.createTracing({ categories: ['node.perf', 'node'] });
125
+ * t1.enable();
126
+ * t2.enable();
127
+ *
128
+ * // Prints 'node,node.perf,v8'
129
+ * console.log(trace_events.getEnabledCategories());
130
+ *
131
+ * t2.disable(); // Will only disable emission of the 'node.perf' category
132
+ *
133
+ * // Prints 'node,v8'
134
+ * console.log(trace_events.getEnabledCategories());
135
+ * ```
136
+ * @since v10.0.0
137
+ */
138
+ disable(): void;
139
+ /**
140
+ * Enables this `Tracing` object for the set of categories covered by
141
+ * the `Tracing` object.
142
+ * @since v10.0.0
143
+ */
144
+ enable(): void;
145
+ /**
146
+ * `true` only if the `Tracing` object has been enabled.
147
+ * @since v10.0.0
148
+ */
149
+ readonly enabled: boolean;
150
+ }
151
+ interface CreateTracingOptions {
152
+ /**
153
+ * An array of trace category names. Values included in the array are
154
+ * coerced to a string when possible. An error will be thrown if the
155
+ * value cannot be coerced.
156
+ */
157
+ categories: string[];
158
+ }
159
+ /**
160
+ * Creates and returns a `Tracing` object for the given set of `categories`.
161
+ *
162
+ * ```js
163
+ * import trace_events from 'node:trace_events';
164
+ * const categories = ['node.perf', 'node.async_hooks'];
165
+ * const tracing = trace_events.createTracing({ categories });
166
+ * tracing.enable();
167
+ * // do stuff
168
+ * tracing.disable();
169
+ * ```
170
+ * @since v10.0.0
171
+ */
172
+ function createTracing(options: CreateTracingOptions): Tracing;
173
+ /**
174
+ * Returns a comma-separated list of all currently-enabled trace event
175
+ * categories. The current set of enabled trace event categories is determined
176
+ * by the _union_ of all currently-enabled `Tracing` objects and any categories
177
+ * enabled using the `--trace-event-categories` flag.
178
+ *
179
+ * Given the file `test.js` below, the command `node --trace-event-categories node.perf test.js` will print `'node.async_hooks,node.perf'` to the console.
180
+ *
181
+ * ```js
182
+ * import trace_events from 'node:trace_events';
183
+ * const t1 = trace_events.createTracing({ categories: ['node.async_hooks'] });
184
+ * const t2 = trace_events.createTracing({ categories: ['node.perf'] });
185
+ * const t3 = trace_events.createTracing({ categories: ['v8'] });
186
+ *
187
+ * t1.enable();
188
+ * t2.enable();
189
+ *
190
+ * console.log(trace_events.getEnabledCategories());
191
+ * ```
192
+ * @since v10.0.0
193
+ */
194
+ function getEnabledCategories(): string | undefined;
195
+ }
@@ -0,0 +1,13 @@
1
+ interface SymbolConstructor {
2
+ readonly dispose: unique symbol;
3
+ readonly asyncDispose: unique symbol;
4
+ }
5
+
6
+ interface Disposable {
7
+ [Symbol.dispose](): void;
8
+ }
9
+
10
+ interface AsyncDisposable {
11
+ [Symbol.asyncDispose](): PromiseLike<void>;
12
+ }
13
+
@@ -0,0 +1,100 @@
1
+ /**
2
+ * License for programmatically and manually incorporated
3
+ * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc
4
+ *
5
+ * Copyright Node.js contributors. All rights reserved.
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to
8
+ * deal in the Software without restriction, including without limitation the
9
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10
+ * sell copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in
14
+ * all copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22
+ * IN THE SOFTWARE.
23
+ */
24
+
25
+ // NOTE: These definitions support Node.js and TypeScript 5.1.
26
+
27
+ // Reference required TypeScript libraries:
28
+ /// <reference lib="es2020" />
29
+
30
+ // TypeScript library polyfills required for TypeScript <=5.1:
31
+ /// <reference path="./compatibility/disposable.d.ts" />
32
+
33
+ // TypeScript library polyfills required for TypeScript <=5.6:
34
+ /// <reference path="../ts5.6/compatibility/float16array.d.ts" />
35
+
36
+ // Iterator definitions required for compatibility with TypeScript <5.6:
37
+ /// <reference path="../compatibility/iterators.d.ts" />
38
+
39
+ // Definitions for Node.js modules specific to TypeScript <=5.6:
40
+ /// <reference path="../ts5.6/globals.typedarray.d.ts" />
41
+ /// <reference path="../ts5.6/buffer.buffer.d.ts" />
42
+
43
+ // Definitions for Node.js modules that are not specific to any version of TypeScript:
44
+ /// <reference path="../globals.d.ts" />
45
+ /// <reference path="../assert.d.ts" />
46
+ /// <reference path="../assert/strict.d.ts" />
47
+ /// <reference path="../async_hooks.d.ts" />
48
+ /// <reference path="../buffer.d.ts" />
49
+ /// <reference path="../child_process.d.ts" />
50
+ /// <reference path="../cluster.d.ts" />
51
+ /// <reference path="../console.d.ts" />
52
+ /// <reference path="../constants.d.ts" />
53
+ /// <reference path="../crypto.d.ts" />
54
+ /// <reference path="../dgram.d.ts" />
55
+ /// <reference path="../diagnostics_channel.d.ts" />
56
+ /// <reference path="../dns.d.ts" />
57
+ /// <reference path="../dns/promises.d.ts" />
58
+ /// <reference path="../dns/promises.d.ts" />
59
+ /// <reference path="../domain.d.ts" />
60
+ /// <reference path="../dom-events.d.ts" />
61
+ /// <reference path="../events.d.ts" />
62
+ /// <reference path="../fs.d.ts" />
63
+ /// <reference path="../fs/promises.d.ts" />
64
+ /// <reference path="../http.d.ts" />
65
+ /// <reference path="../http2.d.ts" />
66
+ /// <reference path="../https.d.ts" />
67
+ /// <reference path="../inspector.d.ts" />
68
+ /// <reference path="../module.d.ts" />
69
+ /// <reference path="../net.d.ts" />
70
+ /// <reference path="../os.d.ts" />
71
+ /// <reference path="../path.d.ts" />
72
+ /// <reference path="../perf_hooks.d.ts" />
73
+ /// <reference path="../process.d.ts" />
74
+ /// <reference path="../punycode.d.ts" />
75
+ /// <reference path="../querystring.d.ts" />
76
+ /// <reference path="../readline.d.ts" />
77
+ /// <reference path="../readline/promises.d.ts" />
78
+ /// <reference path="../repl.d.ts" />
79
+ /// <reference path="../sea.d.ts" />
80
+ /// <reference path="../sqlite.d.ts" />
81
+ /// <reference path="../stream.d.ts" />
82
+ /// <reference path="../stream/promises.d.ts" />
83
+ /// <reference path="../stream/consumers.d.ts" />
84
+ /// <reference path="../stream/web.d.ts" />
85
+ /// <reference path="../string_decoder.d.ts" />
86
+ /// <reference path="../test.d.ts" />
87
+ /// <reference path="../timers.d.ts" />
88
+ /// <reference path="../timers/promises.d.ts" />
89
+ /// <reference path="../tls.d.ts" />
90
+ /// <reference path="../trace_events.d.ts" />
91
+ /// <reference path="../tty.d.ts" />
92
+ /// <reference path="../url.d.ts" />
93
+ /// <reference path="../util.d.ts" />
94
+ /// <reference path="../v8.d.ts" />
95
+ /// <reference path="../vm.d.ts" />
96
+ /// <reference path="../wasi.d.ts" />
97
+ /// <reference path="../worker_threads.d.ts" />
98
+ /// <reference path="../zlib.d.ts" />
99
+
100
+ /// <reference path="../my-shim.d.ts" />