Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(deps): update gts dependency for generate client library #343

Merged
merged 32 commits into from
Mar 26, 2020
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d65122e
update package.json
xiaozhenliu-gg5 Mar 19, 2020
d7d9657
add templates
xiaozhenliu-gg5 Mar 19, 2020
d345bef
Merge branch 'master' into update-gts-template
xiaozhenliu-gg5 Mar 20, 2020
c2cdb7e
lint
xiaozhenliu-gg5 Mar 20, 2020
edef8b5
Merge branch 'update-gts-template' of github.com:googleapis/gapic-gen…
xiaozhenliu-gg5 Mar 20, 2020
9b5c217
fix gts lint
xiaozhenliu-gg5 Mar 20, 2020
f5b5f43
prefer-spread
xiaozhenliu-gg5 Mar 20, 2020
8aff580
Merge branch 'master' into update-gts-template
xiaozhenliu-gg5 Mar 20, 2020
8e3c9cb
remove global rules
xiaozhenliu-gg5 Mar 23, 2020
5c9212d
remove pagination import
xiaozhenliu-gg5 Mar 24, 2020
26741c1
Merge branch 'update-gts-template' of github.com:googleapis/gapic-gen…
xiaozhenliu-gg5 Mar 24, 2020
5fb9e32
template change for new gts
xiaozhenliu-gg5 Mar 24, 2020
2e70b2b
Merge branch 'master' into update-gts-template
xiaozhenliu-gg5 Mar 24, 2020
4b3b311
remove tslint no-any
xiaozhenliu-gg5 Mar 24, 2020
df79361
Merge branch 'update-gts-template' of github.com:googleapis/gapic-gen…
xiaozhenliu-gg5 Mar 24, 2020
8b9c59f
Merge branch 'master' into update-gts-template
xiaozhenliu-gg5 Mar 24, 2020
4ec7a3c
test
xiaozhenliu-gg5 Mar 24, 2020
ad38cd8
use paginationCallback & response, remove empty-function check
xiaozhenliu-gg5 Mar 25, 2020
92a27bc
update gts to latest
xiaozhenliu-gg5 Mar 25, 2020
d0f9727
test
xiaozhenliu-gg5 Mar 25, 2020
8a3f17e
test
xiaozhenliu-gg5 Mar 25, 2020
f18194a
test
xiaozhenliu-gg5 Mar 25, 2020
f75d0ad
change back
xiaozhenliu-gg5 Mar 25, 2020
69aad40
test
xiaozhenliu-gg5 Mar 25, 2020
05ae7ff
test
xiaozhenliu-gg5 Mar 25, 2020
a8265e2
test
xiaozhenliu-gg5 Mar 25, 2020
008006b
test
xiaozhenliu-gg5 Mar 25, 2020
6f8bf6d
test
xiaozhenliu-gg5 Mar 25, 2020
b1b5f6a
test
xiaozhenliu-gg5 Mar 25, 2020
5ffdd76
try this
alexander-fenster Mar 25, 2020
f7ba3d7
and finally
alexander-fenster Mar 25, 2020
688d877
work!
xiaozhenliu-gg5 Mar 26, 2020
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
7 changes: 7 additions & 0 deletions baselines/bigquery-storage/.eslintignore.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**/node_modules
**/.coverage
build/
docs/
protos/
test-fixtures/
pbjs-genfiles/
34 changes: 34 additions & 0 deletions baselines/bigquery-storage/.eslintrc.json.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"extends": "./node_modules/gts",
"rules": {
xiaozhenliu-gg5 marked this conversation as resolved.
Show resolved Hide resolved
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
0,
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": false
}
],
"no-var-requires": "off",
"@typescript-eslint/no-var-requires": 0,
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": [
0,
{
"allow": [
"functions",
"constructors",
"methods"
]
}
],
"no-explicit-any": "off",
"@typescript-eslint/no-explicit-any": [
0,
{
"ignoreRestArgs": true
}
]
}
}
5 changes: 5 additions & 0 deletions baselines/bigquery-storage/.prettierignore.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/node_modules
**/.coverage
build/
docs/
protos/
17 changes: 17 additions & 0 deletions baselines/bigquery-storage/.prettierrc.js.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// 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
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

module.exports = {
...require('gts/.prettierrc.json')
}
6 changes: 5 additions & 1 deletion baselines/bigquery-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
"@types/mocha": "^5.2.7",
"@types/node": "^12.12.30",
"c8": "^7.1.0",
"gts": "^1.1.2",
"gts": "next",
"eslint": "^6.8.0",
xiaozhenliu-gg5 marked this conversation as resolved.
Show resolved Hide resolved
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.1.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 @@ -200,7 +200,7 @@ export class BigQueryStorageClient {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
return stub[methodName].apply(stub, args);
return stub[methodName](...args);
},
(err: Error|null|undefined) => () => {
throw err;
Expand Down
7 changes: 7 additions & 0 deletions baselines/disable-packing-test/.eslintignore.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**/node_modules
**/.coverage
build/
docs/
protos/
test-fixtures/
pbjs-genfiles/
34 changes: 34 additions & 0 deletions baselines/disable-packing-test/.eslintrc.json.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"extends": "./node_modules/gts",
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
0,
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": false
}
],
"no-var-requires": "off",
"@typescript-eslint/no-var-requires": 0,
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": [
0,
{
"allow": [
"functions",
"constructors",
"methods"
]
}
],
"no-explicit-any": "off",
"@typescript-eslint/no-explicit-any": [
0,
{
"ignoreRestArgs": true
}
]
}
}
5 changes: 5 additions & 0 deletions baselines/disable-packing-test/.prettierignore.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/node_modules
**/.coverage
build/
docs/
protos/
17 changes: 17 additions & 0 deletions baselines/disable-packing-test/.prettierrc.js.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// 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
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

module.exports = {
...require('gts/.prettierrc.json')
}
6 changes: 5 additions & 1 deletion baselines/disable-packing-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
"@types/mocha": "^5.2.7",
"@types/node": "^12.12.30",
"c8": "^7.1.0",
"gts": "^1.1.2",
"gts": "next",
"eslint": "^6.8.0",
xiaozhenliu-gg5 marked this conversation as resolved.
Show resolved Hide resolved
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.1.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 @@ -252,7 +252,7 @@ export class EchoClient {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
return stub[methodName].apply(stub, args);
return stub[methodName](...args);
},
(err: Error|null|undefined) => () => {
throw err;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export class IdentityClient {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
return stub[methodName].apply(stub, args);
return stub[methodName](...args);
},
(err: Error|null|undefined) => () => {
throw err;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export class MessagingClient {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
return stub[methodName].apply(stub, args);
return stub[methodName](...args);
},
(err: Error|null|undefined) => () => {
throw err;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export class TestingClient {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
return stub[methodName].apply(stub, args);
return stub[methodName](...args);
},
(err: Error|null|undefined) => () => {
throw err;
Expand Down
7 changes: 7 additions & 0 deletions baselines/dlp/.eslintignore.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**/node_modules
**/.coverage
build/
docs/
protos/
test-fixtures/
pbjs-genfiles/
34 changes: 34 additions & 0 deletions baselines/dlp/.eslintrc.json.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"extends": "./node_modules/gts",
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
0,
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": false
}
],
"no-var-requires": "off",
"@typescript-eslint/no-var-requires": 0,
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": [
0,
{
"allow": [
"functions",
"constructors",
"methods"
]
}
],
"no-explicit-any": "off",
"@typescript-eslint/no-explicit-any": [
0,
{
"ignoreRestArgs": true
}
]
}
}
5 changes: 5 additions & 0 deletions baselines/dlp/.prettierignore.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/node_modules
**/.coverage
build/
docs/
protos/
17 changes: 17 additions & 0 deletions baselines/dlp/.prettierrc.js.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// 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
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

module.exports = {
...require('gts/.prettierrc.json')
}
6 changes: 5 additions & 1 deletion baselines/dlp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
"@types/mocha": "^5.2.7",
"@types/node": "^12.12.30",
"c8": "^7.1.0",
"gts": "^1.1.2",
"gts": "next",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.1.0",
"jsdoc": "^3.6.3",
"jsdoc-fresh": "^1.0.2",
"jsdoc-region-tag": "^1.0.4",
Expand Down
2 changes: 1 addition & 1 deletion baselines/dlp/src/v2/dlp_service_client.ts.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export class DlpServiceClient {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
return stub[methodName].apply(stub, args);
return stub[methodName](...args);
},
(err: Error|null|undefined) => () => {
throw err;
Expand Down
7 changes: 7 additions & 0 deletions baselines/kms/.eslintignore.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**/node_modules
**/.coverage
build/
docs/
protos/
test-fixtures/
pbjs-genfiles/
34 changes: 34 additions & 0 deletions baselines/kms/.eslintrc.json.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"extends": "./node_modules/gts",
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
0,
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": false
}
],
"no-var-requires": "off",
"@typescript-eslint/no-var-requires": 0,
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": [
0,
{
"allow": [
"functions",
"constructors",
"methods"
]
}
],
"no-explicit-any": "off",
"@typescript-eslint/no-explicit-any": [
0,
{
"ignoreRestArgs": true
}
]
}
}
5 changes: 5 additions & 0 deletions baselines/kms/.prettierignore.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
**/node_modules
**/.coverage
build/
docs/
protos/
17 changes: 17 additions & 0 deletions baselines/kms/.prettierrc.js.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// 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
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

module.exports = {
...require('gts/.prettierrc.json')
}
6 changes: 5 additions & 1 deletion baselines/kms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
"@types/mocha": "^5.2.7",
"@types/node": "^12.12.30",
"c8": "^7.1.0",
"gts": "^1.1.2",
"gts": "next",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.1.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 @@ -204,7 +204,7 @@ export class KeyManagementServiceClient {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
return stub[methodName].apply(stub, args);
return stub[methodName](...args);
},
(err: Error|null|undefined) => () => {
throw err;
Expand Down
7 changes: 7 additions & 0 deletions baselines/logging/.eslintignore.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**/node_modules
**/.coverage
build/
docs/
protos/
test-fixtures/
pbjs-genfiles/
Loading