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

es6-set

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-set - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

4

package.json
{
"name": "es6-set",
"version": "0.1.3",
"version": "0.1.4",
"description": "ECMAScript6 Set polyfill",

@@ -20,3 +20,3 @@ "author": "Mariusz Nowak <medyk@medikoo.com> (http://www.medikoo.com/)",

"d": "~0.1.1",
"es5-ext": "~0.10.8",
"es5-ext": "~0.10.11",
"es6-iterator": "2",

@@ -23,0 +23,0 @@ "es6-symbol": "3",

@@ -17,8 +17,10 @@ 'use strict';

, defineProperty = Object.defineProperty, getPrototypeOf = Object.getPrototypeOf
, SetPoly, getValues;
, SetPoly, getValues, NativeSet;
module.exports = SetPoly = function (/*iterable*/) {
if (isNative) NativeSet = Set;
module.exports = SetPoly = function Set(/*iterable*/) {
var iterable = arguments[0], self;
if (!(this instanceof SetPoly)) throw new TypeError('Constructor requires \'new\'');
if (isNative && setPrototypeOf) self = setPrototypeOf(new Set(), getPrototypeOf(this));
if (isNative && setPrototypeOf) self = setPrototypeOf(new NativeSet(), getPrototypeOf(this));
else self = this;

@@ -36,4 +38,4 @@ if (iterable != null) iterator(iterable);

if (isNative) {
if (setPrototypeOf) setPrototypeOf(SetPoly, Set);
SetPoly.prototype = Object.create(Set.prototype, { constructor: d(SetPoly) });
if (setPrototypeOf) setPrototypeOf(SetPoly, NativeSet);
SetPoly.prototype = Object.create(NativeSet.prototype, { constructor: d(SetPoly) });
}

@@ -40,0 +42,0 @@

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