babel-plugin-empower-assert
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -1,2 +0,2 @@ | ||
## [1.2.0](https://github.com/twada/babel-plugin-empower-assert/releases/tag/v1.2.0) (2016-04-12) | ||
## [1.3.0](https://github.com/power-assert-js/babel-plugin-empower-assert/releases/tag/v1.3.0) (2016-04-27) | ||
@@ -6,6 +6,6 @@ | ||
* support ImportDeclaration ([a8c5326f](https://github.com/twada/babel-plugin-empower-assert/commit/a8c5326f098d49d25517995346b8818b72348046)) | ||
* [support ImportNamespaceSpecifier](https://github.com/power-assert-js/babel-plugin-empower-assert/pull/4) | ||
## [1.1.0](https://github.com/twada/babel-plugin-empower-assert/releases/tag/v1.1.0) (2016-04-12) | ||
## [1.2.0](https://github.com/power-assert-js/babel-plugin-empower-assert/releases/tag/v1.2.0) (2016-04-12) | ||
@@ -15,8 +15,16 @@ | ||
* support AssignmentExpression ([61dc73f8](https://github.com/twada/babel-plugin-empower-assert/commit/61dc73f8ffd02e8c8b495be5ca17b6ee2f644af0)) | ||
* support ImportDeclaration ([a8c5326f](https://github.com/power-assert-js/babel-plugin-empower-assert/commit/a8c5326f098d49d25517995346b8818b72348046)) | ||
## [1.0.0](https://github.com/twada/babel-plugin-empower-assert/releases/tag/v1.0.0) (2016-04-12) | ||
## [1.1.0](https://github.com/power-assert-js/babel-plugin-empower-assert/releases/tag/v1.1.0) (2016-04-12) | ||
#### Features | ||
* support AssignmentExpression ([61dc73f8](https://github.com/power-assert-js/babel-plugin-empower-assert/commit/61dc73f8ffd02e8c8b495be5ca17b6ee2f644af0)) | ||
## [1.0.0](https://github.com/power-assert-js/babel-plugin-empower-assert/releases/tag/v1.0.0) (2016-04-12) | ||
The first release. |
@@ -5,7 +5,7 @@ /** | ||
* | ||
* https://github.com/twada/babel-plugin-empower-assert | ||
* https://github.com/power-assert-js/babel-plugin-empower-assert | ||
* | ||
* Copyright (c) 2016 Takuto Wada | ||
* Licensed under the MIT license. | ||
* http://twada.mit-license.org/ | ||
* https://github.com/power-assert-js/babel-plugin-empower-assert/blob/master/LICENSE | ||
*/ | ||
@@ -67,3 +67,3 @@ 'use strict'; | ||
var firstSpecifier = nodePath.get('specifiers')[0]; | ||
if (!firstSpecifier.isImportDefaultSpecifier()) { | ||
if (!(firstSpecifier.isImportDefaultSpecifier() || firstSpecifier.isImportNamespaceSpecifier())) { | ||
return; | ||
@@ -70,0 +70,0 @@ } |
{ | ||
"name": "babel-plugin-empower-assert", | ||
"description": "Babel plugin to convert assert to power-assert at compile time", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"author": { | ||
@@ -10,3 +10,3 @@ "name": "Takuto Wada", | ||
}, | ||
"bugs": "https://github.com/twada/babel-plugin-empower-assert/issues", | ||
"bugs": "https://github.com/power-assert-js/babel-plugin-empower-assert/issues", | ||
"devDependencies": { | ||
@@ -20,6 +20,7 @@ "babel-core": "^6.0.0", | ||
"CHANGELOG.md", | ||
"LICENSE", | ||
"index.js", | ||
"package.json" | ||
], | ||
"homepage": "https://github.com/twada/babel-plugin-empower-assert", | ||
"homepage": "https://github.com/power-assert-js/babel-plugin-empower-assert", | ||
"keywords": [ | ||
@@ -35,3 +36,3 @@ "assert", | ||
"type": "git", | ||
"url": "https://github.com/twada/babel-plugin-empower-assert.git" | ||
"url": "https://github.com/power-assert-js/babel-plugin-empower-assert.git" | ||
}, | ||
@@ -38,0 +39,0 @@ "scripts": { |
@@ -23,2 +23,24 @@ [![power-assert][power-assert-banner]][power-assert-url] | ||
### via [.babelrc](http://babeljs.io/docs/usage/babelrc/) (Recommended) | ||
```javascript | ||
{ | ||
"presets": [ | ||
... | ||
], | ||
"env": { | ||
"development": { | ||
"plugins": [ | ||
"babel-plugin-empower-assert" | ||
], | ||
} | ||
} | ||
} | ||
``` | ||
``` | ||
$ babel /path/to/src/target.js > /path/to/build/target.js | ||
``` | ||
### via [Babel CLI](http://babeljs.io/docs/usage/cli/) | ||
@@ -50,24 +72,2 @@ | ||
### via [.babelrc](http://babeljs.io/docs/usage/babelrc/) | ||
```javascript | ||
{ | ||
"presets": [ | ||
... | ||
], | ||
"env": { | ||
"development": { | ||
"plugins": [ | ||
"babel-plugin-empower-assert" | ||
], | ||
} | ||
} | ||
} | ||
``` | ||
``` | ||
$ babel /path/to/src/target.js > /path/to/build/target.js | ||
``` | ||
EXAMPLE | ||
@@ -120,3 +120,3 @@ --------------------------------------- | ||
--------------------------------------- | ||
Licensed under the [MIT](http://twada.mit-license.org/) license. | ||
Licensed under the [MIT](https://github.com/power-assert-js/babel-plugin-empower-assert/blob/master/LICENSE) license. | ||
@@ -127,4 +127,4 @@ | ||
[travis-url]: https://travis-ci.org/twada/babel-plugin-empower-assert | ||
[travis-image]: https://secure.travis-ci.org/twada/babel-plugin-empower-assert.svg?branch=master | ||
[travis-url]: https://travis-ci.org/power-assert-js/babel-plugin-empower-assert | ||
[travis-image]: https://secure.travis-ci.org/power-assert-js/babel-plugin-empower-assert.svg?branch=master | ||
@@ -134,3 +134,3 @@ [npm-url]: https://npmjs.org/package/babel-plugin-empower-assert | ||
[license-url]: http://twada.mit-license.org/ | ||
[license-url]: https://github.com/power-assert-js/babel-plugin-empower-assert/blob/master/LICENSE | ||
[license-image]: https://img.shields.io/badge/license-MIT-brightgreen.svg |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
9196
5