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

@appolo/utils

Package Overview
Dependencies
Maintainers
1
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.1 to 8.0.2

4

lib/classes.js

@@ -28,4 +28,8 @@ "use strict";

}
static getClassMethodsName(klass) {
let names = Object.getOwnPropertyNames(klass.prototype).filter(name => (name !== 'constructor' && typeof klass.prototype[name] === 'function'));
return names;
}
}
exports.Classes = Classes;
//# sourceMappingURL=classes.js.map

23

lib/classes.ts

@@ -34,20 +34,7 @@ import {Arrays} from "./arrays";

// public static getAllClassMethods(klass:(new(...args: any[])=> any)):string[] {
// let props = [];
// let obj = klass;
// do {
//
// let keys = Object.getOwnPropertyDescriptors(obj);
//
// for(let i =0;i<keys.length;i++){
//
// }
//
// props = props.concat();
// } while (obj = Object.getPrototypeOf(obj));
//
// // return props.sort().filter(function(e, i, arr) {
// // if (e!=arr[i+1] && typeof toCheck[e] == 'function') return true;
// // });
// }
public static getClassMethodsName(klass:(new(...args: any[])=> any)):string[] {
let names = Object.getOwnPropertyNames( klass.prototype ).filter(name => (name !== 'constructor' && typeof klass.prototype[name] === 'function'))
return names;
}
}

@@ -20,3 +20,3 @@ {

"main": "./index.js",
"version": "8.0.1",
"version": "8.0.2",
"license": "MIT",

@@ -23,0 +23,0 @@ "repository": {

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