@struct-ai/sdk 0.1.2 → 0.2.1

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 (177) hide show
  1. package/README.md +46 -3
  2. package/dist/commonjs/core.js +8 -1
  3. package/dist/commonjs/integrations/langchain-callback.js +40 -5
  4. package/dist/esm/core.js +8 -1
  5. package/dist/esm/integrations/langchain-callback.js +40 -5
  6. package/package.json +16 -13
  7. package/dist/node_modules/@struct-ai/sdk/dist/commonjs/content-capture.d.ts +0 -10
  8. package/dist/node_modules/@struct-ai/sdk/dist/commonjs/context.d.ts +0 -30
  9. package/dist/node_modules/@struct-ai/sdk/dist/commonjs/core.d.ts +0 -120
  10. package/dist/node_modules/@struct-ai/sdk/dist/commonjs/events.d.ts +0 -12
  11. package/dist/node_modules/@struct-ai/sdk/dist/commonjs/index.d.ts +0 -6
  12. package/dist/node_modules/@struct-ai/sdk/dist/commonjs/integrations/anthropic-content.d.ts +0 -24
  13. package/dist/node_modules/@struct-ai/sdk/dist/commonjs/integrations/anthropic.d.ts +0 -34
  14. package/dist/node_modules/@struct-ai/sdk/dist/commonjs/integrations/index.d.ts +0 -5
  15. package/dist/node_modules/@struct-ai/sdk/dist/commonjs/integrations/langchain-callback.d.ts +0 -134
  16. package/dist/node_modules/@struct-ai/sdk/dist/commonjs/integrations/langchain-content.d.ts +0 -35
  17. package/dist/node_modules/@struct-ai/sdk/dist/commonjs/integrations/langchain.d.ts +0 -11
  18. package/dist/node_modules/@struct-ai/sdk/dist/commonjs/package.json +0 -3
  19. package/dist/node_modules/@struct-ai/sdk/dist/commonjs/semconv.d.ts +0 -54
  20. package/dist/node_modules/@struct-ai/sdk/dist/commonjs/truncation.d.ts +0 -10
  21. package/dist/node_modules/@struct-ai/sdk/dist/esm/content-capture.d.ts +0 -10
  22. package/dist/node_modules/@struct-ai/sdk/dist/esm/context.d.ts +0 -30
  23. package/dist/node_modules/@struct-ai/sdk/dist/esm/core.d.ts +0 -120
  24. package/dist/node_modules/@struct-ai/sdk/dist/esm/events.d.ts +0 -12
  25. package/dist/node_modules/@struct-ai/sdk/dist/esm/index.d.ts +0 -6
  26. package/dist/node_modules/@struct-ai/sdk/dist/esm/integrations/anthropic-content.d.ts +0 -24
  27. package/dist/node_modules/@struct-ai/sdk/dist/esm/integrations/anthropic.d.ts +0 -34
  28. package/dist/node_modules/@struct-ai/sdk/dist/esm/integrations/index.d.ts +0 -5
  29. package/dist/node_modules/@struct-ai/sdk/dist/esm/integrations/langchain-callback.d.ts +0 -134
  30. package/dist/node_modules/@struct-ai/sdk/dist/esm/integrations/langchain-content.d.ts +0 -35
  31. package/dist/node_modules/@struct-ai/sdk/dist/esm/integrations/langchain.d.ts +0 -11
  32. package/dist/node_modules/@struct-ai/sdk/dist/esm/package.json +0 -3
  33. package/dist/node_modules/@struct-ai/sdk/dist/esm/semconv.d.ts +0 -54
  34. package/dist/node_modules/@struct-ai/sdk/dist/esm/truncation.d.ts +0 -10
  35. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/dist/commonjs/package.json +0 -3
  36. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/dist/esm/package.json +0 -3
  37. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/package.json +0 -100
  38. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/package.json +0 -103
  39. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/anthropic/package.json +0 -118
  40. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/package.json +0 -916
  41. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/langgraph/package.json +0 -188
  42. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/api/package.json +0 -96
  43. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/api-logs/package.json +0 -91
  44. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/core/package.json +0 -96
  45. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/exporter-logs-otlp-proto/package.json +0 -108
  46. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/exporter-trace-otlp-proto/package.json +0 -105
  47. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/resources/package.json +0 -100
  48. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/sdk-logs/package.json +0 -109
  49. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/sdk-trace-base/package.json +0 -100
  50. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/sdk-trace-node/package.json +0 -76
  51. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/package.json +0 -140
  52. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/nock/package.json +0 -89
  53. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/tshy/package.json +0 -81
  54. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/typescript/package.json +0 -120
  55. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/node_modules/vitest/package.json +0 -239
  56. package/dist/node_modules/@struct-ai/sdk/dist/node_modules/@struct-ai/sdk/package.json +0 -100
  57. package/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/core.d.ts +0 -244
  58. package/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/error.d.ts +0 -54
  59. package/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/index.d.ts +0 -188
  60. package/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/package.json +0 -103
  61. package/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/pagination.d.ts +0 -26
  62. package/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/resource.d.ts +0 -6
  63. package/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/streaming.d.ts +0 -41
  64. package/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/uploads.d.ts +0 -75
  65. package/dist/node_modules/@struct-ai/sdk/node_modules/@anthropic-ai/sdk/version.d.ts +0 -2
  66. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/anthropic/experimental.d.ts +0 -1
  67. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/anthropic/index.d.ts +0 -1
  68. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/anthropic/package.json +0 -118
  69. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/agents.d.ts +0 -1
  70. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/caches.d.ts +0 -1
  71. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/chat_history.d.ts +0 -1
  72. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/context.d.ts +0 -1
  73. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/documents.d.ts +0 -1
  74. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/embeddings.d.ts +0 -1
  75. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/example_selectors.d.ts +0 -1
  76. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/index.d.ts +0 -1
  77. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/indexing.d.ts +0 -1
  78. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/load.d.ts +0 -1
  79. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/memory.d.ts +0 -1
  80. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/messages.d.ts +0 -1
  81. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/output_parsers.d.ts +0 -1
  82. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/outputs.d.ts +0 -1
  83. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/package.json +0 -916
  84. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/prompt_values.d.ts +0 -1
  85. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/prompts.d.ts +0 -1
  86. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/retrievers.d.ts +0 -1
  87. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/runnables.d.ts +0 -1
  88. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/singletons.d.ts +0 -1
  89. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/stores.d.ts +0 -1
  90. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/structured_query.d.ts +0 -1
  91. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/tools.d.ts +0 -1
  92. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/core/vectorstores.d.ts +0 -1
  93. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/langgraph/index.d.ts +0 -1
  94. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/langgraph/package.json +0 -188
  95. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/langgraph/prebuilt.d.ts +0 -1
  96. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/langgraph/pregel.d.ts +0 -1
  97. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/langgraph/remote.d.ts +0 -1
  98. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/langgraph/web.d.ts +0 -1
  99. package/dist/node_modules/@struct-ai/sdk/node_modules/@langchain/langgraph/zod.d.ts +0 -1
  100. package/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/api/package.json +0 -96
  101. package/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/api-logs/package.json +0 -91
  102. package/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/core/package.json +0 -96
  103. package/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/exporter-logs-otlp-proto/package.json +0 -108
  104. package/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/exporter-trace-otlp-proto/package.json +0 -105
  105. package/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/resources/package.json +0 -100
  106. package/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/sdk-logs/package.json +0 -109
  107. package/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/sdk-trace-base/package.json +0 -100
  108. package/dist/node_modules/@struct-ai/sdk/node_modules/@opentelemetry/sdk-trace-node/package.json +0 -76
  109. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/assert.d.ts +0 -1062
  110. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/async_hooks.d.ts +0 -605
  111. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/buffer.buffer.d.ts +0 -471
  112. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/buffer.d.ts +0 -1936
  113. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/child_process.d.ts +0 -1475
  114. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/cluster.d.ts +0 -577
  115. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/console.d.ts +0 -452
  116. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/constants.d.ts +0 -21
  117. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/crypto.d.ts +0 -4590
  118. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/dgram.d.ts +0 -597
  119. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  120. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/dns.d.ts +0 -871
  121. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/domain.d.ts +0 -170
  122. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/events.d.ts +0 -977
  123. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/fs.d.ts +0 -4375
  124. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/globals.d.ts +0 -172
  125. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/globals.typedarray.d.ts +0 -38
  126. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/http.d.ts +0 -2049
  127. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/http2.d.ts +0 -2631
  128. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/https.d.ts +0 -578
  129. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/index.d.ts +0 -93
  130. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/inspector.generated.d.ts +0 -3966
  131. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/module.d.ts +0 -539
  132. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/net.d.ts +0 -1031
  133. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/os.d.ts +0 -506
  134. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/package.json +0 -140
  135. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/path.d.ts +0 -200
  136. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/perf_hooks.d.ts +0 -961
  137. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/process.d.ts +0 -1961
  138. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/punycode.d.ts +0 -117
  139. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/querystring.d.ts +0 -152
  140. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/readline.d.ts +0 -589
  141. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/repl.d.ts +0 -430
  142. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/sea.d.ts +0 -153
  143. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/stream.d.ts +0 -1698
  144. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/string_decoder.d.ts +0 -67
  145. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/test.d.ts +0 -1787
  146. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/timers.d.ts +0 -286
  147. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/tls.d.ts +0 -1259
  148. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/trace_events.d.ts +0 -197
  149. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/tty.d.ts +0 -208
  150. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/url.d.ts +0 -964
  151. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/util.d.ts +0 -2331
  152. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/v8.d.ts +0 -809
  153. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/vm.d.ts +0 -1001
  154. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/wasi.d.ts +0 -181
  155. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/worker_threads.d.ts +0 -715
  156. package/dist/node_modules/@struct-ai/sdk/node_modules/@types/node/zlib.d.ts +0 -598
  157. package/dist/node_modules/@struct-ai/sdk/node_modules/nock/package.json +0 -89
  158. package/dist/node_modules/@struct-ai/sdk/node_modules/tshy/package.json +0 -81
  159. package/dist/node_modules/@struct-ai/sdk/node_modules/typescript/package.json +0 -120
  160. package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/config.d.ts +0 -3
  161. package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/coverage.d.ts +0 -1
  162. package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/environments.d.ts +0 -1
  163. package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/globals.d.ts +0 -22
  164. package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/import-meta.d.ts +0 -5
  165. package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/importMeta.d.ts +0 -4
  166. package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/jsdom.d.ts +0 -6
  167. package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/mocker.d.ts +0 -1
  168. package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/node.d.ts +0 -1
  169. package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/optional-runtime-types.d.ts +0 -6
  170. package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/optional-types.d.ts +0 -7
  171. package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/package.json +0 -239
  172. package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/reporters.d.ts +0 -1
  173. package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/runners.d.ts +0 -1
  174. package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/snapshot.d.ts +0 -1
  175. package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/suite.d.ts +0 -1
  176. package/dist/node_modules/@struct-ai/sdk/node_modules/vitest/worker.d.ts +0 -1
  177. package/dist/node_modules/@struct-ai/sdk/package.json +0 -100
@@ -1,598 +0,0 @@
1
- /**
2
- * The `node:zlib` module provides compression functionality implemented using
3
- * Gzip, Deflate/Inflate, and Brotli.
4
- *
5
- * To access it:
6
- *
7
- * ```js
8
- * import zlib from 'node:zlib';
9
- * ```
10
- *
11
- * Compression and decompression are built around the Node.js
12
- * [Streams API](https://nodejs.org/docs/latest-v20.x/api/stream.html).
13
- *
14
- * Compressing or decompressing a stream (such as a file) can be accomplished by
15
- * piping the source stream through a `zlib` `Transform` stream into a destination
16
- * stream:
17
- *
18
- * ```js
19
- * import { createGzip } from 'node:zlib';
20
- * import { pipeline } from 'node:stream';
21
- * import {
22
- * createReadStream,
23
- * createWriteStream,
24
- * } from 'node:fs';
25
- *
26
- * const gzip = createGzip();
27
- * const source = createReadStream('input.txt');
28
- * const destination = createWriteStream('input.txt.gz');
29
- *
30
- * pipeline(source, gzip, destination, (err) => {
31
- * if (err) {
32
- * console.error('An error occurred:', err);
33
- * process.exitCode = 1;
34
- * }
35
- * });
36
- *
37
- * // Or, Promisified
38
- *
39
- * import { promisify } from 'node:util';
40
- * const pipe = promisify(pipeline);
41
- *
42
- * async function do_gzip(input, output) {
43
- * const gzip = createGzip();
44
- * const source = createReadStream(input);
45
- * const destination = createWriteStream(output);
46
- * await pipe(source, gzip, destination);
47
- * }
48
- *
49
- * do_gzip('input.txt', 'input.txt.gz')
50
- * .catch((err) => {
51
- * console.error('An error occurred:', err);
52
- * process.exitCode = 1;
53
- * });
54
- * ```
55
- *
56
- * It is also possible to compress or decompress data in a single step:
57
- *
58
- * ```js
59
- * import { deflate, unzip } from 'node:zlib';
60
- *
61
- * const input = '.................................';
62
- * deflate(input, (err, buffer) => {
63
- * if (err) {
64
- * console.error('An error occurred:', err);
65
- * process.exitCode = 1;
66
- * }
67
- * console.log(buffer.toString('base64'));
68
- * });
69
- *
70
- * const buffer = Buffer.from('eJzT0yMAAGTvBe8=', 'base64');
71
- * unzip(buffer, (err, buffer) => {
72
- * if (err) {
73
- * console.error('An error occurred:', err);
74
- * process.exitCode = 1;
75
- * }
76
- * console.log(buffer.toString());
77
- * });
78
- *
79
- * // Or, Promisified
80
- *
81
- * import { promisify } from 'node:util';
82
- * const do_unzip = promisify(unzip);
83
- *
84
- * do_unzip(buffer)
85
- * .then((buf) => console.log(buf.toString()))
86
- * .catch((err) => {
87
- * console.error('An error occurred:', err);
88
- * process.exitCode = 1;
89
- * });
90
- * ```
91
- * @since v0.5.8
92
- * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/zlib.js)
93
- */
94
- declare module "zlib" {
95
- import { NonSharedBuffer } from "node:buffer";
96
- import * as stream from "node:stream";
97
- interface ZlibOptions {
98
- /**
99
- * @default constants.Z_NO_FLUSH
100
- */
101
- flush?: number | undefined;
102
- /**
103
- * @default constants.Z_FINISH
104
- */
105
- finishFlush?: number | undefined;
106
- /**
107
- * @default 16*1024
108
- */
109
- chunkSize?: number | undefined;
110
- windowBits?: number | undefined;
111
- /** compression only */
112
- level?: number | undefined;
113
- /** compression only */
114
- memLevel?: number | undefined;
115
- /** compression only */
116
- strategy?: number | undefined;
117
- /** deflate/inflate only, empty dictionary by default */
118
- dictionary?: NodeJS.ArrayBufferView | ArrayBuffer | undefined;
119
- /**
120
- * If `true`, returns an object with `buffer` and `engine`.
121
- */
122
- info?: boolean | undefined;
123
- /**
124
- * Limits output size when using convenience methods.
125
- * @default buffer.kMaxLength
126
- */
127
- maxOutputLength?: number | undefined;
128
- }
129
- interface BrotliOptions {
130
- /**
131
- * @default constants.BROTLI_OPERATION_PROCESS
132
- */
133
- flush?: number | undefined;
134
- /**
135
- * @default constants.BROTLI_OPERATION_FINISH
136
- */
137
- finishFlush?: number | undefined;
138
- /**
139
- * @default 16*1024
140
- */
141
- chunkSize?: number | undefined;
142
- params?:
143
- | {
144
- /**
145
- * Each key is a `constants.BROTLI_*` constant.
146
- */
147
- [key: number]: boolean | number;
148
- }
149
- | undefined;
150
- /**
151
- * Limits output size when using [convenience methods](https://nodejs.org/docs/latest-v20.x/api/zlib.html#convenience-methods).
152
- * @default buffer.kMaxLength
153
- */
154
- maxOutputLength?: number | undefined;
155
- }
156
- interface Zlib {
157
- /** @deprecated Use bytesWritten instead. */
158
- readonly bytesRead: number;
159
- readonly bytesWritten: number;
160
- shell?: boolean | string | undefined;
161
- close(callback?: () => void): void;
162
- flush(kind?: number, callback?: () => void): void;
163
- flush(callback?: () => void): void;
164
- }
165
- interface ZlibParams {
166
- params(level: number, strategy: number, callback: () => void): void;
167
- }
168
- interface ZlibReset {
169
- reset(): void;
170
- }
171
- /**
172
- * @since v10.16.0
173
- */
174
- class BrotliCompress extends stream.Transform {
175
- constructor(options?: BrotliOptions);
176
- }
177
- interface BrotliCompress extends stream.Transform, Zlib {}
178
- /**
179
- * @since v10.16.0
180
- */
181
- class BrotliDecompress extends stream.Transform {
182
- constructor(options?: BrotliOptions);
183
- }
184
- interface BrotliDecompress extends stream.Transform, Zlib {}
185
- /**
186
- * @since v0.5.8
187
- */
188
- class Gzip extends stream.Transform {
189
- constructor(options?: ZlibOptions);
190
- }
191
- interface Gzip extends stream.Transform, Zlib {}
192
- /**
193
- * @since v0.5.8
194
- */
195
- class Gunzip extends stream.Transform {
196
- constructor(options?: ZlibOptions);
197
- }
198
- interface Gunzip extends stream.Transform, Zlib {}
199
- /**
200
- * @since v0.5.8
201
- */
202
- class Deflate extends stream.Transform {
203
- constructor(options?: ZlibOptions);
204
- }
205
- interface Deflate extends stream.Transform, Zlib, ZlibReset, ZlibParams {}
206
- /**
207
- * @since v0.5.8
208
- */
209
- class Inflate extends stream.Transform {
210
- constructor(options?: ZlibOptions);
211
- }
212
- interface Inflate extends stream.Transform, Zlib, ZlibReset {}
213
- /**
214
- * @since v0.5.8
215
- */
216
- class DeflateRaw extends stream.Transform {
217
- constructor(options?: ZlibOptions);
218
- }
219
- interface DeflateRaw extends stream.Transform, Zlib, ZlibReset, ZlibParams {}
220
- /**
221
- * @since v0.5.8
222
- */
223
- class InflateRaw extends stream.Transform {
224
- constructor(options?: ZlibOptions);
225
- }
226
- interface InflateRaw extends stream.Transform, Zlib, ZlibReset {}
227
- /**
228
- * @since v0.5.8
229
- */
230
- class Unzip extends stream.Transform {
231
- constructor(options?: ZlibOptions);
232
- }
233
- interface Unzip extends stream.Transform, Zlib {}
234
- /**
235
- * Computes a 32-bit [Cyclic Redundancy Check](https://en.wikipedia.org/wiki/Cyclic_redundancy_check) checksum of `data`.
236
- * If `value` is specified, it is used as the starting value of the checksum, otherwise, 0 is used as the starting value.
237
- * @param data When `data` is a string, it will be encoded as UTF-8 before being used for computation.
238
- * @param value An optional starting value. It must be a 32-bit unsigned integer. @default 0
239
- * @returns A 32-bit unsigned integer containing the checksum.
240
- * @since v20.15.0
241
- */
242
- function crc32(data: string | NodeJS.ArrayBufferView, value?: number): number;
243
- /**
244
- * Creates and returns a new `BrotliCompress` object.
245
- * @since v11.7.0, v10.16.0
246
- */
247
- function createBrotliCompress(options?: BrotliOptions): BrotliCompress;
248
- /**
249
- * Creates and returns a new `BrotliDecompress` object.
250
- * @since v11.7.0, v10.16.0
251
- */
252
- function createBrotliDecompress(options?: BrotliOptions): BrotliDecompress;
253
- /**
254
- * Creates and returns a new `Gzip` object.
255
- * See `example`.
256
- * @since v0.5.8
257
- */
258
- function createGzip(options?: ZlibOptions): Gzip;
259
- /**
260
- * Creates and returns a new `Gunzip` object.
261
- * @since v0.5.8
262
- */
263
- function createGunzip(options?: ZlibOptions): Gunzip;
264
- /**
265
- * Creates and returns a new `Deflate` object.
266
- * @since v0.5.8
267
- */
268
- function createDeflate(options?: ZlibOptions): Deflate;
269
- /**
270
- * Creates and returns a new `Inflate` object.
271
- * @since v0.5.8
272
- */
273
- function createInflate(options?: ZlibOptions): Inflate;
274
- /**
275
- * Creates and returns a new `DeflateRaw` object.
276
- *
277
- * An upgrade of zlib from 1.2.8 to 1.2.11 changed behavior when `windowBits` is set to 8 for raw deflate streams. zlib would automatically set `windowBits` to 9 if was initially set to 8. Newer
278
- * versions of zlib will throw an exception,
279
- * so Node.js restored the original behavior of upgrading a value of 8 to 9,
280
- * since passing `windowBits = 9` to zlib actually results in a compressed stream
281
- * that effectively uses an 8-bit window only.
282
- * @since v0.5.8
283
- */
284
- function createDeflateRaw(options?: ZlibOptions): DeflateRaw;
285
- /**
286
- * Creates and returns a new `InflateRaw` object.
287
- * @since v0.5.8
288
- */
289
- function createInflateRaw(options?: ZlibOptions): InflateRaw;
290
- /**
291
- * Creates and returns a new `Unzip` object.
292
- * @since v0.5.8
293
- */
294
- function createUnzip(options?: ZlibOptions): Unzip;
295
- type InputType = string | ArrayBuffer | NodeJS.ArrayBufferView;
296
- type CompressCallback = (error: Error | null, result: NonSharedBuffer) => void;
297
- /**
298
- * @since v11.7.0, v10.16.0
299
- */
300
- function brotliCompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
301
- function brotliCompress(buf: InputType, callback: CompressCallback): void;
302
- namespace brotliCompress {
303
- function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<NonSharedBuffer>;
304
- }
305
- /**
306
- * Compress a chunk of data with `BrotliCompress`.
307
- * @since v11.7.0, v10.16.0
308
- */
309
- function brotliCompressSync(buf: InputType, options?: BrotliOptions): NonSharedBuffer;
310
- /**
311
- * @since v11.7.0, v10.16.0
312
- */
313
- function brotliDecompress(buf: InputType, options: BrotliOptions, callback: CompressCallback): void;
314
- function brotliDecompress(buf: InputType, callback: CompressCallback): void;
315
- namespace brotliDecompress {
316
- function __promisify__(buffer: InputType, options?: BrotliOptions): Promise<NonSharedBuffer>;
317
- }
318
- /**
319
- * Decompress a chunk of data with `BrotliDecompress`.
320
- * @since v11.7.0, v10.16.0
321
- */
322
- function brotliDecompressSync(buf: InputType, options?: BrotliOptions): NonSharedBuffer;
323
- /**
324
- * @since v0.6.0
325
- */
326
- function deflate(buf: InputType, callback: CompressCallback): void;
327
- function deflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
328
- namespace deflate {
329
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
330
- }
331
- /**
332
- * Compress a chunk of data with `Deflate`.
333
- * @since v0.11.12
334
- */
335
- function deflateSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
336
- /**
337
- * @since v0.6.0
338
- */
339
- function deflateRaw(buf: InputType, callback: CompressCallback): void;
340
- function deflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
341
- namespace deflateRaw {
342
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
343
- }
344
- /**
345
- * Compress a chunk of data with `DeflateRaw`.
346
- * @since v0.11.12
347
- */
348
- function deflateRawSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
349
- /**
350
- * @since v0.6.0
351
- */
352
- function gzip(buf: InputType, callback: CompressCallback): void;
353
- function gzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
354
- namespace gzip {
355
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
356
- }
357
- /**
358
- * Compress a chunk of data with `Gzip`.
359
- * @since v0.11.12
360
- */
361
- function gzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
362
- /**
363
- * @since v0.6.0
364
- */
365
- function gunzip(buf: InputType, callback: CompressCallback): void;
366
- function gunzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
367
- namespace gunzip {
368
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
369
- }
370
- /**
371
- * Decompress a chunk of data with `Gunzip`.
372
- * @since v0.11.12
373
- */
374
- function gunzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
375
- /**
376
- * @since v0.6.0
377
- */
378
- function inflate(buf: InputType, callback: CompressCallback): void;
379
- function inflate(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
380
- namespace inflate {
381
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
382
- }
383
- /**
384
- * Decompress a chunk of data with `Inflate`.
385
- * @since v0.11.12
386
- */
387
- function inflateSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
388
- /**
389
- * @since v0.6.0
390
- */
391
- function inflateRaw(buf: InputType, callback: CompressCallback): void;
392
- function inflateRaw(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
393
- namespace inflateRaw {
394
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
395
- }
396
- /**
397
- * Decompress a chunk of data with `InflateRaw`.
398
- * @since v0.11.12
399
- */
400
- function inflateRawSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
401
- /**
402
- * @since v0.6.0
403
- */
404
- function unzip(buf: InputType, callback: CompressCallback): void;
405
- function unzip(buf: InputType, options: ZlibOptions, callback: CompressCallback): void;
406
- namespace unzip {
407
- function __promisify__(buffer: InputType, options?: ZlibOptions): Promise<NonSharedBuffer>;
408
- }
409
- /**
410
- * Decompress a chunk of data with `Unzip`.
411
- * @since v0.11.12
412
- */
413
- function unzipSync(buf: InputType, options?: ZlibOptions): NonSharedBuffer;
414
- namespace constants {
415
- const BROTLI_DECODE: number;
416
- const BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: number;
417
- const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: number;
418
- const BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: number;
419
- const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: number;
420
- const BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: number;
421
- const BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: number;
422
- const BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: number;
423
- const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: number;
424
- const BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: number;
425
- const BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: number;
426
- const BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: number;
427
- const BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: number;
428
- const BROTLI_DECODER_ERROR_FORMAT_DISTANCE: number;
429
- const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: number;
430
- const BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: number;
431
- const BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: number;
432
- const BROTLI_DECODER_ERROR_FORMAT_PADDING_1: number;
433
- const BROTLI_DECODER_ERROR_FORMAT_PADDING_2: number;
434
- const BROTLI_DECODER_ERROR_FORMAT_RESERVED: number;
435
- const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: number;
436
- const BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: number;
437
- const BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: number;
438
- const BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: number;
439
- const BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: number;
440
- const BROTLI_DECODER_ERROR_UNREACHABLE: number;
441
- const BROTLI_DECODER_NEEDS_MORE_INPUT: number;
442
- const BROTLI_DECODER_NEEDS_MORE_OUTPUT: number;
443
- const BROTLI_DECODER_NO_ERROR: number;
444
- const BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: number;
445
- const BROTLI_DECODER_PARAM_LARGE_WINDOW: number;
446
- const BROTLI_DECODER_RESULT_ERROR: number;
447
- const BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: number;
448
- const BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: number;
449
- const BROTLI_DECODER_RESULT_SUCCESS: number;
450
- const BROTLI_DECODER_SUCCESS: number;
451
- const BROTLI_DEFAULT_MODE: number;
452
- const BROTLI_DEFAULT_QUALITY: number;
453
- const BROTLI_DEFAULT_WINDOW: number;
454
- const BROTLI_ENCODE: number;
455
- const BROTLI_LARGE_MAX_WINDOW_BITS: number;
456
- const BROTLI_MAX_INPUT_BLOCK_BITS: number;
457
- const BROTLI_MAX_QUALITY: number;
458
- const BROTLI_MAX_WINDOW_BITS: number;
459
- const BROTLI_MIN_INPUT_BLOCK_BITS: number;
460
- const BROTLI_MIN_QUALITY: number;
461
- const BROTLI_MIN_WINDOW_BITS: number;
462
- const BROTLI_MODE_FONT: number;
463
- const BROTLI_MODE_GENERIC: number;
464
- const BROTLI_MODE_TEXT: number;
465
- const BROTLI_OPERATION_EMIT_METADATA: number;
466
- const BROTLI_OPERATION_FINISH: number;
467
- const BROTLI_OPERATION_FLUSH: number;
468
- const BROTLI_OPERATION_PROCESS: number;
469
- const BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: number;
470
- const BROTLI_PARAM_LARGE_WINDOW: number;
471
- const BROTLI_PARAM_LGBLOCK: number;
472
- const BROTLI_PARAM_LGWIN: number;
473
- const BROTLI_PARAM_MODE: number;
474
- const BROTLI_PARAM_NDIRECT: number;
475
- const BROTLI_PARAM_NPOSTFIX: number;
476
- const BROTLI_PARAM_QUALITY: number;
477
- const BROTLI_PARAM_SIZE_HINT: number;
478
- const DEFLATE: number;
479
- const DEFLATERAW: number;
480
- const GUNZIP: number;
481
- const GZIP: number;
482
- const INFLATE: number;
483
- const INFLATERAW: number;
484
- const UNZIP: number;
485
- // Allowed flush values.
486
- const Z_NO_FLUSH: number;
487
- const Z_PARTIAL_FLUSH: number;
488
- const Z_SYNC_FLUSH: number;
489
- const Z_FULL_FLUSH: number;
490
- const Z_FINISH: number;
491
- const Z_BLOCK: number;
492
- const Z_TREES: number;
493
- // Return codes for the compression/decompression functions.
494
- // Negative values are errors, positive values are used for special but normal events.
495
- const Z_OK: number;
496
- const Z_STREAM_END: number;
497
- const Z_NEED_DICT: number;
498
- const Z_ERRNO: number;
499
- const Z_STREAM_ERROR: number;
500
- const Z_DATA_ERROR: number;
501
- const Z_MEM_ERROR: number;
502
- const Z_BUF_ERROR: number;
503
- const Z_VERSION_ERROR: number;
504
- // Compression levels.
505
- const Z_NO_COMPRESSION: number;
506
- const Z_BEST_SPEED: number;
507
- const Z_BEST_COMPRESSION: number;
508
- const Z_DEFAULT_COMPRESSION: number;
509
- // Compression strategy.
510
- const Z_FILTERED: number;
511
- const Z_HUFFMAN_ONLY: number;
512
- const Z_RLE: number;
513
- const Z_FIXED: number;
514
- const Z_DEFAULT_STRATEGY: number;
515
- const Z_DEFAULT_WINDOWBITS: number;
516
-
517
- const Z_MIN_WINDOWBITS: number;
518
- const Z_MAX_WINDOWBITS: number;
519
- const Z_MIN_CHUNK: number;
520
- const Z_MAX_CHUNK: number;
521
- const Z_DEFAULT_CHUNK: number;
522
- const Z_MIN_MEMLEVEL: number;
523
- const Z_MAX_MEMLEVEL: number;
524
- const Z_DEFAULT_MEMLEVEL: number;
525
- const Z_MIN_LEVEL: number;
526
- const Z_MAX_LEVEL: number;
527
- const Z_DEFAULT_LEVEL: number;
528
- const ZLIB_VERNUM: number;
529
- }
530
- // Allowed flush values.
531
- /** @deprecated Use `constants.Z_NO_FLUSH` */
532
- const Z_NO_FLUSH: number;
533
- /** @deprecated Use `constants.Z_PARTIAL_FLUSH` */
534
- const Z_PARTIAL_FLUSH: number;
535
- /** @deprecated Use `constants.Z_SYNC_FLUSH` */
536
- const Z_SYNC_FLUSH: number;
537
- /** @deprecated Use `constants.Z_FULL_FLUSH` */
538
- const Z_FULL_FLUSH: number;
539
- /** @deprecated Use `constants.Z_FINISH` */
540
- const Z_FINISH: number;
541
- /** @deprecated Use `constants.Z_BLOCK` */
542
- const Z_BLOCK: number;
543
- /** @deprecated Use `constants.Z_TREES` */
544
- const Z_TREES: number;
545
- // Return codes for the compression/decompression functions.
546
- // Negative values are errors, positive values are used for special but normal events.
547
- /** @deprecated Use `constants.Z_OK` */
548
- const Z_OK: number;
549
- /** @deprecated Use `constants.Z_STREAM_END` */
550
- const Z_STREAM_END: number;
551
- /** @deprecated Use `constants.Z_NEED_DICT` */
552
- const Z_NEED_DICT: number;
553
- /** @deprecated Use `constants.Z_ERRNO` */
554
- const Z_ERRNO: number;
555
- /** @deprecated Use `constants.Z_STREAM_ERROR` */
556
- const Z_STREAM_ERROR: number;
557
- /** @deprecated Use `constants.Z_DATA_ERROR` */
558
- const Z_DATA_ERROR: number;
559
- /** @deprecated Use `constants.Z_MEM_ERROR` */
560
- const Z_MEM_ERROR: number;
561
- /** @deprecated Use `constants.Z_BUF_ERROR` */
562
- const Z_BUF_ERROR: number;
563
- /** @deprecated Use `constants.Z_VERSION_ERROR` */
564
- const Z_VERSION_ERROR: number;
565
- // Compression levels.
566
- /** @deprecated Use `constants.Z_NO_COMPRESSION` */
567
- const Z_NO_COMPRESSION: number;
568
- /** @deprecated Use `constants.Z_BEST_SPEED` */
569
- const Z_BEST_SPEED: number;
570
- /** @deprecated Use `constants.Z_BEST_COMPRESSION` */
571
- const Z_BEST_COMPRESSION: number;
572
- /** @deprecated Use `constants.Z_DEFAULT_COMPRESSION` */
573
- const Z_DEFAULT_COMPRESSION: number;
574
- // Compression strategy.
575
- /** @deprecated Use `constants.Z_FILTERED` */
576
- const Z_FILTERED: number;
577
- /** @deprecated Use `constants.Z_HUFFMAN_ONLY` */
578
- const Z_HUFFMAN_ONLY: number;
579
- /** @deprecated Use `constants.Z_RLE` */
580
- const Z_RLE: number;
581
- /** @deprecated Use `constants.Z_FIXED` */
582
- const Z_FIXED: number;
583
- /** @deprecated Use `constants.Z_DEFAULT_STRATEGY` */
584
- const Z_DEFAULT_STRATEGY: number;
585
- /** @deprecated */
586
- const Z_BINARY: number;
587
- /** @deprecated */
588
- const Z_TEXT: number;
589
- /** @deprecated */
590
- const Z_ASCII: number;
591
- /** @deprecated */
592
- const Z_UNKNOWN: number;
593
- /** @deprecated */
594
- const Z_DEFLATED: number;
595
- }
596
- declare module "node:zlib" {
597
- export * from "zlib";
598
- }
@@ -1,89 +0,0 @@
1
- {
2
- "name": "nock",
3
- "description": "HTTP server mocking and expectations library for Node.js",
4
- "tags": [
5
- "Mock",
6
- "HTTP",
7
- "testing",
8
- "isolation"
9
- ],
10
- "version": "13.5.6",
11
- "author": "Pedro Teixeira <pedro.teixeira@gmail.com>",
12
- "repository": {
13
- "type": "git",
14
- "url": "https://github.com/nock/nock.git"
15
- },
16
- "bugs": {
17
- "url": "https://github.com/nock/nock/issues"
18
- },
19
- "engines": {
20
- "node": ">= 10.13"
21
- },
22
- "main": "./index.js",
23
- "types": "types",
24
- "dependencies": {
25
- "debug": "^4.1.0",
26
- "json-stringify-safe": "^5.0.1",
27
- "propagate": "^2.0.0"
28
- },
29
- "devDependencies": {
30
- "@definitelytyped/dtslint": "^0.0.163",
31
- "@sinonjs/fake-timers": "^11.2.2",
32
- "assert-rejects": "^1.0.0",
33
- "chai": "^4.1.2",
34
- "dirty-chai": "^2.0.1",
35
- "eslint": "^8.8.0",
36
- "eslint-config-prettier": "^9.0.0",
37
- "eslint-config-standard": "^17.0.0-0",
38
- "eslint-plugin-import": "^2.16.0",
39
- "eslint-plugin-mocha": "^10.0.3",
40
- "eslint-plugin-node": "^11.0.0",
41
- "eslint-plugin-promise": "^6.0.0",
42
- "form-data": "^4.0.0",
43
- "got": "^11.3.0",
44
- "jest": "^29.7.0",
45
- "mocha": "^9.1.3",
46
- "npm-run-all": "^4.1.5",
47
- "nyc": "^15.0.0",
48
- "prettier": "3.2.5",
49
- "proxyquire": "^2.1.0",
50
- "rimraf": "^3.0.0",
51
- "semantic-release": "^24.1.0",
52
- "sinon": "^15.0.1",
53
- "sinon-chai": "^3.7.0",
54
- "typescript": "^5.0.4"
55
- },
56
- "scripts": {
57
- "format:fix": "prettier --write '**/*.{js,json,md,ts,yml,yaml}'",
58
- "format": "prettier --check '**/*.{js,json,md,ts,yml,yaml}'",
59
- "lint": "run-p lint:js lint:ts",
60
- "lint:js": "eslint --cache --cache-location './.cache/eslint' '**/*.js'",
61
- "lint:js:fix": "eslint --cache --cache-location './.cache/eslint' --fix '**/*.js'",
62
- "lint:ts": "dtslint --expectOnly types",
63
- "test": "nyc --reporter=lcov --reporter=text mocha --recursive tests",
64
- "test:coverage": "open coverage/lcov-report/index.html",
65
- "test:jest": "jest tests_jest --detectLeaks"
66
- },
67
- "license": "MIT",
68
- "files": [
69
- "index.js",
70
- "lib",
71
- "types/index.d.ts"
72
- ],
73
- "release": {
74
- "branches": [
75
- "+([0-9])?(.{+([0-9]),x}).x",
76
- "main",
77
- "next",
78
- "next-major",
79
- {
80
- "name": "beta",
81
- "prerelease": true
82
- },
83
- {
84
- "name": "alpha",
85
- "prerelease": true
86
- }
87
- ]
88
- }
89
- }