paths.macro
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -9,3 +9,4 @@ const path = require('path'); | ||
const getPaths = f => { | ||
const _fileAbsolute = toUnix(path.resolve(f)); | ||
const _osDependentAbsolute = path.resolve(f); | ||
const _fileAbsolute = toUnix(_osDependentAbsolute); | ||
const _file = path.basename(_fileAbsolute); | ||
@@ -16,4 +17,4 @@ const _extention = path.extname(_fileAbsolute); | ||
const _npmRoot = toUnix(findRootAttempt(_fileAbsolute)); | ||
const _gitRoot = toUnix(findRootAttempt(_fileAbsolute, (dir) => fs.existsSync(path.resolve(dir, '.git')))); | ||
const _npmRoot = toUnix(findRootAttempt(_osDependentAbsolute)); | ||
const _gitRoot = toUnix(findRootAttempt(_osDependentAbsolute, (dir) => fs.existsSync(path.resolve(dir, '.git')))); | ||
const _wd = toUnix(process.cwd()); | ||
@@ -20,0 +21,0 @@ |
{ | ||
"name": "paths.macro", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Babel plugin that returns an object containing paths like __dirname and __filename as static values", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
101948
64
0