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 2.2.0 to 3.0.0

dist/time.d.ts

2

dist/index.d.ts
import CQCode from './cqCode';
export * from './chinese';
export * from './date';
export * from './logger';

@@ -10,2 +9,3 @@ export * from './misc';

export * from './string';
export * from './time';
export { CQCode };

@@ -20,3 +20,2 @@ "use strict";

__exportStar(require("./chinese"), exports);
__exportStar(require("./date"), exports);
__exportStar(require("./logger"), exports);

@@ -28,2 +27,3 @@ __exportStar(require("./misc"), exports);

__exportStar(require("./string"), exports);
__exportStar(require("./time"), exports);
//# sourceMappingURL=index.js.map

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

const util_1 = require("util");
const date_1 = require("./date");
const supports_color_1 = require("supports-color");
const time_1 = require("./time");
const colors = supports_color_1.stderr.level < 2 ? [6, 2, 3, 4, 5, 1] : [

@@ -46,3 +46,3 @@ 20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62,

if (Logger.lastTime) {
args.push(this.color('+' + date_1.formatTimeShort(now - Logger.lastTime)));
args.push(this.color('+' + time_1.Time.formatTimeShort(now - Logger.lastTime)));
}

@@ -49,0 +49,0 @@ Logger.lastTime = now;

@@ -119,3 +119,5 @@ "use strict";

function observeDate(target, update) {
for (const method in Date.prototype) {
for (const method of Object.getOwnPropertyNames(Date.prototype)) {
if (method === 'valueOf')
continue;
defineProperty(target, method, function (...args) {

@@ -122,0 +124,0 @@ const oldValue = target.valueOf();

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

@@ -14,3 +14,2 @@ "typings": "dist/index.d.ts",

"scripts": {
"jest": "jest tests/.*\\.spec\\.ts",
"lint": "eslint src --ext .ts",

@@ -37,3 +36,4 @@ "prepack": "tsc -b"

"devDependencies": {
"@types/supports-color": "^5.3.0"
"@types/supports-color": "^5.3.0",
"mockdate": "^3.0.2"
},

@@ -40,0 +40,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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