Socket
Socket
Sign inDemoInstall

aurelia-metadata

Package Overview
Dependencies
1
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-beta.1.2.0 to 1.0.0-beta.1.2.1

4

bower.json
{
"name": "aurelia-metadata",
"version": "1.0.0-beta.1.2.0",
"version": "1.0.0-beta.1.2.1",
"description": "Utilities for reading and writing the metadata of JavaScript functions.",

@@ -11,2 +11,4 @@ "keywords": [

"homepage": "http://aurelia.io",
"main": "dist/commonjs/aurelia-metadata.js",
"moduleType": "node",
"license": "MIT",

@@ -13,0 +15,0 @@ "authors": [

@@ -32,3 +32,3 @@ declare module 'aurelia-metadata' {

*/
get(metadataKey: string, target: Function, targetKey: string): Object;
get(metadataKey: string, target: Function, targetKey?: string): Object;

@@ -41,3 +41,3 @@ /**

*/
getOwn(metadataKey: string, target: Function, targetKey: string): Object;
getOwn(metadataKey: string, target: Function, targetKey?: string): Object;

@@ -50,3 +50,3 @@ /**

*/
define(metadataKey: string, metadataValue: Object, target: Function, targetKey: string): void;
define(metadataKey: string, metadataValue: Object, target: Function, targetKey?: string): void;

@@ -60,3 +60,3 @@ /**

*/
getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey: string): Object;
getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey?: string): Object;
}

@@ -63,0 +63,0 @@

@@ -32,3 +32,3 @@ declare module 'aurelia-metadata' {

*/
get(metadataKey: string, target: Function, targetKey: string): Object;
get(metadataKey: string, target: Function, targetKey?: string): Object;

@@ -41,3 +41,3 @@ /**

*/
getOwn(metadataKey: string, target: Function, targetKey: string): Object;
getOwn(metadataKey: string, target: Function, targetKey?: string): Object;

@@ -50,3 +50,3 @@ /**

*/
define(metadataKey: string, metadataValue: Object, target: Function, targetKey: string): void;
define(metadataKey: string, metadataValue: Object, target: Function, targetKey?: string): void;

@@ -60,3 +60,3 @@ /**

*/
getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey: string): Object;
getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey?: string): Object;
}

@@ -63,0 +63,0 @@

@@ -25,3 +25,3 @@ import {PLATFORM} from 'aurelia-pal';

*/
get(metadataKey: string, target: Function, targetKey: string): Object;
get(metadataKey: string, target: Function, targetKey?: string): Object;
/**

@@ -33,3 +33,3 @@ * Gets metadata specified by a key on a target, only searching the own instance.

*/
getOwn(metadataKey: string, target: Function, targetKey: string): Object;
getOwn(metadataKey: string, target: Function, targetKey?: string): Object;
/**

@@ -41,3 +41,3 @@ * Defines metadata specified by a key on a target.

*/
define(metadataKey: string, metadataValue: Object, target: Function, targetKey: string): void;
define(metadataKey: string, metadataValue: Object, target: Function, targetKey?: string): void;
/**

@@ -50,3 +50,3 @@ * Gets metadata specified by a key on a target, or creates an instance of the specified metadata if not found.

*/
getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey: string): Object;
getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey?: string): Object;
}

@@ -61,3 +61,3 @@

properties: 'design:properties',
get(metadataKey: string, target: Function, targetKey: string): Object {
get(metadataKey: string, target: Function, targetKey?: string): Object {
if (!target) { return undefined; }

@@ -67,10 +67,10 @@ let result = metadata.getOwn(metadataKey, target, targetKey);

},
getOwn(metadataKey: string, target: Function, targetKey: string): Object {
getOwn(metadataKey: string, target: Function, targetKey?: string): Object {
if (!target) { return undefined; }
return Reflect.getOwnMetadata(metadataKey, target, targetKey);
},
define(metadataKey: string, metadataValue: Object, target: Function, targetKey: string): void {
define(metadataKey: string, metadataValue: Object, target: Function, targetKey?: string): void {
Reflect.defineMetadata(metadataKey, metadataValue, target, targetKey);
},
getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey: string): Object {
getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey?: string): Object {
let result = metadata.getOwn(metadataKey, target, targetKey);

@@ -77,0 +77,0 @@

@@ -32,3 +32,3 @@ declare module 'aurelia-metadata' {

*/
get(metadataKey: string, target: Function, targetKey: string): Object;
get(metadataKey: string, target: Function, targetKey?: string): Object;

@@ -41,3 +41,3 @@ /**

*/
getOwn(metadataKey: string, target: Function, targetKey: string): Object;
getOwn(metadataKey: string, target: Function, targetKey?: string): Object;

@@ -50,3 +50,3 @@ /**

*/
define(metadataKey: string, metadataValue: Object, target: Function, targetKey: string): void;
define(metadataKey: string, metadataValue: Object, target: Function, targetKey?: string): void;

@@ -60,3 +60,3 @@ /**

*/
getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey: string): Object;
getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey?: string): Object;
}

@@ -63,0 +63,0 @@

@@ -32,3 +32,3 @@ declare module 'aurelia-metadata' {

*/
get(metadataKey: string, target: Function, targetKey: string): Object;
get(metadataKey: string, target: Function, targetKey?: string): Object;

@@ -41,3 +41,3 @@ /**

*/
getOwn(metadataKey: string, target: Function, targetKey: string): Object;
getOwn(metadataKey: string, target: Function, targetKey?: string): Object;

@@ -50,3 +50,3 @@ /**

*/
define(metadataKey: string, metadataValue: Object, target: Function, targetKey: string): void;
define(metadataKey: string, metadataValue: Object, target: Function, targetKey?: string): void;

@@ -60,3 +60,3 @@ /**

*/
getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey: string): Object;
getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey?: string): Object;
}

@@ -63,0 +63,0 @@

@@ -32,3 +32,3 @@ declare module 'aurelia-metadata' {

*/
get(metadataKey: string, target: Function, targetKey: string): Object;
get(metadataKey: string, target: Function, targetKey?: string): Object;

@@ -41,3 +41,3 @@ /**

*/
getOwn(metadataKey: string, target: Function, targetKey: string): Object;
getOwn(metadataKey: string, target: Function, targetKey?: string): Object;

@@ -50,3 +50,3 @@ /**

*/
define(metadataKey: string, metadataValue: Object, target: Function, targetKey: string): void;
define(metadataKey: string, metadataValue: Object, target: Function, targetKey?: string): void;

@@ -60,3 +60,3 @@ /**

*/
getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey: string): Object;
getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey?: string): Object;
}

@@ -63,0 +63,0 @@

@@ -512,3 +512,5 @@ {

"kindString": "Parameter",
"flags": {},
"flags": {
"isOptional": true
},
"comment": {

@@ -582,3 +584,5 @@ "text": "The member on the target to set the metadata on.\n"

"kindString": "Parameter",
"flags": {},
"flags": {
"isOptional": true
},
"comment": {

@@ -666,3 +670,5 @@ "text": "The member on the target to lookup the metadata on.\n"

"kindString": "Parameter",
"flags": {},
"flags": {
"isOptional": true
},
"comment": {

@@ -736,3 +742,5 @@ "text": "The member on the target to lookup or create the metadata on.\n"

"kindString": "Parameter",
"flags": {},
"flags": {
"isOptional": true
},
"comment": {

@@ -739,0 +747,0 @@ "text": "The member on the target to lookup the metadata on.\n"

@@ -0,1 +1,9 @@

### 1.0.0-beta.1.2.1 (2016-05-10)
#### Bug Fixes
* **metadata:** targetKey in Reflect.defineMetadata is optional ([fa861f7c](https://github.com/aurelia/metadata/commit/fa861f7c8fd867331b607021ec3b0e871262990f))
### 1.0.0-beta.1.2.0 (2016-03-22)

@@ -2,0 +10,0 @@

{
"name": "aurelia-metadata",
"version": "1.0.0-beta.1.2.0",
"version": "1.0.0-beta.1.2.1",
"description": "Utilities for reading and writing the metadata of JavaScript functions.",

@@ -5,0 +5,0 @@ "keywords": [

# aurelia-metadata
[![npm Version](https://img.shields.io/npm/v/aurelia-metadata.svg)](https://www.npmjs.com/package/aurelia-metadata)
[![ZenHub](https://raw.githubusercontent.com/ZenHubIO/support/master/zenhub-badge.png)](https://zenhub.io)

@@ -8,17 +9,4 @@ [![Join the chat at https://gitter.im/aurelia/discuss](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/aurelia/discuss?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

> To keep up to date on [Aurelia](http://www.aurelia.io/), please visit and subscribe to [the official blog](http://blog.durandal.io/). If you have questions, we invite you to [join us on Gitter](https://gitter.im/aurelia/discuss). If you would like to have deeper insight into our development process, please install the [ZenHub](https://zenhub.io) Chrome Extension and visit any of our repository's boards. You can get an overview of all Aurelia work by visiting [the framework board](https://github.com/aurelia/framework#boards).
> To keep up to date on [Aurelia](http://www.aurelia.io/), please visit and subscribe to [the official blog](http://blog.durandal.io/) and [our email list](http://durandal.us10.list-manage1.com/subscribe?u=dae7661a3872ee02b519f6f29&id=3de6801ccc). We also invite you to [follow us on twitter](https://twitter.com/aureliaeffect). If you have questions, please [join our community on Gitter](https://gitter.im/aurelia/discuss). If you would like to have deeper insight into our development process, please install the [ZenHub](https://zenhub.io) Chrome or Firefox Extension and visit any of our repository's boards. You can get an overview of all Aurelia work by visiting [the framework board](https://github.com/aurelia/framework#boards).
## Dependencies
This library has **NO** external dependencies.
## Used By
* [aurelia-binding](https://github.com/aurelia/binding)
* [aurelia-dependency-injection](https://github.com/aurelia/dependency-injection)
* [aurelia-framework](https://github.com/aurelia/framework)
* [aurelia-loader-default](https://github.com/aurelia/loader-default)
* [aurelia-templating](https://github.com/aurelia/templating)
* [aurelia-templating-router](https://github.com/aurelia/templating-router)
## Platform Support

@@ -25,0 +13,0 @@

@@ -23,3 +23,3 @@ /**

*/
get(metadataKey: string, target: Function, targetKey: string): Object;
get(metadataKey: string, target: Function, targetKey?: string): Object;
/**

@@ -31,3 +31,3 @@ * Gets metadata specified by a key on a target, only searching the own instance.

*/
getOwn(metadataKey: string, target: Function, targetKey: string): Object;
getOwn(metadataKey: string, target: Function, targetKey?: string): Object;
/**

@@ -39,3 +39,3 @@ * Defines metadata specified by a key on a target.

*/
define(metadataKey: string, metadataValue: Object, target: Function, targetKey: string): void;
define(metadataKey: string, metadataValue: Object, target: Function, targetKey?: string): void;
/**

@@ -48,3 +48,3 @@ * Gets metadata specified by a key on a target, or creates an instance of the specified metadata if not found.

*/
getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey: string): Object;
getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey?: string): Object;
}

@@ -59,3 +59,3 @@

properties: 'design:properties',
get(metadataKey: string, target: Function, targetKey: string): Object {
get(metadataKey: string, target: Function, targetKey?: string): Object {
if (!target) { return undefined; }

@@ -65,10 +65,10 @@ let result = metadata.getOwn(metadataKey, target, targetKey);

},
getOwn(metadataKey: string, target: Function, targetKey: string): Object {
getOwn(metadataKey: string, target: Function, targetKey?: string): Object {
if (!target) { return undefined; }
return Reflect.getOwnMetadata(metadataKey, target, targetKey);
},
define(metadataKey: string, metadataValue: Object, target: Function, targetKey: string): void {
define(metadataKey: string, metadataValue: Object, target: Function, targetKey?: string): void {
Reflect.defineMetadata(metadataKey, metadataValue, target, targetKey);
},
getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey: string): Object {
getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey?: string): Object {
let result = metadata.getOwn(metadataKey, target, targetKey);

@@ -75,0 +75,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc