Aktueller Stand
This commit is contained in:
92
backend/node_modules/effect/dist/esm/internal/defaultServices/console.js
generated
vendored
Normal file
92
backend/node_modules/effect/dist/esm/internal/defaultServices/console.js
generated
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
import * as Context from "../../Context.js";
|
||||
import * as core from "../core.js";
|
||||
/** @internal */
|
||||
export const TypeId = /*#__PURE__*/Symbol.for("effect/Console");
|
||||
/** @internal */
|
||||
export const consoleTag = /*#__PURE__*/Context.GenericTag("effect/Console");
|
||||
/** @internal */
|
||||
export const defaultConsole = {
|
||||
[TypeId]: TypeId,
|
||||
assert(condition, ...args) {
|
||||
return core.sync(() => {
|
||||
console.assert(condition, ...args);
|
||||
});
|
||||
},
|
||||
clear: /*#__PURE__*/core.sync(() => {
|
||||
console.clear();
|
||||
}),
|
||||
count(label) {
|
||||
return core.sync(() => {
|
||||
console.count(label);
|
||||
});
|
||||
},
|
||||
countReset(label) {
|
||||
return core.sync(() => {
|
||||
console.countReset(label);
|
||||
});
|
||||
},
|
||||
debug(...args) {
|
||||
return core.sync(() => {
|
||||
console.debug(...args);
|
||||
});
|
||||
},
|
||||
dir(item, options) {
|
||||
return core.sync(() => {
|
||||
console.dir(item, options);
|
||||
});
|
||||
},
|
||||
dirxml(...args) {
|
||||
return core.sync(() => {
|
||||
console.dirxml(...args);
|
||||
});
|
||||
},
|
||||
error(...args) {
|
||||
return core.sync(() => {
|
||||
console.error(...args);
|
||||
});
|
||||
},
|
||||
group(options) {
|
||||
return options?.collapsed ? core.sync(() => console.groupCollapsed(options?.label)) : core.sync(() => console.group(options?.label));
|
||||
},
|
||||
groupEnd: /*#__PURE__*/core.sync(() => {
|
||||
console.groupEnd();
|
||||
}),
|
||||
info(...args) {
|
||||
return core.sync(() => {
|
||||
console.info(...args);
|
||||
});
|
||||
},
|
||||
log(...args) {
|
||||
return core.sync(() => {
|
||||
console.log(...args);
|
||||
});
|
||||
},
|
||||
table(tabularData, properties) {
|
||||
return core.sync(() => {
|
||||
console.table(tabularData, properties);
|
||||
});
|
||||
},
|
||||
time(label) {
|
||||
return core.sync(() => console.time(label));
|
||||
},
|
||||
timeEnd(label) {
|
||||
return core.sync(() => console.timeEnd(label));
|
||||
},
|
||||
timeLog(label, ...args) {
|
||||
return core.sync(() => {
|
||||
console.timeLog(label, ...args);
|
||||
});
|
||||
},
|
||||
trace(...args) {
|
||||
return core.sync(() => {
|
||||
console.trace(...args);
|
||||
});
|
||||
},
|
||||
warn(...args) {
|
||||
return core.sync(() => {
|
||||
console.warn(...args);
|
||||
});
|
||||
},
|
||||
unsafe: console
|
||||
};
|
||||
//# sourceMappingURL=console.js.map
|
||||
Reference in New Issue
Block a user