source: node_modules/semver/internal/parse-options.js@ 2d1ec46

main
Last change on this file since 2d1ec46 was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago

Initial commit

  • Property mode set to 100644
File size: 338 bytes
Line 
1'use strict'
2
3// parse out just the options we care about
4const looseOption = Object.freeze({ loose: true })
5const emptyOpts = Object.freeze({ })
6const parseOptions = options => {
7 if (!options) {
8 return emptyOpts
9 }
10
11 if (typeof options !== 'object') {
12 return looseOption
13 }
14
15 return options
16}
17module.exports = parseOptions
Note: See TracBrowser for help on using the repository browser.