Permalink
Cannot retrieve contributors at this time
15 lines (13 sloc)
324 Bytes
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/node_modules/semver/internal/parse-options.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
// parse out just the options we care about | |
const looseOption = Object.freeze({ loose: true }) | |
const emptyOpts = Object.freeze({ }) | |
const parseOptions = options => { | |
if (!options) { | |
return emptyOpts | |
} | |
if (typeof options !== 'object') { | |
return looseOption | |
} | |
return options | |
} | |
module.exports = parseOptions |