Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@google-cloud/storage

Package Overview
Dependencies
Maintainers
1
Versions
185
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 3.2.1 to 3.3.0

2

build/src/acl.js

@@ -238,2 +238,3 @@ "use strict";

}
exports.AclRoleAccessorMethods = AclRoleAccessorMethods;
AclRoleAccessorMethods.accessMethods = ['add', 'delete'];

@@ -251,3 +252,2 @@ AclRoleAccessorMethods.entities = [

AclRoleAccessorMethods.roles = ['OWNER', 'READER', 'WRITER'];
exports.AclRoleAccessorMethods = AclRoleAccessorMethods;
/**

@@ -254,0 +254,0 @@ * Cloud Storage uses access control lists (ACLs) to manage object and

@@ -541,2 +541,35 @@ /**

createWriteStream(options?: CreateWriteStreamOptions): Writable;
/**
* Delete failed resumable upload file cache.
*
* Resumable file upload cache the config file to restart upload in case of
* failure. In certain scenarios, the resumable upload will not works and
* upload file cache needs to be deleted to upload the same file.
*
* Following are some of the scenarios.
*
* Resumable file upload failed even though the file is successfully saved
* on the google storage and need to clean up a resumable file cache to
* update the same file.
*
* Resumable file upload failed due to pre-condition
* (i.e generation number is not matched) and want to upload a same
* file with the new generation number.
*
* @example
* const {Storage} = require('@google-cloud/storage');
* const storage = new Storage();
* const myBucket = storage.bucket('my-bucket');
*
* const file = myBucket.file('my-file', { generation: 0 });
* const contents = 'This is the contents of the file.';
*
* file.save(contents, function(err) {
* if (err) {
* file.deleteResumableCache();
* }
* });
*
*/
deleteResumableCache(): void;
download(options?: DownloadOptions): Promise<DownloadResponse>;

@@ -671,2 +704,3 @@ download(options: DownloadOptions, callback: DownloadCallback): void;

}
export declare function emitWarning(): void;
/**

@@ -673,0 +707,0 @@ * Reference to the {@link File} class.

@@ -43,3 +43,3 @@ /**

* The API endpoint of the service used to make requests.
* Defaults to `www.googleapis.com`.
* Defaults to `storage.googleapis.com`.
*/

@@ -46,0 +46,0 @@ apiEndpoint?: string;

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

constructor(options = {}) {
options.apiEndpoint = options.apiEndpoint || 'www.googleapis.com';
options.apiEndpoint = options.apiEndpoint || 'storage.googleapis.com';
const url = process.env.STORAGE_EMULATOR_HOST ||

@@ -629,2 +629,3 @@ `https://${options.apiEndpoint}/storage/v1`;

}
exports.Storage = Storage;
/**

@@ -723,3 +724,2 @@ * {@link Bucket} class.

};
exports.Storage = Storage;
/*! Developer Documentation

@@ -726,0 +726,0 @@ *

@@ -7,2 +7,20 @@ # Changelog

## [3.3.0](https://www.github.com/googleapis/nodejs-storage/compare/v3.2.1...v3.3.0) (2019-09-19)
### Bug Fixes
* **deps:** update dependency @google-cloud/pubsub to ^0.32.0 ([#849](https://www.github.com/googleapis/nodejs-storage/issues/849)) ([fdf70bb](https://www.github.com/googleapis/nodejs-storage/commit/fdf70bb))
* add warning for unsupported keepAcl param in file#copy ([#841](https://www.github.com/googleapis/nodejs-storage/issues/841)) ([473bda0](https://www.github.com/googleapis/nodejs-storage/commit/473bda0))
* remove unsupported keepAcl param ([#837](https://www.github.com/googleapis/nodejs-storage/issues/837)) ([5f69a3d](https://www.github.com/googleapis/nodejs-storage/commit/5f69a3d))
* use storage.googleapis.com for api endpoint ([#854](https://www.github.com/googleapis/nodejs-storage/issues/854)) ([27fa02f](https://www.github.com/googleapis/nodejs-storage/commit/27fa02f))
* **deps:** update dependency @google-cloud/pubsub to v1 ([#858](https://www.github.com/googleapis/nodejs-storage/issues/858)) ([31466f4](https://www.github.com/googleapis/nodejs-storage/commit/31466f4))
* **deps:** update dependency date-and-time to ^0.10.0 ([#857](https://www.github.com/googleapis/nodejs-storage/issues/857)) ([e9ec9cf](https://www.github.com/googleapis/nodejs-storage/commit/e9ec9cf))
### Features
* adds support for asyncIterators (via readable-stream@3 dependency) ([dd5ae7f](https://www.github.com/googleapis/nodejs-storage/commit/dd5ae7f))
* allow removal of resumable upload cache ([#773](https://www.github.com/googleapis/nodejs-storage/issues/773)) ([da943db](https://www.github.com/googleapis/nodejs-storage/commit/da943db)), closes [#217](https://www.github.com/googleapis/nodejs-storage/issues/217)
### [3.2.1](https://www.github.com/googleapis/nodejs-storage/compare/v3.2.0...v3.2.1) (2019-08-28)

@@ -9,0 +27,0 @@

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

@@ -60,7 +60,7 @@ "author": "Google Inc.",

"concat-stream": "^2.0.0",
"date-and-time": "^0.9.0",
"date-and-time": "^0.10.0",
"duplexify": "^3.5.0",
"extend": "^3.0.2",
"gaxios": "^2.0.1",
"gcs-resumable-upload": "^2.0.0",
"gcs-resumable-upload": "^2.2.4",
"hash-stream-validation": "^0.2.1",

@@ -72,2 +72,3 @@ "mime": "^2.2.0",

"pumpify": "^2.0.0",
"readable-stream": "^3.4.0",
"snakeize": "^0.1.0",

@@ -79,3 +80,3 @@ "stream-events": "^1.0.1",

"devDependencies": {
"@google-cloud/pubsub": "^0.31.0",
"@google-cloud/pubsub": "^1.0.0",
"@grpc/proto-loader": "^0.5.1",

@@ -103,3 +104,3 @@ "@types/compressible": "^2.0.0",

"eslint-config-prettier": "^6.0.0",
"eslint-plugin-node": "^9.0.0",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-prettier": "^3.0.0",

@@ -123,3 +124,3 @@ "grpc": "^1.22.2",

"tmp": "^0.1.0",
"typescript": "~3.5.0",
"typescript": "~3.6.0",
"uuid": "^3.1.0",

@@ -126,0 +127,0 @@ "yargs": "^14.0.0"

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