Skip to content

Commit

Permalink
fix: remove eslint, update gax, fix generated protos, run the generat…
Browse files Browse the repository at this point in the history
…or (#756)

Run the latest version of the generator, update google-gax, update gts, and remove direct dependencies on eslint.
  • Loading branch information
alexander-fenster authored Apr 11, 2020
1 parent c768b81 commit 410e05b
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 22 deletions.
10 changes: 3 additions & 7 deletions packages/google-cloud-vision/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@
"test-no-cover": "mocha test/*.js",
"docs-test": "linkinator docs",
"predocs-test": "npm run docs",
"prelint": "cd samples; npm link ../; npm i",
"prelint": "cd samples; npm link ../; npm install",
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile-protos": "compileProtos src",
"prepare": "npm run compile"
},
"dependencies": {
"@google-cloud/promisify": "^1.0.4",
"google-gax": "^2.0.1",
"google-gax": "^2.1.0",
"is": "^3.3.0"
},
"devDependencies": {
Expand All @@ -56,11 +56,7 @@
"@types/uuid": "^3.4.7",
"c8": "^7.1.0",
"codecov": "^3.6.5",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.1.2",
"gts": "2.0.0",
"gts": "^2.0.0",
"jsdoc": "^3.6.3",
"jsdoc-fresh": "^1.0.2",
"jsdoc-region-tag": "^1.0.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ message ImageContext {
// setting a hint will help get better results (although it will be a
// significant hindrance if the hint is wrong). Text detection returns an
// error if one or more of the specified languages is not one of the
// [supported languages](https://cloud.google.com/vision/docs/languages).
// [supported languages](/vision/docs/languages).
repeated string language_hints = 2;

// Parameters for crop hints annotation request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ message ImageContext {
// setting a hint will help get better results (although it will be a
// significant hindrance if the hint is wrong). Text detection returns an
// error if one or more of the specified languages is not one of the
// [supported languages](https://cloud.google.com/vision/docs/languages).
// [supported languages](/vision/docs/languages).
repeated string language_hints = 2;

// Parameters for crop hints annotation request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ message ImageContext {
// setting a hint will help get better results (although it will be a
// significant hindrance if the hint is wrong). Text detection returns an
// error if one or more of the specified languages is not one of the
// [supported languages](https://cloud.google.com/vision/docs/languages).
// [supported languages](/vision/docs/languages).
repeated string language_hints = 2;

// Parameters for crop hints annotation request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ message ImageContext {
// setting a hint will help get better results (although it will be a
// significant hindrance if the hint is wrong). Text detection returns an
// error if one or more of the specified languages is not one of the
// [supported languages](https://cloud.google.com/vision/docs/languages).
// [supported languages](/vision/docs/languages).
repeated string language_hints = 2;

// Parameters for crop hints annotation request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ message ImageContext {
// setting a hint will help get better results (although it will be a
// significant hindrance if the hint is wrong). Text detection returns an
// error if one or more of the specified languages is not one of the
// [supported languages](https://cloud.google.com/vision/docs/languages).
// [supported languages](/vision/docs/languages).
repeated string language_hints = 2;

// Parameters for crop hints annotation request.
Expand Down
10 changes: 1 addition & 9 deletions packages/google-cloud-vision/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
{
"updateTime": "2020-04-10T20:00:59.209374Z",
"updateTime": "2020-04-11T01:08:42.418307Z",
"sources": [
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "cf18ab5200e41e9d0cfef88c6c4bcdd394faf1ca",
"internalRef": "305925954"
}
},
{
"git": {
"name": "synthtool",
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-vision/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@

# Node.js specific cleanup
subprocess.run(['npm', 'install'])
subprocess.run(['npm', 'run', 'fix'])
subprocess.run(['npm', 'run', 'lint'])
subprocess.run(['npx', 'compileProtos', 'src'])

0 comments on commit 410e05b

Please sign in to comment.