Socket
Socket
Sign inDemoInstall

sourcemap-validator

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sourcemap-validator - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

yarn.lock

11

index.js

@@ -44,2 +44,9 @@ var validate

createBuffer = function (str, encoding) {
// [DEP0005] Buffer() is deprecated due to security and usability issues
// https://nodejs.org/api/buffer.html#buffer_new_buffer_array
// Preserving backward compatibility until dropping Node version prior to v5.10.0
return Buffer.hasOwnProperty('from') ? Buffer.from(str, encoding) : new Buffer(str, encoding);
};
// Validates an entire sourcemap

@@ -59,3 +66,3 @@ validate = function (min, map, srcs) {

map = (new Buffer(map[1], 'base64')).toString();
map = createBuffer(map[1], 'base64').toString();
min = min.replace(re, '');

@@ -141,3 +148,3 @@ }

+ 'Mapping: <%=mapRef%>'
, {
)({
expected: expected.join(' || ')

@@ -144,0 +151,0 @@ , actual: actuals.join(' || ')

14

package.json

@@ -21,3 +21,3 @@ {

],
"version": "1.1.0",
"version": "1.1.1",
"repository": {

@@ -28,6 +28,6 @@ "type": "git",

"dependencies": {
"source-map": "~0.1.x",
"lodash.foreach": "~2.3.x",
"lodash.template": "~2.3.x",
"jsesc": "~0.3.x"
"jsesc": "~0.3.x",
"lodash.foreach": "^4.5.0",
"lodash.template": "^4.5.0",
"source-map": "~0.1.x"
},

@@ -38,4 +38,4 @@ "scripts": {

"devDependencies": {
"uglify-js": "2.4.x",
"jake": "0.7.x"
"jake": "0.7.x",
"uglify-js": "2.4.x"
},

@@ -42,0 +42,0 @@ "optionalDependencies": {},

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