aurelia-metadata
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -89,3 +89,7 @@ define(['exports', 'aurelia-pal'], function (exports, _aureliaPal) { | ||
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 { | ||
@@ -92,0 +96,0 @@ var exp = value[name]; |
@@ -0,0 +0,0 @@ define(['exports', './aurelia-metadata'], function (exports, _aureliaMetadata) { |
@@ -133,3 +133,5 @@ import {PLATFORM} from 'aurelia-pal'; | ||
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 { | ||
@@ -136,0 +138,0 @@ let exp = value[name]; |
@@ -75,3 +75,7 @@ 'use strict'; | ||
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 { | ||
@@ -78,0 +82,0 @@ var exp = value[name]; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -57,3 +57,7 @@ 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; }; | ||
if (typeof value === 'object') { | ||
let isBrowserWindow = typeof window !== 'undefined' && value === window; | ||
for (let name in value) { | ||
if (isBrowserWindow && name === 'webkitStorageInfo') { | ||
continue; | ||
} | ||
try { | ||
@@ -60,0 +64,0 @@ let exp = value[name]; |
@@ -63,3 +63,7 @@ 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; }; | ||
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 { | ||
@@ -66,0 +70,0 @@ var exp = value[name]; |
@@ -250,3 +250,7 @@ 'use strict'; | ||
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 { | ||
@@ -253,0 +257,0 @@ var exp = value[name]; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,1 +1,6 @@ | ||
<a name="1.0.8"></a> | ||
## [1.0.8](https://github.com/aurelia/metadata/compare/1.0.6...1.0.8) (2020-11-05) | ||
<a name="1.0.7"></a> | ||
@@ -2,0 +7,0 @@ ## [1.0.7](https://github.com/aurelia/metadata/compare/1.0.5...1.0.7) (2019-03-26) |
{ | ||
"name": "aurelia-metadata", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Utilities for reading and writing the metadata of JavaScript functions.", | ||
@@ -18,3 +18,3 @@ "keywords": [ | ||
"module": "dist/native-modules/aurelia-metadata.js", | ||
"typings": "dist/aurelia-metadata.d.ts", | ||
"typings": "dist/types/aurelia-metadata.d.ts", | ||
"repository": { | ||
@@ -25,4 +25,10 @@ "type": "git", | ||
"scripts": { | ||
"clean": "rimraf dist", | ||
"test": "karma start --single-run", | ||
"build": "gulp build", | ||
"test:watch": "karma start", | ||
"build": "npm run clean && npm run rollup && npm run build:types", | ||
"doc": "typedoc --entryPoints src/index.ts --json doc/api.json", | ||
"rollup": "rollup -c", | ||
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types", | ||
"lint": "eslint ./src ./test --ext .ts,.tsx", | ||
"cut-release": "gulp prepare-release" | ||
@@ -59,53 +65,35 @@ }, | ||
"devDependencies": { | ||
"aurelia-tools": "^0.2.4", | ||
"babel-dts-generator": "^0.6.1", | ||
"babel-eslint": "^6.1.2", | ||
"babel-plugin-syntax-flow": "^6.8.0", | ||
"babel-plugin-transform-decorators-legacy": "^1.3.4", | ||
"babel-plugin-transform-es2015-modules-amd": "^6.8.0", | ||
"babel-plugin-transform-es2015-modules-commonjs": "^6.11.5", | ||
"babel-plugin-transform-es2015-modules-systemjs": "^6.11.6", | ||
"babel-plugin-transform-flow-strip-types": "^6.8.0", | ||
"babel-preset-es2015": "^6.9.0", | ||
"babel-preset-es2015-loose": "^7.0.0", | ||
"babel-preset-es2015-loose-native-modules": "^1.0.0", | ||
"babel-preset-stage-1": "^6.5.0", | ||
"del": "^2.2.1", | ||
"gulp": "^3.9.1", | ||
"gulp-babel": "^6.1.2", | ||
"gulp-bump": "^2.2.0", | ||
"gulp-concat": "^2.6.0", | ||
"gulp-conventional-changelog": "^1.1.0", | ||
"gulp-eslint": "^3.0.1", | ||
"gulp-ignore": "^2.0.1", | ||
"gulp-insert": "^0.5.0", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-typedoc": "^2.0.0", | ||
"gulp-typedoc-extractor": "0.0.8", | ||
"gulp-typescript": "^2.13.6", | ||
"@rollup/plugin-typescript": "^8.1.0", | ||
"@types/jasmine": "^3.6.2", | ||
"@typescript-eslint/eslint-plugin": "^4.14.0", | ||
"@typescript-eslint/parser": "^4.14.0", | ||
"aurelia-polyfills": "^1.3.4", | ||
"eslint": "^7.18.0", | ||
"gulp": "^4.0.2", | ||
"gulp-bump": "^3.2.0", | ||
"gulp-conventional-changelog": "^2.0.35", | ||
"gulp-util": "^3.0.7", | ||
"jasmine-core": "^2.4.1", | ||
"jspm": "^0.16.53", | ||
"karma": "^1.1.2", | ||
"karma-babel-preprocessor": "^6.0.1", | ||
"karma-chrome-launcher": "^1.0.1", | ||
"jasmine-core": "^3.6.0", | ||
"karma": "^5.2.3", | ||
"karma-chrome-launcher": "^3.1.0", | ||
"karma-coverage": "^1.1.1", | ||
"karma-jasmine": "^1.0.2", | ||
"karma-jspm": "^2.2.0", | ||
"karma-jasmine": "^4.0.1", | ||
"karma-typescript": "^5.2.0", | ||
"merge2": "^1.0.2", | ||
"object.assign": "^4.0.4", | ||
"require-dir": "^0.3.0", | ||
"run-sequence": "^1.2.2", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.36.2", | ||
"through2": "^2.0.1", | ||
"typedoc": "^0.4.4", | ||
"typescript": "^1.9.0-dev.20160622-1.0", | ||
"vinyl": "^1.1.1", | ||
"vinyl-paths": "^2.1.0", | ||
"tslib": "^2.1.0", | ||
"typedoc": "^0.20.16", | ||
"typescript": "^4.1.3", | ||
"vinyl": "^2.2.1", | ||
"vinyl-paths": "^3.0.1", | ||
"yargs": "^4.8.1" | ||
}, | ||
"aurelia": { | ||
"documentation": { | ||
"articles": [] | ||
"standard-version": { | ||
"skip": { | ||
"commit": true, | ||
"tag": true | ||
} | ||
} | ||
} |
@@ -1,11 +0,21 @@ | ||
# aurelia-metadata | ||
<p> | ||
<a href="https://aurelia.io/" target="_blank"> | ||
<img alt="Aurelia" src="https://aurelia.io/styles/images/aurelia.svg"> | ||
</a> | ||
</p> | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) | ||
[![npm Version](https://img.shields.io/npm/v/aurelia-metadata.svg)](https://www.npmjs.com/package/aurelia-metadata) | ||
[![ZenHub](https://raw.githubusercontent.com/ZenHubIO/support/master/zenhub-badge.png)](https://zenhub.io) | ||
[![Join the chat at https://gitter.im/aurelia/discuss](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/aurelia/discuss?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
[![CircleCI](https://circleci.com/gh/aurelia/metadata.svg?style=shield)](https://circleci.com/gh/aurelia/metadata) | ||
[![Discourse status](https://img.shields.io/discourse/https/meta.discourse.org/status.svg)](https://discourse.aurelia.io) | ||
[![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/) | ||
[![Twitter](https://img.shields.io/twitter/follow/aureliaeffect.svg?style=social&label=Follow)](https://twitter.com/intent/follow?screen_name=aureliaeffect) | ||
[![Backers on Open Collective](https://opencollective.com/aurelia/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/aurelia/sponsors/badge.svg)](#sponsors) | ||
[![Discord Chat](https://img.shields.io/discord/448698263508615178.svg)](https://discord.gg/RBtyM6u) | ||
# aurelia-metadata | ||
This library is part of the [Aurelia](http://www.aurelia.io/) platform and contains utilities for reading and writing the metadata of JavaScript functions. It provides a consistent way of accessing type, annotation and origin metadata across a number of languages and formats. This library supports TypeScript metadata and contains helper functions that understand several simple, alternate locations and formats for metadata which are more easily leveraged by developers authoring code in plain ES6 or ES5. | ||
> To keep up to date on [Aurelia](http://www.aurelia.io/), please visit and subscribe to [the official blog](http://blog.aurelia.io/) and [our email list](http://eepurl.com/ces50j). We also invite you to [follow us on twitter](https://twitter.com/aureliaeffect). If you have questions, please [join our community on Gitter](https://gitter.im/aurelia/discuss) or use [stack overflow](http://stackoverflow.com/search?q=aurelia). Documentation can be found [in our developer hub](http://aurelia.io/hub.html). If you would like to have deeper insight into our development process, please install the [ZenHub](https://zenhub.io) Chrome or Firefox Extension and visit any of our repository's boards. | ||
> To keep up to date on [Aurelia](http://www.aurelia.io/), please visit and subscribe to [the official blog](http://blog.aurelia.io/) and [our email list](http://eepurl.com/ces50j). We also invite you to [follow us on twitter](https://twitter.com/aureliaeffect). If you have questions, please [join our community on Gitter](https://gitter.im/aurelia/discuss) or use [stack overflow](http://stackoverflow.com/search?q=aurelia). Documentation can be found [in our developer hub](http://aurelia.io/hub.html). | ||
@@ -20,21 +30,16 @@ ## Platform Support | ||
1. Ensure that [NodeJS](http://nodejs.org/) is installed. This provides the platform on which the build tooling runs. | ||
1. Ensure that [NodeJS](http://nodejs.org/) version 12+ is installed. This provides the platform on which the build tooling runs. | ||
2. From the project folder, execute the following command: | ||
```shell | ||
npm install | ||
npm ci | ||
``` | ||
3. Ensure that [Gulp](http://gulpjs.com/) is installed. If you need to install it, use the following command: | ||
3. To build the code, you can now run: | ||
```shell | ||
npm install -g gulp | ||
npm run build | ||
``` | ||
4. To build the code, you can now run: | ||
```shell | ||
gulp build | ||
``` | ||
5. You will find the compiled code in the `dist` folder, available in three module formats: AMD, CommonJS and ES6. | ||
6. See `gulpfile.js` for other tasks related to generating the docs and linting. | ||
6. See `gulpfile.js`, or `package.json` (`scripts` section) for other tasks related to generating the docs and linting. | ||
@@ -45,24 +50,12 @@ ## Running The Tests | ||
1. Ensure that the [Karma](http://karma-runner.github.io/) CLI is installed. If you need to install it, use the following command: | ||
1. You can now run the tests with this command: | ||
```shell | ||
npm install -g karma-cli | ||
npm run test | ||
``` | ||
2. Ensure that [jspm](http://jspm.io/) is installed. If you need to install it, use the following commnand: | ||
```shell | ||
npm install -g jspm | ||
``` | ||
3. Download the [SystemJS](https://github.com/systemjs/systemjs) module loader: | ||
If you want to run the test in watch mode, you can run this command: | ||
```shell | ||
jspm dl-loader | ||
``` | ||
4. Ensure that you have Chrome installed. Karma runs the test suite in Chrome. | ||
5. You can now run the tests with this command: | ||
```shell | ||
karma start | ||
``` | ||
```shell | ||
npm run test:watch | ||
``` |
{ | ||
"name": "aurelia-metadata", | ||
"main": "dist/aurelia-metadata.d.ts", | ||
"main": "dist/types/aurelia-metadata.d.ts", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "aurelia-pal": "github:aurelia/pal" |
Sorry, the diff of this file is not supported yet
118326
26
26
2033
60