This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://docs.oasis-open.org/sarif/sarif/v2.1.0/os/schemas/sarif-schema-2.1.0.json", | |
"runs": [ | |
{ | |
"results": [ | |
{ | |
"locations": [ | |
{ | |
"physicalLocation": { | |
"artifactLocation": {"uri": "package.json"}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lockfileVersion: '6.1' | |
settings: | |
autoInstallPeers: true | |
excludeLinksFromLockfile: false | |
dependencies: | |
jsonwebtoken: | |
specifier: 8.5.1 | |
version: 8.5.1 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use magnus::{ | |
class, define_class, | |
encoding::{CType, RbEncoding}, | |
exception::runtime_error, | |
function, method, | |
prelude::*, | |
scan_args::get_kwargs, | |
value::Value, | |
IntoValue, KwArgs, RArray, RHash, RObject, RString, Ruby, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn remove_dir_safe(&self, output_path: &Path) -> Result<()> { | |
if !output_path.exists() { | |
return Ok(()); | |
} | |
const MAX_UNKNOWN_FILES: usize = 5; | |
let mut unknown_files = vec![]; | |
for entry in walkdir::WalkDir::new(output_path) { | |
if unknown_files.len() > MAX_UNKNOWN_FILES { | |
break; |
OlderNewer