Socket
Socket
Sign inDemoInstall

dedupe-string-plugin

Package Overview
Dependencies
5
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

6

package.json
{
"name": "dedupe-string-plugin",
"version": "0.0.2",
"version": "0.0.3",
"description": "Deduplicate strings in javascript assets",

@@ -39,3 +39,3 @@ "main": "index.js",

"rollup-plugin-typescript": "^0.8.1",
"tslint": "^4.5.1",
"tslint": "^5.2.0",
"typescript": "^2.2.1",

@@ -45,5 +45,5 @@ "webpack": "^2.2.1"

"dependencies": {
"de-dupe": "0.0.12",
"de-dupe": "0.0.14",
"webpack-sources": "^0.2.0"
}
}

@@ -7,6 +7,4 @@ import Dedupe, { DedupeOptions } from 'de-dupe';

export interface DedupeStringPluginOptions extends DedupeOptions {
export type DedupeStringPluginOptions = DedupeOptions;
}
export default class StripWhitespacePlugin {

@@ -26,3 +24,3 @@ private dedupe: Dedupe;

compiler.plugin('compilation', (compilation: any) => {
compilation.plugin('optimize-chunk-assets', (chunks: any, callback: Function) => {
compilation.plugin('optimize-chunk-assets', (chunks: any, callback: () => void) => {
chunks.forEach((chunk: any) => {

@@ -50,3 +48,3 @@ chunk.files

// perform the replacements
for (let replacement of result.replacements) {
for (const replacement of result.replacements) {
replaceSource.replace(replacement.start, replacement.end, replacement.text);

@@ -53,0 +51,0 @@ }

@@ -9,5 +9,5 @@ !function(){var _="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";/******/ (function(modules) { // webpackBootstrap

/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/
/******/ }
/******/ // Create a new module (and put it into the cache)

@@ -14,0 +14,0 @@ /******/ var module = installedModules[moduleId] = {

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