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
60
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 0.0.12 to 0.0.13

11

lib/enums.ts
export class Enums {
public static enumNames<T>(enm: T): string[] {
let res = [],keys = Object.keys(enm),i=0,len=keys.length;
let res = [], keys = Object.keys(enm), i = 0, len = keys.length;
for (;i<len; i++) {
for (; i < len; i++) {
let key = keys[i];

@@ -16,6 +16,6 @@ if (isNaN(key as any) && res.indexOf(key) === -1 && res.indexOf(enm[key]) === -1) {

public static enumValues<T>(enm: T): string[] {
let res = [],keys = Object.keys(enm),i=0,len=keys.length;
public static enumValues<T>(enm: T): T[] {
let res = [], keys = Object.keys(enm), i = 0, len = keys.length;
for (;i<len; i++) {
for (; i < len; i++) {
let key = keys[i];

@@ -35,3 +35,2 @@ let useValue = enm[key] as any;

}
}

@@ -17,3 +17,3 @@ {

"main": "./index.js",
"version": "0.0.12",
"version": "0.0.13",
"license": "MIT",

@@ -20,0 +20,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