Comparing version 3.0.0-alpha.10 to 3.0.0-alpha.11
@@ -0,11 +1,9 @@ | ||
import fs3 from 'fs-extra'; | ||
import { resolve, relative } from 'node:path'; | ||
import { switcher } from 'js-runtime'; | ||
// src/clean.ts | ||
import fs from "fs-extra"; | ||
async function clean(path) { | ||
return fs.remove(path); | ||
return fs3.remove(path); | ||
} | ||
// src/read.ts | ||
import { relative } from "node:path"; | ||
import fs2 from "fs-extra"; | ||
import { switcher } from "js-runtime"; | ||
function slash(path, platform = "linux") { | ||
@@ -32,3 +30,3 @@ const isWindowsPath = /^\\\\\?\\/.test(path); | ||
node: async (path) => { | ||
return fs2.readFile(path, { encoding: "utf8" }); | ||
return fs3.readFile(path, { encoding: "utf8" }); | ||
}, | ||
@@ -45,3 +43,3 @@ bun: async (path) => { | ||
node: (path) => { | ||
return fs2.readFileSync(path, { encoding: "utf8" }); | ||
return fs3.readFileSync(path, { encoding: "utf8" }); | ||
}, | ||
@@ -60,8 +58,3 @@ bun: () => { | ||
} | ||
// src/write.ts | ||
import { resolve } from "node:path"; | ||
import fs3 from "fs-extra"; | ||
import { switcher as switcher2 } from "js-runtime"; | ||
var writer = switcher2( | ||
var writer = switcher( | ||
{ | ||
@@ -134,10 +127,5 @@ node: async (path, data, { sanity }) => { | ||
} | ||
export { | ||
clean, | ||
getRelativePath, | ||
read, | ||
readSync, | ||
trimExtName, | ||
write | ||
}; | ||
export { clean, getRelativePath, read, readSync, trimExtName, write }; | ||
//# sourceMappingURL=index.js.map | ||
//# sourceMappingURL=index.js.map |
@@ -0,1 +1,3 @@ | ||
//# sourceMappingURL=types.js.map | ||
//# sourceMappingURL=types.js.map |
{ | ||
"name": "@kubb/fs", | ||
"version": "3.0.0-alpha.10", | ||
"version": "3.0.0-alpha.11", | ||
"description": "FileSystem helpers", | ||
@@ -56,5 +56,5 @@ "keywords": [ | ||
"tsup": "^8.2.4", | ||
"@kubb/config-biome": "3.0.0-alpha.10", | ||
"@kubb/config-ts": "3.0.0-alpha.10", | ||
"@kubb/config-tsup": "3.0.0-alpha.10" | ||
"@kubb/config-biome": "3.0.0-alpha.11", | ||
"@kubb/config-ts": "3.0.0-alpha.11", | ||
"@kubb/config-tsup": "3.0.0-alpha.11" | ||
}, | ||
@@ -61,0 +61,0 @@ "engines": { |
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
Sorry, the diff of this file is not supported yet
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
279521
8
2762