@embroider/shared-internals
Advanced tools
Comparing version 2.6.1-unstable.1ea1c86 to 2.6.1-unstable.216c23b
{ | ||
"name": "@embroider/shared-internals", | ||
"version": "2.6.1-unstable.1ea1c86", | ||
"version": "2.6.1-unstable.216c23b", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Utilities shared among the other embroider packages", |
@@ -9,4 +9,4 @@ import Package from './package'; | ||
get(packageRoot: string): Package; | ||
ownerOfFile(filename: string): Package | undefined; | ||
ownerOfFile(filenameInput: string): Package | undefined; | ||
static shared(identifier: string, appRoot: string): PackageCache; | ||
} |
@@ -65,3 +65,8 @@ "use strict"; | ||
} | ||
ownerOfFile(filename) { | ||
ownerOfFile(filenameInput) { | ||
let filename = filenameInput; | ||
const virtualPrefix = 'embroider_virtual:'; | ||
if (filename.includes(virtualPrefix)) { | ||
filename = filename.replace(/^.*embroider_virtual:/, ''); | ||
} | ||
let segments = filename.replace(/\\/g, '/').split(path_1.posix.sep); | ||
@@ -68,0 +73,0 @@ // first we look through our cached packages for any that are rooted right |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
158151
1579