@gapi/gcli 1.8.135 → 1.8.136
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +8 -1
- package/package.json +1 -1
- package/release/index.js +12 -2
package/.vscode/settings.json
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
"editor.codeActionsOnSave": {
|
|
4
4
|
"source.fixAll.eslint": true
|
|
5
5
|
},
|
|
6
|
+
"editor.formatOnSave": true,
|
|
7
|
+
"[javascript]": {
|
|
8
|
+
"editor.formatOnSave": false
|
|
9
|
+
},
|
|
10
|
+
"[typescript]": {
|
|
11
|
+
"editor.formatOnSave": false
|
|
12
|
+
},
|
|
6
13
|
"files.exclude": {
|
|
7
14
|
"**/.classpath": true,
|
|
8
15
|
"**/.factorypath": true,
|
|
@@ -13,4 +20,4 @@
|
|
|
13
20
|
"**/*.d.ts": false,
|
|
14
21
|
"**/*.map": true
|
|
15
22
|
}
|
|
16
|
-
}
|
|
23
|
+
}
|
package/package.json
CHANGED
package/release/index.js
CHANGED
|
@@ -16750,6 +16750,7 @@ function registerAuthCommands(program) {
|
|
|
16750
16750
|
.description('Login to graphql-server')
|
|
16751
16751
|
.option('-k, --key <key>', 'Specify api key')
|
|
16752
16752
|
.option('-uu, --uploadUrl <key>', 'Specify upload server')
|
|
16753
|
+
.option('-i, --integration <key>', 'Initialize directories for CI/CD purposes')
|
|
16753
16754
|
.option('-t, --token <token>', 'Specify custom token generated from the website')
|
|
16754
16755
|
.option('-u, --url <url>', 'Specify api url')
|
|
16755
16756
|
.action(helpers_1.lazy(() => Promise.resolve().then(() => __webpack_require__(875)).then((m) => m.default)));
|
|
@@ -54513,14 +54514,23 @@ exports.default = (cmd) => rxjs_1.of(gql_client_1.GraphqlClienAPI.init(cmd.key))
|
|
|
54513
54514
|
encoding: 'utf-8',
|
|
54514
54515
|
}),
|
|
54515
54516
|
])))
|
|
54516
|
-
.pipe(operators_1.switchMap(() =>
|
|
54517
|
+
.pipe(operators_1.switchMap(() => cmd.integration
|
|
54518
|
+
? rxjs_1.of({
|
|
54519
|
+
user: {
|
|
54520
|
+
displayName: 'Integration Account for CI/CD',
|
|
54521
|
+
email: 'support@graphql-server.com',
|
|
54522
|
+
},
|
|
54523
|
+
refresh: '',
|
|
54524
|
+
token: '',
|
|
54525
|
+
})
|
|
54526
|
+
: gql_client_1.GraphqlClienAPI.signIn(cmd.token).toPromise()), operators_1.switchMap(({ user, refresh, token }) => rxjs_1.combineLatest([
|
|
54517
54527
|
util_1.promisify(fs_1.writeFile)(types_1.tokenDirectory, token, {
|
|
54518
54528
|
encoding: 'utf-8',
|
|
54519
54529
|
}),
|
|
54520
54530
|
util_1.promisify(fs_1.writeFile)(types_1.refreshTokenDirectory, refresh, {
|
|
54521
54531
|
encoding: 'utf-8',
|
|
54522
54532
|
}),
|
|
54523
|
-
]).pipe(operators_1.map(() => user))), operators_1.tap((user) => console.log('Logged in as', `"${user.displayName}"`, 'with email', `"${user.email}"`)))))
|
|
54533
|
+
]).pipe(operators_1.map(() => user))), operators_1.tap((user) => console.log('Logged in as', `"${user === null || user === void 0 ? void 0 : user.displayName}"`, 'with email', `"${user === null || user === void 0 ? void 0 : user.email}"`)))))
|
|
54524
54534
|
.toPromise();
|
|
54525
54535
|
|
|
54526
54536
|
|