Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-empower-assert

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-empower-assert - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

8

CHANGELOG.md

@@ -0,1 +1,9 @@

## [1.2.0](https://github.com/twada/babel-plugin-empower-assert/releases/tag/v1.2.0) (2016-04-12)
#### Features
* support ImportDeclaration ([a8c5326f](https://github.com/twada/babel-plugin-empower-assert/commit/a8c5326f098d49d25517995346b8818b72348046))
## [1.1.0](https://github.com/twada/babel-plugin-empower-assert/releases/tag/v1.1.0) (2016-04-12)

@@ -2,0 +10,0 @@

@@ -58,2 +58,19 @@ /**

}
},
ImportDeclaration: {
enter: function (nodePath, pluginPass) {
var source = nodePath.get('source');
if (!(source.equals('value', 'assert'))) {
return;
}
var firstSpecifier = nodePath.get('specifiers')[0];
if (!firstSpecifier.isImportDefaultSpecifier()) {
return;
}
var local = firstSpecifier.get('local');
if (!(local.equals('name', 'assert'))) {
return;
}
source.set('value', 'power-assert');
}
}

@@ -60,0 +77,0 @@ }

2

package.json
{
"name": "babel-plugin-empower-assert",
"description": "Babel plugin to convert assert to power-assert at compile time",
"version": "1.1.0",
"version": "1.2.0",
"author": {

@@ -6,0 +6,0 @@ "name": "Takuto Wada",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc