Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

paths.macro

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paths.macro - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

7

macro.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc