Skip to content

Commit

Permalink
build!: update library to use Node 12 (#347)
Browse files Browse the repository at this point in the history
* build!: Update library to use Node 12
  • Loading branch information
sofisl authored May 28, 2022
1 parent 47a0004 commit 609a014
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
12 changes: 6 additions & 6 deletions packages/grafeas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,24 @@
"Container Analysis API"
],
"dependencies": {
"google-gax": "^2.24.1"
"google-gax": "^3.0.1"
},
"devDependencies": {
"@types/mocha": "^9.0.0",
"@types/mocha": "^9.1.1",
"@types/node": "^16.0.0",
"@types/sinon": "^10.0.0",
"c8": "^7.0.0",
"gts": "^3.0.0",
"gts": "^3.1.0",
"jsdoc": "^3.6.2",
"jsdoc-fresh": "^1.0.1",
"jsdoc-region-tag": "^1.0.2",
"linkinator": "^2.0.0",
"mocha": "^8.0.0",
"mocha": "^9.2.2",
"null-loader": "^4.0.0",
"pack-n-play": "^1.0.0-2",
"sinon": "^14.0.0",
"ts-loader": "^9.0.0",
"typescript": "^3.8.3",
"typescript": "^4.6.4",
"webpack": "^5.0.0",
"webpack-cli": "^4.0.0"
},
Expand All @@ -63,6 +63,6 @@
},
"license": "Apache-2.0",
"engines": {
"node": ">=10"
"node": ">=12.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/grafeas/samples/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": ">=10"
"node": ">=12.0.0"
},
"files": [
"*.js"
Expand Down
11 changes: 5 additions & 6 deletions packages/grafeas/system-test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,18 @@
import {describe, it} from 'mocha';
import * as assert from 'assert';
import {GrafeasClient} from '../src';
import {CallOptions} from 'google-gax';

describe('GrafeasSystemTest', () => {
describe('GrafeasSystemTest', async () => {
it('lists occurrences', async () => {
const client = new GrafeasClient();
const projectId = await client.getProjectId();
const [resp] = await client.listOccurrences(
const resp = await client.listOccurrences(
{
parent: client.projectPath(projectId),
},
{
autoPaginate: false,
pageSize: 1,
}

{pageSize: 1, autoPaginate: false} as CallOptions
);
assert.ok(resp.length > 0);
});
Expand Down

0 comments on commit 609a014

Please sign in to comment.