Socket
Socket
Sign inDemoInstall

webpack-sources

Package Overview
Dependencies
0
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.2.1 to 3.2.2

lib/helpers/splitIntoPotentialTokens.js

1

lib/ConcatSource.js

@@ -64,2 +64,3 @@ /*

} else {
// This will not happen
buffers.push(Buffer.from(bufferOrString, "utf-8"));

@@ -66,0 +67,0 @@ }

5

lib/OriginalSource.js

@@ -11,5 +11,4 @@ /*

const Source = require("./Source");
const splitIntoPotentialTokens = require("./helpers/splitIntoPotentialTokens");
const SPLIT_REGEX = /[^\n;{}]+[;{} \r\t]*\n?|[;{} \r\t]+\n?|\n/g;
class OriginalSource extends Source {

@@ -65,3 +64,3 @@ constructor(value, name) {

// With column info we need to read all lines and split them
const matches = this._value.match(SPLIT_REGEX);
const matches = splitIntoPotentialTokens(this._value);
let line = 1;

@@ -68,0 +67,0 @@ let column = 0;

{
"name": "webpack-sources",
"version": "3.2.1",
"version": "3.2.2",
"description": "Source code handling classes for webpack",

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

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