@plexus-interop/common
Advanced tools
Comparing version
@@ -21,2 +21,3 @@ "use strict"; | ||
require("core-js/es6/map"); | ||
var ObjectUtils_1 = require("../js/ObjectUtils"); | ||
var ExtendedMap = /** @class */ (function (_super) { | ||
@@ -28,5 +29,3 @@ tslib_1.__extends(ExtendedMap, _super); | ||
ExtendedMap.create = function () { | ||
var instance = new Map(); | ||
// tslint:disable-next-line:no-string-literal | ||
instance['__proto__'] = ExtendedMap.prototype; | ||
var instance = ObjectUtils_1.ObjectUtils.setPrototypeOf(new Map(), ExtendedMap.prototype); | ||
return instance; | ||
@@ -50,2 +49,2 @@ }; | ||
exports.ExtendedMap = ExtendedMap; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXh0ZW5kZWRNYXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvdXRpbC9jb2xsZWN0aW9ucy9FeHRlbmRlZE1hcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQTs7Ozs7Ozs7Ozs7Ozs7O0dBZUc7QUFDSCwyQkFBeUI7QUFFekI7SUFBdUMsdUNBQVM7SUFFNUM7ZUFDSSxpQkFBTztJQUNYLENBQUM7SUFFYSxrQkFBTSxHQUFwQjtRQUNJLElBQU0sUUFBUSxHQUFRLElBQUksR0FBRyxFQUFRLENBQUM7UUFDdEMsNkNBQTZDO1FBQzdDLFFBQVEsQ0FBQyxXQUFXLENBQUMsR0FBRyxXQUFXLENBQUMsU0FBUyxDQUFDO1FBQzlDLE1BQU0sQ0FBQyxRQUE2QixDQUFDO0lBQ3pDLENBQUM7SUFFTSxpQ0FBVyxHQUFsQjtRQUNJLElBQU0sR0FBRyxHQUFRLEVBQUUsQ0FBQztRQUNwQixJQUFJLENBQUMsT0FBTyxDQUFDLFVBQUEsQ0FBQyxJQUFJLE9BQUEsR0FBRyxDQUFDLElBQUksQ0FBQyxDQUFDLEN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0FBQztJQUN6QyxDQUFDO0lBRU0saUNBQVcsR0FBbEI7UUFDSSxJQUFNLEdBQUcsR0FBUSxFQUFFLENBQUM7UUFDcEIsSUFBSSxDQUFDLE9BQU8sQ0FBQyxVQUFBLENBQUMsSUFBSSxPQUFBLEdBQUcsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEVBQVgsQ0FBVyxDQUFDLENBQUM7UUFDL0IsTUFBTSxDQUFDLEdBQUcsQ0FBQztJQUNmLENBQUM7SUFFTSw4QkFBUSxHQUFmLFVBQWdCLEdBQU0sRUFBRSxRQUFpQjtRQUNyQyxJQUFJLEdBQUcsR0FBRyxJQUFJLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDO1FBQ3hCLEVBQUUsQ0FBQyxDQUFDLEdBQUcsS0FBSyxTQUFTLENBQUMsQ0FBQyxDQUFDO1lBQ3BCLEdBQUcsR0FBRyxRQUFRLEVBQUUsQ0FBQztZQUNqQixJQUFJLENBQUMsR0FBRyxDQUFDLEdBQUcsRUFBRSxHQUFHLENBQUMsQ0FBQztRQUN2QixDQUFDO1FBQ0QsTUFBTSxDQUFDLEdBQUcsQ0FBQztJQUNmLENBQUM7SUFFTCxrQkFBQztBQUFELENBQUMsQUExQkQsQ0FBdUMsR0FBRyxHQTBCekM7QUExQlksa0NBQVcifQ== |
{ | ||
"name": "@plexus-interop/common", | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"types": "dist/main/src/index.d.ts", | ||
@@ -5,0 +5,0 @@ "main": "dist/main/src/index.js", |
@@ -18,2 +18,3 @@ /** | ||
import 'core-js/es6/map'; | ||
import { ObjectUtils } from '../js/ObjectUtils'; | ||
@@ -27,5 +28,3 @@ export class ExtendedMap<K, V> extends Map<K, V> { | ||
public static create<K, V>(): ExtendedMap<K, V> { | ||
const instance: any = new Map<K, V>(); | ||
// tslint:disable-next-line:no-string-literal | ||
instance['__proto__'] = ExtendedMap.prototype; | ||
const instance = ObjectUtils.setPrototypeOf(new Map<K, V>(), ExtendedMap.prototype); | ||
return instance as ExtendedMap<K, V>; | ||
@@ -32,0 +31,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Sorry, the diff of this file is not supported yet
966357
2.36%221
2.31%6329
1.82%