MCPcopy
hub / github.com/vercel/hyper / normalize

Method normalize

bin/yarn-standalone.js:38156–38169  ·  view source on GitHub ↗
(pattern)

Source from the content-addressed store, hash-verified

38154 }
38155
38156 normalize(pattern) {
38157 var _this3 = this;
38158
38159 return (0, (_asyncToGenerator2 || _load_asyncToGenerator()).default)(function* () {
38160 var _normalizePattern = (0, (_normalizePattern4 || _load_normalizePattern()).normalizePattern)(pattern);
38161
38162 const name = _normalizePattern.name,
38163 range = _normalizePattern.range,
38164 hasVersion = _normalizePattern.hasVersion;
38165
38166 const newRange = yield _this3.normalizeRange(range);
38167 return { name, range: newRange, hasVersion };
38168 })();
38169 }
38170
38171 /**
38172 * Construct an exotic resolver instance with the input `ExoticResolver` and `range`.

Callers 6

findVersionOnRegistryMethod · 0.80
findWorkspaceRootMethod · 0.80
isValidBinFunction · 0.80
yarn-standalone.jsFile · 0.80
humaniseLocationFunction · 0.80

Calls 3

_load_asyncToGeneratorFunction · 0.85
_load_normalizePatternFunction · 0.85
normalizeRangeMethod · 0.80

Tested by

no test coverage detected