4d8d86988c7f81e17fc829c13142849015e3374a7b24a22bac21e95c38f4493b.json 1.4 KB

1
  1. {"ast":null,"code":"// parse out just the options we care about\nconst looseOption = Object.freeze({\n loose: true\n});\nconst emptyOpts = Object.freeze({});\nconst parseOptions = options => {\n if (!options) {\n return emptyOpts;\n }\n if (typeof options !== 'object') {\n return looseOption;\n }\n return options;\n};\nmodule.exports = parseOptions;","map":{"version":3,"names":["looseOption","Object","freeze","loose","emptyOpts","parseOptions","options","module","exports"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/semver/internal/parse-options.js"],"sourcesContent":["// parse out just the options we care about\nconst looseOption = Object.freeze({ loose: true })\nconst emptyOpts = Object.freeze({ })\nconst parseOptions = options => {\n if (!options) {\n return emptyOpts\n }\n\n if (typeof options !== 'object') {\n return looseOption\n }\n\n return options\n}\nmodule.exports = parseOptions\n"],"mappings":"AAAA;AACA,MAAMA,WAAW,GAAGC,MAAM,CAACC,MAAM,CAAC;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAClD,MAAMC,SAAS,GAAGH,MAAM,CAACC,MAAM,CAAC,CAAE,CAAC,CAAC;AACpC,MAAMG,YAAY,GAAGC,OAAO,IAAI;EAC9B,IAAI,CAACA,OAAO,EAAE;IACZ,OAAOF,SAAS;EAClB;EAEA,IAAI,OAAOE,OAAO,KAAK,QAAQ,EAAE;IAC/B,OAAON,WAAW;EACpB;EAEA,OAAOM,OAAO;AAChB,CAAC;AACDC,MAAM,CAACC,OAAO,GAAGH,YAAY","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}