reflect-metadata
Advanced tools
Comparing version 0.2.1 to 0.2.2
{ | ||
"name": "reflect-metadata", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Polyfill for Metadata Reflection API", | ||
@@ -20,3 +20,5 @@ "type": "commonjs", | ||
"default": "./ReflectNoConflict.js" | ||
} | ||
}, | ||
"./Reflect": "./Reflect.js", | ||
"./Reflect.js": "./Reflect.js" | ||
}, | ||
@@ -23,0 +25,0 @@ "scripts": { |
@@ -9,3 +9,3 @@ # Metadata Reflection API | ||
* [Detailed proposal][Metadata-Spec] | ||
* [Detailed proposal][metadata-spec] | ||
@@ -68,3 +68,3 @@ ## Installation | ||
* Decorators add the ability to augment a class and its members as the class is defined, through a declarative syntax. | ||
* Traceur attaches annotations to a static property on the class. | ||
* [Traceur][traceur] attaches annotations to a static property on the class. | ||
* Languages like C# (.NET), and Java support attributes or annotations that add metadata to types, along with a reflective API for reading metadata. | ||
@@ -233,2 +233,3 @@ | ||
[Metadata-Spec]: https://rbuckton.github.io/reflect-metadata | ||
[metadata-spec]: https://rbuckton.github.io/reflect-metadata | ||
[traceur]: https://github.com/google/traceur-compiler |
@@ -621,3 +621,3 @@ /*! ***************************************************************************** | ||
} | ||
// 6 ECMAScript Data Typ0es and Values | ||
// 6 ECMAScript Data Types and Values | ||
// https://tc39.github.io/ecma262/#sec-ecmascript-data-types-and-values | ||
@@ -1099,4 +1099,4 @@ function Type(x) { | ||
var metadataPropertySet = metadataOwner.get(O); | ||
if (!IsUndefined(metadataPropertySet)) { | ||
return metadataPropertySet.has(P); | ||
if (!IsUndefined(metadataPropertySet) && metadataPropertySet.has(P)) { | ||
return true; | ||
} | ||
@@ -1103,0 +1103,0 @@ if (getOwnMetadataKeys(O, P).length) { |
@@ -597,3 +597,3 @@ "use strict"; | ||
} | ||
// 6 ECMAScript Data Typ0es and Values | ||
// 6 ECMAScript Data Types and Values | ||
// https://tc39.github.io/ecma262/#sec-ecmascript-data-types-and-values | ||
@@ -1075,4 +1075,4 @@ function Type(x) { | ||
var metadataPropertySet = metadataOwner.get(O); | ||
if (!IsUndefined(metadataPropertySet)) { | ||
return metadataPropertySet.has(P); | ||
if (!IsUndefined(metadataPropertySet) && metadataPropertySet.has(P)) { | ||
return true; | ||
} | ||
@@ -1079,0 +1079,0 @@ if (getOwnMetadataKeys(O, P).length) { |
Sorry, the diff of this file is too big to display
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
5106
0
232
241158
11