Socket
Socket
Sign inDemoInstall

inject-loader

Package Overview
Dependencies
410
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0-beta2 to 3.0.0-beta3

dist/createRequireStringRegex.js

30

package.json
{
"name": "inject-loader",
"version": "3.0.0-beta2",
"version": "3.0.0-beta3",
"description": "A Webpack loader for injecting code into modules via their dependancies",
"main": "lib/index.js",
"main": "dist/index.js",
"scripts": {
"build": "./node_modules/.bin/babel -d lib src/",
"pretest": "npm run build",
"test": "mocha --compilers coffee:coffee-script/register",
"build": "babel -d dist src",
"test": "flow && jest && ./script/integration_test",
"prepublish": "npm run build"

@@ -14,3 +13,3 @@ },

"*.md",
"lib"
"dist"
],

@@ -24,2 +23,3 @@ "author": "Justin Morris <desk@pixelbloom.com> (http://pixelbloom.com)",

"dependencies": {
"karma-phantomjs-launcher": "^1.0.2",
"loader-utils": "^0.2.3"

@@ -29,8 +29,18 @@ },

"babel-cli": "^6.14.0",
"babel-plugin-transform-flow-strip-types": "^6.18.0",
"babel-preset-es2015": "^6.14.0",
"chai": "^1.9.2",
"coffee-script": "^1.8.0",
"mocha": "^1.21.4",
"sinon": "^1.10.3"
"flow-bin": "^0.36.0",
"jest": "^17.0.3"
},
"peerDependencies": {
"webpack": "^1 || ^2.2.0-rc"
},
"jest": {
"bail": true,
"notify": true,
"testPathIgnorePatterns": [
"/node_modules/",
"/example/"
]
},
"keywords": [

@@ -37,0 +47,0 @@ "webpack",

# inject-loader
[![Build Status](https://travis-ci.org/plasticine/inject-loader.svg?branch=master)](https://travis-ci.org/plasticine/inject-loader) [![Dependency Status](https://gemnasium.com/plasticine/inject-loader.svg)](https://gemnasium.com/plasticine/inject-loader) [![NPM version](https://badge.fury.io/js/inject-loader.svg)](http://badge.fury.io/js/inject-loader)
[![build status](https://img.shields.io/travis/plasticine/inject-loader/master.svg?style=flat-square)](https://travis-ci.org/plasticine/inject-loader) [![Gemnasium](https://img.shields.io/gemnasium/plasticine/inject-loader.svg?style=flat-square)](https://gemnasium.com/plasticine/inject-loader) [![npm version](https://img.shields.io/npm/v/inject-loader.svg?style=flat-square)](https://www.npmjs.com/package/inject-loader) [![npm downloads](https://img.shields.io/npm/dm/inject-loader.svg?style=flat-square)](https://www.npmjs.com/package/inject-loader)
**💉👾 A Webpack loader for injecting code into modules via their dependencies**
**A Webpack loader for injecting code into modules via their dependencies**
This is particularly useful for writing tests where mocking things inside your module-under-test is sometimes necessary before execution.

@@ -9,0 +8,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc