koishi-utils
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -44,3 +44,3 @@ "use strict"; | ||
return null; | ||
const [_, type, attrs] = capture; | ||
const [, type, attrs] = capture; | ||
const data = {}; | ||
@@ -47,0 +47,0 @@ attrs.slice(1).split(/,/g).forEach((str) => { |
@@ -34,3 +34,3 @@ "use strict"; | ||
weightedPick(weights) { | ||
const total = Object.entries(weights).reduce((prev, [_, curr]) => prev + curr, 0); | ||
const total = Object.entries(weights).reduce((prev, [, curr]) => prev + curr, 0); | ||
const pointer = this.value * total; | ||
@@ -37,0 +37,0 @@ let counter = 0; |
{ | ||
"name": "koishi-utils", | ||
"description": "Utilities for Koishi", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"main": "dist/index.js", | ||
@@ -36,7 +36,8 @@ "typings": "dist/index.d.ts", | ||
"@types/supports-color": "^5.3.0", | ||
"mockdate": "^3.0.2" | ||
"mockdate": "^3.0.2", | ||
"koishi-test-utils": "^4.0.0" | ||
}, | ||
"dependencies": { | ||
"supports-color": "^7.1.0" | ||
"supports-color": "^7.2.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
77433
3
Updatedsupports-color@^7.2.0