New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cardsgame/utils

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cardsgame/utils - npm Package Compare versions

Comparing version 0.5.0 to 0.5.2

17

lib/logs.d.ts

@@ -22,1 +22,18 @@ import Chalk from "chalk";

};
export interface Logs {
error: (...any: any[]) => void;
warn: (...any: any[]) => void;
info: (...any: any[]) => void;
notice: (...any: any[]) => void;
verbose: (...any: any[]) => void;
group: (...any: any[]) => void;
groupCollapsed: (...any: any[]) => void;
groupEnd: () => void;
}
/**
* Local logging utility
* TODO: whoops, port it to server environment too!
*/
export declare class Logs {
constructor(name: string, style: string, enabled?: boolean);
}

56

lib/logs.js

@@ -94,5 +94,5 @@ "use strict";

var indentLevel = 0;
var getIndent = function () {
function getIndent() {
return Array(indentLevel).fill("│ ").join("");
};
}
if (isBrowser) {

@@ -263,2 +263,54 @@ exports.logs = {

}
/**
* Local logging utility
* TODO: whoops, port it to server environment too!
*/
var Logs = /** @class */ (function () {
function Logs(name, style, enabled) {
if (enabled === void 0) { enabled = false; }
this["error"] =
logLevel < LogLevels.error && enabled
? utils_1.noop
: (function () {
return Function.prototype.bind.call(console.error, console, "%c " + name + " ", style);
})();
this["warn"] =
logLevel < LogLevels.warn && enabled
? utils_1.noop
: (function () {
return Function.prototype.bind.call(console.warn, console, "%c " + name + " ", style);
})();
this["info"] =
logLevel < LogLevels.info && enabled
? utils_1.noop
: (function () {
return Function.prototype.bind.call(console.info, console, "%c " + name + " ", style);
})();
this["notice"] =
logLevel < LogLevels.notice && enabled
? utils_1.noop
: (function () {
return Function.prototype.bind.call(console.log, console, "%c " + name + " ", style);
})();
this["verbose"] =
logLevel < LogLevels.verbose && enabled
? utils_1.noop
: (function () {
return Function.prototype.bind.call(console.debug, console, "%c " + name + " ", style);
})();
this["group"] = enabled
? utils_1.noop
: console.group.bind(console, "%c " + name + " ", style);
this["groupCollapsed"] = enabled
? utils_1.noop
: console.groupCollapsed.bind(console, "%c " + name + " ", style);
this["groupEnd"] = enabled
? utils_1.noop
: (function () {
return Function.prototype.bind.call(console.groupEnd, console);
})();
}
return Logs;
}());
exports.Logs = Logs;
//# sourceMappingURL=logs.js.map

4

package.json
{
"name": "@cardsgame/utils",
"version": "0.5.0",
"version": "0.5.2",
"description": "",

@@ -22,3 +22,3 @@ "author": "Darek Greenly (https://darekgreenly.com)",

},
"gitHead": "6d01f853bbe9456b8edcd9a9524b3afd2f21666a"
"gitHead": "a9e47632b5a74e916865ba4c7c8a1d7a52142674"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc