@cardsgame/utils
Advanced tools
Comparing version 0.2.14 to 0.2.19
@@ -71,2 +71,6 @@ "use strict"; | ||
}; | ||
var minifyEntity = function (_a) { | ||
var type = _a.type, name = _a.name; | ||
return type + ":" + name; | ||
}; | ||
var syntaxHighlight = function (arg) { | ||
@@ -90,6 +94,2 @@ if (exports.IS_CHROME) | ||
}; | ||
var minifyEntity = function (_a) { | ||
var type = _a.type, name = _a.name; | ||
return type + ":" + name; | ||
}; | ||
var indentLevel = 0; | ||
@@ -96,0 +96,0 @@ var getIndent = function () { |
@@ -14,9 +14,9 @@ /** | ||
* Executes function multiple times | ||
* @param length number of times function will be exetuced | ||
* @param length number of times function will be executed | ||
* @param func a function | ||
*/ | ||
export declare const times: (length: number, func: (idx: number) => any) => any[]; | ||
export declare const times: (length: number, func: (idx: number) => any) => void; | ||
/** | ||
* Simple delay of execution. Use like this: `await timeout(50)` | ||
* @param ms mili seconds | ||
* @param ms milliseconds | ||
*/ | ||
@@ -23,0 +23,0 @@ export declare const timeout: (ms: number) => Promise<unknown>; |
@@ -38,11 +38,11 @@ "use strict"; | ||
* Executes function multiple times | ||
* @param length number of times function will be exetuced | ||
* @param length number of times function will be executed | ||
* @param func a function | ||
*/ | ||
exports.times = function (length, func) { | ||
return Array.from({ length: length }, func); | ||
Array.from({ length: length }, func); | ||
}; | ||
/** | ||
* Simple delay of execution. Use like this: `await timeout(50)` | ||
* @param ms mili seconds | ||
* @param ms milliseconds | ||
*/ | ||
@@ -49,0 +49,0 @@ exports.timeout = function (ms) { |
{ | ||
"name": "@cardsgame/utils", | ||
"version": "0.2.14", | ||
"version": "0.2.19", | ||
"description": "", | ||
"author": "Darek Greenly (https://darekgreenly.com)", | ||
"license": "ISC", | ||
"main": "lib/index.js", | ||
@@ -16,4 +18,2 @@ "types": "lib/index.d.ts", | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
@@ -23,3 +23,3 @@ "@colyseus/schema": "^0.5.19", | ||
}, | ||
"gitHead": "b9f752e2b24b1072876df1f69216eb3e6fc4c84e" | ||
"gitHead": "763f35384efda61dcce75c2dc81f182d9800b113" | ||
} |
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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
35058
1