@injex/stdlib
Advanced tools
Comparing version 3.3.0 to 3.3.1
@@ -5,1 +5,2 @@ export declare function toCamelCase(str: string): string; | ||
export declare function getConstructorName(instance: any): string; | ||
export declare function yieldToMain(): Promise<void>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getConstructorName = exports.isPromise = exports.isFunction = exports.toCamelCase = void 0; | ||
exports.yieldToMain = exports.getConstructorName = exports.isPromise = exports.isFunction = exports.toCamelCase = void 0; | ||
function toCamelCase(str) { | ||
@@ -20,2 +20,6 @@ return str[0].toLowerCase() + str.slice(1); | ||
exports.getConstructorName = getConstructorName; | ||
function yieldToMain() { | ||
return new Promise(function (resolve) { return setTimeout(resolve, 0); }); | ||
} | ||
exports.yieldToMain = yieldToMain; | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "@injex/stdlib", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "", | ||
@@ -46,7 +46,7 @@ "keywords": [], | ||
"ts-jest": "^26.3.0", | ||
"tslib": "^2.2.0", | ||
"tslib": "^2.4.1", | ||
"tslint": "^6.1.3", | ||
"typescript": "^4.0.2" | ||
}, | ||
"gitHead": "7a0c48970c4204a5db67fdbe85e37609469f581a" | ||
"gitHead": "a185c0956383c9d4e26c3684a17451d2e2b26434" | ||
} |
@@ -15,2 +15,6 @@ export function toCamelCase(str: string): string { | ||
return (instance && instance.constructor && instance.constructor.name); | ||
} | ||
export function yieldToMain(): Promise<void> { | ||
return new Promise((resolve) => setTimeout(resolve, 0)); | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30823
616