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

karma-common-js

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

karma-common-js - npm Package Versions

0.2.2

Diff

Changelog

Source

v0.2.2

Fixes

  • Don't throw a preprocess error for things like require('cry' + 'pto'). Instead, throw a runtime error which can be caught to detect if the module is running in Node or not.
anders.ekdahl
published 0.2.1 •

Changelog

Source

v0.2.1

Fixes

  • Replace all instances of new Buffer() with new require('buffer').Buffer() to make up for not having a global Buffer constructor.
anders.ekdahl
published 0.2.0 •

Changelog

Source

v0.2.0

Features

  • Make it possible to specify patterns to exclude transforms for different files. Useful if you only want to apply transforms on your files and not files in node_modules.
anders.ekdahl
published 0.1.3 •

Changelog

Source

v0.1.3

Fixes

  • Do not replace the variable name in a require statement. With var module = require('module'); the variable name module was replaced since it had the same name as the required module.
anders.ekdahl
published 0.1.2 •

Changelog

Source

v0.1.2

Fixes

  • No longer try to rewrite require calls inside comments (this made it break with React)
  • Add a line break in the last line of the wrapped module (this broke if the last line of a module was a comment)
  • Add process.env as an empty object
anders.ekdahl
published 0.1.1 •

anders.ekdahl
published 0.1.0 •

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