Socket
Socket
Sign inDemoInstall

adjust-sourcemap-loader

Package Overview
Dependencies
38
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 2.0.0-alpha.1

4

lib/process/debug-message.js
'use strict';
const PACKAGE_NAME = require('../../package.json').name,
PADDING = (new Array(11)).join(' ');
var PACKAGE_NAME = require('../../package.json').name,
PADDING = (new Array(11)).join(' ');

@@ -6,0 +6,0 @@ /**

'use strict';
var fs = require('fs');
var getFieldAsFn = require('./get-field-as-fn');

@@ -49,8 +47,4 @@

if (typeof decoded !== 'string') {
return getNamedError('Decoder returned a truthy value but it is not a string file path:\n' + decoded);
return getNamedError('Decoder returned a truthy value but it is not a string:\n' + decoded);
}
// non-existant file implies error
else if (!fs.existsSync(decoded) || !fs.statSync(decoded).isFile()) {
return getNamedError('Cannot find file at absolute path:\n' + decoded);
}
// otherwise success

@@ -57,0 +51,0 @@ else {

@@ -15,3 +15,3 @@ 'use strict';

const CODECS = require('../../codec');
var CODECS = require('../../codec');

@@ -18,0 +18,0 @@ /**

{
"name": "adjust-sourcemap-loader",
"version": "1.2.0",
"version": "2.0.0-alpha.1",
"description": "Webpack loader that adjusts source maps",

@@ -5,0 +5,0 @@ "main": "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