@cardsgame/utils
Advanced tools
Comparing version 0.12.9 to 0.12.17
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export declare const noop: () => void; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export * from "./arrays"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export declare const isBrowser: any; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import Chalk from "chalk"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export declare const limit: (val: number, min?: number, max?: number) => number; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export declare const deepClone: (value: unknown) => any; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -23,8 +23,2 @@ /// <reference types="@cardsgame/types" /> | ||
export declare const isSet: (thing: unknown) => thing is Set<any>; | ||
/** | ||
* Check if a `thing` is just a literal object (using typeof), and not Array or anything else. | ||
* @deprecated never used and there are probably better ways of doing that | ||
* @param thing | ||
*/ | ||
export declare const isObject: (thing: unknown) => thing is Record<any, any>; | ||
export declare function applyMixins(derivedCtor: AnyClass, baseCtors: any[]): void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.applyMixins = exports.isObject = exports.isSet = exports.isMapLike = exports.isMap = exports.timeout = exports.compose = exports.def = void 0; | ||
exports.applyMixins = exports.isSet = exports.isMapLike = exports.isMap = exports.timeout = exports.compose = exports.def = void 0; | ||
/** | ||
@@ -86,17 +86,2 @@ * Returns first, *defined* value | ||
exports.isSet = isSet; | ||
/** | ||
* Check if a `thing` is just a literal object (using typeof), and not Array or anything else. | ||
* @deprecated never used and there are probably better ways of doing that | ||
* @param thing | ||
*/ | ||
var isObject = function (thing) { | ||
if (typeof thing !== "object") { | ||
return false; | ||
} | ||
if (Array.isArray(thing) || (0, exports.isMap)(thing) || (0, exports.isSet)(thing)) { | ||
return false; | ||
} | ||
return true; | ||
}; | ||
exports.isObject = isObject; | ||
function applyMixins(derivedCtor, baseCtors) { | ||
@@ -103,0 +88,0 @@ baseCtors.forEach(function (baseCtor) { |
{ | ||
"name": "@cardsgame/utils", | ||
"version": "0.12.9", | ||
"version": "0.12.17", | ||
"description": "", | ||
@@ -26,8 +26,9 @@ "author": "Darek Greenly (https://darekgreenly.com)", | ||
"dependencies": { | ||
"@cardsgame/types": "file:../types", | ||
"chalk": "^4.1.0" | ||
"@cardsgame/types": "^0.12.17", | ||
"chalk": "^4.1.2" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^14.14.6" | ||
} | ||
}, | ||
"gitHead": "c0cc240dcf2f209c11a4ce0025e463519dc084a1" | ||
} |
Sorry, the diff of this file is not supported yet
61686
36
1048
+ Added@cardsgame/types@0.12.17(transitive)
Updated@cardsgame/types@^0.12.17
Updatedchalk@^4.1.2