Socket
Socket
Sign inDemoInstall

minimal-polyfills

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minimal-polyfills - npm Package Compare versions

Comparing version 2.1.6 to 2.2.0

src/WeakSet.ts

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## **2.2.0** (2021-05-26)
- Add WeakMap polyfill
### **2.1.6** (2020-12-14)

@@ -2,0 +6,0 @@

3

index.d.ts
import * as nsMap from "./Map";
import * as nsSet from "./Set";
import * as nsWeakMap from "./WeakMap";
import * as nsWeakSet from "./WeakSet";
import "./Array.from";

@@ -11,2 +12,2 @@ import "./Array.prototype.find";

import "./Object.is";
export { nsMap, nsSet, nsWeakMap };
export { nsMap, nsSet, nsWeakMap, nsWeakSet };
"use strict";
//NOTE: Index included only so bundlephobia can compute the bundle size.
exports.__esModule = true;
exports.nsWeakMap = exports.nsSet = exports.nsMap = void 0;
exports.nsWeakSet = exports.nsWeakMap = exports.nsSet = exports.nsMap = void 0;
var nsMap = require("./Map");

@@ -11,2 +11,4 @@ exports.nsMap = nsMap;

exports.nsWeakMap = nsWeakMap;
var nsWeakSet = require("./WeakSet");
exports.nsWeakSet = nsWeakSet;
require("./Array.from");

@@ -13,0 +15,0 @@ require("./Array.prototype.find");

{
"name": "minimal-polyfills",
"version": "2.1.6",
"version": "2.2.0",
"main": "index.js",

@@ -43,2 +43,3 @@ "types": "index.d.ts",

"src/WeakMap.ts",
"src/WeakSet.ts",
"Array.from.d.ts",

@@ -76,4 +77,7 @@ "Array.from.js",

"WeakMap.js",
"WeakMap.js.map"
"WeakMap.js.map",
"WeakSet.d.ts",
"WeakSet.js",
"WeakSet.js.map"
]
}
export interface LightSet<T> {
[Symbol.toStringTag]: string;
has(value: T): boolean;

@@ -8,2 +9,3 @@ add(value: T): this;

export declare class LightSetImpl<T> implements LightSet<T> {
[Symbol.toStringTag]: string;
private readonly map;

@@ -10,0 +12,0 @@ constructor(values?: T[]);

@@ -7,2 +7,3 @@

import * as nsWeakMap from "./WeakMap";
import * as nsWeakSet from "./WeakSet";
import "./Array.from";

@@ -16,2 +17,2 @@ import "./Array.prototype.find";

export { nsMap, nsSet, nsWeakMap };
export { nsMap, nsSet, nsWeakMap, nsWeakSet };

@@ -5,2 +5,3 @@

export interface LightSet<T> {
[Symbol.toStringTag]: string;
has(value: T): boolean;

@@ -14,2 +15,4 @@ add(value: T): this;

[Symbol.toStringTag]: string;
private readonly map= new MapPolyfill<T, true>();

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