Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gardr-validator

Package Overview
Dependencies
Maintainers
4
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gardr-validator - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

15

lib/validate.js

@@ -7,2 +7,5 @@ 'use strict';

var RE_LAST_URL_SECTION = /([^\/]+)\/?$/i;
var RE_QUERY = /\?.*$/;
function formatTraceData(output, data){

@@ -29,2 +32,14 @@ if (data) {

}
if (!entry.file && entry.sourceURL){
var match = entry.sourceURL.replace(RE_QUERY, '').match(RE_LAST_URL_SECTION);
if (match && match[1]){
entry.file = match[1];
}
if (!entry.file){
entry.file = path.dirname(entry.sourceURL);
}
}
return true;

@@ -31,0 +46,0 @@ }

4

package.json
{
"name": "gardr-validator",
"version": "0.1.3",
"version": "0.1.4",
"main": "index.js",

@@ -31,3 +31,3 @@ "author": {

"referee": "~1.0.2",
"coveralls": "~2.6.1",
"coveralls": "~2.8.0",
"istanbul": "~0.2.3",

@@ -34,0 +34,0 @@ "jshint": "~2.4.1"

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