@takeshape/cli 11.45.3 → 11.46.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/dist/auth.d.ts.map +1 -1
- package/dist/check-version.js +1 -1
- package/dist/commands/branch/commands/create.d.ts.map +1 -1
- package/dist/commands/branch/commands/create.js +1 -1
- package/dist/commands/branch/commands/delete.d.ts.map +1 -1
- package/dist/commands/branch/commands/delete.js +1 -1
- package/dist/commands/branch/commands/list.d.ts.map +1 -1
- package/dist/commands/branch/commands/list.js +1 -1
- package/dist/commands/branch/commands/merge.d.ts.map +1 -1
- package/dist/commands/branch/commands/merge.js +1 -1
- package/dist/commands/branch/commands/promote.d.ts.map +1 -1
- package/dist/commands/branch/commands/promote.js +1 -1
- package/dist/commands/branch/commands/tag-version.d.ts.map +1 -1
- package/dist/commands/branch/commands/tag-version.js +1 -1
- package/dist/commands/branch/commands/url.d.ts.map +1 -1
- package/dist/commands/branch/commands/url.js +1 -1
- package/dist/commands/branch/index.d.ts +1 -1
- package/dist/commands/branch/index.d.ts.map +1 -1
- package/dist/commands/branch/index.js +4 -4
- package/dist/commands/build-or-watch.js +3 -3
- package/dist/commands/deploy/index.d.ts.map +1 -1
- package/dist/commands/deploy/index.js +2 -2
- package/dist/commands/deploy/zip.d.ts +2 -2
- package/dist/commands/deploy/zip.d.ts.map +1 -1
- package/dist/commands/deploy/zip.js +1 -1
- package/dist/commands/export/index.d.ts +1 -1
- package/dist/commands/export/index.d.ts.map +1 -1
- package/dist/commands/export/project-export.js +5 -5
- package/dist/commands/export/schema-export.d.ts.map +1 -1
- package/dist/commands/export/schema-export.js +5 -5
- package/dist/commands/import/index.d.ts +1 -1
- package/dist/commands/import/index.d.ts.map +1 -1
- package/dist/commands/import/index.js +1 -1
- package/dist/commands/import/project-import.d.ts.map +1 -1
- package/dist/commands/import/project-import.js +6 -6
- package/dist/commands/import/roles-import.js +5 -5
- package/dist/commands/import/schema-import.js +6 -6
- package/dist/commands/link.js +1 -1
- package/dist/commands/login.d.ts +1 -1
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +2 -2
- package/dist/commands/logout.d.ts.map +1 -1
- package/dist/commands/logout.js +1 -1
- package/dist/commands/schema.d.ts.map +1 -1
- package/dist/commands/schema.js +2 -2
- package/dist/commands/status.js +1 -1
- package/dist/commands/types.js +1 -1
- package/dist/commands/unlink.d.ts.map +1 -1
- package/dist/commands/unlink.js +1 -1
- package/dist/commands/validate.d.ts +1 -1
- package/dist/commands/validate.d.ts.map +1 -1
- package/dist/commands/validate.js +4 -4
- package/dist/config.d.ts +4 -4
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -2
- package/dist/files.js +4 -4
- package/dist/graphql.d.ts +1 -1
- package/dist/graphql.d.ts.map +1 -1
- package/dist/graphql.js +1 -1
- package/dist/index.js +2 -2
- package/dist/log.d.ts.map +1 -1
- package/dist/log.js +0 -2
- package/dist/main.d.ts +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +0 -1
- package/dist/options.d.ts +1 -1
- package/dist/options.d.ts.map +1 -1
- package/dist/prompt.d.ts.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/util/api.d.ts +1 -1
- package/dist/util/api.d.ts.map +1 -1
- package/dist/util/api.js +1 -1
- package/dist/util/assert-supported-version.d.ts +1 -1
- package/dist/util/assert-supported-version.d.ts.map +1 -1
- package/dist/util/assert-supported-version.js +2 -2
- package/dist/util/branches.d.ts +2 -2
- package/dist/util/branches.d.ts.map +1 -1
- package/dist/util/branches.js +2 -2
- package/dist/util/connector.d.ts +2 -2
- package/dist/util/connector.d.ts.map +1 -1
- package/dist/util/data.d.ts +2 -2
- package/dist/util/data.d.ts.map +1 -1
- package/dist/util/data.js +1 -1
- package/dist/util/format-validation-result.d.ts +1 -1
- package/dist/util/format-validation-result.d.ts.map +1 -1
- package/dist/util/generate-types.js +4 -4
- package/dist/util/get-client-schema.js +1 -1
- package/dist/util/linked-command.d.ts.map +1 -1
- package/dist/util/linked-command.js +1 -1
- package/dist/util/login.d.ts +1 -1
- package/dist/util/login.d.ts.map +1 -1
- package/dist/util/login.js +1 -1
- package/dist/util/messages.d.ts +1 -1
- package/dist/util/messages.d.ts.map +1 -1
- package/dist/util/messages.js +2 -2
- package/dist/util/pusher.d.ts +1 -1
- package/dist/util/pusher.d.ts.map +1 -1
- package/dist/util/runner.js +5 -5
- package/dist/util/select-project.d.ts +1 -1
- package/dist/util/select-project.d.ts.map +1 -1
- package/dist/util/select-project.js +1 -1
- package/dist/util/spin.d.ts.map +1 -1
- package/dist/util/spin.js +1 -2
- package/dist/util/upload.d.ts +1 -1
- package/dist/util/upload.d.ts.map +1 -1
- package/dist/util/upload.js +2 -2
- package/dist/util/watcher.js +1 -1
- package/package.json +12 -8
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,OAAO,KAAK,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAI/D,eAAO,MAAM,yBAAyB,iBAAiB,CAAC;AACxD,eAAO,MAAM,uBAAuB,mBAAmB,CAAC;AAExD,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS,CA6B7E;AAWD,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,SAAS,EACjB,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,GAAG,SAAS,GACvB,OAAO,CAAC,IAAI,CAAC,CA6Cf;AAED,wBAAgB,kBAAkB,SAQjC;AAED,wBAAsB,eAAe,CAAC,WAAW,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAIrF;AAED,wBAAgB,gBAAgB,SAK/B"}
|
package/dist/config.js
CHANGED
|
@@ -10,15 +10,15 @@ exports.getHomeConfigPath = getHomeConfigPath;
|
|
|
10
10
|
exports.loadConfig = loadConfig;
|
|
11
11
|
exports.writeHomeConfig = writeHomeConfig;
|
|
12
12
|
exports.writeLinkedProjectConfig = writeLinkedProjectConfig;
|
|
13
|
-
var _path = _interopRequireDefault(require("path"));
|
|
14
13
|
var _os = _interopRequireDefault(require("os"));
|
|
14
|
+
var _path = _interopRequireDefault(require("path"));
|
|
15
15
|
var _fsExtra = _interopRequireDefault(require("fs-extra"));
|
|
16
16
|
var _ignore = _interopRequireDefault(require("ignore"));
|
|
17
|
-
var _messages = require("./util/messages");
|
|
18
17
|
var _graphql = require("./graphql");
|
|
19
18
|
var _api = require("./util/api");
|
|
20
19
|
var _connector = require("./util/connector");
|
|
21
20
|
var _getClientSchema = _interopRequireDefault(require("./util/get-client-schema"));
|
|
21
|
+
var _messages = require("./util/messages");
|
|
22
22
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
23
23
|
const TAKESHAPE_CONFIG_FILENAME = exports.TAKESHAPE_CONFIG_FILENAME = '.takeshaperc';
|
|
24
24
|
const GRAPHQL_CONFIG_FILENAME = exports.GRAPHQL_CONFIG_FILENAME = '.graphqlconfig';
|
package/dist/files.js
CHANGED
|
@@ -7,8 +7,8 @@ exports.copyStatic = copyStatic;
|
|
|
7
7
|
exports.syncStatic = syncStatic;
|
|
8
8
|
exports.writePages = writePages;
|
|
9
9
|
var _path = _interopRequireDefault(require("path"));
|
|
10
|
-
var _fsExtra = require("fs-extra");
|
|
11
10
|
var _bluebird = _interopRequireDefault(require("bluebird"));
|
|
11
|
+
var _fsExtra = require("fs-extra");
|
|
12
12
|
var _log = require("./log");
|
|
13
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
14
|
async function copyStatic(config) {
|
|
@@ -21,13 +21,13 @@ function syncStatic(config) {
|
|
|
21
21
|
const relativePath = sourcePath.replace(config.staticPath, '');
|
|
22
22
|
const destPath = _path.default.join(config.buildPath, relativePath);
|
|
23
23
|
if (event === 'addDir') {
|
|
24
|
-
(0, _log.log)(
|
|
24
|
+
(0, _log.log)(`takeshape watch - copied ${relativePath}`);
|
|
25
25
|
(0, _fsExtra.mkdirs)(destPath);
|
|
26
26
|
} else if (event === 'unlink' || event === 'unlinkDir') {
|
|
27
|
-
(0, _log.log)(
|
|
27
|
+
(0, _log.log)(`takeshape watch - deleted ${relativePath}`);
|
|
28
28
|
(0, _fsExtra.remove)(destPath);
|
|
29
29
|
} else {
|
|
30
|
-
(0, _log.log)(
|
|
30
|
+
(0, _log.log)(`takeshape watch - copied ${relativePath}`);
|
|
31
31
|
(0, _fsExtra.copy)(sourcePath, destPath);
|
|
32
32
|
}
|
|
33
33
|
};
|
package/dist/graphql.d.ts
CHANGED
package/dist/graphql.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../src/graphql.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../src/graphql.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjD,OAAO,EAAE,KAAK,YAAY,EAAqB,MAAM,iBAAiB,CAAC;AAEvE,MAAM,MAAM,UAAU,GAClB,CAAC,YAAY,GAAG;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,GACF,MAAM,GACN,SAAS,CAAC;AAEd,MAAM,MAAM,iBAAiB,GACzB,CAAC,UAAU,GAAG;IACZ,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC,GACF,MAAM,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,KAAK,MAAM,CAAC;AAgBvF,eAAO,MAAM,kBAAkB,oBAA8C,CAAC;AAC9E,eAAO,MAAM,uBAAuB,oBAAqD,CAAC;AAE1F,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB,CAAC;AAOF,eAAO,MAAM,sBAAsB,uBACZ,kBAAkB,cAC9B,SAAS,aAAa,MAAM,eAAe,UAAU,YAAY,uBAAuB,KAAG,MAkCnG,CAAC;AAEJ,eAAO,MAAM,eAAe,WApCjB,SAAS,aAAa,MAAM,eAAe,UAAU,YAAY,uBAAuB,KAAG,MAoC7B,CAAC;AAC1E,eAAO,MAAM,oBAAoB,WArCtB,SAAS,aAAa,MAAM,eAAe,UAAU,YAAY,uBAAuB,KAAG,MAqCnB,CAAC;AAEpF,wBAAgB,YAAY,CAAC,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,YACnE,MAAM,aAAa,SAAS,KAAG,QAAQ,IAAI,CAAC,CAQnE"}
|
package/dist/graphql.js
CHANGED
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getGraphQLEndpoint = exports.getGraphQLAdminEndpoint = exports.createConnectorFactory = exports.createConnector = exports.createAdminConnector = void 0;
|
|
7
7
|
exports.graphQLQuery = graphQLQuery;
|
|
8
8
|
var _branches = require("@takeshape/branches");
|
|
9
|
-
var _nodeFetch = _interopRequireDefault(require("node-fetch"));
|
|
10
9
|
var _asyncRetry = _interopRequireDefault(require("async-retry"));
|
|
10
|
+
var _nodeFetch = _interopRequireDefault(require("node-fetch"));
|
|
11
11
|
var _errors = require("./errors");
|
|
12
12
|
var _api = require("./util/api");
|
|
13
13
|
var _branches2 = require("./util/branches");
|
package/dist/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _meow = _interopRequireDefault(require("meow"));
|
|
5
|
-
var _main = _interopRequireDefault(require("./main"));
|
|
6
|
-
var _config = require("./config");
|
|
7
5
|
var _checkVersion = require("./check-version");
|
|
6
|
+
var _config = require("./config");
|
|
7
|
+
var _main = _interopRequireDefault(require("./main"));
|
|
8
8
|
var _options = require("./options");
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
const help = `
|
package/dist/log.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/log.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/log.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,GAAG,IAAI,CAEtC;AAED,wBAAgB,QAAQ,CAAC,GAAG,IAAI,EAAE,GAAG,GAAG,IAAI,CAE3C;AAED,eAAe,GAAG,CAAC"}
|
package/dist/log.js
CHANGED
|
@@ -7,11 +7,9 @@ exports.default = void 0;
|
|
|
7
7
|
exports.log = log;
|
|
8
8
|
exports.logError = logError;
|
|
9
9
|
function log(...args) {
|
|
10
|
-
// eslint-disable-next-line no-console
|
|
11
10
|
console.log.apply(null, args);
|
|
12
11
|
}
|
|
13
12
|
function logError(...args) {
|
|
14
|
-
// eslint-disable-next-line no-console
|
|
15
13
|
console.error.apply(null, args);
|
|
16
14
|
}
|
|
17
15
|
var _default = exports.default = log;
|
package/dist/main.d.ts
CHANGED
package/dist/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAmBzC,yBAA+B,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,iBASzD"}
|
package/dist/main.js
CHANGED
|
@@ -25,7 +25,6 @@ async function _default(cli, params) {
|
|
|
25
25
|
const command = cli.input[0];
|
|
26
26
|
const path = commandPath[command];
|
|
27
27
|
if (path) {
|
|
28
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
29
28
|
const fn = require(`./commands/${path}`).default;
|
|
30
29
|
await fn(cli, params);
|
|
31
30
|
} else {
|
package/dist/options.d.ts
CHANGED
package/dist/options.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/options.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2FV,CAAC;AAEX,MAAM,MAAM,KAAK,GAAG,OAAO,OAAO,CAAC,KAAK,CAAC;AACzC,MAAM,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,GAAG;IAC/C,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
|
package/dist/prompt.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../src/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../src/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,EAAE,EAAE,KAAK,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAE7D,wBAAgB,WAAW;;;EAE1B;AAED,wBAAsB,MAAM,CAAC,OAAO,EAAE,kBAAkB,6BAEvD;AAED,wBAAsB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAQ/D;AAED,MAAM,MAAM,MAAM,GAAG;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAsB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CASpF"}
|
package/dist/types.d.ts
CHANGED
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAErE,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AACnF,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,eAAe,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AACjF,MAAM,MAAM,wBAAwB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,uBAAuB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEpG,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,GAAG,SAAS,CAAC;AAEd,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC;AAEd,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,GAAG,eAAe,CAAC;AAE1E,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,IAAI,eAAe,CAEpF;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,IAAI,iBAAiB,CAExF;AAED,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,IAAI,uBAAuB,CAEpG;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,GAAG,CAAC;IACV,MAAM,CAAC,EAAE,YAAY,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,oBAAoB,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC"}
|
package/dist/util/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CliConfig } from '../types';
|
|
2
2
|
export declare function isJWT(str: string): boolean;
|
|
3
3
|
export declare function getAuthHeader(authToken?: string): Record<string, string>;
|
|
4
4
|
export default function api(params: CliConfig, method: string, path: string, body?: any): Promise<any>;
|
package/dist/util/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/util/api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/util/api.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAY1C,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAG1C;AAED,wBAAgB,aAAa,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAMxE;AAED,wBAA8B,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CA6B3G"}
|
package/dist/util/api.js
CHANGED
|
@@ -48,7 +48,7 @@ async function api(params, method, path, body) {
|
|
|
48
48
|
if (res.ok) {
|
|
49
49
|
const contentLengthHeader = res.headers.get('content-length');
|
|
50
50
|
if (contentLengthHeader !== null) {
|
|
51
|
-
const contentLength = parseInt(contentLengthHeader, 10);
|
|
51
|
+
const contentLength = Number.parseInt(contentLengthHeader, 10);
|
|
52
52
|
if (contentLength === 0) {
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { LoggedInCliConfig } from '../types';
|
|
2
2
|
export declare function assertSupportedVersion(params: LoggedInCliConfig, projectIdArg?: string): Promise<void>;
|
|
3
3
|
//# sourceMappingURL=assert-supported-version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert-supported-version.d.ts","sourceRoot":"","sources":["../../../src/util/assert-supported-version.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"assert-supported-version.d.ts","sourceRoot":"","sources":["../../../src/util/assert-supported-version.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAUlD,wBAAsB,sBAAsB,CAAC,MAAM,EAAE,iBAAiB,EAAE,YAAY,CAAC,EAAE,MAAM,iBAU5F"}
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.assertSupportedVersion = assertSupportedVersion;
|
|
7
7
|
var _semver = _interopRequireDefault(require("semver"));
|
|
8
|
-
var _log = require("../log");
|
|
9
|
-
var _graphql = require("../graphql");
|
|
10
8
|
var _package = _interopRequireDefault(require("../../package.json"));
|
|
9
|
+
var _graphql = require("../graphql");
|
|
10
|
+
var _log = require("../log");
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
const getTakeShapeVersionQuery = (0, _graphql.graphQLQuery)(`
|
|
13
13
|
query operation {
|
package/dist/util/branches.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { BRANCH_ENVIRONMENT_DEVELOPMENT_ENUM, BRANCH_ENVIRONMENT_PRODUCTION_ENUM, BRANCH_ENVIRONMENT_SCRATCH_ENUM } from '@takeshape/branches';
|
|
2
|
+
import type { Cli } from '../options';
|
|
3
3
|
export type BranchFlag = 'branch' | 'name';
|
|
4
4
|
export type Environment = typeof BRANCH_ENVIRONMENT_PRODUCTION_ENUM | typeof BRANCH_ENVIRONMENT_DEVELOPMENT_ENUM | typeof BRANCH_ENVIRONMENT_SCRATCH_ENUM;
|
|
5
5
|
export declare function getEnvironment(cli: Cli, flag?: BranchFlag): Environment;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branches.d.ts","sourceRoot":"","sources":["../../../src/util/branches.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"branches.d.ts","sourceRoot":"","sources":["../../../src/util/branches.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mCAAmC,EAEnC,kCAAkC,EAClC,+BAA+B,EAChC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGtC,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE3C,MAAM,MAAM,WAAW,GACnB,OAAO,kCAAkC,GACzC,OAAO,mCAAmC,GAC1C,OAAO,+BAA+B,CAAC;AAE3C,wBAAgB,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,GAAE,UAAqB,GAAG,WAAW,CAcjF;AAED,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,WAAW,IAAI,WAAW,CAM7E;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAWtD;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAAgB,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,GAAE,UAAqB,GAAG,YAAY,CAanF;AAED,wBAAgB,iBAAiB,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAGlG"}
|
package/dist/util/branches.js
CHANGED
|
@@ -8,8 +8,8 @@ exports.getBranchBasePath = getBranchBasePath;
|
|
|
8
8
|
exports.getBranchParams = getBranchParams;
|
|
9
9
|
exports.getEnvironment = getEnvironment;
|
|
10
10
|
exports.isEnvironment = isEnvironment;
|
|
11
|
-
var _compact = _interopRequireDefault(require("lodash/compact"));
|
|
12
11
|
var _branches = require("@takeshape/branches");
|
|
12
|
+
var _compact = _interopRequireDefault(require("lodash/compact"));
|
|
13
13
|
var _fatalError = require("./fatal-error");
|
|
14
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
15
|
function getEnvironment(cli, flag = 'branch') {
|
|
@@ -57,5 +57,5 @@ function getBranchBasePath({
|
|
|
57
57
|
branch
|
|
58
58
|
}, projectId) {
|
|
59
59
|
const branchComponent = branch ? encodeURIComponent(branch) : undefined;
|
|
60
|
-
return
|
|
60
|
+
return `/${(0, _compact.default)(['project', projectId, environment.toLowerCase(), branchComponent]).join('/')}`;
|
|
61
61
|
}
|
package/dist/util/connector.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type GraphQLConnectorOptions } from '../graphql';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { LinkedCliConfig } from '../types';
|
|
3
|
+
import type { BranchParams } from './branches';
|
|
4
4
|
export declare function createConnector(params: LinkedCliConfig, branchParams: BranchParams, options?: GraphQLConnectorOptions): {
|
|
5
5
|
(params: any): Promise<any>;
|
|
6
6
|
clearCache(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../src/util/connector.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"connector.d.ts","sourceRoot":"","sources":["../../../src/util/connector.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,uBAAuB,EAA0C,MAAM,YAAY,CAAC;AAClG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,wBAAgB,eAAe,CAC7B,MAAM,EAAE,eAAe,EACvB,YAAY,EAAE,YAAY,EAC1B,OAAO,CAAC,EAAE,uBAAuB;;;8CAMlC"}
|
package/dist/util/data.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ProjectPathParams } from '../graphql';
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import type { Choice } from '../prompt';
|
|
3
|
+
import type { CliConfig, LoggedInCliConfig } from '../types';
|
|
4
4
|
export declare const projectListQuery = "\n {\n projects: getProjectList {\n value: id\n name\n invite\n }\n }\n";
|
|
5
5
|
export declare const siteListQuery = "\n {\n sites: getTSStaticSiteList {\n items {\n value: _id\n name: title\n }\n }\n }\n";
|
|
6
6
|
export declare const getProjectQuery = "\n query($id: ID!) {\n project: getProject(id: $id) {\n status\n }\n }\n";
|
package/dist/util/data.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../src/util/data.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../src/util/data.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAuD,MAAM,YAAY,CAAC;AACzG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7D,eAAO,MAAM,gBAAgB,0HAQ5B,CAAC;AAEF,eAAO,MAAM,aAAa,sJASzB,CAAC;AAEF,eAAO,MAAM,eAAe,0FAM3B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,OAAO,CAAC;CACjB,GAAG,MAAM,CAAC;AAEX,wBAAsB,aAAa,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAQhF;AAED,eAAO,MAAM,SAAS;;;CAA+C,CAAC;AAEtE,wBAAsB,UAAU,CAAC,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAS5G;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,iCAAiC;UAAwB,MAAM;kCAO1E,CAAC;AAEH,eAAO,MAAM,4BAA4B;UAAwB,MAAM;qBAOrE,CAAC;AAEH,eAAO,MAAM,iCAAiC;QAAsB,MAAM;sBAIxE,CAAC;AAEH,eAAO,MAAM,oBAAoB;QAAsB,MAAM;sBAI3D,CAAC;AAMH,wBAAsB,yBAAyB,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAShH;AAED,wBAAsB,yBAAyB,CAAC,MAAM,EAAE,iBAAiB,oBAaxE;AAED,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CASpH;AAED,wBAAsB,YAAY,CAAC,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,oBAO5G"}
|
package/dist/util/data.js
CHANGED
|
@@ -15,8 +15,8 @@ exports.fetchProjects = fetchProjects;
|
|
|
15
15
|
exports.fetchSites = fetchSites;
|
|
16
16
|
exports.siteListQuery = exports.projectListQuery = exports.laterSite = exports.getProjectQuery = void 0;
|
|
17
17
|
var _os = _interopRequireDefault(require("os"));
|
|
18
|
-
var _graphql = require("../graphql");
|
|
19
18
|
var _errors = require("../errors");
|
|
19
|
+
var _graphql = require("../graphql");
|
|
20
20
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
21
21
|
const projectListQuery = exports.projectListQuery = `
|
|
22
22
|
{
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ProjectSchemaImportValidationResult, SchemaValidationResult } from '@takeshape/schema';
|
|
2
2
|
export declare function formatValidationResult(schemaValidationResult: SchemaValidationResult | ProjectSchemaImportValidationResult): string | undefined;
|
|
3
3
|
//# sourceMappingURL=format-validation-result.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-validation-result.d.ts","sourceRoot":"","sources":["../../../src/util/format-validation-result.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"format-validation-result.d.ts","sourceRoot":"","sources":["../../../src/util/format-validation-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mCAAmC,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAErG,wBAAgB,sBAAsB,CACpC,sBAAsB,EAAE,sBAAsB,GAAG,mCAAmC,GACnF,MAAM,GAAG,SAAS,CAKpB"}
|
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.generateTypes = generateTypes;
|
|
7
7
|
var _path = require("path");
|
|
8
|
-
var _fsExtra = require("fs-extra");
|
|
9
|
-
var _graphql = require("graphql");
|
|
10
8
|
var _core = require("@graphql-codegen/core");
|
|
11
9
|
var typescriptPlugin = _interopRequireWildcard(require("@graphql-codegen/typescript"));
|
|
12
|
-
var _load = require("@graphql-tools/load");
|
|
13
10
|
var _graphqlFileLoader = require("@graphql-tools/graphql-file-loader");
|
|
11
|
+
var _load = require("@graphql-tools/load");
|
|
14
12
|
var _chalk = _interopRequireDefault(require("chalk"));
|
|
13
|
+
var _fsExtra = require("fs-extra");
|
|
14
|
+
var _graphql = require("graphql");
|
|
15
15
|
var _log = require("../log");
|
|
16
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
@@ -45,6 +45,6 @@ async function generateTypes(schemaFile, outputFile) {
|
|
|
45
45
|
const output = await (0, _core.codegen)(config);
|
|
46
46
|
await (0, _fsExtra.ensureFile)(destination);
|
|
47
47
|
(0, _fsExtra.writeFile)(destination, output, () => {
|
|
48
|
-
(0, _log.log)(_chalk.default.green(
|
|
48
|
+
(0, _log.log)(_chalk.default.green('Success!'), `Saved generated types to ${outputFile}`);
|
|
49
49
|
});
|
|
50
50
|
}
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.SCHEMA_FILE_NAME = void 0;
|
|
7
7
|
exports.getClientSchema = getClientSchema;
|
|
8
|
-
var _graphql = require("graphql");
|
|
9
8
|
var _fsExtra = require("fs-extra");
|
|
9
|
+
var _graphql = require("graphql");
|
|
10
10
|
var _oraWrapper = _interopRequireDefault(require("./ora-wrapper"));
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
const SCHEMA_FILE_NAME = exports.SCHEMA_FILE_NAME = 'takeshape-project.graphql';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linked-command.d.ts","sourceRoot":"","sources":["../../../src/util/linked-command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"linked-command.d.ts","sourceRoot":"","sources":["../../../src/util/linked-command.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,OAAO,EAEZ,KAAK,aAAa,EAClB,KAAK,wBAAwB,EAI9B,MAAM,UAAU,CAAC;AAiBlB,wBAAgB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAM7D;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAS/D;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAQnF"}
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.linkedCommand = linkedCommand;
|
|
7
7
|
exports.loggedInAndLinkedCommand = loggedInAndLinkedCommand;
|
|
8
8
|
exports.loggedInCommand = loggedInCommand;
|
|
9
|
-
var _types = require("../types");
|
|
10
9
|
var _log = require("../log");
|
|
10
|
+
var _types = require("../types");
|
|
11
11
|
var _assertSupportedVersion = require("./assert-supported-version");
|
|
12
12
|
function assertLinked(params) {
|
|
13
13
|
if (!(0, _types.isLinkedCliConfig)(params)) {
|
package/dist/util/login.d.ts
CHANGED
package/dist/util/login.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/util/login.ts"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/util/login.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C,eAAO,MAAM,gBAAgB;;;;GAM5B,CAAC;AAEF,wBAAsB,YAAY,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAoDrE"}
|
package/dist/util/login.js
CHANGED
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.loginBrowser = loginBrowser;
|
|
7
7
|
exports.waitingQuestions = void 0;
|
|
8
8
|
var _http = _interopRequireDefault(require("http"));
|
|
9
|
-
var _open = _interopRequireDefault(require("open"));
|
|
10
9
|
var _getPort = _interopRequireDefault(require("get-port"));
|
|
10
|
+
var _open = _interopRequireDefault(require("open"));
|
|
11
11
|
var _prompt = require("../prompt");
|
|
12
12
|
var _messages = require("./messages");
|
|
13
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
package/dist/util/messages.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/util/messages.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/util/messages.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,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
CHANGED
|
@@ -16,9 +16,9 @@ var _log = require("../log");
|
|
|
16
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
17
|
function warning(msg) {
|
|
18
18
|
return () => {
|
|
19
|
-
msg.split('\n')
|
|
19
|
+
for (const line of msg.split('\n')) {
|
|
20
20
|
(0, _log.log)(_chalk.default.black.bgYellow(line));
|
|
21
|
-
}
|
|
21
|
+
}
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
function info(msg) {
|
package/dist/util/pusher.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pusher.d.ts","sourceRoot":"","sources":["../../../src/util/pusher.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"pusher.d.ts","sourceRoot":"","sources":["../../../src/util/pusher.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGlD,MAAM,MAAM,YAAY,GAAG;IACzB,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,CAAC;AAEF,MAAM,MAAM,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/runner.js
CHANGED
|
@@ -18,19 +18,19 @@ function createRunner(name, task) {
|
|
|
18
18
|
try {
|
|
19
19
|
const stats = await task(...args);
|
|
20
20
|
const totalSeconds = (Date.now() - startTime) / 1000;
|
|
21
|
-
(0, _log.log)(`${name} -
|
|
21
|
+
(0, _log.log)(`${name} - ${_chalk.default.green(`Generated ${stats.pagesGenerated} pages in ${totalSeconds}s`)}`);
|
|
22
22
|
const {
|
|
23
23
|
warnings
|
|
24
24
|
} = stats;
|
|
25
25
|
if (warnings?.length) {
|
|
26
|
-
(0, _log.log)(`${name} -
|
|
27
|
-
|
|
26
|
+
(0, _log.log)(`${name} - ${_chalk.default.yellow('Warnings:')}`);
|
|
27
|
+
for (const warning of warnings) {
|
|
28
28
|
(0, _log.log)(_chalk.default.yellow(`${warning.source}: ${warning.message}`));
|
|
29
|
-
}
|
|
29
|
+
}
|
|
30
30
|
}
|
|
31
31
|
running = false;
|
|
32
32
|
} catch (error) {
|
|
33
|
-
(0, _log.log)(`${name} -
|
|
33
|
+
(0, _log.log)(`${name} - ${_chalk.default.red(`Error:\n${(0, _formatError.default)(error)}`)}`);
|
|
34
34
|
running = false;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type Choice } from '../prompt';
|
|
2
|
-
import {
|
|
2
|
+
import type { LoggedInCliConfig } from '../types';
|
|
3
3
|
export declare function selectProject(params: LoggedInCliConfig): Promise<Choice | undefined>;
|
|
4
4
|
//# sourceMappingURL=select-project.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-project.d.ts","sourceRoot":"","sources":["../../../src/util/select-project.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"select-project.d.ts","sourceRoot":"","sources":["../../../src/util/select-project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAc,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAKlD,wBAAsB,aAAa,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAU1F"}
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.selectProject = selectProject;
|
|
7
7
|
var _prompt = require("../prompt");
|
|
8
|
+
var _assertSupportedVersion = require("./assert-supported-version");
|
|
8
9
|
var _data = require("./data");
|
|
9
10
|
var _messages = require("./messages");
|
|
10
|
-
var _assertSupportedVersion = require("./assert-supported-version");
|
|
11
11
|
async function selectProject(params) {
|
|
12
12
|
const projects = await (0, _data.fetchProjects)(params);
|
|
13
13
|
if (!projects.length) {
|
package/dist/util/spin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spin.d.ts","sourceRoot":"","sources":["../../../src/util/spin.ts"],"names":[],"mappings":"AAIA,KAAK,YAAY,GAAG;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,iBAAe,IAAI,CAAC,SAAS,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"spin.d.ts","sourceRoot":"","sources":["../../../src/util/spin.ts"],"names":[],"mappings":"AAIA,KAAK,YAAY,GAAG;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,iBAAe,IAAI,CAAC,SAAS,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAqBhF;AAED,eAAe,IAAI,CAAC"}
|
package/dist/util/spin.js
CHANGED
|
@@ -21,9 +21,8 @@ async function spin(spinQuery) {
|
|
|
21
21
|
case 'error':
|
|
22
22
|
if (res?.message) {
|
|
23
23
|
throw new Error(res.message);
|
|
24
|
-
} else {
|
|
25
|
-
throw new Error('An unknown error occurred');
|
|
26
24
|
}
|
|
25
|
+
throw new Error('An unknown error occurred');
|
|
27
26
|
default:
|
|
28
27
|
throw new Error(`Unexpected export status: ${status}`);
|
|
29
28
|
}
|
package/dist/util/upload.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CliConfig } from '../types';
|
|
2
2
|
export declare function createTempFile(filePath: string): [string, () => void];
|
|
3
3
|
export declare function getUploadUrl(params: CliConfig): Promise<string>;
|
|
4
4
|
export declare function uploadFile(filePath: string, uploadUrl: string): Promise<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../src/util/upload.ts"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../src/util/upload.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C,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
CHANGED
|
@@ -7,10 +7,10 @@ exports.createTempFile = createTempFile;
|
|
|
7
7
|
exports.getUploadUrl = getUploadUrl;
|
|
8
8
|
exports.uploadFile = uploadFile;
|
|
9
9
|
var _path = _interopRequireDefault(require("path"));
|
|
10
|
-
var
|
|
10
|
+
var _streams = require("@takeshape/streams");
|
|
11
11
|
var _fsExtra = _interopRequireDefault(require("fs-extra"));
|
|
12
12
|
var _request = _interopRequireDefault(require("request"));
|
|
13
|
-
var
|
|
13
|
+
var _tmp = _interopRequireDefault(require("tmp"));
|
|
14
14
|
var _api = _interopRequireDefault(require("./api"));
|
|
15
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
16
|
function createTempFile(filePath) {
|
package/dist/util/watcher.js
CHANGED
|
@@ -18,7 +18,7 @@ function createWatcher(description, handler, path) {
|
|
|
18
18
|
(0, _log.logError)(`Error Watching ${description}:`, error);
|
|
19
19
|
});
|
|
20
20
|
watcher.once('ready', () => {
|
|
21
|
-
(0, _log.log)(
|
|
21
|
+
(0, _log.log)(`Watching ${description}`);
|
|
22
22
|
ready = true;
|
|
23
23
|
});
|
|
24
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/cli",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.46.0",
|
|
4
4
|
"description": "TakeShape CLI",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"semver": "^6.3.0",
|
|
53
53
|
"stream-to-promise": "^2.2.0",
|
|
54
54
|
"tmp": "^0.0.33",
|
|
55
|
-
"@takeshape/
|
|
56
|
-
"@takeshape/
|
|
57
|
-
"@takeshape/
|
|
58
|
-
"@takeshape/
|
|
59
|
-
"@takeshape/
|
|
55
|
+
"@takeshape/branches": "11.46.0",
|
|
56
|
+
"@takeshape/schema": "11.46.0",
|
|
57
|
+
"@takeshape/ssg": "11.46.0",
|
|
58
|
+
"@takeshape/util": "11.46.0",
|
|
59
|
+
"@takeshape/streams": "11.46.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/archiver": "^3.1.0",
|
|
@@ -91,8 +91,12 @@
|
|
|
91
91
|
"build:types": "tsc --emitDeclarationOnly --project tsconfig.build.json",
|
|
92
92
|
"build:types:ci": "mkdir -p \"${GITHUB_WORKSPACE}/typecheck-results/${npm_package_name#*\\/}\" && tsc --emitDeclarationOnly --project tsconfig.build.json --pretty false | typescript-jest-junit-reporter | tee \"${GITHUB_WORKSPACE}/typecheck-results/${npm_package_name#*\\/}/typescript-results.xml\"",
|
|
93
93
|
"clean": "del-cli build dist *.tsbuildinfo",
|
|
94
|
-
"lint": "
|
|
95
|
-
"lint:
|
|
94
|
+
"lint": "pnpm lint:biome && pnpm lint:eslint",
|
|
95
|
+
"lint:biome": "biome check",
|
|
96
|
+
"lint:eslint": "eslint src -c ../../eslint.config.mjs",
|
|
97
|
+
"lint:ci": "pnpm lint:ci:biome",
|
|
98
|
+
"lint:ci:biome": "mkdir -p \"${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}\" && biome check --diagnostic-level error --reporter=junit > \"${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}/biome-results.xml\"",
|
|
99
|
+
"lint:ci:eslint": "pnpm lint:eslint --quiet --format json -o \"${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}/eslint-results.json\"",
|
|
96
100
|
"lint:code:ci": "pnpm lint --quiet --format junit -o \"${HOME}/test-results/${npm_package_name#*\\/}/eslint-results.xml\"",
|
|
97
101
|
"test": "jest",
|
|
98
102
|
"test:ci": "JEST_JUNIT_OUTPUT_DIR=\"${GITHUB_WORKSPACE}/test-results/${npm_package_name#*\\/}\" JEST_JUNIT_OUTPUT_NAME=\"jest-results.xml\" jest --silent --ci --coverageDirectory=\"${GITHUB_WORKSPACE}/coverage/${npm_package_name#*\\/}\" --reporters=default --reporters=jest-junit --maxWorkers=4",
|