Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aurelia-metadata

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aurelia-metadata - npm Package Compare versions

Comparing version 1.0.0-beta.1.1.4 to 1.0.0-beta.1.1.5

test/setup.js

5

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

@@ -20,5 +20,4 @@ "keywords": [

"dependencies": {
"aurelia-pal": "^1.0.0-beta.1.1.1",
"core-js": "zloirock/core-js"
"aurelia-pal": "^1.0.0-beta.1.1.1"
}
}

4

config.js

@@ -17,2 +17,3 @@ System.config({

"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1",
"aurelia-polyfills": "npm:aurelia-polyfills@0.1.2",
"babel": "npm:babel-core@5.8.23",

@@ -36,2 +37,5 @@ "babel-runtime": "npm:babel-runtime@5.8.20",

},
"npm:aurelia-polyfills@0.1.2": {
"aurelia-pal": "npm:aurelia-pal@1.0.0-beta.1.1.1"
},
"npm:babel-runtime@5.8.20": {

@@ -38,0 +42,0 @@ "process": "github:jspm/nodelibs-process@0.1.2"

declare module 'aurelia-metadata' {
import 'core-js';
import { PLATFORM } from 'aurelia-pal';

@@ -4,0 +3,0 @@

@@ -1,2 +0,2 @@

define(['exports', 'core-js', 'aurelia-pal'], function (exports, _coreJs, _aureliaPal) {
define(['exports', 'aurelia-pal'], function (exports, _aureliaPal) {
'use strict';

@@ -15,32 +15,2 @@

var theGlobal = _aureliaPal.PLATFORM.global;
var emptyMetadata = Object.freeze({});
var metadataContainerKey = '__metadata__';
if (typeof theGlobal.Reflect === 'undefined') {
theGlobal.Reflect = {};
}
if (typeof theGlobal.Reflect.getOwnMetadata === 'undefined') {
Reflect.getOwnMetadata = function (metadataKey, target, targetKey) {
return ((target[metadataContainerKey] || emptyMetadata)[targetKey] || emptyMetadata)[metadataKey];
};
}
if (typeof theGlobal.Reflect.defineMetadata === 'undefined') {
Reflect.defineMetadata = function (metadataKey, metadataValue, target, targetKey) {
var metadataContainer = target.hasOwnProperty(metadataContainerKey) ? target[metadataContainerKey] : target[metadataContainerKey] = {};
var targetContainer = metadataContainer[targetKey] || (metadataContainer[targetKey] = {});
targetContainer[metadataKey] = metadataValue;
};
}
if (typeof theGlobal.Reflect.metadata === 'undefined') {
Reflect.metadata = function (metadataKey, metadataValue) {
return function (target, targetKey) {
Reflect.defineMetadata(metadataKey, metadataValue, target, targetKey);
};
};
}
var metadata = {

@@ -47,0 +17,0 @@ resource: 'aurelia:resource',

declare module 'aurelia-metadata' {
import 'core-js';
import { PLATFORM } from 'aurelia-pal';

@@ -4,0 +3,0 @@

@@ -1,34 +0,3 @@

import 'core-js';
import {PLATFORM} from 'aurelia-pal';
const theGlobal = PLATFORM.global;
const emptyMetadata = Object.freeze({});
const metadataContainerKey = '__metadata__';
if (typeof theGlobal.Reflect === 'undefined') {
theGlobal.Reflect = {};
}
if (typeof theGlobal.Reflect.getOwnMetadata === 'undefined') {
Reflect.getOwnMetadata = function(metadataKey, target, targetKey) {
return ((target[metadataContainerKey] || emptyMetadata)[targetKey] || emptyMetadata)[metadataKey];
};
}
if (typeof theGlobal.Reflect.defineMetadata === 'undefined') {
Reflect.defineMetadata = function(metadataKey, metadataValue, target, targetKey) {
let metadataContainer = target.hasOwnProperty(metadataContainerKey) ? target[metadataContainerKey] : (target[metadataContainerKey] = {});
let targetContainer = metadataContainer[targetKey] || (metadataContainer[targetKey] = {});
targetContainer[metadataKey] = metadataValue;
};
}
if (typeof theGlobal.Reflect.metadata === 'undefined') {
Reflect.metadata = function(metadataKey, metadataValue) {
return function(target, targetKey) {
Reflect.defineMetadata(metadataKey, metadataValue, target, targetKey);
};
};
}
/**

@@ -35,0 +4,0 @@ * Helpers for working with metadata on functions.

declare module 'aurelia-metadata' {
import 'core-js';
import { PLATFORM } from 'aurelia-pal';

@@ -4,0 +3,0 @@

@@ -14,36 +14,4 @@ 'use strict';

require('core-js');
var _aureliaPal = require('aurelia-pal');
var theGlobal = _aureliaPal.PLATFORM.global;
var emptyMetadata = Object.freeze({});
var metadataContainerKey = '__metadata__';
if (typeof theGlobal.Reflect === 'undefined') {
theGlobal.Reflect = {};
}
if (typeof theGlobal.Reflect.getOwnMetadata === 'undefined') {
Reflect.getOwnMetadata = function (metadataKey, target, targetKey) {
return ((target[metadataContainerKey] || emptyMetadata)[targetKey] || emptyMetadata)[metadataKey];
};
}
if (typeof theGlobal.Reflect.defineMetadata === 'undefined') {
Reflect.defineMetadata = function (metadataKey, metadataValue, target, targetKey) {
var metadataContainer = target.hasOwnProperty(metadataContainerKey) ? target[metadataContainerKey] : target[metadataContainerKey] = {};
var targetContainer = metadataContainer[targetKey] || (metadataContainer[targetKey] = {});
targetContainer[metadataKey] = metadataValue;
};
}
if (typeof theGlobal.Reflect.metadata === 'undefined') {
Reflect.metadata = function (metadataKey, metadataValue) {
return function (target, targetKey) {
Reflect.defineMetadata(metadataKey, metadataValue, target, targetKey);
};
};
}
var metadata = {

@@ -50,0 +18,0 @@ resource: 'aurelia:resource',

declare module 'aurelia-metadata' {
import 'core-js';
import { PLATFORM } from 'aurelia-pal';

@@ -4,0 +3,0 @@

@@ -1,34 +0,3 @@

import 'core-js';
import {PLATFORM} from 'aurelia-pal';
const theGlobal = PLATFORM.global;
const emptyMetadata = Object.freeze({});
const metadataContainerKey = '__metadata__';
if (typeof theGlobal.Reflect === 'undefined') {
theGlobal.Reflect = {};
}
if (typeof theGlobal.Reflect.getOwnMetadata === 'undefined') {
Reflect.getOwnMetadata = function(metadataKey, target, targetKey) {
return ((target[metadataContainerKey] || emptyMetadata)[targetKey] || emptyMetadata)[metadataKey];
};
}
if (typeof theGlobal.Reflect.defineMetadata === 'undefined') {
Reflect.defineMetadata = function(metadataKey, metadataValue, target, targetKey) {
let metadataContainer = target.hasOwnProperty(metadataContainerKey) ? target[metadataContainerKey] : (target[metadataContainerKey] = {});
let targetContainer = metadataContainer[targetKey] || (metadataContainer[targetKey] = {});
targetContainer[metadataKey] = metadataValue;
};
}
if (typeof theGlobal.Reflect.metadata === 'undefined') {
Reflect.metadata = function(metadataKey, metadataValue) {
return function(target, targetKey) {
Reflect.defineMetadata(metadataKey, metadataValue, target, targetKey);
};
};
}
/**

@@ -35,0 +4,0 @@ * Helpers for working with metadata on functions.

declare module 'aurelia-metadata' {
import 'core-js';
import { PLATFORM } from 'aurelia-pal';

@@ -4,0 +3,0 @@

@@ -1,5 +0,5 @@

System.register(['core-js', 'aurelia-pal'], function (_export) {
System.register(['aurelia-pal'], function (_export) {
'use strict';
var PLATFORM, theGlobal, emptyMetadata, metadataContainerKey, metadata, originStorage, unknownOrigin, Origin;
var PLATFORM, metadata, originStorage, unknownOrigin, Origin;

@@ -181,36 +181,6 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

return {
setters: [function (_coreJs) {}, function (_aureliaPal) {
setters: [function (_aureliaPal) {
PLATFORM = _aureliaPal.PLATFORM;
}],
execute: function () {
theGlobal = PLATFORM.global;
emptyMetadata = Object.freeze({});
metadataContainerKey = '__metadata__';
if (typeof theGlobal.Reflect === 'undefined') {
theGlobal.Reflect = {};
}
if (typeof theGlobal.Reflect.getOwnMetadata === 'undefined') {
Reflect.getOwnMetadata = function (metadataKey, target, targetKey) {
return ((target[metadataContainerKey] || emptyMetadata)[targetKey] || emptyMetadata)[metadataKey];
};
}
if (typeof theGlobal.Reflect.defineMetadata === 'undefined') {
Reflect.defineMetadata = function (metadataKey, metadataValue, target, targetKey) {
var metadataContainer = target.hasOwnProperty(metadataContainerKey) ? target[metadataContainerKey] : target[metadataContainerKey] = {};
var targetContainer = metadataContainer[targetKey] || (metadataContainer[targetKey] = {});
targetContainer[metadataKey] = metadataValue;
};
}
if (typeof theGlobal.Reflect.metadata === 'undefined') {
Reflect.metadata = function (metadataKey, metadataValue) {
return function (target, targetKey) {
Reflect.defineMetadata(metadataKey, metadataValue, target, targetKey);
};
};
}
metadata = {

@@ -217,0 +187,0 @@ resource: 'aurelia:resource',

@@ -0,1 +1,14 @@

### 1.0.0-beta.1.1.5 (2016-03-01)
#### Bug Fixes
* **all:** remove core-js dependency ([3a300a87](https://github.com/aurelia/metadata/commit/3a300a87126ccf1ab2656c3a09a983a72316d9c9))
#### Features
* **all:** remove duplicate code and use new polyfills ([ec2b65ee](https://github.com/aurelia/metadata/commit/ec2b65ee17db5e24b050fca3ea1e088f8ca7aff7))
### 1.0.0-beta.1.1.4 (2016-02-08)

@@ -2,0 +15,0 @@

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

@@ -29,11 +29,10 @@ "keywords": [

},
"dependencies": {
"aurelia-pal": "^1.0.0-beta.1.1.1"
},
"peerDependencies": {
"aurelia-pal": "^1.0.0-beta.1.1.1",
"core-js": "^2.0.3"
"aurelia-pal": "^1.0.0-beta.1.1.1"
},
"dependencies": {
"aurelia-pal": "^1.0.0-beta.1.1.1",
"core-js": "^2.0.3"
},
"devDependencies": {
"aurelia-polyfills": "^0.1.1",
"babel": "babel-core@^5.1.13",

@@ -45,4 +44,3 @@ "babel-runtime": "^5.1.13",

"dependencies": {
"aurelia-pal": "^1.0.0-beta.1.1.1",
"core-js": "^2.0.3"
"aurelia-pal": "^1.0.0-beta.1.1.1"
},

@@ -49,0 +47,0 @@ "devDependencies": {

@@ -1,33 +0,1 @@

import {PLATFORM} from 'aurelia-pal';
const theGlobal = PLATFORM.global;
const emptyMetadata = Object.freeze({});
const metadataContainerKey = '__metadata__';
if (typeof theGlobal.Reflect === 'undefined') {
theGlobal.Reflect = {};
}
if (typeof theGlobal.Reflect.getOwnMetadata === 'undefined') {
Reflect.getOwnMetadata = function(metadataKey, target, targetKey) {
return ((target[metadataContainerKey] || emptyMetadata)[targetKey] || emptyMetadata)[metadataKey];
};
}
if (typeof theGlobal.Reflect.defineMetadata === 'undefined') {
Reflect.defineMetadata = function(metadataKey, metadataValue, target, targetKey) {
let metadataContainer = target.hasOwnProperty(metadataContainerKey) ? target[metadataContainerKey] : (target[metadataContainerKey] = {});
let targetContainer = metadataContainer[targetKey] || (metadataContainer[targetKey] = {});
targetContainer[metadataKey] = metadataValue;
};
}
if (typeof theGlobal.Reflect.metadata === 'undefined') {
Reflect.metadata = function(metadataKey, metadataValue) {
return function(target, targetKey) {
Reflect.defineMetadata(metadataKey, metadataValue, target, targetKey);
};
};
}
/**

@@ -34,0 +2,0 @@ * Helpers for working with metadata on functions.

@@ -1,2 +0,1 @@

import 'core-js';
import {PLATFORM} from 'aurelia-pal';

@@ -3,0 +2,0 @@

@@ -0,1 +1,2 @@

import './setup';
import {metadata} from '../src/metadata';

@@ -2,0 +3,0 @@ import {decorators} from '../src/decorators';

@@ -0,6 +1,12 @@

import './setup';
import {Origin} from '../src/origin';
describe('origin', () => {
var origin1 = new Origin('ModuleId1', 'ModuleMember1'),
origin2 = new Origin('ModuleId2', 'ModuleMember2');
let origin1;
let origin2;
beforeEach(() => {
origin1 = new Origin('ModuleId1', 'ModuleMember1');
origin2 = new Origin('ModuleId2', 'ModuleMember2');
});

@@ -7,0 +13,0 @@ describe('get', () => {

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