@takeshape/cli 9.80.4 → 9.81.3

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.
Files changed (61) hide show
  1. package/dist/auth.js +2 -18
  2. package/dist/check-version.js +0 -6
  3. package/dist/commands/branch/commands/create.js +0 -11
  4. package/dist/commands/branch/commands/delete.js +0 -11
  5. package/dist/commands/branch/commands/list.js +0 -9
  6. package/dist/commands/branch/commands/merge.js +3 -29
  7. package/dist/commands/branch/commands/promote.js +0 -10
  8. package/dist/commands/branch/commands/tag-version.js +1 -10
  9. package/dist/commands/branch/commands/url.js +2 -17
  10. package/dist/commands/branch/index.js +0 -13
  11. package/dist/commands/build-or-watch.js +0 -18
  12. package/dist/commands/deploy/index.js +0 -18
  13. package/dist/commands/deploy/zip.js +0 -10
  14. package/dist/commands/export/index.js +0 -6
  15. package/dist/commands/export/project-export.js +1 -21
  16. package/dist/commands/export/schema-export.js +0 -21
  17. package/dist/commands/import/index.js +0 -9
  18. package/dist/commands/import/project-import.js +8 -45
  19. package/dist/commands/import/roles-import.js +0 -17
  20. package/dist/commands/import/schema-import.js +0 -23
  21. package/dist/commands/link.js +4 -19
  22. package/dist/commands/login.js +0 -8
  23. package/dist/commands/logout.js +0 -7
  24. package/dist/commands/schema.js +0 -7
  25. package/dist/commands/status.js +0 -5
  26. package/dist/commands/types.js +1 -6
  27. package/dist/commands/unlink.js +0 -7
  28. package/dist/commands/validate.js +0 -14
  29. package/dist/config.js +2 -31
  30. package/dist/deprecated.js +0 -3
  31. package/dist/errors.js +0 -7
  32. package/dist/files.js +0 -14
  33. package/dist/graphql.js +2 -19
  34. package/dist/index.js +0 -6
  35. package/dist/log.js +0 -3
  36. package/dist/main.js +0 -6
  37. package/dist/prompt.js +0 -5
  38. package/dist/types.js +0 -3
  39. package/dist/util/api.js +2 -18
  40. package/dist/util/branches.js +0 -16
  41. package/dist/util/cached-connector.js +0 -10
  42. package/dist/util/connector.js +2 -5
  43. package/dist/util/data.js +0 -16
  44. package/dist/util/fatal-error.js +0 -4
  45. package/dist/util/format-error.js +0 -1
  46. package/dist/util/format-validation-result.js +0 -2
  47. package/dist/util/fs.js +0 -8
  48. package/dist/util/generate-types.js +3 -15
  49. package/dist/util/get-client-schema.js +0 -8
  50. package/dist/util/glitch.js +0 -12
  51. package/dist/util/linked-command.js +0 -7
  52. package/dist/util/login.js +6 -30
  53. package/dist/util/messages.js +0 -10
  54. package/dist/util/ora-wrapper.js +0 -6
  55. package/dist/util/pusher.js +0 -5
  56. package/dist/util/runner.js +0 -8
  57. package/dist/util/select-project.js +0 -6
  58. package/dist/util/spin.js +0 -9
  59. package/dist/util/upload.js +0 -12
  60. package/dist/util/watcher.js +0 -5
  61. package/package.json +7 -7
@@ -6,29 +6,19 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.createTempFile = createTempFile;
7
7
  exports.getUploadUrl = getUploadUrl;
8
8
  exports.uploadFile = uploadFile;
9
-
10
9
  var _api = _interopRequireDefault(require("./api"));
11
-
12
10
  var _tmp = _interopRequireDefault(require("tmp"));
13
-
14
11
  var _path = _interopRequireDefault(require("path"));
15
-
16
12
  var _fsExtra = _interopRequireDefault(require("fs-extra"));
17
-
18
13
  var _request = _interopRequireDefault(require("request"));
19
-
20
14
  var _streams = require("@takeshape/streams");
21
-
22
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
-
24
16
  function createTempFile(filePath) {
25
17
  const tmpDir = _tmp.default.dirSync({
26
18
  unsafeCleanup: true
27
19
  });
28
-
29
20
  return [_path.default.join(tmpDir.name, filePath), tmpDir.removeCallback];
30
21
  }
31
-
32
22
  async function getUploadUrl(params) {
33
23
  try {
34
24
  const {
@@ -39,10 +29,8 @@ async function getUploadUrl(params) {
39
29
  throw new Error(`Failed to get upload url: ${e.message}`);
40
30
  }
41
31
  }
42
-
43
32
  async function uploadFile(filePath, uploadUrl) {
44
33
  const stats = _fsExtra.default.statSync(filePath);
45
-
46
34
  const putStream = (0, _request.default)({
47
35
  method: 'PUT',
48
36
  url: uploadUrl,
@@ -4,16 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.createWatcher = createWatcher;
7
-
8
7
  var _chokidar = _interopRequireDefault(require("chokidar"));
9
-
10
8
  var _log = require("../log");
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
10
  function createWatcher(description, handler, path) {
15
11
  const watcher = _chokidar.default.watch(path);
16
-
17
12
  let ready = false;
18
13
  watcher.on('all', (event, path) => {
19
14
  if (ready) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/cli",
3
- "version": "9.80.4",
3
+ "version": "9.81.3",
4
4
  "description": "TakeShape CLI",
5
5
  "homepage": "https://www.takeshape.io",
6
6
  "repository": {
@@ -54,11 +54,11 @@
54
54
  "semver": "^6.3.0",
55
55
  "stream-to-promise": "^2.2.0",
56
56
  "tmp": "^0.0.33",
57
- "@takeshape/schema": "9.80.4",
58
- "@takeshape/ssg": "9.80.4",
59
- "@takeshape/streams": "9.80.4",
60
- "@takeshape/util": "9.80.4",
61
- "@takeshape/branches": "9.80.4"
57
+ "@takeshape/schema": "9.81.3",
58
+ "@takeshape/streams": "9.81.3",
59
+ "@takeshape/util": "9.81.3",
60
+ "@takeshape/ssg": "9.81.3",
61
+ "@takeshape/branches": "9.81.3"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@types/archiver": "^3.1.0",
@@ -80,7 +80,7 @@
80
80
  "graphql": "16.6.0",
81
81
  "nock": "^13.2.9",
82
82
  "unzipper": "^0.10.11",
83
- "@takeshape/typescript-jest-junit-reporter": "9.80.4"
83
+ "@takeshape/typescript-jest-junit-reporter": "9.81.3"
84
84
  },
85
85
  "engines": {
86
86
  "node": ">=16"