@weapp-tailwindcss/logger 2.0.0-next.0 → 2.0.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/index.js
CHANGED
|
@@ -1,11 +1,33 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
21
|
+
value: mod,
|
|
22
|
+
enumerable: true
|
|
23
|
+
}) : target, mod));
|
|
24
|
+
//#endregion
|
|
3
25
|
let node_util = require("node:util");
|
|
4
26
|
let node_path = require("node:path");
|
|
5
27
|
let node_process = require("node:process");
|
|
6
|
-
node_process =
|
|
28
|
+
node_process = __toESM(node_process, 1);
|
|
7
29
|
let node_tty = require("node:tty");
|
|
8
|
-
node_tty =
|
|
30
|
+
node_tty = __toESM(node_tty, 1);
|
|
9
31
|
//#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/core.mjs
|
|
10
32
|
const LogLevels = {
|
|
11
33
|
silent: Number.NEGATIVE_INFINITY,
|
|
@@ -941,7 +963,7 @@ function createConsola(options = {}) {
|
|
|
941
963
|
defaults: { level },
|
|
942
964
|
stdout: process.stdout,
|
|
943
965
|
stderr: process.stderr,
|
|
944
|
-
prompt: (...args) => Promise.resolve().then(() => require("./prompt-
|
|
966
|
+
prompt: (...args) => Promise.resolve().then(() => require("./prompt-De3wd1va.js")).then((m) => m.prompt(...args)),
|
|
945
967
|
reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
946
968
|
...options
|
|
947
969
|
});
|
|
@@ -953,8 +975,8 @@ function _getDefaultLogLevel() {
|
|
|
953
975
|
}
|
|
954
976
|
createConsola();
|
|
955
977
|
//#endregion
|
|
956
|
-
//#region
|
|
957
|
-
var
|
|
978
|
+
//#region src/index.ts
|
|
979
|
+
var import_picocolors = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
958
980
|
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
|
959
981
|
let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
960
982
|
let formatter = (open, close, replace = open) => (input) => {
|
|
@@ -1019,11 +1041,9 @@ var require_picocolors = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
|
|
|
1019
1041
|
};
|
|
1020
1042
|
module.exports = createColors();
|
|
1021
1043
|
module.exports.createColors = createColors;
|
|
1022
|
-
}));
|
|
1023
|
-
//#endregion
|
|
1024
|
-
//#region src/index.ts
|
|
1025
|
-
var import_picocolors = /* @__PURE__ */ require_chunk.__toESM(require_picocolors());
|
|
1044
|
+
})))());
|
|
1026
1045
|
const logger = createConsola();
|
|
1027
1046
|
//#endregion
|
|
1047
|
+
exports.__toESM = __toESM;
|
|
1028
1048
|
exports.logger = logger;
|
|
1029
1049
|
exports.pc = import_picocolors.default;
|
package/dist/index.mjs
CHANGED
|
@@ -960,7 +960,7 @@ function createConsola(options = {}) {
|
|
|
960
960
|
defaults: { level },
|
|
961
961
|
stdout: process.stdout,
|
|
962
962
|
stderr: process.stderr,
|
|
963
|
-
prompt: (...args) => import("./prompt-
|
|
963
|
+
prompt: (...args) => import("./prompt-ow6GcF5C.mjs").then((m) => m.prompt(...args)),
|
|
964
964
|
reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
965
965
|
...options
|
|
966
966
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_index = require("./index.js");
|
|
2
2
|
require("node:util");
|
|
3
3
|
let node_process = require("node:process");
|
|
4
|
-
node_process =
|
|
4
|
+
node_process = require_index.__toESM(node_process, 1);
|
|
5
5
|
let node_tty = require("node:tty");
|
|
6
6
|
let node_readline = require("node:readline");
|
|
7
|
-
node_readline =
|
|
7
|
+
node_readline = require_index.__toESM(node_readline, 1);
|
|
8
8
|
//#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/chunks/prompt.mjs
|
|
9
9
|
function getDefaultExportFromCjs(x) {
|
|
10
10
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -138,7 +138,7 @@ function requirePicocolors() {
|
|
|
138
138
|
picocolors.exports.createColors = createColors;
|
|
139
139
|
return picocolors.exports;
|
|
140
140
|
}
|
|
141
|
-
const e =
|
|
141
|
+
const e = /*@__PURE__*/ getDefaultExportFromCjs(/* @__PURE__ */ requirePicocolors());
|
|
142
142
|
function J({ onlyFirst: t = false } = {}) {
|
|
143
143
|
const F = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
|
|
144
144
|
return new RegExp(F, t ? void 0 : "g");
|
|
@@ -134,7 +134,7 @@ function requirePicocolors() {
|
|
|
134
134
|
picocolors.exports.createColors = createColors;
|
|
135
135
|
return picocolors.exports;
|
|
136
136
|
}
|
|
137
|
-
const e =
|
|
137
|
+
const e = /*@__PURE__*/ getDefaultExportFromCjs(/* @__PURE__ */ requirePicocolors());
|
|
138
138
|
function J({ onlyFirst: t = false } = {}) {
|
|
139
139
|
const F = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
|
|
140
140
|
return new RegExp(F, t ? void 0 : "g");
|
package/package.json
CHANGED
package/dist/chunk-KmRHZBOW.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
-
key = keys[i];
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
13
|
-
get: ((k) => from[k]).bind(null, key),
|
|
14
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
20
|
-
value: mod,
|
|
21
|
-
enumerable: true
|
|
22
|
-
}) : target, mod));
|
|
23
|
-
//#endregion
|
|
24
|
-
Object.defineProperty(exports, "__commonJSMin", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function() {
|
|
27
|
-
return __commonJSMin;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "__toESM", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function() {
|
|
33
|
-
return __toESM;
|
|
34
|
-
}
|
|
35
|
-
});
|