@appolo/utils
Advanced tools
Comparing version 8.0.45 to 8.0.46
@@ -17,3 +17,3 @@ import {Arrays} from "./arrays"; | ||
public static functionArgsNames(func: ((...args: any[]) => any) | (new(...args: any[]) => any)) { | ||
public static functionArgsNames(func: ((...args: any[]) => any) | (new(...args: any[]) => any)): string[] { | ||
@@ -24,3 +24,3 @@ const STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg; | ||
let fnStr = func.toString().replace(STRIP_COMMENTS, ''); | ||
let args:any[] = fnStr.slice(fnStr.indexOf('(') + 1, fnStr.indexOf(')')).match(ARGUMENT_NAMES); | ||
let args: string[] = fnStr.slice(fnStr.indexOf('(') + 1, fnStr.indexOf(')')).match(ARGUMENT_NAMES); | ||
@@ -42,3 +42,3 @@ if (args === null) { | ||
public static classToPlain<T>(klass: T ): { [P in keyof T]: T[P] } { | ||
public static classToPlain<T>(klass: T): { [P in keyof T]: T[P] } { | ||
@@ -45,0 +45,0 @@ let dto = typeof klass["toJSON"] == "function" ? klass["toJSON"]() : JSON.parse(JSON.stringify(klass)) |
@@ -20,3 +20,3 @@ { | ||
"main": "./index.js", | ||
"version": "8.0.45", | ||
"version": "8.0.46", | ||
"license": "MIT", | ||
@@ -34,12 +34,12 @@ "repository": { | ||
"@types/benchmark": "^2.1.2", | ||
"@types/chai": "^4.3.4", | ||
"@types/lodash": "^4.14.189", | ||
"@types/mocha": "^10.0.0", | ||
"@types/node": "^18.11.9", | ||
"@types/chai": "^4.3.5", | ||
"@types/lodash": "^4.14.194", | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "^20.1.0", | ||
"benchmark": "^2.1.4", | ||
"chai": "^4.3.7", | ||
"mocha": "^10.1.0", | ||
"tslib": "^2.4.1", | ||
"typescript": "^4.9.3" | ||
"mocha": "^10.2.0", | ||
"tslib": "^2.5.0", | ||
"typescript": "^4.9.5" | ||
} | ||
} |
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
247583