@inquirer/editor
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -12,2 +12,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const node_async_hooks_1 = require("node:async_hooks"); | ||
const external_editor_1 = require("external-editor"); | ||
@@ -25,3 +26,5 @@ const core_1 = require("@inquirer/core"); | ||
rl.pause(); | ||
(0, external_editor_1.editAsync)(value, (error, answer) => __awaiter(this, void 0, void 0, function* () { | ||
(0, external_editor_1.editAsync)(value, | ||
// Note: The bind call isn't strictly required. But we need it for our mocks to work as expected. | ||
node_async_hooks_1.AsyncResource.bind((error, answer) => __awaiter(this, void 0, void 0, function* () { | ||
rl.resume(); | ||
@@ -45,3 +48,3 @@ if (error) { | ||
} | ||
}), { | ||
})), { | ||
postfix: config.postfix || '.txt', | ||
@@ -48,0 +51,0 @@ }); |
@@ -12,2 +12,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const node_async_hooks_1 = require("node:async_hooks"); | ||
const external_editor_1 = require("external-editor"); | ||
@@ -25,3 +26,5 @@ const core_1 = require("@inquirer/core"); | ||
rl.pause(); | ||
(0, external_editor_1.editAsync)(value, (error, answer) => __awaiter(this, void 0, void 0, function* () { | ||
(0, external_editor_1.editAsync)(value, | ||
// Note: The bind call isn't strictly required. But we need it for our mocks to work as expected. | ||
node_async_hooks_1.AsyncResource.bind((error, answer) => __awaiter(this, void 0, void 0, function* () { | ||
rl.resume(); | ||
@@ -45,3 +48,3 @@ if (error) { | ||
} | ||
}), { | ||
})), { | ||
postfix: config.postfix || '.txt', | ||
@@ -48,0 +51,0 @@ }); |
{ | ||
"name": "@inquirer/editor", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Inquirer multiline editor prompt", | ||
@@ -57,6 +57,9 @@ "main": "./dist/cjs/index.js", | ||
"dependencies": { | ||
"@inquirer/core": "^7.0.1", | ||
"@inquirer/core": "^7.0.2", | ||
"@inquirer/type": "^1.2.0", | ||
"external-editor": "^3.1.0" | ||
}, | ||
"devDependencies": { | ||
"@inquirer/testing": "^2.1.12" | ||
}, | ||
"scripts": { | ||
@@ -85,3 +88,3 @@ "tsc": "yarn run tsc:esm && yarn run tsc:cjs", | ||
}, | ||
"gitHead": "c91196e66689cfc05e9237763e6f95f3eb5342a1" | ||
"gitHead": "85fba2337df29f689d058a9260df163af89caa98" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16567
235
1
Updated@inquirer/core@^7.0.2