audit-resolve-core
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "audit-resolve-core", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Core modules for audit-resolve.json file and logic of its processing", | ||
@@ -33,4 +33,3 @@ "scripts": { | ||
}, | ||
"devDependencies": { | ||
} | ||
"devDependencies": {} | ||
} |
const fs = require('fs') | ||
const argv = require('../arguments').get() | ||
@@ -6,4 +7,8 @@ module.exports = { | ||
console.log('>>>mock get audit') | ||
return Promise.resolve(fs.readFileSync(`mock-audit.json`)) | ||
if (typeof argv.mock === 'string') { | ||
return Promise.resolve(fs.readFileSync(argv.mock)) | ||
} else { | ||
return Promise.resolve(fs.readFileSync('mock-audit.json')) | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15182
434