Comparing version 1.3.1 to 1.3.2
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.WeakBiMap = exports.BiMap = void 0; | ||
var BiMap_1 = require("./BiMap"); | ||
exports.BiMap = BiMap_1.default; | ||
Object.defineProperty(exports, "BiMap", { enumerable: true, get: function () { return __importDefault(BiMap_1).default; } }); | ||
var WeakBiMap_1 = require("./WeakBiMap"); | ||
exports.WeakBiMap = WeakBiMap_1.default; | ||
Object.defineProperty(exports, "WeakBiMap", { enumerable: true, get: function () { return __importDefault(WeakBiMap_1).default; } }); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "bim", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "A bidirectional map based on the ES6 Map & WeakMap objects", | ||
@@ -27,10 +27,10 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@inker/eslint-config-typescript": "^1.0.0", | ||
"@types/jest": "^25.2.1", | ||
"eslint": "^6.8.0", | ||
"jest": "^25.4.0", | ||
"np": "^6.2.2", | ||
"ts-jest": "^25.4.0", | ||
"typescript": "^3.8.3" | ||
"@inker/eslint-config-typescript": "^1.1.1", | ||
"@types/jest": "^26.0.15", | ||
"eslint": "^7.13.0", | ||
"jest": "^26.6.3", | ||
"np": "^7.0.0", | ||
"ts-jest": "^26.4.3", | ||
"typescript": "^4.0.5" | ||
} | ||
} |
@@ -105,2 +105,26 @@ import { BiMap } from '../src' | ||
it('should have working forEach', () => { | ||
const m = new BiMap([ | ||
['foo', 3], | ||
['bar', 5], | ||
]) | ||
const arr: [string, number][] = [] | ||
m.forEach((v, k) => { | ||
arr.push([k, v]) | ||
}) | ||
expect(arr).toMatchSnapshot() | ||
}) | ||
it('should clear', () => { | ||
const m = new BiMap([ | ||
['foo', 3], | ||
['bar', 5], | ||
]) | ||
m.clear() | ||
expect(m).toMatchSnapshot() | ||
}) | ||
it('should get keys', () => { | ||
@@ -107,0 +131,0 @@ const m = new BiMap([ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
30647
727