@stream44.studio/encapsulate 0.4.0-rc.30 → 0.4.0-rc.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -981,6 +981,11 @@ CapsuleSpineContract['#'] = '@stream44.studio/encapsulate/spine-contracts/Capsul
|
|
|
981
981
|
const npmUriCache = new Map<string, string | null>()
|
|
982
982
|
|
|
983
983
|
function constructNpmUriSync(absoluteFilepath: string): string | null {
|
|
984
|
+
// Only process absolute paths — skip V8 internal markers like "native", "node:*", etc.
|
|
985
|
+
if (!absoluteFilepath.startsWith('/')) {
|
|
986
|
+
return null
|
|
987
|
+
}
|
|
988
|
+
|
|
984
989
|
// Check for /node_modules/ in the path — use the last occurrence to handle nested node_modules
|
|
985
990
|
const nodeModulesMarker = '/node_modules/'
|
|
986
991
|
const lastIdx = absoluteFilepath.lastIndexOf(nodeModulesMarker)
|