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

koishi-utils

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koishi-utils - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

5

dist/logger.d.ts

@@ -7,2 +7,7 @@ /// <reference types="node" />

private showDiff;
static readonly SUCCESS = 1;
static readonly ERROR = 1;
static readonly INFO = 2;
static readonly WARN = 2;
static readonly DEBUG = 3;
static baseLevel: number;

@@ -9,0 +14,0 @@ static showDiff: boolean;

15

dist/logger.js

@@ -61,7 +61,7 @@ "use strict";

this.displayName = name ? this.color(name + ' ', ';1') : '';
this.createMethod('success', '[S] ', 1);
this.createMethod('error', '[E] ', 1);
this.createMethod('info', '[I] ', 2);
this.createMethod('warn', '[W] ', 2);
this.createMethod('debug', '[D] ', 3);
this.createMethod('success', '[S] ', Logger.SUCCESS);
this.createMethod('error', '[E] ', Logger.ERROR);
this.createMethod('info', '[I] ', Logger.INFO);
this.createMethod('warn', '[W] ', Logger.WARN);
this.createMethod('debug', '[D] ', Logger.DEBUG);
}

@@ -89,2 +89,7 @@ static color(code, value, decoration = '') {

exports.Logger = Logger;
Logger.SUCCESS = 1;
Logger.ERROR = 1;
Logger.INFO = 2;
Logger.WARN = 2;
Logger.DEBUG = 3;
Logger.baseLevel = 2;

@@ -91,0 +96,0 @@ Logger.showDiff = false;

@@ -129,3 +129,3 @@ "use strict";

const observer = observeObject(target, label, null);
misc_1.defineProperty(observer, '_update', function () {
misc_1.defineProperty(observer, '_update', function _update() {
const diff = { ...this._diff };

@@ -142,3 +142,3 @@ const fields = Object.keys(diff);

});
misc_1.defineProperty(observer, '_merge', function (value) {
misc_1.defineProperty(observer, '_merge', function _merge(value) {
for (const key in value) {

@@ -145,0 +145,0 @@ if (key in this._diff) {

{
"name": "koishi-utils",
"description": "Utilities for Koishi",
"version": "3.1.0",
"version": "3.1.1",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "typings": "dist/index.d.ts",

Sorry, the diff of this file is not supported yet

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