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

@simplism/core

Package Overview
Dependencies
Maintainers
1
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@simplism/core - npm Package Compare versions

Comparing version 7.1.8 to 7.1.9

9

dist/index.js

@@ -1118,5 +1118,6 @@ (function webpackUniversalModuleDefinition(root, factory) {

var Logger = (function () {
function Logger(_groupName, _name) {
function Logger(_groupName, _name, _prefix) {
this._groupName = _groupName;
this._name = _name;
this._prefix = _prefix;
Logger._lastId++;

@@ -1179,2 +1180,3 @@ this._id = Logger._lastId;

severity: severity,
prefix: this._prefix,
messages: logs,

@@ -1213,5 +1215,6 @@ loggedAtDateTime: now

name: this._name,
severity: severity.toUpperCase()
severity: severity.toUpperCase(),
prefix: this._prefix
};
var text = colors.grey + "[" + log.id + "] " + log.now + " - " + log.group + " - " + log.name + " - " + colors[severity] + log.severity + ": " + convertedLogs.join("\r\n") + colors.log;
var text = colors.grey + "[" + log.id.toString().padStart(3, "0") + "] " + log.now + " - " + log.group + " - " + log.name + " - " + colors[severity] + log.severity + ": " + (log.prefix ? log.prefix + " " : "") + convertedLogs.join("\r\n") + colors.log;
if (this._config.consoleLogSeverities.includes(severity)) {

@@ -1218,0 +1221,0 @@ console.log(text);

@@ -5,2 +5,3 @@ import { DateTime } from "../types/DateTime";

private readonly _name;
private readonly _prefix;
static history: ILoggerHistory[];

@@ -11,3 +12,3 @@ private static readonly _groupMap;

private readonly _id;
constructor(_groupName: string, _name: string);
constructor(_groupName: string, _name: string, _prefix?: string | undefined);
static setDefaultConfig(config: Partial<ILoggerConfig>): void;

@@ -33,2 +34,3 @@ static setGroupConfig(groupName: string, config?: Partial<ILoggerConfig>): void;

severity: LoggerSeverityString;
prefix: string | undefined;
messages: any[];

@@ -35,0 +37,0 @@ loggedAtDateTime: DateTime;

{
"name": "@simplism/core",
"version": "7.1.8",
"version": "7.1.9",
"description": "Simplism Core Package",

@@ -5,0 +5,0 @@ "repository": "github:kslhunter/simplism",

@@ -18,3 +18,4 @@ import {DateTime} from "../types/DateTime";

public constructor(private readonly _groupName: string,
private readonly _name: string) {
private readonly _name: string,
private readonly _prefix?: string) {
Logger._lastId++;

@@ -76,2 +77,3 @@ this._id = Logger._lastId;

severity,
prefix: this._prefix,
messages: logs,

@@ -116,6 +118,7 @@ loggedAtDateTime: now

name: this._name,
severity: severity.toUpperCase()
severity: severity.toUpperCase(),
prefix: this._prefix
};
const text = `${colors.grey}[${log.id}] ${log.now} - ${log.group} - ${log.name} - ${colors[severity]}${log.severity}: ${convertedLogs.join("\r\n")}${colors.log}`;
const text = `${colors.grey}[${log.id.toString().padStart(3, "0")}] ${log.now} - ${log.group} - ${log.name} - ${colors[severity]}${log.severity}: ${log.prefix ? log.prefix + " " : ""}${convertedLogs.join("\r\n")}${colors.log}`;

@@ -160,2 +163,3 @@ // 콘솔 출력

severity: LoggerSeverityString;
prefix: string | undefined;
messages: any[];

@@ -162,0 +166,0 @@ loggedAtDateTime: DateTime;

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