Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@appolo/utils

Package Overview
Dependencies
Maintainers
2
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appolo/utils - npm Package Compare versions

Comparing version 8.0.45 to 8.0.46

6

lib/classes.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc