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.2.1 to 0.2.2

6

package.json
{
"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

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