aws-delivlib 14.15.7 → 14.15.8

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.
@@ -52,7 +52,7 @@
52
52
  "@types/changelog-parser@^2.8.1": "https://registry.yarnpkg.com/@types/changelog-parser/-/changelog-parser-2.8.4.tgz#45d70417e742ac3bc6bef3786aa453e1f1d63ecc",
53
53
  "@types/jsonwebtoken@^9.0.0": "https://registry.yarnpkg.com/@types/jsonwebtoken/-/jsonwebtoken-9.0.8.tgz#313490052801edfb031bb32b6bbd77cc9f230852",
54
54
  "@types/ms@*": "https://registry.yarnpkg.com/@types/ms/-/ms-2.1.0.tgz#052aa67a48eccc4309d7f0191b7e41434b90bb78",
55
- "@types/node@*": "https://registry.yarnpkg.com/@types/node/-/node-22.10.10.tgz#85fe89f8bf459dc57dfef1689bd5b52ad1af07e6",
55
+ "@types/node@*": "https://registry.yarnpkg.com/@types/node/-/node-22.12.0.tgz#bf8af3b2af0837b5a62a368756ff2b705ae0048c",
56
56
  "@types/node@^14": "https://registry.yarnpkg.com/@types/node/-/node-14.18.63.tgz#1788fa8da838dbb5f9ea994b834278205db6ca2b",
57
57
  "aggregate-error@^3.1.0": "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a",
58
58
  "before-after-hook@^2.2.0": "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.2.3.tgz#c51e809c81a4e354084422b9b26bad88249c517c",
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 23 Jan 2025 18:02:27 GMT
11
+ * Last updated: Tue, 28 Jan 2025 02:01:18 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -45,6 +45,7 @@ declare module "dgram" {
45
45
  interface SocketOptions extends Abortable {
46
46
  type: SocketType;
47
47
  reuseAddr?: boolean | undefined;
48
+ reusePort?: boolean | undefined;
48
49
  /**
49
50
  * @default false
50
51
  */
@@ -3795,9 +3795,6 @@ declare module "fs" {
3795
3795
  flush?: boolean | undefined;
3796
3796
  }
3797
3797
  /**
3798
- * Unlike the 16 KiB default `highWaterMark` for a `stream.Readable`, the stream
3799
- * returned by this method has a default `highWaterMark` of 64 KiB.
3800
- *
3801
3798
  * `options` can include `start` and `end` values to read a range of bytes from
3802
3799
  * the file instead of the entire file. Both `start` and `end` are inclusive and
3803
3800
  * start counting at 0, allowed values are in the
@@ -486,17 +486,18 @@ declare module "net" {
486
486
  prependOnceListener(event: "timeout", listener: () => void): this;
487
487
  }
488
488
  interface ListenOptions extends Abortable {
489
- port?: number | undefined;
490
- host?: string | undefined;
491
489
  backlog?: number | undefined;
492
- path?: string | undefined;
493
490
  exclusive?: boolean | undefined;
494
- readableAll?: boolean | undefined;
495
- writableAll?: boolean | undefined;
491
+ host?: string | undefined;
496
492
  /**
497
493
  * @default false
498
494
  */
499
495
  ipv6Only?: boolean | undefined;
496
+ reusePort?: boolean | undefined;
497
+ path?: string | undefined;
498
+ port?: number | undefined;
499
+ readableAll?: boolean | undefined;
500
+ writableAll?: boolean | undefined;
500
501
  }
501
502
  interface ServerOpts {
502
503
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "22.10.10",
3
+ "version": "22.12.0",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -215,6 +215,6 @@
215
215
  "undici-types": "~6.20.0"
216
216
  },
217
217
  "peerDependencies": {},
218
- "typesPublisherContentHash": "473650c3cc1206a93e36487b99568f65b48fd9822931e9690fa0c31e93106b22",
218
+ "typesPublisherContentHash": "d4bd811572964de73064ee6d85299d0dff56616e67d674f2ccdc3c824a4288b7",
219
219
  "typeScriptVersion": "5.0"
220
220
  }
@@ -70,6 +70,40 @@ declare module "node:sqlite" {
70
70
  * @default false
71
71
  */
72
72
  enableDoubleQuotedStringLiterals?: boolean | undefined;
73
+ /**
74
+ * If `true`, the database is opened in read-only mode.
75
+ * If the database does not exist, opening it will fail.
76
+ * @since v22.12.0
77
+ * @default false
78
+ */
79
+ readOnly?: boolean | undefined;
80
+ }
81
+ interface CreateSessionOptions {
82
+ /**
83
+ * A specific table to track changes for. By default, changes to all tables are tracked.
84
+ * @since v22.12.0
85
+ */
86
+ table?: string | undefined;
87
+ /**
88
+ * Name of the database to track. This is useful when multiple databases have been added using
89
+ * [`ATTACH DATABASE`](https://www.sqlite.org/lang_attach.html).
90
+ * @since v22.12.0
91
+ * @default 'main'
92
+ */
93
+ db?: string | undefined;
94
+ }
95
+ interface ApplyChangesetOptions {
96
+ /**
97
+ * Skip changes that, when targeted table name is supplied to this function, return a truthy value.
98
+ * By default, all changes are attempted.
99
+ * @since v22.12.0
100
+ */
101
+ filter?: ((tableName: string) => boolean) | undefined;
102
+ /**
103
+ * Determines how conflicts are handled. **Default**: `SQLITE_CHANGESET_ABORT`.
104
+ * @since v22.12.0
105
+ */
106
+ onConflict?: number | undefined;
73
107
  }
74
108
  /**
75
109
  * This class represents a single [connection](https://www.sqlite.org/c3ref/sqlite3.html) to a SQLite database. All APIs
@@ -114,6 +148,72 @@ declare module "node:sqlite" {
114
148
  * @return The prepared statement.
115
149
  */
116
150
  prepare(sql: string): StatementSync;
151
+ /**
152
+ * Creates and attaches a session to the database. This method is a wrapper around
153
+ * [`sqlite3session_create()`](https://www.sqlite.org/session/sqlite3session_create.html) and
154
+ * [`sqlite3session_attach()`](https://www.sqlite.org/session/sqlite3session_attach.html).
155
+ * @param options The configuration options for the session.
156
+ * @returns A session handle.
157
+ * @since v22.12.0
158
+ */
159
+ createSession(options?: CreateSessionOptions): Session;
160
+ /**
161
+ * An exception is thrown if the database is not
162
+ * open. This method is a wrapper around
163
+ * [`sqlite3changeset_apply()`](https://www.sqlite.org/session/sqlite3changeset_apply.html).
164
+ *
165
+ * ```js
166
+ * const sourceDb = new DatabaseSync(':memory:');
167
+ * const targetDb = new DatabaseSync(':memory:');
168
+ *
169
+ * sourceDb.exec('CREATE TABLE data(key INTEGER PRIMARY KEY, value TEXT)');
170
+ * targetDb.exec('CREATE TABLE data(key INTEGER PRIMARY KEY, value TEXT)');
171
+ *
172
+ * const session = sourceDb.createSession();
173
+ *
174
+ * const insert = sourceDb.prepare('INSERT INTO data (key, value) VALUES (?, ?)');
175
+ * insert.run(1, 'hello');
176
+ * insert.run(2, 'world');
177
+ *
178
+ * const changeset = session.changeset();
179
+ * targetDb.applyChangeset(changeset);
180
+ * // Now that the changeset has been applied, targetDb contains the same data as sourceDb.
181
+ * ```
182
+ * @param changeset A binary changeset or patchset.
183
+ * @param options The configuration options for how the changes will be applied.
184
+ * @returns Whether the changeset was applied succesfully without being aborted.
185
+ * @since v22.12.0
186
+ */
187
+ applyChangeset(changeset: Uint8Array, options?: ApplyChangesetOptions): boolean;
188
+ }
189
+ /**
190
+ * @since v22.12.0
191
+ */
192
+ interface Session {
193
+ /**
194
+ * Retrieves a changeset containing all changes since the changeset was created. Can be called multiple times.
195
+ * An exception is thrown if the database or the session is not open. This method is a wrapper around
196
+ * [`sqlite3session_changeset()`](https://www.sqlite.org/session/sqlite3session_changeset.html).
197
+ * @returns Binary changeset that can be applied to other databases.
198
+ * @since v22.12.0
199
+ */
200
+ changeset(): Uint8Array;
201
+ /**
202
+ * Similar to the method above, but generates a more compact patchset. See
203
+ * [Changesets and Patchsets](https://www.sqlite.org/sessionintro.html#changesets_and_patchsets)
204
+ * in the documentation of SQLite. An exception is thrown if the database or the session is not open. This method is a
205
+ * wrapper around
206
+ * [`sqlite3session_patchset()`](https://www.sqlite.org/session/sqlite3session_patchset.html).
207
+ * @returns Binary patchset that can be applied to other databases.
208
+ * @since v22.12.0
209
+ */
210
+ patchset(): Uint8Array;
211
+ /**
212
+ * Closes the session. An exception is thrown if the database or the session is not open. This method is a
213
+ * wrapper around
214
+ * [`sqlite3session_delete()`](https://www.sqlite.org/session/sqlite3session_delete.html).
215
+ */
216
+ close(): void;
117
217
  }
118
218
  type SupportedValueType = null | number | bigint | string | Uint8Array;
119
219
  interface StatementResultingChanges {
@@ -231,4 +331,19 @@ declare module "node:sqlite" {
231
331
  */
232
332
  readonly sourceSQL: string;
233
333
  }
334
+ /**
335
+ * Conflicting changes are omitted.
336
+ * @since v22.12.0
337
+ */
338
+ const SQLITE_CHANGESET_OMIT: number;
339
+ /**
340
+ * Conflicting changes replace existing values.
341
+ * @since v22.12.0
342
+ */
343
+ const SQLITE_CHANGESET_REPLACE: number;
344
+ /**
345
+ * Abort when a change encounters a conflict and roll back databsase.
346
+ * @since v22.12.0
347
+ */
348
+ const SQLITE_CHANGESET_ABORT: number;
234
349
  }
@@ -108,14 +108,14 @@ declare module "util" {
108
108
  export interface InspectOptionsStylized extends InspectOptions {
109
109
  stylize(text: string, styleType: Style): string;
110
110
  }
111
- export interface StacktraceObject {
111
+ export interface CallSiteObject {
112
112
  /**
113
- * Returns the name of the function associated with this stack frame.
113
+ * Returns the name of the function associated with this call site.
114
114
  */
115
115
  functionName: string;
116
116
  /**
117
117
  * Returns the name of the resource that contains the script for the
118
- * function for this StackFrame.
118
+ * function for this call site.
119
119
  */
120
120
  scriptName: string;
121
121
  /**
@@ -186,14 +186,14 @@ declare module "util" {
186
186
  */
187
187
  export function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string;
188
188
  /**
189
- * Returns an array of stacktrace objects containing the stack of
189
+ * Returns an array of call site objects containing the stack of
190
190
  * the caller function.
191
191
  *
192
192
  * ```js
193
193
  * const util = require('node:util');
194
194
  *
195
195
  * function exampleFunction() {
196
- * const callSites = util.getCallSite();
196
+ * const callSites = util.getCallSites();
197
197
  *
198
198
  * console.log('Call Sites:');
199
199
  * callSites.forEach((callSite, index) => {
@@ -225,12 +225,12 @@ declare module "util" {
225
225
  *
226
226
  * anotherFunction();
227
227
  * ```
228
- * @param frames Number of frames returned in the stacktrace.
228
+ * @param frameCount Number of frames to capture as call site objects.
229
229
  * **Default:** `10`. Allowable range is between 1 and 200.
230
- * @return An array of stacktrace objects
230
+ * @return An array of call site objects
231
231
  * @since v22.9.0
232
232
  */
233
- export function getCallSite(frames?: number): StacktraceObject[];
233
+ export function getCallSites(frameCount?: number): CallSiteObject[];
234
234
  /**
235
235
  * Returns the string name for a numeric error code that comes from a Node.js API.
236
236
  * The mapping between error codes and error names is platform-dependent.
@@ -260,6 +260,20 @@ declare module "util" {
260
260
  * @since v16.0.0, v14.17.0
261
261
  */
262
262
  export function getSystemErrorMap(): Map<number, [string, string]>;
263
+ /**
264
+ * Returns the string message for a numeric error code that comes from a Node.js
265
+ * API.
266
+ * The mapping between error codes and string messages is platform-dependent.
267
+ *
268
+ * ```js
269
+ * fs.access('file/that/does/not/exist', (err) => {
270
+ * const name = util.getSystemErrorMessage(err.errno);
271
+ * console.error(name); // no such file or directory
272
+ * });
273
+ * ```
274
+ * @since v22.12.0
275
+ */
276
+ export function getSystemErrorMessage(err: number): string;
263
277
  /**
264
278
  * The `util.log()` method prints the given `string` to `stdout` with an included
265
279
  * timestamp.
@@ -1917,6 +1931,18 @@ declare module "util/types" {
1917
1931
  * @since v10.0.0
1918
1932
  */
1919
1933
  function isBigInt64Array(value: unknown): value is BigInt64Array;
1934
+ /**
1935
+ * Returns `true` if the value is a BigInt object, e.g. created
1936
+ * by `Object(BigInt(123))`.
1937
+ *
1938
+ * ```js
1939
+ * util.types.isBigIntObject(Object(BigInt(123))); // Returns true
1940
+ * util.types.isBigIntObject(BigInt(123)); // Returns false
1941
+ * util.types.isBigIntObject(123); // Returns false
1942
+ * ```
1943
+ * @since v10.4.0
1944
+ */
1945
+ function isBigIntObject(object: unknown): object is BigInt;
1920
1946
  /**
1921
1947
  * Returns `true` if the value is a `BigUint64Array` instance.
1922
1948
  *
package/package.json CHANGED
@@ -97,7 +97,7 @@
97
97
  "publishConfig": {
98
98
  "access": "public"
99
99
  },
100
- "version": "14.15.7",
100
+ "version": "14.15.8",
101
101
  "jest": {
102
102
  "coverageProvider": "v8",
103
103
  "testMatch": [