@sanity/plugin-kit

6.0.47.0.0
dist/_chunks-es/log.js
+dist/_chunks-es/log.jsNew file
+31
Index: package/dist/_chunks-es/log.js
===================================================================
--- package/dist/_chunks-es/log.js
+++ package/dist/_chunks-es/log.js
@@ -0,0 +1,31 @@
+import chalk from "chalk";
+var sharedFlags_default = {
+	debug: {
+		default: !1,
+		type: "boolean"
+	},
+	silent: {
+		type: "boolean",
+		default: !1
+	},
+	verbose: {
+		type: "boolean",
+		default: !1
+	}
+};
+let beQuiet = !1, beVerbose = !1;
+function setVerbosity({ verbose, silent }) {
+	silent ? (beVerbose = !1, beQuiet = !0) : verbose && (beVerbose = !0, beQuiet = !1);
+}
+var log_default = {
+	setVerbosity,
+	msg: (msg, ...args) => !beQuiet && console.log(msg, ...args),
+	debug: (msg, ...args) => !beQuiet && beVerbose && console.debug(`${chalk.bgBlack.white("[debug]")} ${msg}`, ...args),
+	success: (msg, ...args) => !beQuiet && console.info(`${chalk.bgBlack.greenBright("[success]")} ${msg}`, ...args),
+	info: (msg, ...args) => !beQuiet && console.info(`${chalk.bgBlack.cyanBright("[info]")} ${msg}`, ...args),
+	warn: (msg, ...args) => !beQuiet && console.warn(`${chalk.bgBlack.yellowBright("[warn]")} ${msg}`, ...args),
+	error: (msg, ...args) => console.error(`${chalk.bgBlack.redBright("[error]")} ${msg}`, ...args)
+};
+export { sharedFlags_default as n, log_default as t };
+
+//# sourceMappingURL=log.js.map
\ No newline at end of file