Socket
Socket
Sign inDemoInstall

reflect-metadata

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reflect-metadata - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

2

package.json
{
"name": "reflect-metadata",
"version": "0.1.6",
"version": "0.1.7",
"description": "Polyfill for Metadata Reflection API",

@@ -5,0 +5,0 @@ "main": "Reflect.js",

@@ -768,4 +768,8 @@ /*! *****************************************************************************

this._cacheIndex = -2;
this.size = 0;
}
Object.defineProperty(Map.prototype, "size", {
get: function () { return this._keys.length; },
enumerable: true,
configurable: true
});
Map.prototype.has = function (key) { return this._find(key, /*insert*/ false) >= 0; };

@@ -789,3 +793,2 @@ Map.prototype.get = function (key) {

}
this.size--;
this._keys.length--;

@@ -800,3 +803,2 @@ this._values.length--;

Map.prototype.clear = function () {
this.size = 0;
this._keys.length = 0;

@@ -818,3 +820,2 @@ this._values.length = 0;

this._values.push(undefined);
this.size++;
}

@@ -831,23 +832,12 @@ return this._cacheKey = key, this._cacheIndex = index;

this._map = new _Map();
this.size = 0;
}
Set.prototype.has = function (value) {
return this._map.has(value);
};
Set.prototype.add = function (value) {
this._map.set(value, value);
this.size = this._map.size;
return this;
};
Set.prototype.delete = function (value) {
if (this._map.delete(value)) {
this.size--;
return true;
}
return false;
};
Set.prototype.clear = function () {
this.size = 0;
this._map.clear();
};
Object.defineProperty(Set.prototype, "size", {
get: function () { return this._map.size; },
enumerable: true,
configurable: true
});
Set.prototype.has = function (value) { return this._map.has(value); };
Set.prototype.add = function (value) { return this._map.set(value, value), this; };
Set.prototype.delete = function (value) { return this._map.delete(value); };
Set.prototype.clear = function () { this._map.clear(); };
Set.prototype.keys = function () { return this._map.keys(); };

@@ -854,0 +844,0 @@ Set.prototype.values = function () { return this._map.values(); };

@@ -1277,3 +1277,3 @@ /*! *****************************************************************************

private _cacheIndex = -2;
size = 0;
get size() { return this._keys.length; }
has(key: K): boolean { return this._find(key, /*insert*/ false) >= 0; }

@@ -1297,3 +1297,2 @@ get(key: K): V {

}
this.size--;
this._keys.length--;

@@ -1308,3 +1307,2 @@ this._values.length--;

clear(): void {
this.size = 0;
this._keys.length = 0;

@@ -1325,3 +1323,2 @@ this._values.length = 0;

this._values.push(undefined);
this.size++;
}

@@ -1337,22 +1334,7 @@ return this._cacheKey = key, this._cacheIndex = index;

private _map = new _Map<any, any>();
size = 0;
has(value: T): boolean {
return this._map.has(value);
}
add(value: T): Set<T> {
this._map.set(value, value);
this.size = this._map.size;
return this;
}
delete(value: T): boolean {
if (this._map.delete(value)) {
this.size--;
return true;
}
return false;
}
clear(): void {
this.size = 0;
this._map.clear();
}
get size() { return this._map.size; }
has(value: T): boolean { return this._map.has(value); }
add(value: T): Set<T> { return this._map.set(value, value), this; }
delete(value: T): boolean { return this._map.delete(value); }
clear(): void { this._map.clear(); }
keys() { return this._map.keys(); }

@@ -1359,0 +1341,0 @@ values() { return this._map.values(); }

@@ -768,4 +768,8 @@ /*! *****************************************************************************

this._cacheIndex = -2;
this.size = 0;
}
Object.defineProperty(Map.prototype, "size", {
get: function () { return this._keys.length; },
enumerable: true,
configurable: true
});
Map.prototype.has = function (key) { return this._find(key, /*insert*/ false) >= 0; };

@@ -789,3 +793,2 @@ Map.prototype.get = function (key) {

}
this.size--;
this._keys.length--;

@@ -800,3 +803,2 @@ this._values.length--;

Map.prototype.clear = function () {
this.size = 0;
this._keys.length = 0;

@@ -818,3 +820,2 @@ this._values.length = 0;

this._values.push(undefined);
this.size++;
}

@@ -831,23 +832,12 @@ return this._cacheKey = key, this._cacheIndex = index;

this._map = new _Map();
this.size = 0;
}
Set.prototype.has = function (value) {
return this._map.has(value);
};
Set.prototype.add = function (value) {
this._map.set(value, value);
this.size = this._map.size;
return this;
};
Set.prototype.delete = function (value) {
if (this._map.delete(value)) {
this.size--;
return true;
}
return false;
};
Set.prototype.clear = function () {
this.size = 0;
this._map.clear();
};
Object.defineProperty(Set.prototype, "size", {
get: function () { return this._map.size; },
enumerable: true,
configurable: true
});
Set.prototype.has = function (value) { return this._map.has(value); };
Set.prototype.add = function (value) { return this._map.set(value, value), this; };
Set.prototype.delete = function (value) { return this._map.delete(value); };
Set.prototype.clear = function () { this._map.clear(); };
Set.prototype.keys = function () { return this._map.keys(); };

@@ -854,0 +844,0 @@ Set.prototype.values = function () { return this._map.values(); };

{
"compilerOptions": {
"target": "es3",
"target": "es5",
"noImplicitAny": true,

@@ -5,0 +5,0 @@ "sourceMap": true,

{
"compilerOptions": {
"target": "es3",
"target": "es5",
"noImplicitAny": true,

@@ -5,0 +5,0 @@ "sourceMap": true

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