Skip to content

Commit

Permalink
chore(all): prepare release 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jun 13, 2018
1 parent d0f33fc commit bbe58e8
Show file tree
Hide file tree
Showing 12 changed files with 9,447 additions and 41 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.3",
"version": "1.0.4",
"description": "Utilities for reading and writing the metadata of JavaScript functions.",
"keywords": [
"aurelia",
Expand Down
14 changes: 8 additions & 6 deletions dist/amd/aurelia-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ define(['exports', 'aurelia-pal'], function (exports, _aureliaPal) {
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};

function isObject(val) {
Expand Down Expand Up @@ -87,11 +87,13 @@ define(['exports', 'aurelia-pal'], function (exports, _aureliaPal) {
_aureliaPal.PLATFORM.eachModule(function (key, value) {
if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {
for (var name in value) {
var exp = value[name];
if (exp === fn) {
originStorage.set(fn, origin = new Origin(key, name));
return true;
}
try {
var exp = value[name];
if (exp === fn) {
originStorage.set(fn, origin = new Origin(key, name));
return true;
}
} catch (e) {}
}
}

Expand Down
13 changes: 9 additions & 4 deletions dist/aurelia-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,15 @@ export class Origin {
PLATFORM.eachModule((key, value) => {
if (typeof value === 'object') {
for (let name in value) {
let exp = value[name];
if (exp === fn) {
originStorage.set(fn, origin = new Origin(key, name));
return true;
try {
let exp = value[name];
if (exp === fn) {
originStorage.set(fn, origin = new Origin(key, name));
return true;
}
} catch (e) {
// IE11 in cross origin frame fails when accessing Window['frameElement'] with Access Denied script error.
// Window gets exported from webpack buildin/global.js.
}
}
}
Expand Down
14 changes: 8 additions & 6 deletions dist/commonjs/aurelia-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ 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; };

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

exports.decorators = decorators;
exports.deprecated = deprecated;
Expand Down Expand Up @@ -73,11 +73,13 @@ var Origin = exports.Origin = function () {
_aureliaPal.PLATFORM.eachModule(function (key, value) {
if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {
for (var name in value) {
var exp = value[name];
if (exp === fn) {
originStorage.set(fn, origin = new Origin(key, name));
return true;
}
try {
var exp = value[name];
if (exp === fn) {
originStorage.set(fn, origin = new Origin(key, name));
return true;
}
} catch (e) {}
}
}

Expand Down
20 changes: 11 additions & 9 deletions dist/es2015/aurelia-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ export let Origin = class Origin {
PLATFORM.eachModule((key, value) => {
if (typeof value === 'object') {
for (let name in value) {
let exp = value[name];
if (exp === fn) {
originStorage.set(fn, origin = new Origin(key, name));
return true;
}
try {
let exp = value[name];
if (exp === fn) {
originStorage.set(fn, origin = new Origin(key, name));
return true;
}
} catch (e) {}
}
}

Expand Down Expand Up @@ -112,16 +114,16 @@ export function decorators(...rest) {

export function deprecated(optionsOrTarget, maybeKey, maybeDescriptor) {
function decorator(target, key, descriptor) {
const methodSignature = `${ target.constructor.name }#${ key }`;
const methodSignature = `${target.constructor.name}#${key}`;
let options = maybeKey ? {} : optionsOrTarget || {};
let message = `DEPRECATION - ${ methodSignature }`;
let message = `DEPRECATION - ${methodSignature}`;

if (typeof descriptor.value !== 'function') {
throw new SyntaxError('Only methods can be marked as deprecated.');
}

if (options.message) {
message += ` - ${ options.message }`;
message += ` - ${options.message}`;
}

return _extends({}, descriptor, {
Expand Down Expand Up @@ -199,7 +201,7 @@ function createProtocolAsserter(name, validate) {
return function (target) {
let result = validate(target);
if (result !== true) {
throw new Error(result || `${ name } was not correctly implemented.`);
throw new Error(result || `${name} was not correctly implemented.`);
}
};
}
Expand Down
14 changes: 8 additions & 6 deletions dist/native-modules/aurelia-metadata.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,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; };

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };



Expand Down Expand Up @@ -61,11 +61,13 @@ export var Origin = function () {
PLATFORM.eachModule(function (key, value) {
if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {
for (var name in value) {
var exp = value[name];
if (exp === fn) {
originStorage.set(fn, origin = new Origin(key, name));
return true;
}
try {
var exp = value[name];
if (exp === fn) {
originStorage.set(fn, origin = new Origin(key, name));
return true;
}
} catch (e) {}
}
}

Expand Down
14 changes: 8 additions & 6 deletions dist/system/aurelia-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ System.register(['aurelia-pal'], function (_export, _context) {
_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj;
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};

_export('metadata', metadata = {
Expand Down Expand Up @@ -248,11 +248,13 @@ System.register(['aurelia-pal'], function (_export, _context) {
PLATFORM.eachModule(function (key, value) {
if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {
for (var name in value) {
var exp = value[name];
if (exp === fn) {
originStorage.set(fn, origin = new Origin(key, name));
return true;
}
try {
var exp = value[name];
if (exp === fn) {
originStorage.set(fn, origin = new Origin(key, name));
return true;
}
} catch (e) {}
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/system/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ System.register(['./aurelia-metadata'], function (_export, _context) {
var _exportObj = {};

for (var _key in _aureliaMetadata) {
if (_key !== "default" && key !== "__esModule") _exportObj[_key] = _aureliaMetadata[_key];
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _aureliaMetadata[_key];
}

_export(_exportObj);
Expand Down
11 changes: 11 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
<a name="1.0.4"></a>
## [1.0.4](https://github.com/aurelia/metadata/compare/1.0.3...1.0.4) (2018-06-13)


### Bug Fixes

* **metadata:** IE cross origin frame Access Denied on Window['frameElement'] in Origin.get ([5e678d7](https://github.com/aurelia/metadata/commit/5e678d7))
* **metadata:** IE cross origin frame Access Denied on Window['frameElement'] in Origin.get - add test ([553c5a2](https://github.com/aurelia/metadata/commit/553c5a2))



<a name="1.0.3"></a>
## [1.0.3](https://github.com/aurelia/metadata/compare/1.0.2...v1.0.3) (2016-12-23)

Expand Down
Loading

0 comments on commit bbe58e8

Please sign in to comment.