@bbc/exposure-scanning
Advanced tools
Comparing version 0.1.0-alpha.1 to 0.1.0-alpha.2
@@ -6,3 +6,4 @@ # Exposure Scanning Changelog | ||
|---------|-------------| | ||
| 0.1.0-alpha.2 | [PR#4538](https://github.com/bbc/psammead/pull/4538) Refactor dir structure | | ||
| 0.1.0-alpha.1 | [PR#4526](https://github.com/bbc/psammead/pull/4526) Initialise package | | ||
@@ -8,9 +8,9 @@ "use strict"; | ||
var _index = _interopRequireDefault(require("../args/index")); | ||
var _args4 = _interopRequireDefault(require("./args")); | ||
var _index2 = require("../fetch/index"); | ||
var _fetch = require("./fetch"); | ||
var _index3 = require("../scan/index"); | ||
var _scan = require("./scan"); | ||
var _index4 = require("../patch/index"); | ||
var _patch = require("./patch"); | ||
@@ -31,3 +31,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
_context.next = 2; | ||
return (0, _index2.fetchPr)(reqBody); | ||
return (0, _fetch.fetchPr)(reqBody); | ||
@@ -37,3 +37,3 @@ case 2: | ||
_context.next = 5; | ||
return (0, _index3.scanPr)(pr, regex); | ||
return (0, _scan.scanPr)(pr, regex); | ||
@@ -49,3 +49,3 @@ case 5: | ||
_context.next = 9; | ||
return (0, _index4.patchPr)(reqBody, scannedPr); | ||
return (0, _patch.patchPr)(reqBody, scannedPr); | ||
@@ -76,3 +76,3 @@ case 9: | ||
_context2.next = 2; | ||
return (0, _index2.fetchIssue)(reqBody); | ||
return (0, _fetch.fetchIssue)(reqBody); | ||
@@ -82,3 +82,3 @@ case 2: | ||
_context2.next = 5; | ||
return (0, _index3.scanIssue)(issue, regex); | ||
return (0, _scan.scanIssue)(issue, regex); | ||
@@ -94,3 +94,3 @@ case 5: | ||
_context2.next = 9; | ||
return (0, _index4.patchIssue)(reqBody, scannedIssue); | ||
return (0, _patch.patchIssue)(reqBody, scannedIssue); | ||
@@ -121,3 +121,3 @@ case 9: | ||
case 0: | ||
_parseArgs = (0, _index.default)(process.argv), repo = _parseArgs.repo, flag = _parseArgs.flag, id = _parseArgs.id, regexString = _parseArgs.regexString; | ||
_parseArgs = (0, _args4.default)(process.argv), repo = _parseArgs.repo, flag = _parseArgs.flag, id = _parseArgs.id, regexString = _parseArgs.regexString; | ||
regex = new RegExp(regexString, 'gi'); | ||
@@ -124,0 +124,0 @@ reqBody = { |
@@ -5,6 +5,6 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } | ||
import parseArgs from '../args/index'; | ||
import { fetchPr, fetchIssue } from '../fetch/index'; | ||
import { scanPr, scanIssue } from '../scan/index'; | ||
import { patchPr, patchIssue } from '../patch/index'; | ||
import parseArgs from './args'; | ||
import { fetchPr, fetchIssue } from './fetch'; | ||
import { scanPr, scanIssue } from './scan'; | ||
import { patchPr, patchIssue } from './patch'; | ||
@@ -11,0 +11,0 @@ var redactPr = /*#__PURE__*/function () { |
{ | ||
"name": "@bbc/exposure-scanning", | ||
"version": "0.1.0-alpha.1", | ||
"version": "0.1.0-alpha.2", | ||
"main": "dist/index.js", | ||
"module": "esm/index.js", | ||
"sideEffects": false, | ||
"description": "A utility that scans PRs or issues for exposures.", | ||
@@ -5,0 +8,0 @@ "repository": { |
@@ -1,5 +0,5 @@ | ||
import parseArgs from '../args/index'; | ||
import { fetchPr, fetchIssue } from '../fetch/index'; | ||
import { scanPr, scanIssue } from '../scan/index'; | ||
import { patchPr, patchIssue } from '../patch/index'; | ||
import parseArgs from './args'; | ||
import { fetchPr, fetchIssue } from './fetch'; | ||
import { scanPr, scanIssue } from './scan'; | ||
import { patchPr, patchIssue } from './patch'; | ||
@@ -6,0 +6,0 @@ const redactPr = async (reqBody, regex) => { |
@@ -1,9 +0,9 @@ | ||
import parseArgs from '../args/index'; | ||
import { fetchPr, fetchIssue } from '../fetch/index'; | ||
import { patchPr, patchIssue } from '../patch/index'; | ||
import scanExposures from './index'; | ||
import parseArgs from './args'; | ||
import { fetchPr, fetchIssue } from './fetch'; | ||
import { patchPr, patchIssue } from './patch'; | ||
import scanExposures from '.'; | ||
jest.mock('../args/index.js'); | ||
jest.mock('../fetch/index.js'); | ||
jest.mock('../patch/index.js'); // Please keep this mock so that you don't accidentally edit a PR or issue by running these tests. | ||
jest.mock('./args'); | ||
jest.mock('./fetch'); | ||
jest.mock('./patch'); // Please keep this mock so that you don't accidentally edit a PR or issue by running these tests. | ||
@@ -10,0 +10,0 @@ describe('Expected PR scanning', () => { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
79226
23
2004
4
1