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

webpack-strip-block

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-strip-block - npm Package Compare versions

Comparing version 0.0.1 to 0.0.3

16

index.js

@@ -6,12 +6,16 @@ /*jslint node:true */

this.startComment = 'develblock:start';
this.endComment = 'develblock:end';
var startComment = 'develblock:start';
var endComment = 'develblock:end';
this.regexPattern = new RegExp("[\\t ]*\\/\\* ?" + this.startComment + " ?\\*\\/[\\s\\S]*?\\/\\* ?" + this.endComment + " ?\\*\\/[\\t ]*\\n?", "g");
var regexPattern = new RegExp("[\\t ]*\\/\\* ?" + startComment + " ?\\*\\/[\\s\\S]*?\\/\\* ?" + endComment + " ?\\*\\/[\\t ]*\\n?", "g");
content = content.replace(this.regexPattern, '');
content = content.replace(regexPattern, '');
this.callback(null, content);
if (this.cacheable) {
this.cacheable(true);
}
return content;
}
module.exports = StripBlockLoader;
module.exports = StripBlockLoader;
{
"name": "webpack-strip-block",
"version": "0.0.1",
"version": "0.0.3",
"description": "Webpack plugin to strip blocks of code that's only intended for development purposes",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -0,0 +0,0 @@ Webpack Strip Block

Sorry, the diff of this file is not supported yet

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