Socket
Socket
Sign inDemoInstall

tsconfig-paths

Package Overview
Dependencies
3
Maintainers
13
Versions
50
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.0 to 4.1.1

6

CHANGELOG.md

@@ -10,2 +10,8 @@ # Change Log

## [4.1.1] - 2022-11-30
### Fixed
- Skip stat call / throwing an exception when source files don't exist. See PR [#225](https://github.com/dividab/tsconfig-paths/pull/225). Thanks to [@robstolarz](https://github.com/robstolarz) for this PR!
## [4.1.0] - 2022-08-06

@@ -12,0 +18,0 @@

4

lib/filesystem.js

@@ -6,2 +6,6 @@ "use strict";

function fileExistsSync(path) {
// If the file doesn't exist, avoid throwing an exception over the native barrier for every miss
if (!fs.existsSync(path)) {
return false;
}
try {

@@ -8,0 +12,0 @@ var stats = fs.statSync(path);

2

package.json
{
"name": "tsconfig-paths",
"version": "4.1.0",
"version": "4.1.1",
"description": "Load node modules according to tsconfig paths, in run-time or via API.",

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

@@ -36,2 +36,6 @@ import * as fs from "fs";

export function fileExistsSync(path: string): boolean {
// If the file doesn't exist, avoid throwing an exception over the native barrier for every miss
if (!fs.existsSync(path)) {
return false;
}
try {

@@ -38,0 +42,0 @@ const stats = fs.statSync(path);

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc