diff --git a/bower.json b/bower.json index c424235..40d3148 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-metadata", - "version": "1.0.7", + "version": "1.0.8", "description": "Utilities for reading and writing the metadata of JavaScript functions.", "keywords": [ "aurelia", diff --git a/dist/amd/aurelia-metadata.js b/dist/amd/aurelia-metadata.js index 6b99ad3..0326233 100644 --- a/dist/amd/aurelia-metadata.js +++ b/dist/amd/aurelia-metadata.js @@ -86,7 +86,11 @@ define(['exports', 'aurelia-pal'], function (exports, _aureliaPal) { if (origin === undefined) { _aureliaPal.PLATFORM.eachModule(function (key, value) { if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') { + var isBrowserWindow = typeof window !== 'undefined' && value === window; for (var name in value) { + if (isBrowserWindow && name === 'webkitStorageInfo') { + continue; + } try { var exp = value[name]; if (exp === fn) { diff --git a/dist/aurelia-metadata.js b/dist/aurelia-metadata.js index 41d26c8..5fd565a 100644 --- a/dist/aurelia-metadata.js +++ b/dist/aurelia-metadata.js @@ -130,7 +130,9 @@ export class Origin { if (origin === undefined) { PLATFORM.eachModule((key, value) => { if (typeof value === 'object') { + let isBrowserWindow = typeof window !== 'undefined' && value === window; for (let name in value) { + if (isBrowserWindow && name === 'webkitStorageInfo') { continue; } // Avoid warning to console try { let exp = value[name]; if (exp === fn) { diff --git a/dist/commonjs/aurelia-metadata.js b/dist/commonjs/aurelia-metadata.js index b37d8a7..844348f 100644 --- a/dist/commonjs/aurelia-metadata.js +++ b/dist/commonjs/aurelia-metadata.js @@ -72,7 +72,11 @@ var Origin = exports.Origin = function () { if (origin === undefined) { _aureliaPal.PLATFORM.eachModule(function (key, value) { if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') { + var isBrowserWindow = typeof window !== 'undefined' && value === window; for (var name in value) { + if (isBrowserWindow && name === 'webkitStorageInfo') { + continue; + } try { var exp = value[name]; if (exp === fn) { diff --git a/dist/es2015/aurelia-metadata.js b/dist/es2015/aurelia-metadata.js index 8c4efd3..700d8d3 100644 --- a/dist/es2015/aurelia-metadata.js +++ b/dist/es2015/aurelia-metadata.js @@ -54,7 +54,11 @@ export let Origin = class Origin { if (origin === undefined) { PLATFORM.eachModule((key, value) => { if (typeof value === 'object') { + let isBrowserWindow = typeof window !== 'undefined' && value === window; for (let name in value) { + if (isBrowserWindow && name === 'webkitStorageInfo') { + continue; + } try { let exp = value[name]; if (exp === fn) { diff --git a/dist/native-modules/aurelia-metadata.js b/dist/native-modules/aurelia-metadata.js index 446a20e..37713fe 100644 --- a/dist/native-modules/aurelia-metadata.js +++ b/dist/native-modules/aurelia-metadata.js @@ -60,7 +60,11 @@ export var Origin = function () { if (origin === undefined) { PLATFORM.eachModule(function (key, value) { if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') { + var isBrowserWindow = typeof window !== 'undefined' && value === window; for (var name in value) { + if (isBrowserWindow && name === 'webkitStorageInfo') { + continue; + } try { var exp = value[name]; if (exp === fn) { diff --git a/dist/system/aurelia-metadata.js b/dist/system/aurelia-metadata.js index 55b2fd5..0ca432b 100644 --- a/dist/system/aurelia-metadata.js +++ b/dist/system/aurelia-metadata.js @@ -247,7 +247,11 @@ System.register(['aurelia-pal'], function (_export, _context) { if (origin === undefined) { PLATFORM.eachModule(function (key, value) { if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') { + var isBrowserWindow = typeof window !== 'undefined' && value === window; for (var name in value) { + if (isBrowserWindow && name === 'webkitStorageInfo') { + continue; + } try { var exp = value[name]; if (exp === fn) { diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index f0261b8..de4602b 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,8 @@ + +## [1.0.8](https://github.com/aurelia/metadata/compare/1.0.6...1.0.8) (2020-11-05) + + + ## [1.0.7](https://github.com/aurelia/metadata/compare/1.0.5...1.0.7) (2019-03-26) diff --git a/package.json b/package.json index 4584900..7745ccd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-metadata", - "version": "1.0.7", + "version": "1.0.8", "description": "Utilities for reading and writing the metadata of JavaScript functions.", "keywords": [ "aurelia",