diff --git a/.jsdoc.js b/.jsdoc.js index fa2dda4..54cf7f1 100644 --- a/.jsdoc.js +++ b/.jsdoc.js @@ -40,7 +40,7 @@ module.exports = { includePattern: '\\.js$' }, templates: { - copyright: 'Copyright 2019 Google, LLC.', + copyright: 'Copyright 2020 Google LLC', includeDate: false, sourceFiles: false, systemName: '@google-cloud/media-translation', diff --git a/.prettierrc.js b/.prettierrc.js index 08cba37..d1b9510 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/package.json b/package.json index 3b059ac..543e2f9 100644 --- a/package.json +++ b/package.json @@ -20,24 +20,20 @@ "prepare": "npm run compile-protos && npm run compile", "system-test": "c8 mocha build/system-test", "test": "c8 mocha build/test", - "fix": "gts fix && eslint samples --fix", - "lint": "gts check && eslint samples", - "prelint": "cd samples; npm link ../; npm i", + "fix": "gts fix", + "lint": "gts fix", + "prelint": "cd samples; npm link ../; npm install", "samples-test": "cd samples/ && npm link ../ && npm test && cd ../" }, "dependencies": { - "google-gax": "^2.0.1" + "google-gax": "^2.1.0" }, "devDependencies": { "@types/mocha": "^7.0.0", "@types/node": "^12.12.29", "@types/sinon": "^9.0.0", "c8": "^7.1.0", - "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", diff --git a/protos/protos.js b/protos/protos.js index 33e7691..8fb3204 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -28,7 +28,7 @@ var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; // Exported root namespace - var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {}); + var $root = $protobuf.roots._google_cloud_media_translation_2_0_0_protos || ($protobuf.roots._google_cloud_media_translation_2_0_0_protos = {}); $root.google = (function() { diff --git a/protos/protos.json b/protos/protos.json index b73beda..6694c3b 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -1155,6 +1155,7 @@ }, "rpc": { "options": { + "cc_enable_arenas": true, "go_package": "google.golang.org/genproto/googleapis/rpc/status;status", "java_multiple_files": true, "java_outer_classname": "StatusProto", diff --git a/synth.metadata b/synth.metadata index 5a88cbc..09bf536 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,5 +1,22 @@ { - "updateTime": "2020-04-01T23:52:56.801063Z", + "updateTime": "2020-04-11T01:36:16.535216Z", + "sources": [ + { + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "1bd77e8ce6f953ac641af7966d0c52646afc16a8", + "internalRef": "305974465" + } + }, + { + "git": { + "name": "synthtool", + "remote": "https://github.com/googleapis/synthtool.git", + "sha": "6f32150677c9784f3c3a7e1949472bd29c9d72c5" + } + } + ], "destinations": [ { "client": { diff --git a/synth.py b/synth.py index ecfa356..e820650 100644 --- a/synth.py +++ b/synth.py @@ -46,5 +46,5 @@ # Node.js specific cleanup subprocess.run(['npm', 'install']) -subprocess.run(['npm', 'run', 'fix']) - +subprocess.run(['npm', 'run', 'lint']) +subprocess.run(['npx', 'compileProtos', 'src']) diff --git a/test/gapic_speech_translation_service_v1beta1.ts b/test/gapic_speech_translation_service_v1beta1.ts index e5adba7..16437ed 100644 --- a/test/gapic_speech_translation_service_v1beta1.ts +++ b/test/gapic_speech_translation_service_v1beta1.ts @@ -229,7 +229,7 @@ describe('v1beta1.SpeechTranslationServiceClient', () => { stream.write(request); stream.end(); }); - assert.rejects(async () => { + await assert.rejects(async () => { await promise; }, expectedError); assert(