publish-microfrontend 1.3.0-beta.5959 → 1.3.0-beta.6001
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/lib/index.js +66 -57
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -7042,11 +7042,11 @@ var require_signals = __commonJS({
|
|
|
7042
7042
|
// ../../../node_modules/signal-exit/index.js
|
|
7043
7043
|
var require_signal_exit = __commonJS({
|
|
7044
7044
|
"../../../node_modules/signal-exit/index.js"(exports2, module2) {
|
|
7045
|
-
var
|
|
7046
|
-
var processOk = function(
|
|
7047
|
-
return
|
|
7045
|
+
var process8 = global.process;
|
|
7046
|
+
var processOk = function(process9) {
|
|
7047
|
+
return process9 && typeof process9 === "object" && typeof process9.removeListener === "function" && typeof process9.emit === "function" && typeof process9.reallyExit === "function" && typeof process9.listeners === "function" && typeof process9.kill === "function" && typeof process9.pid === "number" && typeof process9.on === "function";
|
|
7048
7048
|
};
|
|
7049
|
-
if (!processOk(
|
|
7049
|
+
if (!processOk(process8)) {
|
|
7050
7050
|
module2.exports = function() {
|
|
7051
7051
|
return function() {
|
|
7052
7052
|
};
|
|
@@ -7054,15 +7054,15 @@ var require_signal_exit = __commonJS({
|
|
|
7054
7054
|
} else {
|
|
7055
7055
|
assert = require("assert");
|
|
7056
7056
|
signals = require_signals();
|
|
7057
|
-
isWin = /^win/i.test(
|
|
7057
|
+
isWin = /^win/i.test(process8.platform);
|
|
7058
7058
|
EE = require("events");
|
|
7059
7059
|
if (typeof EE !== "function") {
|
|
7060
7060
|
EE = EE.EventEmitter;
|
|
7061
7061
|
}
|
|
7062
|
-
if (
|
|
7063
|
-
emitter =
|
|
7062
|
+
if (process8.__signal_exit_emitter__) {
|
|
7063
|
+
emitter = process8.__signal_exit_emitter__;
|
|
7064
7064
|
} else {
|
|
7065
|
-
emitter =
|
|
7065
|
+
emitter = process8.__signal_exit_emitter__ = new EE();
|
|
7066
7066
|
emitter.count = 0;
|
|
7067
7067
|
emitter.emitted = {};
|
|
7068
7068
|
}
|
|
@@ -7099,12 +7099,12 @@ var require_signal_exit = __commonJS({
|
|
|
7099
7099
|
loaded = false;
|
|
7100
7100
|
signals.forEach(function(sig) {
|
|
7101
7101
|
try {
|
|
7102
|
-
|
|
7102
|
+
process8.removeListener(sig, sigListeners[sig]);
|
|
7103
7103
|
} catch (er) {
|
|
7104
7104
|
}
|
|
7105
7105
|
});
|
|
7106
|
-
|
|
7107
|
-
|
|
7106
|
+
process8.emit = originalProcessEmit;
|
|
7107
|
+
process8.reallyExit = originalProcessReallyExit;
|
|
7108
7108
|
emitter.count -= 1;
|
|
7109
7109
|
};
|
|
7110
7110
|
module2.exports.unload = unload;
|
|
@@ -7121,7 +7121,7 @@ var require_signal_exit = __commonJS({
|
|
|
7121
7121
|
if (!processOk(global.process)) {
|
|
7122
7122
|
return;
|
|
7123
7123
|
}
|
|
7124
|
-
var listeners =
|
|
7124
|
+
var listeners = process8.listeners(sig);
|
|
7125
7125
|
if (listeners.length === emitter.count) {
|
|
7126
7126
|
unload();
|
|
7127
7127
|
emit("exit", null, sig);
|
|
@@ -7129,7 +7129,7 @@ var require_signal_exit = __commonJS({
|
|
|
7129
7129
|
if (isWin && sig === "SIGHUP") {
|
|
7130
7130
|
sig = "SIGINT";
|
|
7131
7131
|
}
|
|
7132
|
-
|
|
7132
|
+
process8.kill(process8.pid, sig);
|
|
7133
7133
|
}
|
|
7134
7134
|
};
|
|
7135
7135
|
});
|
|
@@ -7145,35 +7145,35 @@ var require_signal_exit = __commonJS({
|
|
|
7145
7145
|
emitter.count += 1;
|
|
7146
7146
|
signals = signals.filter(function(sig) {
|
|
7147
7147
|
try {
|
|
7148
|
-
|
|
7148
|
+
process8.on(sig, sigListeners[sig]);
|
|
7149
7149
|
return true;
|
|
7150
7150
|
} catch (er) {
|
|
7151
7151
|
return false;
|
|
7152
7152
|
}
|
|
7153
7153
|
});
|
|
7154
|
-
|
|
7155
|
-
|
|
7154
|
+
process8.emit = processEmit;
|
|
7155
|
+
process8.reallyExit = processReallyExit;
|
|
7156
7156
|
};
|
|
7157
7157
|
module2.exports.load = load;
|
|
7158
|
-
originalProcessReallyExit =
|
|
7158
|
+
originalProcessReallyExit = process8.reallyExit;
|
|
7159
7159
|
processReallyExit = function processReallyExit2(code) {
|
|
7160
7160
|
if (!processOk(global.process)) {
|
|
7161
7161
|
return;
|
|
7162
7162
|
}
|
|
7163
|
-
|
|
7164
|
-
emit("exit",
|
|
7165
|
-
emit("afterexit",
|
|
7166
|
-
originalProcessReallyExit.call(
|
|
7163
|
+
process8.exitCode = code || 0;
|
|
7164
|
+
emit("exit", process8.exitCode, null);
|
|
7165
|
+
emit("afterexit", process8.exitCode, null);
|
|
7166
|
+
originalProcessReallyExit.call(process8, process8.exitCode);
|
|
7167
7167
|
};
|
|
7168
|
-
originalProcessEmit =
|
|
7168
|
+
originalProcessEmit = process8.emit;
|
|
7169
7169
|
processEmit = function processEmit2(ev, arg) {
|
|
7170
7170
|
if (ev === "exit" && processOk(global.process)) {
|
|
7171
7171
|
if (arg !== void 0) {
|
|
7172
|
-
|
|
7172
|
+
process8.exitCode = arg;
|
|
7173
7173
|
}
|
|
7174
7174
|
var ret = originalProcessEmit.apply(this, arguments);
|
|
7175
|
-
emit("exit",
|
|
7176
|
-
emit("afterexit",
|
|
7175
|
+
emit("exit", process8.exitCode, null);
|
|
7176
|
+
emit("afterexit", process8.exitCode, null);
|
|
7177
7177
|
return ret;
|
|
7178
7178
|
} else {
|
|
7179
7179
|
return originalProcessEmit.apply(this, arguments);
|
|
@@ -11875,9 +11875,9 @@ var require_readable = __commonJS({
|
|
|
11875
11875
|
}
|
|
11876
11876
|
});
|
|
11877
11877
|
|
|
11878
|
-
// node_modules/bl/BufferList.js
|
|
11878
|
+
// ../../../node_modules/ora/node_modules/bl/BufferList.js
|
|
11879
11879
|
var require_BufferList = __commonJS({
|
|
11880
|
-
"node_modules/bl/BufferList.js"(exports2, module2) {
|
|
11880
|
+
"../../../node_modules/ora/node_modules/bl/BufferList.js"(exports2, module2) {
|
|
11881
11881
|
"use strict";
|
|
11882
11882
|
var { Buffer: Buffer2 } = require("buffer");
|
|
11883
11883
|
var symbol = Symbol.for("BufferList");
|
|
@@ -12179,9 +12179,9 @@ var require_BufferList = __commonJS({
|
|
|
12179
12179
|
}
|
|
12180
12180
|
});
|
|
12181
12181
|
|
|
12182
|
-
// node_modules/bl/bl.js
|
|
12182
|
+
// ../../../node_modules/ora/node_modules/bl/bl.js
|
|
12183
12183
|
var require_bl = __commonJS({
|
|
12184
|
-
"node_modules/bl/bl.js"(exports2, module2) {
|
|
12184
|
+
"../../../node_modules/ora/node_modules/bl/bl.js"(exports2, module2) {
|
|
12185
12185
|
"use strict";
|
|
12186
12186
|
var DuplexStream = require_readable().Duplex;
|
|
12187
12187
|
var inherits = require_inherits();
|
|
@@ -26909,14 +26909,14 @@ var forceOverwriteKeys = Object.keys(ForceOverwrite).filter((m) => typeof ForceO
|
|
|
26909
26909
|
var import_path4 = __toModule(require("path"));
|
|
26910
26910
|
var import_promises2 = __toModule(require("fs/promises"));
|
|
26911
26911
|
|
|
26912
|
-
// node_modules/ora/index.js
|
|
26913
|
-
var
|
|
26912
|
+
// ../../../node_modules/ora/index.js
|
|
26913
|
+
var import_node_process6 = __toModule(require("node:process"));
|
|
26914
26914
|
var import_chalk2 = __toModule(require_source());
|
|
26915
26915
|
|
|
26916
|
-
// node_modules/cli-cursor/index.js
|
|
26916
|
+
// ../../../node_modules/ora/node_modules/cli-cursor/index.js
|
|
26917
26917
|
var import_node_process2 = __toModule(require("node:process"));
|
|
26918
26918
|
|
|
26919
|
-
// node_modules/restore-cursor/index.js
|
|
26919
|
+
// ../../../node_modules/ora/node_modules/restore-cursor/index.js
|
|
26920
26920
|
var import_node_process = __toModule(require("node:process"));
|
|
26921
26921
|
var import_onetime = __toModule(require_onetime());
|
|
26922
26922
|
var import_signal_exit = __toModule(require_signal_exit());
|
|
@@ -26927,7 +26927,7 @@ var restoreCursor = (0, import_onetime.default)(() => {
|
|
|
26927
26927
|
});
|
|
26928
26928
|
var restore_cursor_default = restoreCursor;
|
|
26929
26929
|
|
|
26930
|
-
// node_modules/cli-cursor/index.js
|
|
26930
|
+
// ../../../node_modules/ora/node_modules/cli-cursor/index.js
|
|
26931
26931
|
var isHidden = false;
|
|
26932
26932
|
var cliCursor = {};
|
|
26933
26933
|
cliCursor.show = (writableStream = import_node_process2.default.stderr) => {
|
|
@@ -26957,13 +26957,13 @@ cliCursor.toggle = (force, writableStream) => {
|
|
|
26957
26957
|
};
|
|
26958
26958
|
var cli_cursor_default = cliCursor;
|
|
26959
26959
|
|
|
26960
|
-
// node_modules/ora/index.js
|
|
26960
|
+
// ../../../node_modules/ora/index.js
|
|
26961
26961
|
var import_cli_spinners = __toModule(require_cli_spinners());
|
|
26962
26962
|
|
|
26963
|
-
// node_modules/log-symbols/index.js
|
|
26963
|
+
// ../../../node_modules/log-symbols/index.js
|
|
26964
26964
|
var import_chalk = __toModule(require_source());
|
|
26965
26965
|
|
|
26966
|
-
// node_modules/is-unicode-supported/index.js
|
|
26966
|
+
// ../../../node_modules/log-symbols/node_modules/is-unicode-supported/index.js
|
|
26967
26967
|
var import_node_process3 = __toModule(require("node:process"));
|
|
26968
26968
|
function isUnicodeSupported() {
|
|
26969
26969
|
if (import_node_process3.default.platform !== "win32") {
|
|
@@ -26972,7 +26972,7 @@ function isUnicodeSupported() {
|
|
|
26972
26972
|
return Boolean(import_node_process3.default.env.CI) || Boolean(import_node_process3.default.env.WT_SESSION) || Boolean(import_node_process3.default.env.TERMINUS_SUBLIME) || import_node_process3.default.env.ConEmuTask === "{cmd::Cmder}" || import_node_process3.default.env.TERM_PROGRAM === "Terminus-Sublime" || import_node_process3.default.env.TERM_PROGRAM === "vscode" || import_node_process3.default.env.TERM === "xterm-256color" || import_node_process3.default.env.TERM === "alacritty" || import_node_process3.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
26973
26973
|
}
|
|
26974
26974
|
|
|
26975
|
-
// node_modules/log-symbols/index.js
|
|
26975
|
+
// ../../../node_modules/log-symbols/index.js
|
|
26976
26976
|
var main = {
|
|
26977
26977
|
info: import_chalk.default.blue("\u2139"),
|
|
26978
26978
|
success: import_chalk.default.green("\u2714"),
|
|
@@ -26988,7 +26988,7 @@ var fallback = {
|
|
|
26988
26988
|
var logSymbols = isUnicodeSupported() ? main : fallback;
|
|
26989
26989
|
var log_symbols_default = logSymbols;
|
|
26990
26990
|
|
|
26991
|
-
// node_modules/strip-ansi/index.js
|
|
26991
|
+
// ../../../node_modules/ora/node_modules/strip-ansi/index.js
|
|
26992
26992
|
var import_ansi_regex = __toModule(require_ansi_regex());
|
|
26993
26993
|
function stripAnsi(string2) {
|
|
26994
26994
|
if (typeof string2 !== "string") {
|
|
@@ -26997,7 +26997,7 @@ function stripAnsi(string2) {
|
|
|
26997
26997
|
return string2.replace((0, import_ansi_regex.default)(), "");
|
|
26998
26998
|
}
|
|
26999
26999
|
|
|
27000
|
-
// node_modules/ora/index.js
|
|
27000
|
+
// ../../../node_modules/ora/index.js
|
|
27001
27001
|
var import_wcwidth = __toModule(require_wcwidth());
|
|
27002
27002
|
|
|
27003
27003
|
// ../../../node_modules/is-interactive/index.js
|
|
@@ -27005,8 +27005,17 @@ function isInteractive({ stream = process.stdout } = {}) {
|
|
|
27005
27005
|
return Boolean(stream && stream.isTTY && process.env.TERM !== "dumb" && !("CI" in process.env));
|
|
27006
27006
|
}
|
|
27007
27007
|
|
|
27008
|
-
// node_modules/ora/
|
|
27008
|
+
// ../../../node_modules/ora/node_modules/is-unicode-supported/index.js
|
|
27009
27009
|
var import_node_process4 = __toModule(require("node:process"));
|
|
27010
|
+
function isUnicodeSupported2() {
|
|
27011
|
+
if (import_node_process4.default.platform !== "win32") {
|
|
27012
|
+
return import_node_process4.default.env.TERM !== "linux";
|
|
27013
|
+
}
|
|
27014
|
+
return Boolean(import_node_process4.default.env.CI) || Boolean(import_node_process4.default.env.WT_SESSION) || Boolean(import_node_process4.default.env.TERMINUS_SUBLIME) || import_node_process4.default.env.ConEmuTask === "{cmd::Cmder}" || import_node_process4.default.env.TERM_PROGRAM === "Terminus-Sublime" || import_node_process4.default.env.TERM_PROGRAM === "vscode" || import_node_process4.default.env.TERM === "xterm-256color" || import_node_process4.default.env.TERM === "alacritty" || import_node_process4.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
27015
|
+
}
|
|
27016
|
+
|
|
27017
|
+
// ../../../node_modules/ora/utilities.js
|
|
27018
|
+
var import_node_process5 = __toModule(require("node:process"));
|
|
27010
27019
|
var import_node_readline = __toModule(require("node:readline"));
|
|
27011
27020
|
var import_bl = __toModule(require_bl());
|
|
27012
27021
|
var ASCII_ETX_CODE = 3;
|
|
@@ -27016,20 +27025,20 @@ var StdinDiscarder = class {
|
|
|
27016
27025
|
#ourEmit;
|
|
27017
27026
|
#rl;
|
|
27018
27027
|
constructor() {
|
|
27019
|
-
this.#mutedStream.pipe(
|
|
27028
|
+
this.#mutedStream.pipe(import_node_process5.default.stdout);
|
|
27020
27029
|
const self = this;
|
|
27021
27030
|
this.#ourEmit = function(event, data, ...args2) {
|
|
27022
|
-
const { stdin } =
|
|
27031
|
+
const { stdin } = import_node_process5.default;
|
|
27023
27032
|
if (self.#requests > 0 || stdin.emit === self.#ourEmit) {
|
|
27024
27033
|
if (event === "keypress") {
|
|
27025
27034
|
return;
|
|
27026
27035
|
}
|
|
27027
27036
|
if (event === "data" && data.includes(ASCII_ETX_CODE)) {
|
|
27028
|
-
|
|
27037
|
+
import_node_process5.default.emit("SIGINT");
|
|
27029
27038
|
}
|
|
27030
27039
|
Reflect.apply(self.#ourEmit, this, [event, data, ...args2]);
|
|
27031
27040
|
} else {
|
|
27032
|
-
Reflect.apply(
|
|
27041
|
+
Reflect.apply(import_node_process5.default.stdin.emit, this, [event, data, ...args2]);
|
|
27033
27042
|
}
|
|
27034
27043
|
};
|
|
27035
27044
|
}
|
|
@@ -27049,24 +27058,24 @@ var StdinDiscarder = class {
|
|
|
27049
27058
|
}
|
|
27050
27059
|
}
|
|
27051
27060
|
_realStart() {
|
|
27052
|
-
if (
|
|
27061
|
+
if (import_node_process5.default.platform === "win32") {
|
|
27053
27062
|
return;
|
|
27054
27063
|
}
|
|
27055
27064
|
this.#rl = import_node_readline.default.createInterface({
|
|
27056
|
-
input:
|
|
27065
|
+
input: import_node_process5.default.stdin,
|
|
27057
27066
|
output: this.#mutedStream
|
|
27058
27067
|
});
|
|
27059
27068
|
this.#rl.on("SIGINT", () => {
|
|
27060
|
-
if (
|
|
27061
|
-
|
|
27069
|
+
if (import_node_process5.default.listenerCount("SIGINT") === 0) {
|
|
27070
|
+
import_node_process5.default.emit("SIGINT");
|
|
27062
27071
|
} else {
|
|
27063
27072
|
this.#rl.close();
|
|
27064
|
-
|
|
27073
|
+
import_node_process5.default.kill(import_node_process5.default.pid, "SIGINT");
|
|
27065
27074
|
}
|
|
27066
27075
|
});
|
|
27067
27076
|
}
|
|
27068
27077
|
_realStop() {
|
|
27069
|
-
if (
|
|
27078
|
+
if (import_node_process5.default.platform === "win32") {
|
|
27070
27079
|
return;
|
|
27071
27080
|
}
|
|
27072
27081
|
this.#rl.close();
|
|
@@ -27074,7 +27083,7 @@ var StdinDiscarder = class {
|
|
|
27074
27083
|
}
|
|
27075
27084
|
};
|
|
27076
27085
|
|
|
27077
|
-
// node_modules/ora/index.js
|
|
27086
|
+
// ../../../node_modules/ora/index.js
|
|
27078
27087
|
var stdinDiscarder;
|
|
27079
27088
|
var Ora = class {
|
|
27080
27089
|
#linesToClear = 0;
|
|
@@ -27103,7 +27112,7 @@ var Ora = class {
|
|
|
27103
27112
|
}
|
|
27104
27113
|
this.#options = {
|
|
27105
27114
|
color: "cyan",
|
|
27106
|
-
stream:
|
|
27115
|
+
stream: import_node_process6.default.stderr,
|
|
27107
27116
|
discardStdin: true,
|
|
27108
27117
|
hideCursor: true,
|
|
27109
27118
|
...options
|
|
@@ -27117,7 +27126,7 @@ var Ora = class {
|
|
|
27117
27126
|
this.text = this.#options.text;
|
|
27118
27127
|
this.prefixText = this.#options.prefixText;
|
|
27119
27128
|
this.indent = this.#options.indent;
|
|
27120
|
-
if (
|
|
27129
|
+
if (import_node_process6.default.env.NODE_ENV === "test") {
|
|
27121
27130
|
this._stream = this.#stream;
|
|
27122
27131
|
this._isEnabled = this.#isEnabled;
|
|
27123
27132
|
Object.defineProperty(this, "_linesToClear", {
|
|
@@ -27164,7 +27173,7 @@ var Ora = class {
|
|
|
27164
27173
|
throw new Error("The given spinner must have a `frames` property");
|
|
27165
27174
|
}
|
|
27166
27175
|
this.#spinner = spinner;
|
|
27167
|
-
} else if (!
|
|
27176
|
+
} else if (!isUnicodeSupported2()) {
|
|
27168
27177
|
this.#spinner = import_cli_spinners.default.line;
|
|
27169
27178
|
} else if (spinner === void 0) {
|
|
27170
27179
|
this.#spinner = import_cli_spinners.default.dots;
|
|
@@ -27284,7 +27293,7 @@ var Ora = class {
|
|
|
27284
27293
|
if (this.#options.hideCursor) {
|
|
27285
27294
|
cli_cursor_default.hide(this.#stream);
|
|
27286
27295
|
}
|
|
27287
|
-
if (this.#options.discardStdin &&
|
|
27296
|
+
if (this.#options.discardStdin && import_node_process6.default.stdin.isTTY) {
|
|
27288
27297
|
this.#isDiscardingStdin = true;
|
|
27289
27298
|
stdinDiscarder.start();
|
|
27290
27299
|
}
|
|
@@ -27303,7 +27312,7 @@ var Ora = class {
|
|
|
27303
27312
|
if (this.#options.hideCursor) {
|
|
27304
27313
|
cli_cursor_default.show(this.#stream);
|
|
27305
27314
|
}
|
|
27306
|
-
if (this.#options.discardStdin &&
|
|
27315
|
+
if (this.#options.discardStdin && import_node_process6.default.stdin.isTTY && this.#isDiscardingStdin) {
|
|
27307
27316
|
stdinDiscarder.stop();
|
|
27308
27317
|
this.#isDiscardingStdin = false;
|
|
27309
27318
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "publish-microfrontend",
|
|
3
|
-
"version": "1.3.0-beta.
|
|
3
|
+
"version": "1.3.0-beta.6001",
|
|
4
4
|
"description": "A CLI for publishing micro frontends to a feed service.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"modules",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"typescript": "^5.0.0",
|
|
70
70
|
"yargs": "^15.0.0"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "ea22bb317f7bfb648f0fe8ed747c6a13faff54e5"
|
|
73
73
|
}
|