minimal-polyfills
Advanced tools
Comparing version 2.1.6 to 2.2.0
@@ -0,1 +1,5 @@ | ||
## **2.2.0** (2021-05-26) | ||
- Add WeakMap polyfill | ||
### **2.1.6** (2020-12-14) | ||
@@ -2,0 +6,0 @@ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39326
52
661