Socket
Socket
Sign inDemoInstall

@flareapp/flare-webpack-plugin-sourcemap

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flareapp/flare-webpack-plugin-sourcemap - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

8

dist/index.js

@@ -83,2 +83,6 @@ (function (factory) {

var outputPath = compilation.getPath(compiler.outputPath, {});
// add trailing slash to outputPath
if (outputPath.charAt(outputPath.length - 1) !== '/') {
outputPath += '/';
}
if (!chunks) {

@@ -88,2 +92,3 @@ return [];

return chunks.reduce(function (sourcemaps, currentChunk) {
console.log(currentChunk);
var filename = currentChunk.files.find(function (file) { return /\.js$/.test(file); });

@@ -93,7 +98,6 @@ var sourcemapUrl = currentChunk.files.find(function (file) { return /\.js\.map$/.test(file); });

var sourcemapLocation = outputPath + util_1.removeQuery(sourcemapUrl);
/* const content = compilation.assets[sourcemapUrl].source(); */
try {
var content = fs.readFileSync(sourcemapLocation, 'utf8');
sourcemaps = sourcemaps.concat([{ filename: util_1.removeQuery(filename), content: content }]);
console.log(content);
console.log('kek:', filename, sourcemapLocation);
}

@@ -100,0 +104,0 @@ catch (error) {

{
"name": "@flareapp/flare-webpack-plugin-sourcemap",
"version": "1.0.1",
"version": "1.0.2",
"main": "dist",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -108,4 +108,9 @@ import { Compiler, DefinePlugin, compilation } from 'webpack';

const compiler = compilation.compiler;
const outputPath = compilation.getPath(compiler.outputPath, {});
let outputPath = compilation.getPath(compiler.outputPath, {});
// add trailing slash to outputPath
if (outputPath.charAt(outputPath.length - 1) !== '/') {
outputPath += '/';
}
if (!chunks) {

@@ -112,0 +117,0 @@ return [];

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