babel-plugin-remote-import
Advanced tools
Comparing version 0.0.1-pre to 0.0.1-pre2
@@ -32,6 +32,6 @@ "use strict"; | ||
// Should we version this with a hash? | ||
const resourcePath = path.join(os.tmpdir(), resourceName); | ||
const resourcePath = path.resolve(path.join(os.tmpdir(), resourceName)); | ||
// Create a temporary file | ||
const fst = fs.createWriteStream(resourceName); | ||
const fst = fs.createWriteStream(resourcePath); | ||
// And replace the import declaration with the new filepath | ||
@@ -38,0 +38,0 @@ const repl = types.ImportDeclaration(p.node.specifiers, types.stringLiteral(resourcePath)); |
{ | ||
"name": "babel-plugin-remote-import", | ||
"version": "0.0.1-pre", | ||
"version": "0.0.1-pre2", | ||
"description": "Enables import of remote files", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
AI-detected potential security risk
Supply chain riskAI has determined that this package may contain potential security issues or vulnerabilities.
Found 1 instance in 1 package
4020
1