@takeshape/cli 9.13.0 → 9.14.0
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/package.json +14 -9
- package/dist/auth.d.ts +0 -5
- package/dist/auth.d.ts.map +0 -1
- package/dist/auth.js +0 -76
- package/dist/check-version.d.ts +0 -2
- package/dist/check-version.d.ts.map +0 -1
- package/dist/check-version.js +0 -22
- package/dist/commands/branch/commands/create.d.ts +0 -2
- package/dist/commands/branch/commands/create.d.ts.map +0 -1
- package/dist/commands/branch/commands/create.js +0 -67
- package/dist/commands/branch/commands/delete.d.ts +0 -2
- package/dist/commands/branch/commands/delete.d.ts.map +0 -1
- package/dist/commands/branch/commands/delete.js +0 -58
- package/dist/commands/branch/commands/list.d.ts +0 -12
- package/dist/commands/branch/commands/list.d.ts.map +0 -1
- package/dist/commands/branch/commands/list.js +0 -54
- package/dist/commands/branch/commands/merge.d.ts +0 -2
- package/dist/commands/branch/commands/merge.d.ts.map +0 -1
- package/dist/commands/branch/commands/merge.js +0 -158
- package/dist/commands/branch/commands/promote.d.ts +0 -2
- package/dist/commands/branch/commands/promote.d.ts.map +0 -1
- package/dist/commands/branch/commands/promote.js +0 -50
- package/dist/commands/branch/commands/tag-version.d.ts +0 -2
- package/dist/commands/branch/commands/tag-version.d.ts.map +0 -1
- package/dist/commands/branch/commands/tag-version.js +0 -59
- package/dist/commands/branch/commands/url.d.ts +0 -3
- package/dist/commands/branch/commands/url.d.ts.map +0 -1
- package/dist/commands/branch/commands/url.js +0 -84
- package/dist/commands/branch/index.d.ts +0 -4
- package/dist/commands/branch/index.d.ts.map +0 -1
- package/dist/commands/branch/index.js +0 -47
- package/dist/commands/build-or-watch.d.ts +0 -4
- package/dist/commands/build-or-watch.d.ts.map +0 -1
- package/dist/commands/build-or-watch.js +0 -73
- package/dist/commands/deploy/index.d.ts +0 -9
- package/dist/commands/deploy/index.d.ts.map +0 -1
- package/dist/commands/deploy/index.js +0 -74
- package/dist/commands/deploy/zip.d.ts +0 -18
- package/dist/commands/deploy/zip.d.ts.map +0 -1
- package/dist/commands/deploy/zip.js +0 -57
- package/dist/commands/export/index.d.ts +0 -4
- package/dist/commands/export/index.d.ts.map +0 -1
- package/dist/commands/export/index.js +0 -23
- package/dist/commands/export/project-export.d.ts +0 -8
- package/dist/commands/export/project-export.d.ts.map +0 -1
- package/dist/commands/export/project-export.js +0 -109
- package/dist/commands/export/schema-export.d.ts +0 -3
- package/dist/commands/export/schema-export.d.ts.map +0 -1
- package/dist/commands/export/schema-export.js +0 -88
- package/dist/commands/import/index.d.ts +0 -4
- package/dist/commands/import/index.d.ts.map +0 -1
- package/dist/commands/import/index.js +0 -33
- package/dist/commands/import/project-import.d.ts +0 -11
- package/dist/commands/import/project-import.d.ts.map +0 -1
- package/dist/commands/import/project-import.js +0 -198
- package/dist/commands/import/roles-import.d.ts +0 -3
- package/dist/commands/import/roles-import.d.ts.map +0 -1
- package/dist/commands/import/roles-import.js +0 -59
- package/dist/commands/import/schema-import.d.ts +0 -3
- package/dist/commands/import/schema-import.d.ts.map +0 -1
- package/dist/commands/import/schema-import.js +0 -93
- package/dist/commands/link.d.ts +0 -3
- package/dist/commands/link.d.ts.map +0 -1
- package/dist/commands/link.js +0 -63
- package/dist/commands/login.d.ts +0 -4
- package/dist/commands/login.d.ts.map +0 -1
- package/dist/commands/login.js +0 -32
- package/dist/commands/logout.d.ts +0 -4
- package/dist/commands/logout.d.ts.map +0 -1
- package/dist/commands/logout.js +0 -30
- package/dist/commands/schema.d.ts +0 -3
- package/dist/commands/schema.d.ts.map +0 -1
- package/dist/commands/schema.js +0 -25
- package/dist/commands/status.d.ts +0 -3
- package/dist/commands/status.d.ts.map +0 -1
- package/dist/commands/status.js +0 -18
- package/dist/commands/types.d.ts +0 -3
- package/dist/commands/types.d.ts.map +0 -1
- package/dist/commands/types.js +0 -30
- package/dist/commands/unlink.d.ts +0 -4
- package/dist/commands/unlink.d.ts.map +0 -1
- package/dist/commands/unlink.js +0 -30
- package/dist/commands/validate.d.ts +0 -4
- package/dist/commands/validate.d.ts.map +0 -1
- package/dist/commands/validate.js +0 -57
- package/dist/config.d.ts +0 -13
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -161
- package/dist/deprecated.d.ts +0 -2
- package/dist/deprecated.d.ts.map +0 -1
- package/dist/deprecated.js +0 -9
- package/dist/errors.d.ts +0 -7
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -36
- package/dist/files.d.ts +0 -4
- package/dist/files.d.ts.map +0 -1
- package/dist/files.js +0 -56
- package/dist/graphql.d.ts +0 -22
- package/dist/graphql.d.ts.map +0 -1
- package/dist/graphql.js +0 -104
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -128
- package/dist/log.d.ts +0 -4
- package/dist/log.d.ts.map +0 -1
- package/dist/log.js +0 -21
- package/dist/main.d.ts +0 -2
- package/dist/main.d.ts.map +0 -1
- package/dist/main.js +0 -40
- package/dist/options.d.ts +0 -102
- package/dist/options.d.ts.map +0 -1
- package/dist/options.js +0 -103
- package/dist/prompt.d.ts +0 -11
- package/dist/prompt.d.ts.map +0 -1
- package/dist/prompt.js +0 -39
- package/dist/types.d.ts +0 -47
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -20
- package/dist/util/api.d.ts +0 -5
- package/dist/util/api.d.ts.map +0 -1
- package/dist/util/api.js +0 -76
- package/dist/util/branches.d.ts +0 -18
- package/dist/util/branches.d.ts.map +0 -1
- package/dist/util/branches.js +0 -77
- package/dist/util/cached-connector.d.ts +0 -5
- package/dist/util/cached-connector.d.ts.map +0 -1
- package/dist/util/cached-connector.js +0 -34
- package/dist/util/connector.d.ts +0 -8
- package/dist/util/connector.d.ts.map +0 -1
- package/dist/util/connector.js +0 -19
- package/dist/util/data.d.ts +0 -39
- package/dist/util/data.d.ts.map +0 -1
- package/dist/util/data.js +0 -165
- package/dist/util/fatal-error.d.ts +0 -2
- package/dist/util/fatal-error.d.ts.map +0 -1
- package/dist/util/fatal-error.js +0 -17
- package/dist/util/format-error.d.ts +0 -2
- package/dist/util/format-error.d.ts.map +0 -1
- package/dist/util/format-error.js +0 -10
- package/dist/util/format-validation-result.d.ts +0 -3
- package/dist/util/format-validation-result.d.ts.map +0 -1
- package/dist/util/format-validation-result.js +0 -17
- package/dist/util/fs.d.ts +0 -5
- package/dist/util/fs.d.ts.map +0 -1
- package/dist/util/fs.js +0 -42
- package/dist/util/generate-types.d.ts +0 -5
- package/dist/util/generate-types.d.ts.map +0 -1
- package/dist/util/generate-types.js +0 -63
- package/dist/util/get-client-schema.d.ts +0 -5
- package/dist/util/get-client-schema.d.ts.map +0 -1
- package/dist/util/get-client-schema.js +0 -31
- package/dist/util/glitch.d.ts +0 -5
- package/dist/util/glitch.d.ts.map +0 -1
- package/dist/util/glitch.js +0 -51
- package/dist/util/linked-command.d.ts +0 -5
- package/dist/util/linked-command.d.ts.map +0 -1
- package/dist/util/linked-command.js +0 -48
- package/dist/util/login.d.ts +0 -21
- package/dist/util/login.d.ts.map +0 -1
- package/dist/util/login.js +0 -141
- package/dist/util/messages.d.ts +0 -13
- package/dist/util/messages.d.ts.map +0 -1
- package/dist/util/messages.js +0 -60
- package/dist/util/ora-wrapper.d.ts +0 -2
- package/dist/util/ora-wrapper.d.ts.map +0 -1
- package/dist/util/ora-wrapper.js +0 -28
- package/dist/util/pusher.d.ts +0 -10
- package/dist/util/pusher.d.ts.map +0 -1
- package/dist/util/pusher.js +0 -34
- package/dist/util/runner.d.ts +0 -2
- package/dist/util/runner.d.ts.map +0 -1
- package/dist/util/runner.js +0 -46
- package/dist/util/select-project.d.ts +0 -4
- package/dist/util/select-project.d.ts.map +0 -1
- package/dist/util/select-project.js +0 -23
- package/dist/util/spin.d.ts +0 -7
- package/dist/util/spin.d.ts.map +0 -1
- package/dist/util/spin.js +0 -41
- package/dist/util/upload.d.ts +0 -5
- package/dist/util/upload.d.ts.map +0 -1
- package/dist/util/upload.js +0 -55
- package/dist/util/watcher.d.ts +0 -2
- package/dist/util/watcher.d.ts.map +0 -1
- package/dist/util/watcher.js +0 -30
package/dist/util/glitch.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isGlitch = isGlitch;
|
|
7
|
-
exports.readDotEnv = readDotEnv;
|
|
8
|
-
exports.updateEnv = updateEnv;
|
|
9
|
-
exports.writeDotEnv = writeDotEnv;
|
|
10
|
-
|
|
11
|
-
var _dotenv = _interopRequireDefault(require("dotenv"));
|
|
12
|
-
|
|
13
|
-
var _dotenvStringify = _interopRequireDefault(require("dotenv-stringify"));
|
|
14
|
-
|
|
15
|
-
var _fsExtra = _interopRequireDefault(require("fs-extra"));
|
|
16
|
-
|
|
17
|
-
var _path = _interopRequireDefault(require("path"));
|
|
18
|
-
|
|
19
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
|
-
|
|
21
|
-
function isGlitch() {
|
|
22
|
-
return Boolean(process.env.GLITCH) || Boolean(process.env.PROJECT_REMIX_CHAIN);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function getEnvPath() {
|
|
26
|
-
return _path.default.resolve(process.cwd(), '.env');
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
async function readDotEnv() {
|
|
30
|
-
const path = getEnvPath();
|
|
31
|
-
|
|
32
|
-
if (_fsExtra.default.existsSync(path)) {
|
|
33
|
-
return _dotenv.default.parse(await _fsExtra.default.readFile(path));
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return {};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
async function writeDotEnv(env) {
|
|
40
|
-
return _fsExtra.default.writeFile(getEnvPath(), (0, _dotenvStringify.default)(env));
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
async function updateEnv(authToken, project, site = {}) {
|
|
44
|
-
const env = await readDotEnv();
|
|
45
|
-
env.TS_AUTH_TOKEN = authToken;
|
|
46
|
-
env.TS_PROJECT_ID = project.value;
|
|
47
|
-
env.TS_PROJECT_NAME = project.name;
|
|
48
|
-
env.TS_SITE_ID = site.value;
|
|
49
|
-
env.TS_SITE_NAME = site.name;
|
|
50
|
-
await writeDotEnv(env);
|
|
51
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { AuthedHandler, Handler, LinkedHandler, LoggedInAndLinkedHandler } from '../types';
|
|
2
|
-
export declare function linkedCommand(handler: LinkedHandler): Handler;
|
|
3
|
-
export declare function loggedInCommand(handler: AuthedHandler): Handler;
|
|
4
|
-
export declare function loggedInAndLinkedCommand(handler: LoggedInAndLinkedHandler): Handler;
|
|
5
|
-
//# sourceMappingURL=linked-command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"linked-command.d.ts","sourceRoot":"","sources":["../../../src/util/linked-command.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,OAAO,EAGP,aAAa,EACb,wBAAwB,EAGzB,MAAM,UAAU,CAAC;AAkBlB,wBAAgB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAM7D;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAK/D;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAOnF"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.linkedCommand = linkedCommand;
|
|
7
|
-
exports.loggedInAndLinkedCommand = loggedInAndLinkedCommand;
|
|
8
|
-
exports.loggedInCommand = loggedInCommand;
|
|
9
|
-
|
|
10
|
-
var _types = require("../types");
|
|
11
|
-
|
|
12
|
-
var _log = require("../log");
|
|
13
|
-
|
|
14
|
-
function assertLinked(params) {
|
|
15
|
-
if (!(0, _types.isLinkedCliConfig)(params)) {
|
|
16
|
-
(0, _log.logError)('Error: Missing project information not initialized please run `takeshape link`.');
|
|
17
|
-
process.exit(1);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function assertLoggedIn(params) {
|
|
22
|
-
if (!(0, _types.isLoggedInCliConfig)(params)) {
|
|
23
|
-
(0, _log.logError)(`Error: You are not logged in to TakeShape. Please run 'takeshape login' to login.`);
|
|
24
|
-
process.exit(1);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function linkedCommand(handler) {
|
|
29
|
-
return async (cli, params) => {
|
|
30
|
-
assertLinked(params);
|
|
31
|
-
return handler(cli, params);
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function loggedInCommand(handler) {
|
|
36
|
-
return async (cli, params) => {
|
|
37
|
-
assertLoggedIn(params);
|
|
38
|
-
return handler(cli, params);
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function loggedInAndLinkedCommand(handler) {
|
|
43
|
-
return async (cli, params) => {
|
|
44
|
-
assertLoggedIn(params);
|
|
45
|
-
assertLinked(params);
|
|
46
|
-
return handler(cli, params);
|
|
47
|
-
};
|
|
48
|
-
}
|
package/dist/util/login.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { CliConfig } from '../types';
|
|
2
|
-
export declare const waitingQuestions: {
|
|
3
|
-
type: string;
|
|
4
|
-
name: string;
|
|
5
|
-
message: string;
|
|
6
|
-
}[];
|
|
7
|
-
export declare function loginBrowser(params: CliConfig): Promise<string>;
|
|
8
|
-
export declare const loginQuestions: ({
|
|
9
|
-
type: string;
|
|
10
|
-
name: string;
|
|
11
|
-
message: string;
|
|
12
|
-
validate(input: string): true | "Please enter a valid email";
|
|
13
|
-
} | {
|
|
14
|
-
type: string;
|
|
15
|
-
name: string;
|
|
16
|
-
message: string;
|
|
17
|
-
})[];
|
|
18
|
-
export declare function attemptLogin(params: CliConfig): Promise<string>;
|
|
19
|
-
export declare function attemptOpenForgotPassword(params: CliConfig): Promise<void>;
|
|
20
|
-
export declare function loginCli(params: CliConfig, maxAttempts: number): Promise<string | undefined>;
|
|
21
|
-
//# sourceMappingURL=login.d.ts.map
|
package/dist/util/login.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/util/login.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAC;AAGnC,eAAO,MAAM,gBAAgB;;;;GAM5B,CAAC;AAEF,wBAAsB,YAAY,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAiDrE;AAED,eAAO,MAAM,cAAc;;;;oBAKP,MAAM;;;;;IASzB,CAAC;AAEF,wBAAsB,YAAY,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAGrE;AAED,wBAAsB,yBAAyB,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAKhF;AAED,wBAAsB,QAAQ,CAAC,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAoBlG"}
|
package/dist/util/login.js
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.attemptLogin = attemptLogin;
|
|
7
|
-
exports.attemptOpenForgotPassword = attemptOpenForgotPassword;
|
|
8
|
-
exports.loginBrowser = loginBrowser;
|
|
9
|
-
exports.loginCli = loginCli;
|
|
10
|
-
exports.waitingQuestions = exports.loginQuestions = void 0;
|
|
11
|
-
|
|
12
|
-
var _http = _interopRequireDefault(require("http"));
|
|
13
|
-
|
|
14
|
-
var _open = _interopRequireDefault(require("open"));
|
|
15
|
-
|
|
16
|
-
var _prompt = require("../prompt");
|
|
17
|
-
|
|
18
|
-
var _emailValidator = require("email-validator");
|
|
19
|
-
|
|
20
|
-
var _getPort = _interopRequireDefault(require("get-port"));
|
|
21
|
-
|
|
22
|
-
var _auth = require("../auth");
|
|
23
|
-
|
|
24
|
-
var _messages = require("./messages");
|
|
25
|
-
|
|
26
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
|
-
|
|
28
|
-
const waitingQuestions = [{
|
|
29
|
-
type: 'input',
|
|
30
|
-
name: 'token',
|
|
31
|
-
message: 'Opening a web browser to log you in. If the browser gives you a token, paste it here:\n'
|
|
32
|
-
}];
|
|
33
|
-
exports.waitingQuestions = waitingQuestions;
|
|
34
|
-
|
|
35
|
-
async function loginBrowser(params) {
|
|
36
|
-
// Port for login page to communicate with the CLI
|
|
37
|
-
const port = await (0, _getPort.default)(); // Open a browser to the login page
|
|
38
|
-
|
|
39
|
-
await (0, _open.default)(`${params.appUrl}/login?returnToCli=true&cliPort=${port}`, {
|
|
40
|
-
wait: false
|
|
41
|
-
});
|
|
42
|
-
let loginPromptUi; // Spin up an ad-hoc server to recive the auth token from the login page
|
|
43
|
-
|
|
44
|
-
return new Promise((resolve, reject) => {
|
|
45
|
-
const server = _http.default.createServer((req, res) => {
|
|
46
|
-
res.setHeader('Content-Type', 'text/plain');
|
|
47
|
-
res.setHeader('Access-Control-Allow-Origin', params.appUrl);
|
|
48
|
-
res.setHeader('Access-Control-Allow-Headers', 'x-takeshape-token');
|
|
49
|
-
|
|
50
|
-
if (req.method === 'OPTIONS') {
|
|
51
|
-
res.statusCode = 200;
|
|
52
|
-
res.end('Success');
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
const token = req.headers['x-takeshape-token'];
|
|
57
|
-
|
|
58
|
-
if (typeof token === 'string') {
|
|
59
|
-
res.statusCode = 200;
|
|
60
|
-
res.end('Success');
|
|
61
|
-
(0, _messages.loginSuccess)();
|
|
62
|
-
resolve(token);
|
|
63
|
-
} else {
|
|
64
|
-
res.statusCode = 400;
|
|
65
|
-
res.end('Bad Request');
|
|
66
|
-
reject(new Error('Did not receive auth token from webapp.'));
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
if (loginPromptUi) {
|
|
70
|
-
// @ts-expect-error `close` is protected but this is the suggested solution from here:
|
|
71
|
-
// https://github.com/SBoudrias/Inquirer.js/issues/941
|
|
72
|
-
loginPromptUi.close();
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
server.close();
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
server.listen(port, '127.0.0.1', async () => {
|
|
79
|
-
const loginPrompt = (0, _prompt.prompt)(waitingQuestions);
|
|
80
|
-
loginPromptUi = loginPrompt.ui;
|
|
81
|
-
const answers = await loginPrompt;
|
|
82
|
-
resolve(answers.token);
|
|
83
|
-
server.close();
|
|
84
|
-
});
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
const loginQuestions = [{
|
|
89
|
-
type: 'input',
|
|
90
|
-
name: 'email',
|
|
91
|
-
message: 'Enter your TakeShape email:',
|
|
92
|
-
|
|
93
|
-
validate(input) {
|
|
94
|
-
return (0, _emailValidator.validate)(input) || 'Please enter a valid email';
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
}, {
|
|
98
|
-
type: 'password',
|
|
99
|
-
name: 'password',
|
|
100
|
-
message: 'Enter your TakeShape password:'
|
|
101
|
-
}];
|
|
102
|
-
exports.loginQuestions = loginQuestions;
|
|
103
|
-
|
|
104
|
-
async function attemptLogin(params) {
|
|
105
|
-
const answers = await (0, _prompt.prompt)(loginQuestions);
|
|
106
|
-
return (0, _auth.login)(params.endpoint, answers.email, answers.password);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
async function attemptOpenForgotPassword(params) {
|
|
110
|
-
const isConfirmed = await (0, _prompt.confirm)('Would you like to open TakeShape to set a password?');
|
|
111
|
-
|
|
112
|
-
if (isConfirmed) {
|
|
113
|
-
await (0, _open.default)(params.appUrl + '/forgot-password', {
|
|
114
|
-
wait: false
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
async function loginCli(params, maxAttempts) {
|
|
120
|
-
let attempts = 0;
|
|
121
|
-
|
|
122
|
-
do {
|
|
123
|
-
attempts++;
|
|
124
|
-
|
|
125
|
-
try {
|
|
126
|
-
// eslint-disable-next-line no-await-in-loop
|
|
127
|
-
return await attemptLogin(params);
|
|
128
|
-
} catch (e) {
|
|
129
|
-
if (e.statusCode === 403) {
|
|
130
|
-
attempts--;
|
|
131
|
-
(0, _messages.missingPasswordMsg)(); // eslint-disable-next-line no-await-in-loop
|
|
132
|
-
|
|
133
|
-
await attemptOpenForgotPassword(params);
|
|
134
|
-
} else {
|
|
135
|
-
(0, _messages.invalidLoginMsg)();
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
} while (attempts < maxAttempts);
|
|
139
|
-
|
|
140
|
-
(0, _messages.forgotPasswordWarning)(params);
|
|
141
|
-
}
|
package/dist/util/messages.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CliConfig } from '../types';
|
|
2
|
-
export declare function warning(msg: string): () => void;
|
|
3
|
-
export declare function info(msg: string): () => void;
|
|
4
|
-
export declare const waitingForLogin: () => void;
|
|
5
|
-
export declare const loginSuccess: () => void;
|
|
6
|
-
export declare const invalidLoginMsg: () => void;
|
|
7
|
-
export declare const missingPasswordMsg: () => void;
|
|
8
|
-
export declare const writingFilesMsg: () => void;
|
|
9
|
-
export declare const writingHomeConfigDoneMsg: (path: string) => void;
|
|
10
|
-
export declare const consoleWarning: () => void;
|
|
11
|
-
export declare function forgotPasswordWarning(params: CliConfig): void;
|
|
12
|
-
export declare function noProjectsError(params: CliConfig): void;
|
|
13
|
-
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/util/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAC;AAEnC,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,cAMlC;AAED,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,cAI/B;AAED,eAAO,MAAM,eAAe,YAAiD,CAAC;AAC9E,eAAO,MAAM,YAAY,YAAkC,CAAC;AAE5D,eAAO,MAAM,eAAe,YAA6C,CAAC;AAC1E,eAAO,MAAM,kBAAkB,YAE9B,CAAC;AAEF,eAAO,MAAM,eAAe,YAAgD,CAAC;AAC7E,eAAO,MAAM,wBAAwB,SAAU,MAAM,SAEpD,CAAC;AAEF,eAAO,MAAM,cAAc,YAM1B,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,QAEtD;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,QAEhD"}
|
package/dist/util/messages.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.consoleWarning = void 0;
|
|
7
|
-
exports.forgotPasswordWarning = forgotPasswordWarning;
|
|
8
|
-
exports.info = info;
|
|
9
|
-
exports.missingPasswordMsg = exports.loginSuccess = exports.invalidLoginMsg = void 0;
|
|
10
|
-
exports.noProjectsError = noProjectsError;
|
|
11
|
-
exports.waitingForLogin = void 0;
|
|
12
|
-
exports.warning = warning;
|
|
13
|
-
exports.writingHomeConfigDoneMsg = exports.writingFilesMsg = void 0;
|
|
14
|
-
|
|
15
|
-
var _chalk = _interopRequireDefault(require("chalk"));
|
|
16
|
-
|
|
17
|
-
var _log = _interopRequireDefault(require("../log"));
|
|
18
|
-
|
|
19
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
|
-
|
|
21
|
-
function warning(msg) {
|
|
22
|
-
return () => {
|
|
23
|
-
msg.split('\n').forEach(line => {
|
|
24
|
-
(0, _log.default)(_chalk.default.black.bgYellow(line));
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function info(msg) {
|
|
30
|
-
return () => {
|
|
31
|
-
(0, _log.default)(msg);
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
const waitingForLogin = info('Opening a web browser to log you in...');
|
|
36
|
-
exports.waitingForLogin = waitingForLogin;
|
|
37
|
-
const loginSuccess = info('Successfully logged in.');
|
|
38
|
-
exports.loginSuccess = loginSuccess;
|
|
39
|
-
const invalidLoginMsg = info('Invalid email/password combination');
|
|
40
|
-
exports.invalidLoginMsg = invalidLoginMsg;
|
|
41
|
-
const missingPasswordMsg = info('No password set in TakeShape. Follow the forgot password flow to set a password.');
|
|
42
|
-
exports.missingPasswordMsg = missingPasswordMsg;
|
|
43
|
-
const writingFilesMsg = info('Writing .takeshaperc, .graphqlconfig.');
|
|
44
|
-
exports.writingFilesMsg = writingFilesMsg;
|
|
45
|
-
|
|
46
|
-
const writingHomeConfigDoneMsg = path => {
|
|
47
|
-
(0, _log.default)(`Personal access token saved to ${path}`);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
exports.writingHomeConfigDoneMsg = writingHomeConfigDoneMsg;
|
|
51
|
-
const consoleWarning = warning('**************************************************************************************************\n' + ' Add the following to your vcs ignore file: \n' + ' .takeshaperc \n' + ' .graphqlconfig \n' + '**************************************************************************************************');
|
|
52
|
-
exports.consoleWarning = consoleWarning;
|
|
53
|
-
|
|
54
|
-
function forgotPasswordWarning(params) {
|
|
55
|
-
(0, _log.default)(`If you forgot your credentials please visit ${params.appUrl}/forgot-password`);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function noProjectsError(params) {
|
|
59
|
-
(0, _log.default)(`No projects configured. Set one up at ${params.appUrl}/projects`);
|
|
60
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ora-wrapper.d.ts","sourceRoot":"","sources":["../../../src/util/ora-wrapper.js"],"names":[],"mappings":"AAIA,uHAWC"}
|
package/dist/util/ora-wrapper.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = oraWrapper;
|
|
7
|
-
|
|
8
|
-
var _ora = _interopRequireDefault(require("ora"));
|
|
9
|
-
|
|
10
|
-
var _formatError = _interopRequireDefault(require("./format-error"));
|
|
11
|
-
|
|
12
|
-
var _log = require("../log");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
|
-
function oraWrapper(fn, start, success, failure) {
|
|
17
|
-
return async (...args) => {
|
|
18
|
-
const spinner = (0, _ora.default)(start).start();
|
|
19
|
-
|
|
20
|
-
try {
|
|
21
|
-
await fn(...args);
|
|
22
|
-
spinner.succeed(success);
|
|
23
|
-
} catch (e) {
|
|
24
|
-
spinner.fail(failure);
|
|
25
|
-
(0, _log.logError)('Error:', (0, _formatError.default)(e));
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
}
|
package/dist/util/pusher.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { LoggedInCliConfig } from '../types';
|
|
2
|
-
export interface ServerAction {
|
|
3
|
-
type: string;
|
|
4
|
-
meta?: Record<string, unknown>;
|
|
5
|
-
payload: Record<string, unknown>;
|
|
6
|
-
}
|
|
7
|
-
export declare type ServerActionHandler = (action: ServerAction) => void;
|
|
8
|
-
export declare function handleAction(callback: ServerActionHandler): (action: ServerAction) => void;
|
|
9
|
-
export declare function subscribe(params: LoggedInCliConfig, callback: ServerActionHandler): Promise<void>;
|
|
10
|
-
//# sourceMappingURL=pusher.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pusher.d.ts","sourceRoot":"","sources":["../../../src/util/pusher.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,oBAAY,mBAAmB,GAAG,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;AAEjE,wBAAgB,YAAY,CAAC,QAAQ,EAAE,mBAAmB,YACxC,YAAY,UAS7B;AAED,wBAAsB,SAAS,CAAC,MAAM,EAAE,iBAAiB,EAAE,QAAQ,EAAE,mBAAmB,iBAcvF"}
|
package/dist/util/pusher.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.handleAction = handleAction;
|
|
7
|
-
exports.subscribe = subscribe;
|
|
8
|
-
|
|
9
|
-
var _api = _interopRequireDefault(require("./api"));
|
|
10
|
-
|
|
11
|
-
var _pusherJs = _interopRequireDefault(require("pusher-js"));
|
|
12
|
-
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
|
|
15
|
-
function handleAction(callback) {
|
|
16
|
-
return action => {
|
|
17
|
-
if (action.type === 'content/CONTENT_UPDATED' || action.type === 'content/CONTENT_CREATED' || action.type === 'content/CONTENT_DELETED') {
|
|
18
|
-
callback(action);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
async function subscribe(params, callback) {
|
|
24
|
-
const config = await (0, _api.default)(params, 'GET', `/project/${params.projectId}/pusher-client-config`);
|
|
25
|
-
const pusher = new _pusherJs.default(config.key, {
|
|
26
|
-
channelAuthorization: {
|
|
27
|
-
endpoint: `${params.endpoint}/project/channel-auth?auth=${params.authToken}`,
|
|
28
|
-
transport: 'ajax'
|
|
29
|
-
},
|
|
30
|
-
cluster: config.cluster
|
|
31
|
-
});
|
|
32
|
-
const channel = pusher.subscribe(`presence-project.${params.projectId}`);
|
|
33
|
-
channel.bind('server-action', handleAction(callback));
|
|
34
|
-
}
|
package/dist/util/runner.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../../src/util/runner.js"],"names":[],"mappings":"AAIA,sFA2BC"}
|
package/dist/util/runner.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.createRunner = createRunner;
|
|
7
|
-
|
|
8
|
-
var _chalk = _interopRequireDefault(require("chalk"));
|
|
9
|
-
|
|
10
|
-
var _formatError = _interopRequireDefault(require("./format-error"));
|
|
11
|
-
|
|
12
|
-
var _log = _interopRequireDefault(require("../log"));
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
|
-
function createRunner(name, task) {
|
|
17
|
-
let running = false;
|
|
18
|
-
return async (...args) => {
|
|
19
|
-
if (!running) {
|
|
20
|
-
running = true;
|
|
21
|
-
const startTime = Date.now();
|
|
22
|
-
(0, _log.default)(`${name} - Started!`);
|
|
23
|
-
|
|
24
|
-
try {
|
|
25
|
-
const stats = await task(...args);
|
|
26
|
-
const totalSeconds = (Date.now() - startTime) / 1000;
|
|
27
|
-
(0, _log.default)(`${name} - ` + _chalk.default.green(`Generated ${stats.pagesGenerated} pages in ${totalSeconds}s`));
|
|
28
|
-
const {
|
|
29
|
-
warnings
|
|
30
|
-
} = stats;
|
|
31
|
-
|
|
32
|
-
if (warnings !== null && warnings !== void 0 && warnings.length) {
|
|
33
|
-
(0, _log.default)(`${name} - ` + _chalk.default.yellow('Warnings:'));
|
|
34
|
-
warnings.forEach(warning => {
|
|
35
|
-
(0, _log.default)(_chalk.default.yellow(`${warning.source}: ${warning.message}`));
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
running = false;
|
|
40
|
-
} catch (error) {
|
|
41
|
-
(0, _log.default)(`${name} - ` + _chalk.default.red(`Error:\n${(0, _formatError.default)(error)}`));
|
|
42
|
-
running = false;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select-project.d.ts","sourceRoot":"","sources":["../../../src/util/select-project.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,MAAM,EAAa,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAE3C,wBAAsB,aAAa,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAQ1F"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.selectProject = selectProject;
|
|
7
|
-
|
|
8
|
-
var _data = require("./data");
|
|
9
|
-
|
|
10
|
-
var _messages = require("./messages");
|
|
11
|
-
|
|
12
|
-
var _prompt = require("../prompt");
|
|
13
|
-
|
|
14
|
-
async function selectProject(params) {
|
|
15
|
-
const projects = await (0, _data.fetchProjects)(params);
|
|
16
|
-
|
|
17
|
-
if (!projects.length) {
|
|
18
|
-
(0, _messages.noProjectsError)(params);
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return (0, _prompt.promptList)('Select a project:', projects);
|
|
23
|
-
}
|
package/dist/util/spin.d.ts
DELETED
package/dist/util/spin.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spin.d.ts","sourceRoot":"","sources":["../../../src/util/spin.ts"],"names":[],"mappings":"AAIA,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,iBAAe,IAAI,CAAC,SAAS,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAsBhF;AAED,eAAe,IAAI,CAAC"}
|
package/dist/util/spin.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _util = require("@takeshape/util");
|
|
9
|
-
|
|
10
|
-
const SPINTERVAL = 100;
|
|
11
|
-
|
|
12
|
-
async function spin(spinQuery) {
|
|
13
|
-
const res = await spinQuery();
|
|
14
|
-
const status = res === null ? 'running' : res.status;
|
|
15
|
-
|
|
16
|
-
switch (status) {
|
|
17
|
-
case 'running':
|
|
18
|
-
await (0, _util.delay)(SPINTERVAL);
|
|
19
|
-
await spin(spinQuery);
|
|
20
|
-
break;
|
|
21
|
-
|
|
22
|
-
case 'completed':
|
|
23
|
-
break;
|
|
24
|
-
|
|
25
|
-
case 'timeout':
|
|
26
|
-
throw new Error('Export timed out');
|
|
27
|
-
|
|
28
|
-
case 'error':
|
|
29
|
-
if (res !== null && res !== void 0 && res.message) {
|
|
30
|
-
throw new Error(res.message);
|
|
31
|
-
} else {
|
|
32
|
-
throw new Error('An unknown error occurred');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
default:
|
|
36
|
-
throw new Error(`Unexpected export status: ${status}`);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
var _default = spin;
|
|
41
|
-
exports.default = _default;
|
package/dist/util/upload.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { CliConfig } from '../types';
|
|
2
|
-
export declare function createTempFile(filePath: string): [string, () => void];
|
|
3
|
-
export declare function getUploadUrl(params: CliConfig): Promise<string>;
|
|
4
|
-
export declare function uploadFile(filePath: string, uploadUrl: string): Promise<number>;
|
|
5
|
-
//# sourceMappingURL=upload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../src/util/upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAC;AAQnC,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,CAGrE;AAED,wBAAsB,YAAY,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAOrE;AAED,wBAAsB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAWrF"}
|
package/dist/util/upload.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.createTempFile = createTempFile;
|
|
7
|
-
exports.getUploadUrl = getUploadUrl;
|
|
8
|
-
exports.uploadFile = uploadFile;
|
|
9
|
-
|
|
10
|
-
var _api = _interopRequireDefault(require("./api"));
|
|
11
|
-
|
|
12
|
-
var _tmp = _interopRequireDefault(require("tmp"));
|
|
13
|
-
|
|
14
|
-
var _path = _interopRequireDefault(require("path"));
|
|
15
|
-
|
|
16
|
-
var _fsExtra = _interopRequireDefault(require("fs-extra"));
|
|
17
|
-
|
|
18
|
-
var _request = _interopRequireDefault(require("request"));
|
|
19
|
-
|
|
20
|
-
var _streams = require("@takeshape/streams");
|
|
21
|
-
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
24
|
-
function createTempFile(filePath) {
|
|
25
|
-
const tmpDir = _tmp.default.dirSync({
|
|
26
|
-
unsafeCleanup: true
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
return [_path.default.join(tmpDir.name, filePath), tmpDir.removeCallback];
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
async function getUploadUrl(params) {
|
|
33
|
-
try {
|
|
34
|
-
const {
|
|
35
|
-
uploadUrl
|
|
36
|
-
} = await (0, _api.default)(params, 'GET', `/project/${params.projectId}/ssg/${params.siteId}/upload-url`);
|
|
37
|
-
return uploadUrl;
|
|
38
|
-
} catch (e) {
|
|
39
|
-
throw new Error(`Failed to get upload url: ${e.message}`);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
async function uploadFile(filePath, uploadUrl) {
|
|
44
|
-
const stats = _fsExtra.default.statSync(filePath);
|
|
45
|
-
|
|
46
|
-
const putStream = (0, _request.default)({
|
|
47
|
-
method: 'PUT',
|
|
48
|
-
url: uploadUrl,
|
|
49
|
-
headers: {
|
|
50
|
-
'Content-Length': stats.size
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
await (0, _streams.pump)(_fsExtra.default.createReadStream(filePath), putStream);
|
|
54
|
-
return stats.size;
|
|
55
|
-
}
|
package/dist/util/watcher.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"watcher.d.ts","sourceRoot":"","sources":["../../../src/util/watcher.js"],"names":[],"mappings":"AAGA,+EAkBC"}
|