Socket
Socket
Sign inDemoInstall

ts-enum-util

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-enum-util - npm Package Compare versions

Comparing version 2.0.5 to 2.1.0

11

dist/commonjs/index.js

@@ -70,2 +70,9 @@ "use strict";

};
Object.defineProperty(EnumWrapper.prototype, Symbol.toStringTag, {
get: function () {
return "EnumWrapper";
},
enumerable: true,
configurable: true
});
/**

@@ -75,2 +82,6 @@ * @return "[object EnumWrapper]"

EnumWrapper.prototype.toString = function () {
// NOTE: overriding toString in addition to Symbol.toStringTag
// for maximum compatibility with older runtime environments
// that do not implement Object.prototype.toString in terms
// of Symbol.toStringTag
return "[object EnumWrapper]";

@@ -77,0 +88,0 @@ };

@@ -68,2 +68,9 @@ /**

};
Object.defineProperty(EnumWrapper.prototype, Symbol.toStringTag, {
get: function () {
return "EnumWrapper";
},
enumerable: true,
configurable: true
});
/**

@@ -73,2 +80,6 @@ * @return "[object EnumWrapper]"

EnumWrapper.prototype.toString = function () {
// NOTE: overriding toString in addition to Symbol.toStringTag
// for maximum compatibility with older runtime environments
// that do not implement Object.prototype.toString in terms
// of Symbol.toStringTag
return "[object EnumWrapper]";

@@ -75,0 +86,0 @@ };

1

dist/types/index.d.ts

@@ -106,2 +106,3 @@ /**

private constructor();
readonly [Symbol.toStringTag]: string;
/**

@@ -108,0 +109,0 @@ * @return "[object EnumWrapper]"

2

package.json
{
"name": "ts-enum-util",
"version": "2.0.5",
"version": "2.1.0",
"description": "TypeScript Enum Utilities",

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

@@ -374,2 +374,3 @@ [![npm version](https://img.shields.io/npm/v/ts-enum-util.svg)](https://www.npmjs.com/package/ts-enum-util)

- `Symbol.iterator`
- `Symbol.toStringTag`

@@ -376,0 +377,0 @@ ## Limitations

@@ -179,2 +179,6 @@ /**

public get [Symbol.toStringTag](): string {
return "EnumWrapper";
}
/**

@@ -184,2 +188,6 @@ * @return "[object EnumWrapper]"

public toString(): string {
// NOTE: overriding toString in addition to Symbol.toStringTag
// for maximum compatibility with older runtime environments
// that do not implement Object.prototype.toString in terms
// of Symbol.toStringTag
return "[object EnumWrapper]";

@@ -186,0 +194,0 @@ }

Sorry, the diff of this file is not supported yet

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