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

@yarnpkg/fslib

Package Overview
Dependencies
Maintainers
6
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yarnpkg/fslib - npm Package Compare versions

Comparing version 2.8.0 to 2.9.0

lib/NodePathFS.d.ts

6

lib/patchFs/patchFs.js

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

const util_1 = require("util");
const URLFS_1 = require("../URLFS");
const NodePathFS_1 = require("../NodePathFS");
const FileHandle_1 = require("./FileHandle");

@@ -79,4 +79,4 @@ const SYNC_IMPLEMENTATIONS = new Set([

function patchFs(patchedFs, fakeFs) {
// We wrap the `fakeFs` with a `URLFS` to add support for URL instances
fakeFs = new URLFS_1.URLFS(fakeFs);
// We wrap the `fakeFs` with a `NodePathFS` to add support for all path types supported by Node
fakeFs = new NodePathFS_1.NodePathFS(fakeFs);
const setupFn = (target, name, replacement) => {

@@ -83,0 +83,0 @@ const orig = target[name];

@@ -15,2 +15,3 @@ declare enum PathType {

dot: PortablePath;
parent: PortablePath;
};

@@ -17,0 +18,0 @@ export type Filename = string & {

@@ -15,2 +15,3 @@ "use strict";

dot: `.`,
parent: `..`,
};

@@ -17,0 +18,0 @@ exports.Filename = {

{
"name": "@yarnpkg/fslib",
"version": "2.8.0",
"version": "2.9.0",
"license": "BSD-2-Clause",

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

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