@parcel/core
Advanced tools
Comparing version 2.0.0-canary.1698 to 2.0.0-canary.1700
@@ -7,9 +7,10 @@ "use strict"; | ||
exports.toFileSystemV3 = toFileSystemV3; | ||
var _jsCallable = require("./jsCallable"); | ||
// Move to @parcel/utils or a dedicated v3 / migration package later | ||
function toFileSystemV3(fs) { | ||
return { | ||
canonicalize: path => fs.realpathSync(path), | ||
createDirectory: path => fs.mkdirp(path), | ||
cwd: () => fs.cwd(), | ||
readFile: (path, encoding) => fs.readFileSync(path, encoding ?? 'utf8'), | ||
canonicalize: (0, _jsCallable.jsCallable)(path => fs.realpathSync(path)), | ||
createDirectory: (0, _jsCallable.jsCallable)(path => fs.mkdirp(path)), | ||
cwd: (0, _jsCallable.jsCallable)(() => fs.cwd()), | ||
readFile: (0, _jsCallable.jsCallable)((path, encoding) => fs.readFileSync(path, encoding ?? 'utf8')), | ||
isFile: path => { | ||
@@ -16,0 +17,0 @@ try { |
{ | ||
"name": "@parcel/core", | ||
"version": "2.0.0-canary.1698+273191116", | ||
"version": "2.0.0-canary.1700+7c2720f9f", | ||
"license": "MIT", | ||
@@ -28,17 +28,17 @@ "publishConfig": { | ||
"@mischnic/json-sourcemap": "^0.1.0", | ||
"@parcel/cache": "2.0.0-canary.1700+273191116", | ||
"@parcel/diagnostic": "2.0.0-canary.1700+273191116", | ||
"@parcel/events": "2.0.0-canary.1700+273191116", | ||
"@parcel/feature-flags": "2.12.1-canary.3323+273191116", | ||
"@parcel/fs": "2.0.0-canary.1700+273191116", | ||
"@parcel/graph": "3.2.1-canary.3323+273191116", | ||
"@parcel/logger": "2.0.0-canary.1700+273191116", | ||
"@parcel/package-manager": "2.0.0-canary.1700+273191116", | ||
"@parcel/plugin": "2.0.0-canary.1700+273191116", | ||
"@parcel/profiler": "2.12.1-canary.3323+273191116", | ||
"@parcel/rust": "2.12.1-canary.3323+273191116", | ||
"@parcel/cache": "2.0.0-canary.1702+7c2720f9f", | ||
"@parcel/diagnostic": "2.0.0-canary.1702+7c2720f9f", | ||
"@parcel/events": "2.0.0-canary.1702+7c2720f9f", | ||
"@parcel/feature-flags": "2.12.1-canary.3325+7c2720f9f", | ||
"@parcel/fs": "2.0.0-canary.1702+7c2720f9f", | ||
"@parcel/graph": "3.2.1-canary.3325+7c2720f9f", | ||
"@parcel/logger": "2.0.0-canary.1702+7c2720f9f", | ||
"@parcel/package-manager": "2.0.0-canary.1702+7c2720f9f", | ||
"@parcel/plugin": "2.0.0-canary.1702+7c2720f9f", | ||
"@parcel/profiler": "2.12.1-canary.3325+7c2720f9f", | ||
"@parcel/rust": "2.12.1-canary.3325+7c2720f9f", | ||
"@parcel/source-map": "^2.1.1", | ||
"@parcel/types": "2.0.0-canary.1700+273191116", | ||
"@parcel/utils": "2.0.0-canary.1700+273191116", | ||
"@parcel/workers": "2.0.0-canary.1700+273191116", | ||
"@parcel/types": "2.0.0-canary.1702+7c2720f9f", | ||
"@parcel/utils": "2.0.0-canary.1702+7c2720f9f", | ||
"@parcel/workers": "2.0.0-canary.1702+7c2720f9f", | ||
"base-x": "^3.0.8", | ||
@@ -63,3 +63,3 @@ "browserslist": "^4.6.6", | ||
}, | ||
"gitHead": "27319111611e2686468bcac239c239d38eeb3f18" | ||
"gitHead": "7c2720f9f0b6fe51cfd744dff99fd6f0021014ce" | ||
} |
@@ -10,10 +10,13 @@ // @flow strict-local | ||
import {jsCallable} from './jsCallable'; | ||
// Move to @parcel/utils or a dedicated v3 / migration package later | ||
export function toFileSystemV3(fs: ClassicFileSystem): FileSystem { | ||
return { | ||
canonicalize: (path: FilePath) => fs.realpathSync(path), | ||
createDirectory: (path: FilePath) => fs.mkdirp(path), | ||
cwd: () => fs.cwd(), | ||
readFile: (path: string, encoding?: Encoding) => | ||
canonicalize: jsCallable((path: FilePath) => fs.realpathSync(path)), | ||
createDirectory: jsCallable((path: FilePath) => fs.mkdirp(path)), | ||
cwd: jsCallable(() => fs.cwd()), | ||
readFile: jsCallable((path: string, encoding?: Encoding) => | ||
fs.readFileSync(path, encoding ?? 'utf8'), | ||
), | ||
isFile: (path: string) => { | ||
@@ -20,0 +23,0 @@ try { |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
1408973
215
40539