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

node-sarif-builder

Package Overview
Dependencies
Maintainers
1
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-sarif-builder - npm Package Compare versions

Comparing version 2.0.4-beta202210230106.0 to 2.0.4-beta202210310950.0

2

package.json
{
"name": "node-sarif-builder",
"version": "2.0.4-beta202210230106.0",
"version": "2.0.4-beta202210310950.0",
"description": "Module to help building SARIF log files",

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

@@ -113,2 +113,4 @@ # node-sarif-builder

```javascript
import { pathToFileURL } from 'url'
// Add results

@@ -123,4 +125,4 @@ for (const issue of issues) { // issues from your linter in any format

fileUri: process.env.SARIF_URI_ABSOLUTE // Ex: src/myfile.ts
? "file:///" + fileNm.replace(/\\/g, "/")
: path.relative(process.cwd(), fileNm)
? pathToFileURL(fileNm)
: path.relative(process.cwd(), fileNm).replace(/\\/g, '/'),
};

@@ -157,2 +159,4 @@ // When possible, provide location of the issue in the source code

```javascript
import { pathToFileURL } from 'url'
function buildSarifResult(lintResult) {

@@ -187,4 +191,4 @@ // SARIF builder

fileUri: process.env.SARIF_URI_ABSOLUTE
? "file:///" + fileNm.replace(/\\/g, "/")
: path.relative(process.cwd(), fileNm)
? pathToFileURL(fileNm)
: path.relative(process.cwd(), fileNm).replace(/\\/g, '/')
};

@@ -191,0 +195,0 @@ if (err.range) {

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