New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@good-fences/api

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@good-fences/api - npm Package Compare versions

Comparing version

to
0.0.6

tests/good_fences_integration/src/componentB/someDeep/complexComponentA/fence.json

10

good-fences.js

@@ -16,8 +16,9 @@ #! /usr/bin/env node

.option('--ignoreExternalFences', 'Ignore external fences (e.g. those in `node_modules`)', false)
.option('--ignoredDirs [pathRegexs...]', 'Directories matching given regular expressions are excluded from fence evaluation (e.g. `--ignoreDirs lib` will not evaluate source files in all dirs named `lib`', [])
.arguments('<path> [morePaths...]', 'Dirs to look for fence and source files')
program.parse(process.argv);
const options = program.opts();
const args = program.args;
const options = program.opts();
const args = program.args;
const result = goodFences({

@@ -28,3 +29,4 @@ paths: args,

errOutputPath: options.errOutputPath,
ignoreExternalFences: options.ignoreExternalFences ? 1 : 0
ignoreExternalFences: options.ignoreExternalFences ? 1 : 0,
ignoredDirs: options.ignoredDirs
});

@@ -31,0 +33,0 @@ result.forEach(r => {

@@ -7,4 +7,4 @@ /* tslint:disable */

export const enum ExternalFences {
Ignore = 0,
Include = 1
Include = 0,
Ignore = 1
}

@@ -18,2 +18,3 @@ export function goodFences(opts: GoodFencesOptions): Array<GoodFencesError>

ignoreExternalFences?: ExternalFences
ignoredDirs?: Array<string>
}

@@ -20,0 +21,0 @@ export class GoodFencesError {

8

package.json
{
"name": "@good-fences/api",
"version": "0.0.5",
"version": "0.0.6",
"main": "index.js",

@@ -38,6 +38,6 @@ "types": "index.d.ts",

"optionalDependencies": {
"@good-fences/api-win32-x64-msvc": "0.0.5",
"@good-fences/api-darwin-x64": "0.0.5",
"@good-fences/api-linux-x64-gnu": "0.0.5"
"@good-fences/api-win32-x64-msvc": "0.0.6",
"@good-fences/api-darwin-x64": "0.0.6",
"@good-fences/api-linux-x64-gnu": "0.0.6"
}
}

@@ -1,2 +0,2 @@

import componentB from '../componentB/componentB';
import componentB from '../componentB/componentB'; // INVALID IMPORT
import helperA1 from './helperA1';

@@ -3,0 +3,0 @@ import helperA2 from './helperA2';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet