@hiiretail/gcp-infra-generators 1.0.1 → 1.1.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 (25) hide show
  1. package/dist/generators/common-resources/monitoring/templates/alerts/generic-infra.yaml +37 -2
  2. package/dist/generators/common-resources/pubsub/index.js +46 -9
  3. package/dist/generators/common-resources/pubsub/templates/pubsub-external-publishers/bindings.yaml +8 -0
  4. package/dist/generators/common-resources/pubsub/templates/pubsub-external-publishers/terragrunt.hcl +37 -0
  5. package/dist/node_modules/.package-lock.json +416 -417
  6. package/dist/node_modules/@google-cloud/storage/build/cjs/src/bucket.js +5 -5
  7. package/dist/node_modules/@google-cloud/storage/build/cjs/src/file.d.ts +1 -0
  8. package/dist/node_modules/@google-cloud/storage/build/cjs/src/file.js +10 -1
  9. package/dist/node_modules/@google-cloud/storage/build/cjs/src/storage.js +1 -1
  10. package/dist/node_modules/@google-cloud/storage/build/cjs/src/transfer-manager.d.ts +4 -4
  11. package/dist/node_modules/@google-cloud/storage/build/cjs/src/transfer-manager.js +4 -4
  12. package/dist/node_modules/@google-cloud/storage/build/cjs/src/util.d.ts +1 -1
  13. package/dist/node_modules/@google-cloud/storage/build/cjs/src/util.js +2 -2
  14. package/dist/node_modules/@google-cloud/storage/build/esm/src/bucket.js +5 -5
  15. package/dist/node_modules/@google-cloud/storage/build/esm/src/file.d.ts +1 -0
  16. package/dist/node_modules/@google-cloud/storage/build/esm/src/file.js +10 -1
  17. package/dist/node_modules/@google-cloud/storage/build/esm/src/storage.js +1 -1
  18. package/dist/node_modules/@google-cloud/storage/build/esm/src/transfer-manager.d.ts +4 -4
  19. package/dist/node_modules/@google-cloud/storage/build/esm/src/transfer-manager.js +4 -4
  20. package/dist/node_modules/@google-cloud/storage/build/esm/src/util.d.ts +1 -1
  21. package/dist/node_modules/@google-cloud/storage/build/esm/src/util.js +2 -2
  22. package/dist/node_modules/@google-cloud/storage/package.json +5 -5
  23. package/dist/package.json +2 -2
  24. package/package.json +2 -2
  25. package/dist/node_modules/@google-cloud/storage/CHANGELOG.md +0 -1769
@@ -821,7 +821,7 @@ class Bucket extends index_js_1.ServiceObject {
821
821
  * **Note**: For configuring a raw-formatted rule object to be passed as `action`
822
822
  * please refer to the [examples]{@link https://cloud.google.com/storage/docs/managing-lifecycles#configexamples}.
823
823
  * @param {object} rule.condition Condition a bucket must meet before the
824
- * action occurson the bucket. Refer to followitn supported [conditions]{@link https://cloud.google.com/storage/docs/lifecycle#conditions}.
824
+ * action occurs on the bucket. Refer to following supported [conditions]{@link https://cloud.google.com/storage/docs/lifecycle#conditions}.
825
825
  * @param {string} [rule.storageClass] When using the `setStorageClass`
826
826
  * action, provide this option to dictate which storage class the object
827
827
  * should update to.
@@ -1347,7 +1347,7 @@ class Bucket extends index_js_1.ServiceObject {
1347
1347
  * myBucket.createNotification('my-topic', callback);
1348
1348
  *
1349
1349
  * //-
1350
- * // Configure the nofiication by providing Notification metadata.
1350
+ * // Configure the notification by providing Notification metadata.
1351
1351
  * //-
1352
1352
  * const metadata = {
1353
1353
  * objectNamePrefix: 'prefix-'
@@ -2304,7 +2304,7 @@ class Bucket extends index_js_1.ServiceObject {
2304
2304
  * @property {boolean} [virtualHostedStyle=false] Use virtual hosted-style
2305
2305
  * URLs ('https://mybucket.storage.googleapis.com/...') instead of path-style
2306
2306
  * ('https://storage.googleapis.com/mybucket/...'). Virtual hosted-style URLs
2307
- * should generally be preferred instaed of path-style URL.
2307
+ * should generally be preferred instead of path-style URL.
2308
2308
  * Currently defaults to `false` for path-style, although this may change in a
2309
2309
  * future major-version release.
2310
2310
  * @property {string} [cname] The cname for this bucket, i.e.,
@@ -2351,7 +2351,7 @@ class Bucket extends index_js_1.ServiceObject {
2351
2351
  * @param {boolean} [config.virtualHostedStyle=false] Use virtual hosted-style
2352
2352
  * URLs ('https://mybucket.storage.googleapis.com/...') instead of path-style
2353
2353
  * ('https://storage.googleapis.com/mybucket/...'). Virtual hosted-style URLs
2354
- * should generally be preferred instaed of path-style URL.
2354
+ * should generally be preferred instead of path-style URL.
2355
2355
  * Currently defaults to `false` for path-style, although this may change in a
2356
2356
  * future major-version release.
2357
2357
  * @param {string} [config.cname] The cname for this bucket, i.e.,
@@ -2441,7 +2441,7 @@ class Bucket extends index_js_1.ServiceObject {
2441
2441
  * @throws {Error} if a metageneration is not provided.
2442
2442
  *
2443
2443
  * @param {number|string} metageneration The bucket's metageneration. This is
2444
- * accesssible from calling {@link File#getMetadata}.
2444
+ * accessible from calling {@link File#getMetadata}.
2445
2445
  * @param {BucketLockCallback} [callback] Callback function.
2446
2446
  * @returns {Promise<BucketLockResponse>}
2447
2447
  *
@@ -217,6 +217,7 @@ export type DownloadResponse = [Buffer];
217
217
  export type DownloadCallback = (err: RequestError | null, contents: Buffer) => void;
218
218
  export interface DownloadOptions extends CreateReadStreamOptions {
219
219
  destination?: string;
220
+ encryptionKey?: string | Buffer;
220
221
  }
221
222
  export interface CreateReadStreamOptions {
222
223
  userProject?: string;
@@ -1507,6 +1507,9 @@ class File extends index_js_1.ServiceObject {
1507
1507
  transformStreams.push(zlib.createGzip());
1508
1508
  }
1509
1509
  const emitStream = new util_js_2.PassThroughShim();
1510
+ // If `writeStream` is destroyed before the `writing` event, `emitStream` will not have any listeners. This prevents an unhandled error.
1511
+ const noop = () => { };
1512
+ emitStream.on('error', noop);
1510
1513
  let hashCalculatingStream = null;
1511
1514
  if (crc32c || md5) {
1512
1515
  const crc32cInstance = options.resumeCRC32C
@@ -1539,6 +1542,8 @@ class File extends index_js_1.ServiceObject {
1539
1542
  else {
1540
1543
  this.startResumableUpload_(fileWriteStream, options);
1541
1544
  }
1545
+ // remove temporary noop listener as we now create a pipeline that handles the errors
1546
+ emitStream.removeListener('error', noop);
1542
1547
  (0, stream_1.pipeline)(emitStream, ...transformStreams, fileWriteStream, async (e) => {
1543
1548
  if (e) {
1544
1549
  return pipelineCallback(e);
@@ -1673,6 +1678,10 @@ class File extends index_js_1.ServiceObject {
1673
1678
  });
1674
1679
  const destination = options.destination;
1675
1680
  delete options.destination;
1681
+ if (options.encryptionKey) {
1682
+ this.setEncryptionKey(options.encryptionKey);
1683
+ delete options.encryptionKey;
1684
+ }
1676
1685
  const fileStream = this.createReadStream(options);
1677
1686
  let receivedData = false;
1678
1687
  if (destination) {
@@ -2226,7 +2235,7 @@ class File extends index_js_1.ServiceObject {
2226
2235
  * @param {boolean} [config.virtualHostedStyle=false] Use virtual hosted-style
2227
2236
  * URLs (e.g. 'https://mybucket.storage.googleapis.com/...') instead of path-style
2228
2237
  * (e.g. 'https://storage.googleapis.com/mybucket/...'). Virtual hosted-style URLs
2229
- * should generally be preferred instaed of path-style URL.
2238
+ * should generally be preferred instead of path-style URL.
2230
2239
  * Currently defaults to `false` for path-style, although this may change in a
2231
2240
  * future major-version release.
2232
2241
  * @param {string} [config.cname] The cname for this bucket, i.e.,
@@ -599,7 +599,7 @@ class Storage extends index_js_1.Service {
599
599
  * For more information, see {@link https://cloud.google.com/storage/docs/locations| Bucket Locations}.
600
600
  * @property {boolean} [dra=false] Specify the storage class as Durable Reduced
601
601
  * Availability.
602
- * @property {boolean} [enableObjectRetention=false] Specifiy whether or not object retention should be enabled on this bucket.
602
+ * @property {boolean} [enableObjectRetention=false] Specify whether or not object retention should be enabled on this bucket.
603
603
  * @property {object} [hierarchicalNamespace.enabled=false] Specify whether or not to enable hierarchical namespace on this bucket.
604
604
  * @property {string} [location] Specify the bucket's location. If specifying
605
605
  * a dual-region, the `customPlacementConfig` property should be set in conjunction.
@@ -84,7 +84,7 @@ export declare class TransferManager {
84
84
  * @typedef {object} UploadManyFilesOptions
85
85
  * @property {number} [concurrencyLimit] The number of concurrently executing promises
86
86
  * to use when uploading the files.
87
- * @property {Function} [customDestinationBuilder] A fuction that will take the current path of a local file
87
+ * @property {Function} [customDestinationBuilder] A function that will take the current path of a local file
88
88
  * and return a string representing a custom path to be used to upload the file to GCS.
89
89
  * @property {boolean} [skipIfExists] Do not upload the file if it already exists in
90
90
  * the bucket. This will set the precondition ifGenerationMatch = 0.
@@ -209,7 +209,7 @@ export declare class TransferManager {
209
209
  * @property {number} [concurrencyLimit] The number of concurrently executing promises
210
210
  * to use when uploading the file.
211
211
  * @property {number} [chunkSizeBytes] The size in bytes of each chunk to be uploaded.
212
- * @property {string} [uploadName] Name of the file when saving to GCS. If ommitted the name is taken from the file path.
212
+ * @property {string} [uploadName] Name of the file when saving to GCS. If omitted the name is taken from the file path.
213
213
  * @property {number} [maxQueueSize] The number of chunks to be uploaded to hold in memory concurrently. If not specified
214
214
  * defaults to the specified concurrency limit.
215
215
  * @property {string} [uploadId] If specified attempts to resume a previous upload.
@@ -222,14 +222,14 @@ export declare class TransferManager {
222
222
  *
223
223
  */
224
224
  /**
225
- * Upload a large file in chunks utilizing parallel upload opertions. If the upload fails, an uploadId and
225
+ * Upload a large file in chunks utilizing parallel upload operations. If the upload fails, an uploadId and
226
226
  * map containing all the successfully uploaded parts will be returned to the caller. These arguments can be used to
227
227
  * resume the upload.
228
228
  *
229
229
  * @param {string} [filePath] The path of the file to be uploaded
230
230
  * @param {UploadFileInChunksOptions} [options] Configuration options.
231
231
  * @param {MultiPartHelperGenerator} [generator] A function that will return a type that implements the MPU interface. Most users will not need to use this.
232
- * @returns {Promise<void>} If successful a promise resolving to void, otherwise a error containing the message, uploadid, and parts map.
232
+ * @returns {Promise<void>} If successful a promise resolving to void, otherwise a error containing the message, uploadId, and parts map.
233
233
  *
234
234
  * @example
235
235
  * ```
@@ -326,7 +326,7 @@ class TransferManager {
326
326
  * @typedef {object} UploadManyFilesOptions
327
327
  * @property {number} [concurrencyLimit] The number of concurrently executing promises
328
328
  * to use when uploading the files.
329
- * @property {Function} [customDestinationBuilder] A fuction that will take the current path of a local file
329
+ * @property {Function} [customDestinationBuilder] A function that will take the current path of a local file
330
330
  * and return a string representing a custom path to be used to upload the file to GCS.
331
331
  * @property {boolean} [skipIfExists] Do not upload the file if it already exists in
332
332
  * the bucket. This will set the precondition ifGenerationMatch = 0.
@@ -595,7 +595,7 @@ class TransferManager {
595
595
  * @property {number} [concurrencyLimit] The number of concurrently executing promises
596
596
  * to use when uploading the file.
597
597
  * @property {number} [chunkSizeBytes] The size in bytes of each chunk to be uploaded.
598
- * @property {string} [uploadName] Name of the file when saving to GCS. If ommitted the name is taken from the file path.
598
+ * @property {string} [uploadName] Name of the file when saving to GCS. If omitted the name is taken from the file path.
599
599
  * @property {number} [maxQueueSize] The number of chunks to be uploaded to hold in memory concurrently. If not specified
600
600
  * defaults to the specified concurrency limit.
601
601
  * @property {string} [uploadId] If specified attempts to resume a previous upload.
@@ -608,14 +608,14 @@ class TransferManager {
608
608
  *
609
609
  */
610
610
  /**
611
- * Upload a large file in chunks utilizing parallel upload opertions. If the upload fails, an uploadId and
611
+ * Upload a large file in chunks utilizing parallel upload operations. If the upload fails, an uploadId and
612
612
  * map containing all the successfully uploaded parts will be returned to the caller. These arguments can be used to
613
613
  * resume the upload.
614
614
  *
615
615
  * @param {string} [filePath] The path of the file to be uploaded
616
616
  * @param {UploadFileInChunksOptions} [options] Configuration options.
617
617
  * @param {MultiPartHelperGenerator} [generator] A function that will return a type that implements the MPU interface. Most users will not need to use this.
618
- * @returns {Promise<void>} If successful a promise resolving to void, otherwise a error containing the message, uploadid, and parts map.
618
+ * @returns {Promise<void>} If successful a promise resolving to void, otherwise a error containing the message, uploadId, and parts map.
619
619
  *
620
620
  * @example
621
621
  * ```
@@ -61,7 +61,7 @@ export declare function convertObjKeysToSnakeCase(obj: object): object;
61
61
  * @param {boolean} includeTime flag to include hours, minutes, seconds in output.
62
62
  * @param {string} dateDelimiter delimiter between date components.
63
63
  * @param {string} timeDelimiter delimiter between time components.
64
- * @returns {string} UTC ISO format of provided date obect.
64
+ * @returns {string} UTC ISO format of provided date object.
65
65
  */
66
66
  export declare function formatAsUTCISO(dateTimeToFormat: Date, includeTime?: boolean, dateDelimiter?: string, timeDelimiter?: string): string;
67
67
  /**
@@ -179,7 +179,7 @@ function convertObjKeysToSnakeCase(obj) {
179
179
  * @param {boolean} includeTime flag to include hours, minutes, seconds in output.
180
180
  * @param {string} dateDelimiter delimiter between date components.
181
181
  * @param {string} timeDelimiter delimiter between time components.
182
- * @returns {string} UTC ISO format of provided date obect.
182
+ * @returns {string} UTC ISO format of provided date object.
183
183
  */
184
184
  function formatAsUTCISO(dateTimeToFormat, includeTime = false, dateDelimiter = '', timeDelimiter = '') {
185
185
  const year = dateTimeToFormat.getUTCFullYear();
@@ -258,7 +258,7 @@ class PassThroughShim extends stream_1.PassThrough {
258
258
  this.emit('writing');
259
259
  this.shouldEmitWriting = false;
260
260
  }
261
- // Per the nodejs documention, callback must be invoked on the next tick
261
+ // Per the nodejs documentation, callback must be invoked on the next tick
262
262
  process.nextTick(() => {
263
263
  super._write(chunk, encoding, callback);
264
264
  });
@@ -782,7 +782,7 @@ class Bucket extends ServiceObject {
782
782
  * **Note**: For configuring a raw-formatted rule object to be passed as `action`
783
783
  * please refer to the [examples]{@link https://cloud.google.com/storage/docs/managing-lifecycles#configexamples}.
784
784
  * @param {object} rule.condition Condition a bucket must meet before the
785
- * action occurson the bucket. Refer to followitn supported [conditions]{@link https://cloud.google.com/storage/docs/lifecycle#conditions}.
785
+ * action occurs on the bucket. Refer to following supported [conditions]{@link https://cloud.google.com/storage/docs/lifecycle#conditions}.
786
786
  * @param {string} [rule.storageClass] When using the `setStorageClass`
787
787
  * action, provide this option to dictate which storage class the object
788
788
  * should update to.
@@ -1308,7 +1308,7 @@ class Bucket extends ServiceObject {
1308
1308
  * myBucket.createNotification('my-topic', callback);
1309
1309
  *
1310
1310
  * //-
1311
- * // Configure the nofiication by providing Notification metadata.
1311
+ * // Configure the notification by providing Notification metadata.
1312
1312
  * //-
1313
1313
  * const metadata = {
1314
1314
  * objectNamePrefix: 'prefix-'
@@ -2265,7 +2265,7 @@ class Bucket extends ServiceObject {
2265
2265
  * @property {boolean} [virtualHostedStyle=false] Use virtual hosted-style
2266
2266
  * URLs ('https://mybucket.storage.googleapis.com/...') instead of path-style
2267
2267
  * ('https://storage.googleapis.com/mybucket/...'). Virtual hosted-style URLs
2268
- * should generally be preferred instaed of path-style URL.
2268
+ * should generally be preferred instead of path-style URL.
2269
2269
  * Currently defaults to `false` for path-style, although this may change in a
2270
2270
  * future major-version release.
2271
2271
  * @property {string} [cname] The cname for this bucket, i.e.,
@@ -2312,7 +2312,7 @@ class Bucket extends ServiceObject {
2312
2312
  * @param {boolean} [config.virtualHostedStyle=false] Use virtual hosted-style
2313
2313
  * URLs ('https://mybucket.storage.googleapis.com/...') instead of path-style
2314
2314
  * ('https://storage.googleapis.com/mybucket/...'). Virtual hosted-style URLs
2315
- * should generally be preferred instaed of path-style URL.
2315
+ * should generally be preferred instead of path-style URL.
2316
2316
  * Currently defaults to `false` for path-style, although this may change in a
2317
2317
  * future major-version release.
2318
2318
  * @param {string} [config.cname] The cname for this bucket, i.e.,
@@ -2402,7 +2402,7 @@ class Bucket extends ServiceObject {
2402
2402
  * @throws {Error} if a metageneration is not provided.
2403
2403
  *
2404
2404
  * @param {number|string} metageneration The bucket's metageneration. This is
2405
- * accesssible from calling {@link File#getMetadata}.
2405
+ * accessible from calling {@link File#getMetadata}.
2406
2406
  * @param {BucketLockCallback} [callback] Callback function.
2407
2407
  * @returns {Promise<BucketLockResponse>}
2408
2408
  *
@@ -217,6 +217,7 @@ export type DownloadResponse = [Buffer];
217
217
  export type DownloadCallback = (err: RequestError | null, contents: Buffer) => void;
218
218
  export interface DownloadOptions extends CreateReadStreamOptions {
219
219
  destination?: string;
220
+ encryptionKey?: string | Buffer;
220
221
  }
221
222
  export interface CreateReadStreamOptions {
222
223
  userProject?: string;
@@ -1467,6 +1467,9 @@ class File extends ServiceObject {
1467
1467
  transformStreams.push(zlib.createGzip());
1468
1468
  }
1469
1469
  const emitStream = new PassThroughShim();
1470
+ // If `writeStream` is destroyed before the `writing` event, `emitStream` will not have any listeners. This prevents an unhandled error.
1471
+ const noop = () => { };
1472
+ emitStream.on('error', noop);
1470
1473
  let hashCalculatingStream = null;
1471
1474
  if (crc32c || md5) {
1472
1475
  const crc32cInstance = options.resumeCRC32C
@@ -1499,6 +1502,8 @@ class File extends ServiceObject {
1499
1502
  else {
1500
1503
  this.startResumableUpload_(fileWriteStream, options);
1501
1504
  }
1505
+ // remove temporary noop listener as we now create a pipeline that handles the errors
1506
+ emitStream.removeListener('error', noop);
1502
1507
  pipeline(emitStream, ...transformStreams, fileWriteStream, async (e) => {
1503
1508
  if (e) {
1504
1509
  return pipelineCallback(e);
@@ -1633,6 +1638,10 @@ class File extends ServiceObject {
1633
1638
  });
1634
1639
  const destination = options.destination;
1635
1640
  delete options.destination;
1641
+ if (options.encryptionKey) {
1642
+ this.setEncryptionKey(options.encryptionKey);
1643
+ delete options.encryptionKey;
1644
+ }
1636
1645
  const fileStream = this.createReadStream(options);
1637
1646
  let receivedData = false;
1638
1647
  if (destination) {
@@ -2186,7 +2195,7 @@ class File extends ServiceObject {
2186
2195
  * @param {boolean} [config.virtualHostedStyle=false] Use virtual hosted-style
2187
2196
  * URLs (e.g. 'https://mybucket.storage.googleapis.com/...') instead of path-style
2188
2197
  * (e.g. 'https://storage.googleapis.com/mybucket/...'). Virtual hosted-style URLs
2189
- * should generally be preferred instaed of path-style URL.
2198
+ * should generally be preferred instead of path-style URL.
2190
2199
  * Currently defaults to `false` for path-style, although this may change in a
2191
2200
  * future major-version release.
2192
2201
  * @param {string} [config.cname] The cname for this bucket, i.e.,
@@ -595,7 +595,7 @@ export class Storage extends Service {
595
595
  * For more information, see {@link https://cloud.google.com/storage/docs/locations| Bucket Locations}.
596
596
  * @property {boolean} [dra=false] Specify the storage class as Durable Reduced
597
597
  * Availability.
598
- * @property {boolean} [enableObjectRetention=false] Specifiy whether or not object retention should be enabled on this bucket.
598
+ * @property {boolean} [enableObjectRetention=false] Specify whether or not object retention should be enabled on this bucket.
599
599
  * @property {object} [hierarchicalNamespace.enabled=false] Specify whether or not to enable hierarchical namespace on this bucket.
600
600
  * @property {string} [location] Specify the bucket's location. If specifying
601
601
  * a dual-region, the `customPlacementConfig` property should be set in conjunction.
@@ -84,7 +84,7 @@ export declare class TransferManager {
84
84
  * @typedef {object} UploadManyFilesOptions
85
85
  * @property {number} [concurrencyLimit] The number of concurrently executing promises
86
86
  * to use when uploading the files.
87
- * @property {Function} [customDestinationBuilder] A fuction that will take the current path of a local file
87
+ * @property {Function} [customDestinationBuilder] A function that will take the current path of a local file
88
88
  * and return a string representing a custom path to be used to upload the file to GCS.
89
89
  * @property {boolean} [skipIfExists] Do not upload the file if it already exists in
90
90
  * the bucket. This will set the precondition ifGenerationMatch = 0.
@@ -209,7 +209,7 @@ export declare class TransferManager {
209
209
  * @property {number} [concurrencyLimit] The number of concurrently executing promises
210
210
  * to use when uploading the file.
211
211
  * @property {number} [chunkSizeBytes] The size in bytes of each chunk to be uploaded.
212
- * @property {string} [uploadName] Name of the file when saving to GCS. If ommitted the name is taken from the file path.
212
+ * @property {string} [uploadName] Name of the file when saving to GCS. If omitted the name is taken from the file path.
213
213
  * @property {number} [maxQueueSize] The number of chunks to be uploaded to hold in memory concurrently. If not specified
214
214
  * defaults to the specified concurrency limit.
215
215
  * @property {string} [uploadId] If specified attempts to resume a previous upload.
@@ -222,14 +222,14 @@ export declare class TransferManager {
222
222
  *
223
223
  */
224
224
  /**
225
- * Upload a large file in chunks utilizing parallel upload opertions. If the upload fails, an uploadId and
225
+ * Upload a large file in chunks utilizing parallel upload operations. If the upload fails, an uploadId and
226
226
  * map containing all the successfully uploaded parts will be returned to the caller. These arguments can be used to
227
227
  * resume the upload.
228
228
  *
229
229
  * @param {string} [filePath] The path of the file to be uploaded
230
230
  * @param {UploadFileInChunksOptions} [options] Configuration options.
231
231
  * @param {MultiPartHelperGenerator} [generator] A function that will return a type that implements the MPU interface. Most users will not need to use this.
232
- * @returns {Promise<void>} If successful a promise resolving to void, otherwise a error containing the message, uploadid, and parts map.
232
+ * @returns {Promise<void>} If successful a promise resolving to void, otherwise a error containing the message, uploadId, and parts map.
233
233
  *
234
234
  * @example
235
235
  * ```
@@ -286,7 +286,7 @@ export class TransferManager {
286
286
  * @typedef {object} UploadManyFilesOptions
287
287
  * @property {number} [concurrencyLimit] The number of concurrently executing promises
288
288
  * to use when uploading the files.
289
- * @property {Function} [customDestinationBuilder] A fuction that will take the current path of a local file
289
+ * @property {Function} [customDestinationBuilder] A function that will take the current path of a local file
290
290
  * and return a string representing a custom path to be used to upload the file to GCS.
291
291
  * @property {boolean} [skipIfExists] Do not upload the file if it already exists in
292
292
  * the bucket. This will set the precondition ifGenerationMatch = 0.
@@ -555,7 +555,7 @@ export class TransferManager {
555
555
  * @property {number} [concurrencyLimit] The number of concurrently executing promises
556
556
  * to use when uploading the file.
557
557
  * @property {number} [chunkSizeBytes] The size in bytes of each chunk to be uploaded.
558
- * @property {string} [uploadName] Name of the file when saving to GCS. If ommitted the name is taken from the file path.
558
+ * @property {string} [uploadName] Name of the file when saving to GCS. If omitted the name is taken from the file path.
559
559
  * @property {number} [maxQueueSize] The number of chunks to be uploaded to hold in memory concurrently. If not specified
560
560
  * defaults to the specified concurrency limit.
561
561
  * @property {string} [uploadId] If specified attempts to resume a previous upload.
@@ -568,14 +568,14 @@ export class TransferManager {
568
568
  *
569
569
  */
570
570
  /**
571
- * Upload a large file in chunks utilizing parallel upload opertions. If the upload fails, an uploadId and
571
+ * Upload a large file in chunks utilizing parallel upload operations. If the upload fails, an uploadId and
572
572
  * map containing all the successfully uploaded parts will be returned to the caller. These arguments can be used to
573
573
  * resume the upload.
574
574
  *
575
575
  * @param {string} [filePath] The path of the file to be uploaded
576
576
  * @param {UploadFileInChunksOptions} [options] Configuration options.
577
577
  * @param {MultiPartHelperGenerator} [generator] A function that will return a type that implements the MPU interface. Most users will not need to use this.
578
- * @returns {Promise<void>} If successful a promise resolving to void, otherwise a error containing the message, uploadid, and parts map.
578
+ * @returns {Promise<void>} If successful a promise resolving to void, otherwise a error containing the message, uploadId, and parts map.
579
579
  *
580
580
  * @example
581
581
  * ```
@@ -61,7 +61,7 @@ export declare function convertObjKeysToSnakeCase(obj: object): object;
61
61
  * @param {boolean} includeTime flag to include hours, minutes, seconds in output.
62
62
  * @param {string} dateDelimiter delimiter between date components.
63
63
  * @param {string} timeDelimiter delimiter between time components.
64
- * @returns {string} UTC ISO format of provided date obect.
64
+ * @returns {string} UTC ISO format of provided date object.
65
65
  */
66
66
  export declare function formatAsUTCISO(dateTimeToFormat: Date, includeTime?: boolean, dateDelimiter?: string, timeDelimiter?: string): string;
67
67
  /**
@@ -120,7 +120,7 @@ export function convertObjKeysToSnakeCase(obj) {
120
120
  * @param {boolean} includeTime flag to include hours, minutes, seconds in output.
121
121
  * @param {string} dateDelimiter delimiter between date components.
122
122
  * @param {string} timeDelimiter delimiter between time components.
123
- * @returns {string} UTC ISO format of provided date obect.
123
+ * @returns {string} UTC ISO format of provided date object.
124
124
  */
125
125
  export function formatAsUTCISO(dateTimeToFormat, includeTime = false, dateDelimiter = '', timeDelimiter = '') {
126
126
  const year = dateTimeToFormat.getUTCFullYear();
@@ -208,7 +208,7 @@ export class PassThroughShim extends PassThrough {
208
208
  this.emit('writing');
209
209
  this.shouldEmitWriting = false;
210
210
  }
211
- // Per the nodejs documention, callback must be invoked on the next tick
211
+ // Per the nodejs documentation, callback must be invoked on the next tick
212
212
  process.nextTick(() => {
213
213
  super._write(chunk, encoding, callback);
214
214
  });
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@google-cloud/storage",
3
3
  "description": "Cloud Storage Client Library for Node.js",
4
- "version": "7.16.0",
4
+ "version": "7.17.0",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Google Inc.",
7
7
  "engines": {
@@ -93,7 +93,7 @@
93
93
  "@babel/core": "^7.22.11",
94
94
  "@google-cloud/pubsub": "^4.0.0",
95
95
  "@grpc/grpc-js": "^1.0.3",
96
- "@grpc/proto-loader": "^0.7.0",
96
+ "@grpc/proto-loader": "^0.8.0",
97
97
  "@types/async-retry": "^1.4.3",
98
98
  "@types/duplexify": "^3.6.4",
99
99
  "@types/mime": "^3.0.0",
@@ -108,11 +108,11 @@
108
108
  "@types/uuid": "^8.0.0",
109
109
  "@types/yargs": "^17.0.10",
110
110
  "c8": "^9.0.0",
111
- "form-data": "^4.0.0",
111
+ "form-data": "^4.0.4",
112
112
  "gapic-tools": "^0.4.0",
113
113
  "gts": "^5.0.0",
114
- "jsdoc": "^4.0.0",
115
- "jsdoc-fresh": "^3.0.0",
114
+ "jsdoc": "^4.0.4",
115
+ "jsdoc-fresh": "^4.0.0",
116
116
  "jsdoc-region-tag": "^3.0.0",
117
117
  "linkinator": "^3.0.0",
118
118
  "mocha": "^9.2.2",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiiretail/gcp-infra-generators",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "Infrastructure as code generator for GCP.",
5
5
  "scripts": {
6
6
  "build": "node esbuild.js && npm run build:deps",
@@ -23,7 +23,7 @@
23
23
  "cli"
24
24
  ],
25
25
  "dependencies": {
26
- "@google-cloud/storage": "^7.16.0",
26
+ "@google-cloud/storage": "^7.17.0",
27
27
  "axios": "^1.11.0",
28
28
  "chalk": "^4.1.2",
29
29
  "commander": "^14.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiiretail/gcp-infra-generators",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "Infrastructure as code generator for GCP.",
5
5
  "scripts": {
6
6
  "build": "node esbuild.js && npm run build:deps",
@@ -23,7 +23,7 @@
23
23
  "cli"
24
24
  ],
25
25
  "dependencies": {
26
- "@google-cloud/storage": "^7.16.0",
26
+ "@google-cloud/storage": "^7.17.0",
27
27
  "axios": "^1.11.0",
28
28
  "chalk": "^4.1.2",
29
29
  "commander": "^14.0.0",