@yarnpkg/fslib
Advanced tools
Comparing version 2.8.0 to 2.9.0
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
276615
7060