MCPcopy Create free account
hub / github.com/adobe/react-spectrum / parsePackage

Function parsePackage

scripts/migrateDeps.mjs:830–832  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

828}
829
830function parsePackage(file) {
831 return file.match(/packages\/((?:@[^/]+\/)?[^/]+)\/([^/]+)/).slice(1);
832}
833
834function getRenamedSpecifier(specifier, from, importedName, relative = true) {
835 if (skipped.some(s => specifier.includes(s))) {

Callers 1

getRenamedSpecifierFunction · 0.85

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected