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

string-replace-webpack-plugin

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

string-replace-webpack-plugin - npm Package Compare versions

Comparing version 0.0.5 to 0.1.2

3

CHANGELOG.md

@@ -0,1 +1,4 @@

## v0.1.1
* Don't save options on the compiler for Webpack 2.2 compatibility (@CntChen)
## v0.1.0

@@ -2,0 +5,0 @@ * API docs fix (@p2227)

8

index.js

@@ -9,4 +9,7 @@ /*

function StringReplacePlugin() {}
StringReplacePlugin.REPLACE_OPTIONS = '_string-replace-plugin-options';
// export the replacement options
// so that the loader can refer to them
StringReplacePlugin.REPLACE_OPTIONS = opts;
module.exports = StringReplacePlugin;

@@ -53,5 +56,2 @@

StringReplacePlugin.prototype.apply = function(compiler) {
// add the replacement options onto the compiler options
// so that the loader can refer to them
compiler.options[StringReplacePlugin.REPLACE_OPTIONS] = opts;
};

@@ -11,3 +11,3 @@ /*

var stringReplaceOptions = this.options[StringReplacePlugin.REPLACE_OPTIONS];
var stringReplaceOptions = StringReplacePlugin.REPLACE_OPTIONS;
if(!stringReplaceOptions.hasOwnProperty(id)) {

@@ -14,0 +14,0 @@ this.emitWarning('no replacement options found for id ' + id);

{
"name": "string-replace-webpack-plugin",
"version": "0.0.5",
"version": "0.1.2",
"author": "James Andersen @jandersen78",
"description": "Replace string tokens in the contents of a file.",
"peerDependencies": {
"webpack": "^1.4.2 || >=2.2.0-rc.0"
"webpack": "^1.4.2 || >=2.2.0"
},

@@ -15,3 +15,3 @@ "dependencies": {

"mocha": "^2.2.1",
"webpack": "*"
"webpack": "^2.2.1"
},

@@ -18,0 +18,0 @@ "optionalDependencies": {

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