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

@tryghost/root-utils

Package Overview
Dependencies
Maintainers
15
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tryghost/root-utils - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

14

lib/root-utils.js

@@ -55,11 +55,13 @@ const fs = require('fs');

exports.getGhostRoot = function getGhostRoot() {
let workingDirectory = process.cwd();
const currentFolder = path.join(workingDirectory, 'current');
try {
let workingDirectory = process.cwd();
const currentFolder = path.join(workingDirectory, 'current');
const folderInfo = fs.statSync(currentFolder, {
throwIfNoEntry: false
});
if (folderInfo && folderInfo.isDirectory()) {
const folderInfo = fs.statSync(currentFolder);
if (folderInfo.isDirectory()) {
workingDirectory = currentFolder;
}
} catch (err) {
// No-op - continue with normal working directory
}
try {
return findRoot(workingDirectory);

@@ -66,0 +68,0 @@ } catch (err) {

{
"name": "@tryghost/root-utils",
"version": "0.2.0",
"version": "0.2.1",
"repository": "https://github.com/TryGhost/framework/tree/main/packages/root-utils",

@@ -30,3 +30,3 @@ "author": "Ghost Foundation",

},
"gitHead": "5a96bb6d0012a4a636dd3a643b1d08eaf7d49de5"
"gitHead": "ed82954e5c5b99171c998791405159b6822a5ce8"
}
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