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

@wixc3/fs-utils

Package Overview
Dependencies
Maintainers
69
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wixc3/fs-utils - npm Package Compare versions

Comparing version 12.0.3 to 12.0.4

4

dist/cjs/filepath.js

@@ -86,3 +86,5 @@ "use strict";

const importPackageJsonPath = (0, package_json_1.getPackageJsonPath)(importedFilePath, fs);
const importPackageJsonName = importPackageJsonPath ? (0, package_json_1.getPackageName)(importPackageJsonPath, fs) : undefined;
const importPackageJsonName = importPackageJsonPath
? (0, package_json_1.getPackageName)(fs.dirname(importPackageJsonPath), fs)
: undefined;
if (importPackageJsonPath === targetPackageJsonPath || !importPackageJsonPath || !importPackageJsonName) {

@@ -89,0 +91,0 @@ return getRelativeImportPath(targetFilePath, importedFilePath);

@@ -74,3 +74,5 @@ import { posix as posixPath, win32 as win32Path, extname } from '@file-services/path';

const importPackageJsonPath = getPackageJsonPath(importedFilePath, fs);
const importPackageJsonName = importPackageJsonPath ? getPackageName(importPackageJsonPath, fs) : undefined;
const importPackageJsonName = importPackageJsonPath
? getPackageName(fs.dirname(importPackageJsonPath), fs)
: undefined;
if (importPackageJsonPath === targetPackageJsonPath || !importPackageJsonPath || !importPackageJsonName) {

@@ -77,0 +79,0 @@ return getRelativeImportPath(targetFilePath, importedFilePath);

{
"name": "@wixc3/fs-utils",
"version": "12.0.3",
"version": "12.0.4",
"description": "Filesystem utils, usable in all environments",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

@@ -112,3 +112,5 @@ import { posix as posixPath, win32 as win32Path, extname } from '@file-services/path';

const importPackageJsonPath = getPackageJsonPath(importedFilePath, fs);
const importPackageJsonName = importPackageJsonPath ? getPackageName(importPackageJsonPath, fs) : undefined;
const importPackageJsonName = importPackageJsonPath
? getPackageName(fs.dirname(importPackageJsonPath), fs)
: undefined;

@@ -115,0 +117,0 @@ if (importPackageJsonPath === targetPackageJsonPath || !importPackageJsonPath || !importPackageJsonName) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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