@getxflow/cli 1.1.0 → 1.2.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/ui.js CHANGED
@@ -14,7 +14,6 @@ exports.table = table;
14
14
  exports.formatBytes = formatBytes;
15
15
  exports.formatAge = formatAge;
16
16
  exports.offerBrowser = offerBrowser;
17
- exports.confirmWord = confirmWord;
18
17
  const node_child_process_1 = require("node:child_process");
19
18
  const node_readline_1 = require("node:readline");
20
19
  /**
@@ -147,21 +146,3 @@ function offerBrowser(url) {
147
146
  });
148
147
  return () => rl.close();
149
148
  }
150
- /** Dangerous-action confirmation: type the exact word. Unavailable without a TTY. */
151
- async function confirmWord(question, expected) {
152
- if (!process.stdin.isTTY) {
153
- fatal('Confirmation is only possible in an interactive terminal');
154
- fatalNote((0, exports.dim)(' In CI this is the right behaviour: a version conflict has to fail the build rather than overwrite what the platform holds'));
155
- return false;
156
- }
157
- const rl = (0, node_readline_1.createInterface)({ input: process.stdin, output: process.stderr });
158
- try {
159
- const answer = await new Promise((resolve) => {
160
- rl.question(`${question}\n Type "${expected}" to confirm: `, resolve);
161
- });
162
- return answer.trim() === expected;
163
- }
164
- finally {
165
- rl.close();
166
- }
167
- }
package/dist/version.js CHANGED
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DEFAULT_API_URL = exports.CLI_VERSION = void 0;
4
4
  /** Keep in sync with cli/package.json. */
5
- exports.CLI_VERSION = '1.1.0';
5
+ exports.CLI_VERSION = '1.2.0';
6
6
  /** Overridden by XFLOW_API_URL or the `api` field in xflow.json. */
7
7
  exports.DEFAULT_API_URL = 'https://app.getxflow.com';
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
- {
2
- "name": "@getxflow/cli",
3
- "version": "1.1.0",
4
- "description": "CLI for the XFlow platform: projects with apps, functions and a database; source sync, deployment and publishing",
5
- "license": "UNLICENSED",
6
- "engines": {
7
- "node": ">=20"
8
- },
9
- "bin": {
10
- "xflow": "dist/bin.js"
11
- },
12
- "files": [
13
- "dist",
14
- "skills"
15
- ],
16
- "scripts": {
17
- "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
18
- "build": "npm run clean && tsc -p tsconfig.json",
19
- "prepublishOnly": "npm run build"
20
- },
21
- "publishConfig": {
22
- "access": "public"
23
- }
24
- }
1
+ {
2
+ "name": "@getxflow/cli",
3
+ "version": "1.2.0",
4
+ "description": "CLI for the XFlow platform: projects with apps, functions and a database; source sync, deployment and publishing",
5
+ "license": "UNLICENSED",
6
+ "engines": {
7
+ "node": ">=20"
8
+ },
9
+ "bin": {
10
+ "xflow": "dist/bin.js"
11
+ },
12
+ "files": [
13
+ "dist",
14
+ "skills"
15
+ ],
16
+ "scripts": {
17
+ "clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
18
+ "build": "npm run clean && tsc -p tsconfig.json",
19
+ "prepublishOnly": "npm run build"
20
+ },
21
+ "publishConfig": {
22
+ "access": "public"
23
+ }
24
+ }