Socket
Socket
Sign inDemoInstall

@google-cloud/tasks

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/tasks - npm Package Compare versions

Comparing version 4.1.0 to 5.0.0

8

build/cjs/src/v2/cloud_tasks_client_config.json

@@ -16,5 +16,5 @@ {

"max_retry_delay_millis": 60000,
"initial_rpc_timeout_millis": 20000,
"initial_rpc_timeout_millis": 60000,
"rpc_timeout_multiplier": 1,
"max_rpc_timeout_millis": 20000,
"max_rpc_timeout_millis": 60000,
"total_timeout_millis": 600000

@@ -26,5 +26,5 @@ },

"max_retry_delay_millis": 10000,
"initial_rpc_timeout_millis": 20000,
"initial_rpc_timeout_millis": 60000,
"rpc_timeout_multiplier": 1,
"max_rpc_timeout_millis": 20000,
"max_rpc_timeout_millis": 60000,
"total_timeout_millis": 600000

@@ -31,0 +31,0 @@ }

@@ -16,5 +16,5 @@ {

"max_retry_delay_millis": 60000,
"initial_rpc_timeout_millis": 20000,
"initial_rpc_timeout_millis": 60000,
"rpc_timeout_multiplier": 1,
"max_rpc_timeout_millis": 20000,
"max_rpc_timeout_millis": 60000,
"total_timeout_millis": 600000

@@ -26,5 +26,5 @@ },

"max_retry_delay_millis": 10000,
"initial_rpc_timeout_millis": 20000,
"initial_rpc_timeout_millis": 60000,
"rpc_timeout_multiplier": 1,
"max_rpc_timeout_millis": 20000,
"max_rpc_timeout_millis": 60000,
"total_timeout_millis": 600000

@@ -138,7 +138,2 @@ }

"retry_params_name": "default"
},
"BufferTask": {
"timeout_millis": 20000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
}

@@ -145,0 +140,0 @@ }

@@ -108,7 +108,2 @@ {

},
"BufferTask": {
"methods": [
"bufferTask"
]
},
"ListQueues": {

@@ -228,7 +223,2 @@ "methods": [

},
"BufferTask": {
"methods": [
"bufferTask"
]
},
"ListQueues": {

@@ -235,0 +225,0 @@ "methods": [

@@ -16,5 +16,5 @@ {

"max_retry_delay_millis": 60000,
"initial_rpc_timeout_millis": 20000,
"initial_rpc_timeout_millis": 60000,
"rpc_timeout_multiplier": 1,
"max_rpc_timeout_millis": 20000,
"max_rpc_timeout_millis": 60000,
"total_timeout_millis": 600000

@@ -26,5 +26,5 @@ },

"max_retry_delay_millis": 10000,
"initial_rpc_timeout_millis": 20000,
"initial_rpc_timeout_millis": 60000,
"rpc_timeout_multiplier": 1,
"max_rpc_timeout_millis": 20000,
"max_rpc_timeout_millis": 60000,
"total_timeout_millis": 600000

@@ -113,7 +113,2 @@ }

"retry_params_name": "default"
},
"BufferTask": {
"timeout_millis": 20000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
}

@@ -120,0 +115,0 @@ }

@@ -83,7 +83,2 @@ {

},
"BufferTask": {
"methods": [
"bufferTask"
]
},
"ListQueues": {

@@ -178,7 +173,2 @@ "methods": [

},
"BufferTask": {
"methods": [
"bufferTask"
]
},
"ListQueues": {

@@ -185,0 +175,0 @@ "methods": [

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

// Copyright 2023 Google LLC
// Copyright 2024 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

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

// Copyright 2023 Google LLC
// Copyright 2024 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -16,5 +16,5 @@ {

"max_retry_delay_millis": 60000,
"initial_rpc_timeout_millis": 20000,
"initial_rpc_timeout_millis": 60000,
"rpc_timeout_multiplier": 1,
"max_rpc_timeout_millis": 20000,
"max_rpc_timeout_millis": 60000,
"total_timeout_millis": 600000

@@ -26,5 +26,5 @@ },

"max_retry_delay_millis": 10000,
"initial_rpc_timeout_millis": 20000,
"initial_rpc_timeout_millis": 60000,
"rpc_timeout_multiplier": 1,
"max_rpc_timeout_millis": 20000,
"max_rpc_timeout_millis": 60000,
"total_timeout_millis": 600000

@@ -31,0 +31,0 @@ }

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

// Copyright 2023 Google LLC
// Copyright 2024 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

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

// Copyright 2023 Google LLC
// Copyright 2024 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -16,5 +16,5 @@ {

"max_retry_delay_millis": 60000,
"initial_rpc_timeout_millis": 20000,
"initial_rpc_timeout_millis": 60000,
"rpc_timeout_multiplier": 1,
"max_rpc_timeout_millis": 20000,
"max_rpc_timeout_millis": 60000,
"total_timeout_millis": 600000

@@ -26,5 +26,5 @@ },

"max_retry_delay_millis": 10000,
"initial_rpc_timeout_millis": 20000,
"initial_rpc_timeout_millis": 60000,
"rpc_timeout_multiplier": 1,
"max_rpc_timeout_millis": 20000,
"max_rpc_timeout_millis": 60000,
"total_timeout_millis": 600000

@@ -138,7 +138,2 @@ }

"retry_params_name": "default"
},
"BufferTask": {
"timeout_millis": 20000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
}

@@ -145,0 +140,0 @@ }

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

// Copyright 2023 Google LLC
// Copyright 2024 Google LLC
//

@@ -222,3 +222,2 @@ // Licensed under the Apache License, Version 2.0 (the "License");

'runTask',
'bufferTask',
];

@@ -676,24 +675,2 @@ for (const methodName of cloudTasksStubMethods) {

}
bufferTask(request, optionsOrCallback, callback) {
var _a, _b;
request = request || {};
let options;
if (typeof optionsOrCallback === 'function' && callback === undefined) {
callback = optionsOrCallback;
options = {};
}
else {
options = optionsOrCallback;
}
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
queue: (_a = request.queue) !== null && _a !== void 0 ? _a : '',
task_id: (_b = request.taskId) !== null && _b !== void 0 ? _b : '',
});
this.initialize();
return this.innerApiCalls.bufferTask(request, options, callback);
}
listQueues(request, optionsOrCallback, callback) {

@@ -700,0 +677,0 @@ var _a;

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

// Copyright 2023 Google LLC
// Copyright 2024 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

@@ -16,5 +16,5 @@ {

"max_retry_delay_millis": 60000,
"initial_rpc_timeout_millis": 20000,
"initial_rpc_timeout_millis": 60000,
"rpc_timeout_multiplier": 1,
"max_rpc_timeout_millis": 20000,
"max_rpc_timeout_millis": 60000,
"total_timeout_millis": 600000

@@ -26,5 +26,5 @@ },

"max_retry_delay_millis": 10000,
"initial_rpc_timeout_millis": 20000,
"initial_rpc_timeout_millis": 60000,
"rpc_timeout_multiplier": 1,
"max_rpc_timeout_millis": 20000,
"max_rpc_timeout_millis": 60000,
"total_timeout_millis": 600000

@@ -113,7 +113,2 @@ }

"retry_params_name": "default"
},
"BufferTask": {
"timeout_millis": 20000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
}

@@ -120,0 +115,0 @@ }

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

// Copyright 2023 Google LLC
// Copyright 2024 Google LLC
//

@@ -217,3 +217,2 @@ // Licensed under the Apache License, Version 2.0 (the "License");

'runTask',
'bufferTask',
];

@@ -571,24 +570,2 @@ for (const methodName of cloudTasksStubMethods) {

}
bufferTask(request, optionsOrCallback, callback) {
var _a, _b;
request = request || {};
let options;
if (typeof optionsOrCallback === 'function' && callback === undefined) {
callback = optionsOrCallback;
options = {};
}
else {
options = optionsOrCallback;
}
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
queue: (_a = request.queue) !== null && _a !== void 0 ? _a : '',
task_id: (_b = request.taskId) !== null && _b !== void 0 ? _b : '',
});
this.initialize();
return this.innerApiCalls.bufferTask(request, options, callback);
}
listQueues(request, optionsOrCallback, callback) {

@@ -595,0 +572,0 @@ var _a;

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

// Copyright 2023 Google LLC
// Copyright 2024 Google LLC
//

@@ -3,0 +3,0 @@ // Licensed under the Apache License, Version 2.0 (the "License");

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

// Copyright 2023 Google LLC
// Copyright 2024 Google LLC
//

@@ -22,3 +22,3 @@ // Licensed under the Apache License, Version 2.0 (the "License");

describe('📦 pack-n-play test', () => {
it('TypeScript code', async function () {
it('TypeScript', async function () {
this.timeout(300000);

@@ -29,4 +29,4 @@ await packNTest({

description: 'TypeScript user can use the type definitions',
ts: readFileSync('./esm/system-test/fixtures/sample/src/index.ts').toString()
}
ts: readFileSync('./esm/system-test/fixtures/sample/src/index.ts').toString(),
},
});

@@ -37,3 +37,2 @@ });

await packNTest({
packageDir: process.cwd(),
sample: {

@@ -48,3 +47,2 @@ description: 'Should be able to import using ESM',

await packNTest({
packageDir: process.cwd(),
sample: {

@@ -51,0 +49,0 @@ description: 'Should be able to import using CJS',

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

## [5.0.0](https://github.com/googleapis/google-cloud-node/compare/tasks-v4.1.0...tasks-v5.0.0) (2024-01-29)
### ⚠ BREAKING CHANGES
* [tasks] publish in ESM and CJS, and remove bufferTask ([#4952](https://github.com/googleapis/google-cloud-node/issues/4952))
### Features
* [tasks] publish in ESM and CJS, and remove bufferTask ([#4952](https://github.com/googleapis/google-cloud-node/issues/4952)) ([2aa0e2e](https://github.com/googleapis/google-cloud-node/commit/2aa0e2ef432b5803fda0a5dc775f1ad78ee4a9df))
## [4.1.0](https://github.com/googleapis/google-cloud-node/compare/tasks-v4.0.1...tasks-v4.1.0) (2023-11-30)

@@ -9,0 +20,0 @@

{
"name": "@google-cloud/tasks",
"description": "Cloud Tasks API client for Node.js",
"version": "4.1.0",
"version": "5.0.0",
"license": "Apache-2.0",

@@ -18,3 +18,3 @@ "author": "Google LLC",

"import": {
"types": "./build/cjs/src/index.d.ts",
"types": "./build/esm/src/index.d.ts",
"default": "./build/esm/src/index.js"

@@ -84,3 +84,3 @@ },

"c8": "^8.0.1",
"gapic-tools": "^0.2.0",
"gapic-tools": "^0.3.0",
"gts": "5.2.0",

@@ -87,0 +87,0 @@ "jsdoc": "^4.0.2",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

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 not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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