Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions workflows/invoke-private-endpoint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"start": "node app.js",
"test": "c8 mocha -p -j 2 --exit test/*.test.js"
},
"dependencies": {
"express": "^4.17.1"
"express": "^5.0.0"
},
"devDependencies": {
"c8": "^10.0.0",
"c8": "^12.0.0",
"mocha": "^10.0.0",
"supertest": "^7.0.0"
}
Expand Down
6 changes: 3 additions & 3 deletions workflows/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"author": "Google LLC",
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"build": "tsc -p .",
Expand All @@ -13,12 +13,12 @@
"test": "c8 mocha -p -j 2 --loader=ts-node/esm --extension ts --timeout 600000 --exit"
},
"dependencies": {
"@google-cloud/workflows": "^3.0.0"
"@google-cloud/workflows": "^5.0.0"
},
"devDependencies": {
"@types/mocha": "^10.0.1",
"@types/node": "^20.0.0",
"c8": "^10.0.0",
"c8": "^12.0.0",
"gts": "^5.0.0",
"mocha": "^10.2.0",
"ts-node": "^10.9.1"
Expand Down
4 changes: 2 additions & 2 deletions workflows/quickstart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "index.ts",
"private": true,
"engines": {
"node": ">=16.0.0"
"node": ">=20.0.0"
},
"scripts": {
"start": "node index.js",
Expand All @@ -14,7 +14,7 @@
"test": "mocha --loader=ts-node/esm --extension ts --timeout 600000 --exit"
},
"dependencies": {
"@google-cloud/workflows": "^3.0.0",
"@google-cloud/workflows": "^5.0.0",
"typescript": "^5.1.6"
},
"devDependencies": {
Expand Down
5 changes: 2 additions & 3 deletions workflows/quickstart/test/quickstart.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import {WorkflowsClient} from '@google-cloud/workflows';
import {v1} from '@google-cloud/workflows';
import * as assert from 'assert';
import * as cp from 'child_process';
import {before, beforeEach, describe, it} from 'mocha';

const client: WorkflowsClient = new WorkflowsClient();
const client = new v1.WorkflowsClient();
const execSync = (cmd: string) => cp.execSync(cmd, {encoding: 'utf-8'});

const PROJECT_ID = process.env.GOOGLE_CLOUD_PROJECT as string;
const LOCATION_ID = 'us-central1';
const WORKFLOW_ID = 'myFirstWorkflow';
Expand Down
1 change: 0 additions & 1 deletion workflows/quickstart/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"strict": true,
"noImplicitAny": false,
"esModuleInterop": true,
"moduleResolution": "node",
"module": "commonjs"
}
}
3 changes: 1 addition & 2 deletions workflows/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"target": "ES2020",
"strict": true,
"noImplicitAny": false,
"esModuleInterop": true,
"moduleResolution": "node"
"esModuleInterop": true
}
}
Loading