@google-cloud/storage
Advanced tools
Comparing version 7.0.1 to 7.1.0
@@ -6,3 +6,4 @@ /// <reference types="node" /> | ||
import { BodyResponseCallback, DecorateRequestOptions, GetConfig, MetadataCallback, ServiceObject, SetMetadataResponse } from './nodejs-common'; | ||
import { Writable, Readable } from 'stream'; | ||
import * as resumableUpload from './resumable-upload'; | ||
import { Writable, Readable, PipelineSource } from 'stream'; | ||
import * as http from 'http'; | ||
@@ -27,2 +28,3 @@ import { PreconditionOptions, Storage } from './storage'; | ||
} | ||
export type SaveData = string | Buffer | PipelineSource<string | Buffer>; | ||
export type GenerateSignedPostPolicyV2Response = [PolicyDocument]; | ||
@@ -107,13 +109,4 @@ export interface GenerateSignedPostPolicyV2Callback { | ||
export type PredefinedAcl = 'authenticatedRead' | 'bucketOwnerFullControl' | 'bucketOwnerRead' | 'private' | 'projectPrivate' | 'publicRead'; | ||
export interface CreateResumableUploadOptions { | ||
chunkSize?: number; | ||
highWaterMark?: number; | ||
metadata?: FileMetadata; | ||
origin?: string; | ||
offset?: number; | ||
predefinedAcl?: PredefinedAcl; | ||
private?: boolean; | ||
public?: boolean; | ||
uri?: string; | ||
userProject?: string; | ||
type PublicResumableUploadOptions = 'chunkSize' | 'highWaterMark' | 'metadata' | 'origin' | 'offset' | 'predefinedAcl' | 'private' | 'public' | 'uri' | 'userProject'; | ||
export interface CreateResumableUploadOptions extends Pick<resumableUpload.UploadConfig, PublicResumableUploadOptions> { | ||
preconditionOpts?: PreconditionOptions; | ||
@@ -838,5 +831,5 @@ } | ||
rotateEncryptionKey(options: RotateEncryptionKeyOptions, callback: RotateEncryptionKeyCallback): void; | ||
save(data: string | Buffer, options?: SaveOptions): Promise<void>; | ||
save(data: string | Buffer, callback: SaveCallback): void; | ||
save(data: string | Buffer, options: SaveOptions, callback: SaveCallback): void; | ||
save(data: SaveData, options?: SaveOptions): Promise<void>; | ||
save(data: SaveData, callback: SaveCallback): void; | ||
save(data: SaveData, options: SaveOptions, callback: SaveCallback): void; | ||
setMetadata(metadata: FileMetadata, options?: SetMetadataOptions): Promise<SetMetadataResponse<FileMetadata>>; | ||
@@ -843,0 +836,0 @@ setMetadata(metadata: FileMetadata, callback: MetadataCallback<FileMetadata>): void; |
@@ -45,2 +45,3 @@ /** | ||
*/ | ||
export { ApiError } from './nodejs-common'; | ||
export { AclMetadata, AccessControlObject, AclOptions, AddAclCallback, AddAclOptions, AddAclResponse, GetAclCallback, GetAclOptions, GetAclResponse, RemoveAclCallback, RemoveAclOptions, RemoveAclResponse, UpdateAclCallback, UpdateAclOptions, UpdateAclResponse, } from './acl'; | ||
@@ -47,0 +48,0 @@ export { Bucket, BucketExistsCallback, BucketExistsOptions, BucketExistsResponse, BucketLockCallback, BucketLockResponse, BucketMetadata, CombineCallback, CombineOptions, CombineResponse, CreateChannelCallback, CreateChannelConfig, CreateChannelOptions, CreateChannelResponse, CreateNotificationCallback, CreateNotificationOptions, CreateNotificationResponse, DeleteBucketCallback, DeleteBucketOptions, DeleteBucketResponse, DeleteFilesCallback, DeleteFilesOptions, DeleteLabelsCallback, DeleteLabelsResponse, DisableRequesterPaysCallback, DisableRequesterPaysResponse, EnableRequesterPaysCallback, EnableRequesterPaysResponse, GetBucketCallback, GetBucketMetadataCallback, GetBucketMetadataOptions, GetBucketMetadataResponse, GetBucketOptions, GetBucketResponse, GetBucketSignedUrlConfig, GetFilesCallback, GetFilesOptions, GetFilesResponse, GetLabelsCallback, GetLabelsOptions, GetLabelsResponse, GetNotificationsCallback, GetNotificationsOptions, GetNotificationsResponse, Labels, LifecycleAction, LifecycleCondition, LifecycleRule, MakeBucketPrivateCallback, MakeBucketPrivateOptions, MakeBucketPrivateResponse, MakeBucketPublicCallback, MakeBucketPublicOptions, MakeBucketPublicResponse, SetBucketMetadataCallback, SetBucketMetadataOptions, SetBucketMetadataResponse, SetBucketStorageClassCallback, SetBucketStorageClassOptions, SetLabelsCallback, SetLabelsOptions, SetLabelsResponse, UploadCallback, UploadOptions, UploadResponse, } from './bucket'; |
@@ -30,3 +30,49 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Storage = exports.IdempotencyStrategy = exports.Notification = exports.Iam = exports.HmacKey = exports.File = exports.Channel = exports.Bucket = void 0; | ||
exports.Storage = exports.IdempotencyStrategy = exports.Notification = exports.Iam = exports.HmacKey = exports.File = exports.Channel = exports.Bucket = exports.ApiError = void 0; | ||
/** | ||
* The `@google-cloud/storage` package has a single named export which is the | ||
* {@link Storage} (ES6) class, which should be instantiated with `new`. | ||
* | ||
* See {@link Storage} and {@link ClientConfig} for client methods and | ||
* configuration options. | ||
* | ||
* @module {Storage} @google-cloud/storage | ||
* @alias nodejs-storage | ||
* | ||
* @example | ||
* Install the client library with <a href="https://www.npmjs.com/">npm</a>: | ||
* ``` | ||
* npm install --save @google-cloud/storage | ||
* ``` | ||
* | ||
* @example | ||
* Import the client library | ||
* ``` | ||
* const {Storage} = require('@google-cloud/storage'); | ||
* ``` | ||
* | ||
* @example | ||
* Create a client that uses <a | ||
* href="https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application">Application | ||
* Default Credentials (ADC)</a>: | ||
* ``` | ||
* const storage = new Storage(); | ||
* ``` | ||
* | ||
* @example | ||
* Create a client with <a | ||
* href="https://cloud.google.com/docs/authentication/production#obtaining_and_providing_service_account_credentials_manually">explicit | ||
* credentials</a>: | ||
* ``` | ||
* const storage = new Storage({ projectId: | ||
* 'your-project-id', keyFilename: '/path/to/keyfile.json' | ||
* }); | ||
* ``` | ||
* | ||
* @example <caption>include:samples/quickstart.js</caption> | ||
* region_tag:storage_quickstart | ||
* Full quickstart example: | ||
*/ | ||
var nodejs_common_1 = require("./nodejs-common"); | ||
Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return nodejs_common_1.ApiError; } }); | ||
var bucket_1 = require("./bucket"); | ||
@@ -33,0 +79,0 @@ Object.defineProperty(exports, "Bucket", { enumerable: true, get: function () { return bucket_1.Bucket; } }); |
{ | ||
"name": "@google-cloud/storage", | ||
"description": "Cloud Storage Client Library for Node.js", | ||
"version": "7.0.1", | ||
"version": "7.1.0", | ||
"license": "Apache-2.0", | ||
@@ -53,5 +53,5 @@ "author": "Google Inc.", | ||
"dependencies": { | ||
"@google-cloud/paginator": "^3.0.7", | ||
"@google-cloud/projectify": "^3.0.0", | ||
"@google-cloud/promisify": "^3.0.0", | ||
"@google-cloud/paginator": "^5.0.0", | ||
"@google-cloud/projectify": "^4.0.0", | ||
"@google-cloud/promisify": "^4.0.0", | ||
"abort-controller": "^3.0.0", | ||
@@ -73,3 +73,3 @@ "async-retry": "^1.3.3", | ||
"devDependencies": { | ||
"@google-cloud/pubsub": "^3.0.0", | ||
"@google-cloud/pubsub": "^4.0.0", | ||
"@grpc/grpc-js": "^1.0.3", | ||
@@ -96,4 +96,4 @@ "@grpc/proto-loader": "^0.7.0", | ||
"jsdoc": "^4.0.0", | ||
"jsdoc-fresh": "^2.0.0", | ||
"jsdoc-region-tag": "^2.0.0", | ||
"jsdoc-fresh": "^3.0.0", | ||
"jsdoc-region-tag": "^3.0.0", | ||
"linkinator": "^4.0.0", | ||
@@ -100,0 +100,0 @@ "mocha": "^9.2.2", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
866334
17476
+ Added@google-cloud/paginator@5.0.2(transitive)
+ Added@google-cloud/projectify@4.0.0(transitive)
+ Added@google-cloud/promisify@4.0.0(transitive)
- Removed@google-cloud/paginator@3.0.7(transitive)
- Removed@google-cloud/projectify@3.0.0(transitive)
- Removed@google-cloud/promisify@3.0.1(transitive)