Socket
Socket
Sign inDemoInstall

@google-cloud/storage

Package Overview
Dependencies
Maintainers
1
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/storage - npm Package Compare versions

Comparing version 5.18.3 to 5.19.0

build/src/gcs-resumable-upload.d.ts

2

build/src/acl.d.ts

@@ -1,2 +0,2 @@

import { BodyResponseCallback, DecorateRequestOptions, Metadata } from '@google-cloud/common';
import { BodyResponseCallback, DecorateRequestOptions, Metadata } from './nodejs-common';
export interface AclOptions {

@@ -3,0 +3,0 @@ pathPrefix: string;

/// <reference types="node" />
import { ApiError, BodyResponseCallback, DecorateRequestOptions, DeleteCallback, ExistsCallback, GetConfig, Metadata, ResponseBody, ServiceObject } from '@google-cloud/common';
import { ApiError, BodyResponseCallback, DecorateRequestOptions, DeleteCallback, ExistsCallback, GetConfig, Metadata, ResponseBody, ServiceObject } from './nodejs-common';
import * as http from 'http';

@@ -4,0 +4,0 @@ import { Acl } from './acl';

@@ -1,2 +0,2 @@

import { Metadata, ServiceObject } from '@google-cloud/common';
import { Metadata, ServiceObject } from './nodejs-common';
import { Storage } from './storage';

@@ -3,0 +3,0 @@ export interface StopCallback {

@@ -17,3 +17,3 @@ "use strict";

exports.Channel = void 0;
const common_1 = require("@google-cloud/common");
const nodejs_common_1 = require("./nodejs-common");
const promisify_1 = require("@google-cloud/promisify");

@@ -37,3 +37,3 @@ /**

*/
class Channel extends common_1.ServiceObject {
class Channel extends nodejs_common_1.ServiceObject {
constructor(storage, id, resourceId) {

@@ -93,3 +93,3 @@ const config = {

stop(callback) {
callback = callback || common_1.util.noop;
callback = callback || nodejs_common_1.util.noop;
this.request({

@@ -96,0 +96,0 @@ method: 'POST',

/// <reference types="node" />
import { BodyResponseCallback, DecorateRequestOptions, GetConfig, Metadata, ServiceObject } from '@google-cloud/common';
import { BodyResponseCallback, DecorateRequestOptions, GetConfig, Metadata, ServiceObject } from './nodejs-common';
import { Writable, Readable } from 'stream';

@@ -9,3 +9,3 @@ import * as http from 'http';

import { GetSignedUrlResponse, GetSignedUrlCallback, URLSigner, Query } from './signer';
import { ResponseBody, Duplexify } from '@google-cloud/common/build/src/util';
import { ResponseBody, Duplexify } from './nodejs-common/util';
export declare type GetExpirationDateResponse = [Date];

@@ -521,3 +521,5 @@ export interface GetExpirationDateCallback {

* specified but is not available. You may also choose to skip validation
* completely, however this is **not recommended**.
* completely, however this is **not recommended**. In addition to specifying
* validation type, providing `metadata.crc32c` or `metadata.md5Hash` will
* cause the server to perform validation in addition to client validation.
* NOTE: Validation is automatically skipped for objects that were

@@ -524,0 +526,0 @@ * uploaded using the `gzip` option and have already compressed content.

@@ -1,2 +0,2 @@

import { Metadata, ServiceObject } from '@google-cloud/common';
import { Metadata, ServiceObject } from './nodejs-common';
import { Storage } from './storage';

@@ -3,0 +3,0 @@ export interface HmacKeyOptions {

@@ -17,3 +17,3 @@ "use strict";

exports.HmacKey = void 0;
const common_1 = require("@google-cloud/common");
const nodejs_common_1 = require("./nodejs-common");
/**

@@ -37,3 +37,3 @@ * The API-formatted resource description of the HMAC key.

*/
class HmacKey extends common_1.ServiceObject {
class HmacKey extends nodejs_common_1.ServiceObject {
/**

@@ -40,0 +40,0 @@ * @typedef {object} HmacKeyOptions

@@ -1,2 +0,2 @@

import { Metadata } from '@google-cloud/common';
import { Metadata } from './nodejs-common';
import { Bucket } from './bucket';

@@ -3,0 +3,0 @@ export interface GetPolicyOptions {

@@ -1,3 +0,3 @@

import { Metadata, MetadataCallback, ServiceObject } from '@google-cloud/common';
import { ResponseBody } from '@google-cloud/common/build/src/util';
import { Metadata, MetadataCallback, ServiceObject } from './nodejs-common';
import { ResponseBody } from './nodejs-common/util';
import { Bucket } from './bucket';

@@ -4,0 +4,0 @@ export interface DeleteNotificationOptions {

@@ -17,3 +17,3 @@ "use strict";

exports.Notification = void 0;
const common_1 = require("@google-cloud/common");
const nodejs_common_1 = require("./nodejs-common");
const promisify_1 = require("@google-cloud/promisify");

@@ -51,3 +51,3 @@ /**

*/
class Notification extends common_1.ServiceObject {
class Notification extends nodejs_common_1.ServiceObject {
constructor(bucket, id) {

@@ -185,3 +185,3 @@ const methods = {

qs: options,
}, callback || common_1.util.noop);
}, callback || nodejs_common_1.util.noop);
}

@@ -188,0 +188,0 @@ /**

/// <reference types="node" />
import { ApiError, Metadata, Service, ServiceOptions } from '@google-cloud/common';
import { ApiError, Metadata, Service, ServiceOptions } from './nodejs-common';
import { Readable } from 'stream';

@@ -4,0 +4,0 @@ import { Bucket } from './bucket';

@@ -17,3 +17,3 @@ "use strict";

exports.Storage = exports.RETRYABLE_ERR_FN_DEFAULT = exports.MAX_RETRY_DELAY_DEFAULT = exports.TOTAL_TIMEOUT_DEFAULT = exports.RETRY_DELAY_MULTIPLIER_DEFAULT = exports.MAX_RETRY_DEFAULT = exports.AUTO_RETRY_DEFAULT = exports.PROTOCOL_REGEX = exports.StorageExceptionMessages = exports.ExceptionMessages = exports.IdempotencyStrategy = void 0;
const common_1 = require("@google-cloud/common");
const nodejs_common_1 = require("./nodejs-common");
const paginator_1 = require("@google-cloud/paginator");

@@ -253,3 +253,3 @@ const promisify_1 = require("@google-cloud/promisify");

*/
class Storage extends common_1.Service {
class Storage extends nodejs_common_1.Service {
/**

@@ -361,3 +361,3 @@ * @typedef {object} StorageOptions

((_a = options.retryOptions) === null || _a === void 0 ? void 0 : _a.autoRetry) !== undefined) {
throw new common_1.ApiError(StorageExceptionMessages.AUTO_RETRY_DEPRECATED);
throw new nodejs_common_1.ApiError(StorageExceptionMessages.AUTO_RETRY_DEPRECATED);
}

@@ -372,3 +372,3 @@ else if (options.autoRetry !== undefined) {

if (options.maxRetries && ((_c = options.retryOptions) === null || _c === void 0 ? void 0 : _c.maxRetries)) {
throw new common_1.ApiError(StorageExceptionMessages.MAX_RETRIES_DEPRECATED);
throw new nodejs_common_1.ApiError(StorageExceptionMessages.MAX_RETRIES_DEPRECATED);
}

@@ -495,3 +495,5 @@ else if (options.maxRetries) {

* Availability.
* @property {string} [location] Specify the location / region in which to create the bucket.
* @property {string} [location] Specify the bucket's location(s). If specifying
* a dual-region, can be specified as a string `"US-CENTRAL1+US-WEST1"`.
* For more information, see {@link https://cloud.google.com/storage/docs/locations| Bucket Locations}.
* @property {boolean} [multiRegional=false] Specify the storage class as

@@ -504,3 +506,3 @@ * Multi-Regional.

* costs when an operation is made on a Bucket and its objects.
* @property {string} [rpo] For dual region buckets, controls whether turbo
* @property {string} [rpo] For dual-region buckets, controls whether turbo
* replication is enabled (`ASYNC_TURBO`) or disabled (`DEFAULT`).

@@ -507,0 +509,0 @@ * @property {boolean} [standard=true] Specify the storage class as Standard.

{
"name": "@google-cloud/storage",
"description": "Cloud Storage Client Library for Node.js",
"version": "5.18.3",
"version": "5.19.0",
"license": "Apache-2.0",

@@ -53,4 +53,4 @@ "author": "Google Inc.",

"dependencies": {
"@google-cloud/common": "^3.8.1",
"@google-cloud/paginator": "^3.0.7",
"@google-cloud/projectify": "^2.0.0",
"@google-cloud/promisify": "^2.0.0",

@@ -64,6 +64,7 @@ "abort-controller": "^3.0.0",

"duplexify": "^4.0.0",
"ent": "^2.2.0",
"extend": "^3.0.2",
"gaxios": "^4.0.0",
"get-stream": "^6.0.0",
"google-auth-library": "^7.0.0",
"google-auth-library": "^7.14.1",
"hash-stream-validation": "^0.2.2",

@@ -74,4 +75,6 @@ "mime": "^3.0.0",

"pumpify": "^2.0.0",
"retry-request": "^4.2.2",
"snakeize": "^0.1.0",
"stream-events": "^1.0.4",
"teeny-request": "^7.1.3",
"xdg-basedir": "^4.0.0"

@@ -85,5 +88,5 @@ },

"@types/compressible": "^2.0.0",
"@types/concat-stream": "^2.0.0",
"@types/configstore": "^5.0.0",
"@types/date-and-time": "^0.13.0",
"@types/ent": "^2.2.1",
"@types/extend": "^3.0.0",

@@ -98,2 +101,3 @@ "@types/mime": "^2.0.0",

"@types/pumpify": "^1.4.1",
"@types/request": "^2.48.4",
"@types/sinon": "^10.0.0",

@@ -100,0 +104,0 @@ "@types/tmp": "0.2.3",

@@ -117,2 +117,3 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost."

| Copy Old Version Of File. | [source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/copyOldVersionOfFile.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/copyOldVersionOfFile.js,samples/README.md) |
| Create a Dual-Region Bucket | [source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/createBucketWithDualRegion.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/createBucketWithDualRegion.js,samples/README.md) |
| Create Bucket With Storage Class and Location. | [source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/createBucketWithStorageClassAndLocation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/createBucketWithStorageClassAndLocation.js,samples/README.md) |

@@ -119,0 +120,0 @@ | Create Bucket With Turbo Replication | [source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/createBucketWithTurboReplication.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/createBucketWithTurboReplication.js,samples/README.md) |

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc