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

babel-plugin-mockable-imports

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-mockable-imports - npm Package Versions

1

1.3.1

Diff

robertknight
published 1.3.0 •

Changelog

Source

[1.3.0] - 2019-04-11

  • Support CommonJS imports with separate variable declaration and initialization (#5)
robertknight
published 1.2.0 •

Changelog

Source

[1.2.0] - 2019-04-11

  • Make CommonJS imports which use destructuring mockable when the babel-transform-object-destructuring plugin is enabled (#4)
  • Fix use of CommonJS imports if variable declarations before the last CommonJS import in the file references them (#4)
robertknight
published 1.1.0 •

Changelog

Source

[1.1.0] - 2019-04-08

  • Support mocking of CommonJS / Node-style imports (var aModule = require("a-module"))
  • Support excluding imports from certain modules from being transformed for mock-ability, via the excludeImportsFromModules option
  • Support excluding modules from certain directories from being processed by this plugin via the excludeDirs option. By default this is configured to avoid transforming tests
  • Fix CommonJS default exports (module.exports = <expression>) overwriting the $imports export
  • Use more robust logic to avoid rewriting references to imports in the initialization of the $imports variable in generated code
robertknight
published 1.0.0 •

Changelog

Source

[1.0.0] - 2019-04-07

  • Initial release
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