Skip to content

Commit

Permalink
chore(all): prepare release 1.0.0-beta.1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Mar 1, 2016
1 parent ec2b65e commit 31dce03
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 165 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"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.",
"keywords": [
"aurelia",
Expand Down
1 change: 0 additions & 1 deletion dist/amd/aurelia-metadata.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
declare module 'aurelia-metadata' {
import 'core-js';
import { PLATFORM } from 'aurelia-pal';

/**
Expand Down
32 changes: 1 addition & 31 deletions dist/amd/aurelia-metadata.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
define(['exports', 'core-js', 'aurelia-pal'], function (exports, _coreJs, _aureliaPal) {
define(['exports', 'aurelia-pal'], function (exports, _aureliaPal) {
'use strict';

exports.__esModule = true;
Expand All @@ -12,36 +12,6 @@ define(['exports', 'core-js', 'aurelia-pal'], function (exports, _coreJs, _aurel

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

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 = {
resource: 'aurelia:resource',
paramTypes: 'design:paramtypes',
Expand Down
1 change: 0 additions & 1 deletion dist/aurelia-metadata.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
declare module 'aurelia-metadata' {
import 'core-js';
import { PLATFORM } from 'aurelia-pal';

/**
Expand Down
31 changes: 0 additions & 31 deletions dist/aurelia-metadata.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,5 @@
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);
};
};
}

/**
* Helpers for working with metadata on functions.
*/
Expand Down
1 change: 0 additions & 1 deletion dist/commonjs/aurelia-metadata.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
declare module 'aurelia-metadata' {
import 'core-js';
import { PLATFORM } from 'aurelia-pal';

/**
Expand Down
32 changes: 0 additions & 32 deletions dist/commonjs/aurelia-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,40 +11,8 @@ exports.protocol = protocol;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

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 = {
resource: 'aurelia:resource',
paramTypes: 'design:paramtypes',
Expand Down
1 change: 0 additions & 1 deletion dist/es6/aurelia-metadata.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
declare module 'aurelia-metadata' {
import 'core-js';
import { PLATFORM } from 'aurelia-pal';

/**
Expand Down
31 changes: 0 additions & 31 deletions dist/es6/aurelia-metadata.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,5 @@
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);
};
};
}

/**
* Helpers for working with metadata on functions.
*/
Expand Down
1 change: 0 additions & 1 deletion dist/system/aurelia-metadata.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
declare module 'aurelia-metadata' {
import 'core-js';
import { PLATFORM } from 'aurelia-pal';

/**
Expand Down
36 changes: 3 additions & 33 deletions dist/system/aurelia-metadata.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
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;

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; };

Expand Down Expand Up @@ -178,40 +178,10 @@ System.register(['core-js', 'aurelia-pal'], function (_export) {
}

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 = {
resource: 'aurelia:resource',
paramTypes: 'design:paramtypes',
Expand Down
13 changes: 13 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
### 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)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"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.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit 31dce03

Please sign in to comment.