Also look for the CodeQL bundle at the custom GitHub AE endpoint.

This commit is contained in:
Chris Gavin 2021-02-11 15:13:22 +00:00
parent 781e3bc540
commit f8c5dacab5
No known key found for this signature in database
GPG key ID: 07F950B80C27E4DA
27 changed files with 2159 additions and 3 deletions

22
node_modules/split-on-first/index.js generated vendored Normal file
View file

@ -0,0 +1,22 @@
'use strict';
module.exports = (string, separator) => {
if (!(typeof string === 'string' && typeof separator === 'string')) {
throw new TypeError('Expected the arguments to be of type `string`');
}
if (separator === '') {
return [string];
}
const separatorIndex = string.indexOf(separator);
if (separatorIndex === -1) {
return [string];
}
return [
string.slice(0, separatorIndex),
string.slice(separatorIndex + separator.length)
];
};