para-cli 1.23.0 → 1.23.2
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/index.js +6 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -93,6 +93,7 @@ export async function setup(config) {
|
|
|
93
93
|
});
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
|
+
rl.close();
|
|
96
97
|
});
|
|
97
98
|
});
|
|
98
99
|
});
|
|
@@ -137,7 +138,7 @@ export function createAll(pc, input, flags) {
|
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
if (flags.sanitize) {
|
|
140
|
-
json.text = json.text.replace(
|
|
141
|
+
json.text = json.text.replace(/[^0-9\p{L}]+/giu, ' ').replace(/[\s]+/gi, ' ');
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
id = (i === 0 && flags.id) ? flags.id : (json.url || filePath);
|
|
@@ -505,8 +506,8 @@ export function listApps(config, flags, parentAccessKey, failureCallback) {
|
|
|
505
506
|
}).then(function () {
|
|
506
507
|
var apps = results.map(function (app) {return app.appIdentifier.trim();});
|
|
507
508
|
if (apps.length) {
|
|
508
|
-
console.log('Found', p.count, 'apps on ' + cyan(endpoint) + '
|
|
509
|
-
console.log('
|
|
509
|
+
console.log('Found', p.count, 'apps on ' + cyan(endpoint) + ':\n', yellow('[') + green(apps.join(yellow('] ['))) + yellow(']'));
|
|
510
|
+
console.log('\nTyping', cyan('para-cli select'), green(apps[0]), 'will switch to that app. \nCurrent app:',
|
|
510
511
|
green(parentAccessKey));
|
|
511
512
|
process.exit(0);
|
|
512
513
|
} else {
|
|
@@ -782,7 +783,7 @@ function parseHTML(file) {
|
|
|
782
783
|
},
|
|
783
784
|
ontext: function (txt) {
|
|
784
785
|
if (!inScript && !inAnchor) {
|
|
785
|
-
text += txt;
|
|
786
|
+
text += ' ' + txt;
|
|
786
787
|
}
|
|
787
788
|
},
|
|
788
789
|
onclosetag: function () {
|
|
@@ -795,7 +796,7 @@ function parseHTML(file) {
|
|
|
795
796
|
return {
|
|
796
797
|
name: title,
|
|
797
798
|
url: url,
|
|
798
|
-
text: (text || '').replace(/[\s]+/gi, ' ')
|
|
799
|
+
text: (text || ' ').replace(/[\s]+/gi, ' ')
|
|
799
800
|
};
|
|
800
801
|
}
|
|
801
802
|
|