Skip to content

Commit

Permalink
chore(all): prepare release 1.0.0-beta.1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Mar 22, 2016
1 parent 4517ece commit fca5abc
Show file tree
Hide file tree
Showing 14 changed files with 1,748 additions and 538 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.6",
"version": "1.0.0-beta.1.2.0",
"description": "Utilities for reading and writing the metadata of JavaScript functions.",
"keywords": [
"aurelia",
Expand Down
20 changes: 19 additions & 1 deletion dist/amd/aurelia-metadata.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
declare module 'aurelia-metadata' {
import { PLATFORM } from 'aurelia-pal';
import {
PLATFORM
} from 'aurelia-pal';

/**
* Helpers for working with metadata on functions.
Expand Down Expand Up @@ -102,6 +104,9 @@ declare module 'aurelia-metadata' {
compose?: (target: any) => void;
}

/**
* Provides helpers for working with metadata.
*/
/**
* Provides helpers for working with metadata.
*/
Expand Down Expand Up @@ -145,12 +150,20 @@ declare module 'aurelia-metadata' {
static set(fn: Function, origin: Origin): void;
}

/**
* Enables applying decorators, particularly for use when there is no syntax support in the language, such as with ES5 and ES2016.
* @param rest The decorators to apply.
*/
/**
* Enables applying decorators, particularly for use when there is no syntax support in the language, such as with ES5 and ES2016.
* @param rest The decorators to apply.
*/
export function decorators(...rest: Function[]): DecoratorApplicator;

/**
* Decorator: Enables marking methods as deprecated.
* @param optionsOrTarget Options for how the deprected decorator should function at runtime.
*/
/**
* Decorator: Enables marking methods as deprecated.
* @param optionsOrTarget Options for how the deprected decorator should function at runtime.
Expand All @@ -163,6 +176,11 @@ declare module 'aurelia-metadata' {
*/
export function mixin(behavior: Object): any;

/**
* Decorator: Creates a protocol.
* @param name The name of the protocol.
* @param options The validation function or options object used in configuring the protocol.
*/
/**
* Decorator: Creates a protocol.
* @param name The name of the protocol.
Expand Down
43 changes: 29 additions & 14 deletions dist/amd/aurelia-metadata.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,36 @@
define(['exports', 'aurelia-pal'], function (exports, _aureliaPal) {
'use strict';

exports.__esModule = true;

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

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Origin = exports.metadata = undefined;
exports.decorators = decorators;
exports.deprecated = deprecated;
exports.mixin = mixin;
exports.protocol = protocol;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
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;
};

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

var metadata = {
var metadata = exports.metadata = {
resource: 'aurelia:resource',
paramTypes: 'design:paramtypes',
properties: 'design:properties',
Expand Down Expand Up @@ -44,11 +62,10 @@ define(['exports', 'aurelia-pal'], function (exports, _aureliaPal) {
}
};

exports.metadata = metadata;
var originStorage = new Map();
var unknownOrigin = Object.freeze({ moduleId: undefined, moduleMember: undefined });

var Origin = (function () {
var Origin = exports.Origin = function () {
function Origin(moduleId, moduleMember) {
_classCallCheck(this, Origin);

Expand All @@ -61,10 +78,10 @@ define(['exports', 'aurelia-pal'], function (exports, _aureliaPal) {

if (origin === undefined) {
_aureliaPal.PLATFORM.eachModule(function (key, value) {
for (var _name in value) {
var exp = value[_name];
for (var name in value) {
var exp = value[name];
if (exp === fn) {
originStorage.set(fn, origin = new Origin(key, _name));
originStorage.set(fn, origin = new Origin(key, name));
return true;
}
}
Expand All @@ -84,9 +101,7 @@ define(['exports', 'aurelia-pal'], function (exports, _aureliaPal) {
};

return Origin;
})();

exports.Origin = Origin;
}();

function decorators() {
for (var _len = arguments.length, rest = Array(_len), _key = 0; _key < _len; _key++) {
Expand Down
20 changes: 19 additions & 1 deletion dist/aurelia-metadata.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
declare module 'aurelia-metadata' {
import { PLATFORM } from 'aurelia-pal';
import {
PLATFORM
} from 'aurelia-pal';

/**
* Helpers for working with metadata on functions.
Expand Down Expand Up @@ -102,6 +104,9 @@ declare module 'aurelia-metadata' {
compose?: (target: any) => void;
}

/**
* Provides helpers for working with metadata.
*/
/**
* Provides helpers for working with metadata.
*/
Expand Down Expand Up @@ -145,12 +150,20 @@ declare module 'aurelia-metadata' {
static set(fn: Function, origin: Origin): void;
}

/**
* Enables applying decorators, particularly for use when there is no syntax support in the language, such as with ES5 and ES2016.
* @param rest The decorators to apply.
*/
/**
* Enables applying decorators, particularly for use when there is no syntax support in the language, such as with ES5 and ES2016.
* @param rest The decorators to apply.
*/
export function decorators(...rest: Function[]): DecoratorApplicator;

/**
* Decorator: Enables marking methods as deprecated.
* @param optionsOrTarget Options for how the deprected decorator should function at runtime.
*/
/**
* Decorator: Enables marking methods as deprecated.
* @param optionsOrTarget Options for how the deprected decorator should function at runtime.
Expand All @@ -163,6 +176,11 @@ declare module 'aurelia-metadata' {
*/
export function mixin(behavior: Object): any;

/**
* Decorator: Creates a protocol.
* @param name The name of the protocol.
* @param options The validation function or options object used in configuring the protocol.
*/
/**
* Decorator: Creates a protocol.
* @param name The name of the protocol.
Expand Down
20 changes: 19 additions & 1 deletion dist/commonjs/aurelia-metadata.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
declare module 'aurelia-metadata' {
import { PLATFORM } from 'aurelia-pal';
import {
PLATFORM
} from 'aurelia-pal';

/**
* Helpers for working with metadata on functions.
Expand Down Expand Up @@ -102,6 +104,9 @@ declare module 'aurelia-metadata' {
compose?: (target: any) => void;
}

/**
* Provides helpers for working with metadata.
*/
/**
* Provides helpers for working with metadata.
*/
Expand Down Expand Up @@ -145,12 +150,20 @@ declare module 'aurelia-metadata' {
static set(fn: Function, origin: Origin): void;
}

/**
* Enables applying decorators, particularly for use when there is no syntax support in the language, such as with ES5 and ES2016.
* @param rest The decorators to apply.
*/
/**
* Enables applying decorators, particularly for use when there is no syntax support in the language, such as with ES5 and ES2016.
* @param rest The decorators to apply.
*/
export function decorators(...rest: Function[]): DecoratorApplicator;

/**
* Decorator: Enables marking methods as deprecated.
* @param optionsOrTarget Options for how the deprected decorator should function at runtime.
*/
/**
* Decorator: Enables marking methods as deprecated.
* @param optionsOrTarget Options for how the deprected decorator should function at runtime.
Expand All @@ -163,6 +176,11 @@ declare module 'aurelia-metadata' {
*/
export function mixin(behavior: Object): any;

/**
* Decorator: Creates a protocol.
* @param name The name of the protocol.
* @param options The validation function or options object used in configuring the protocol.
*/
/**
* Decorator: Creates a protocol.
* @param name The name of the protocol.
Expand Down
24 changes: 12 additions & 12 deletions dist/commonjs/aurelia-metadata.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
'use strict';

exports.__esModule = true;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Origin = exports.metadata = undefined;

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 All @@ -9,11 +12,11 @@ exports.deprecated = deprecated;
exports.mixin = mixin;
exports.protocol = protocol;

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

var _aureliaPal = require('aurelia-pal');

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

var metadata = exports.metadata = {
resource: 'aurelia:resource',
paramTypes: 'design:paramtypes',
properties: 'design:properties',
Expand Down Expand Up @@ -45,11 +48,10 @@ var metadata = {
}
};

exports.metadata = metadata;
var originStorage = new Map();
var unknownOrigin = Object.freeze({ moduleId: undefined, moduleMember: undefined });

var Origin = (function () {
var Origin = exports.Origin = function () {
function Origin(moduleId, moduleMember) {
_classCallCheck(this, Origin);

Expand All @@ -62,10 +64,10 @@ var Origin = (function () {

if (origin === undefined) {
_aureliaPal.PLATFORM.eachModule(function (key, value) {
for (var _name in value) {
var exp = value[_name];
for (var name in value) {
var exp = value[name];
if (exp === fn) {
originStorage.set(fn, origin = new Origin(key, _name));
originStorage.set(fn, origin = new Origin(key, name));
return true;
}
}
Expand All @@ -85,9 +87,7 @@ var Origin = (function () {
};

return Origin;
})();

exports.Origin = Origin;
}();

function decorators() {
for (var _len = arguments.length, rest = Array(_len), _key = 0; _key < _len; _key++) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
declare module 'aurelia-metadata' {
import { PLATFORM } from 'aurelia-pal';
import {
PLATFORM
} from 'aurelia-pal';

/**
* Helpers for working with metadata on functions.
Expand Down Expand Up @@ -102,6 +104,9 @@ declare module 'aurelia-metadata' {
compose?: (target: any) => void;
}

/**
* Provides helpers for working with metadata.
*/
/**
* Provides helpers for working with metadata.
*/
Expand Down Expand Up @@ -145,12 +150,20 @@ declare module 'aurelia-metadata' {
static set(fn: Function, origin: Origin): void;
}

/**
* Enables applying decorators, particularly for use when there is no syntax support in the language, such as with ES5 and ES2016.
* @param rest The decorators to apply.
*/
/**
* Enables applying decorators, particularly for use when there is no syntax support in the language, such as with ES5 and ES2016.
* @param rest The decorators to apply.
*/
export function decorators(...rest: Function[]): DecoratorApplicator;

/**
* Decorator: Enables marking methods as deprecated.
* @param optionsOrTarget Options for how the deprected decorator should function at runtime.
*/
/**
* Decorator: Enables marking methods as deprecated.
* @param optionsOrTarget Options for how the deprected decorator should function at runtime.
Expand All @@ -163,6 +176,11 @@ declare module 'aurelia-metadata' {
*/
export function mixin(behavior: Object): any;

/**
* Decorator: Creates a protocol.
* @param name The name of the protocol.
* @param options The validation function or options object used in configuring the protocol.
*/
/**
* Decorator: Creates a protocol.
* @param name The name of the protocol.
Expand Down
Loading

0 comments on commit fca5abc

Please sign in to comment.