@parcel/cache
Advanced tools
Comparing version 2.0.0-alpha.3.1 to 2.0.0-nightly.65
@@ -13,3 +13,3 @@ "use strict"; | ||
var _utils = require("@parcel/utils"); | ||
var _core = require("@parcel/core"); | ||
@@ -62,3 +62,3 @@ var _package = _interopRequireDefault(require("../package.json")); | ||
let data = await this.fs.readFile(this._getCachePath(key)); | ||
return (0, _utils.deserialize)(data); | ||
return (0, _core.deserialize)(data); | ||
} catch (err) { | ||
@@ -77,3 +77,3 @@ if (err.code === 'ENOENT') { | ||
let data = (0, _utils.serialize)(value); | ||
let data = (0, _core.serialize)(value); | ||
await this.fs.writeFile(blobPath, data); | ||
@@ -104,2 +104,2 @@ return key; | ||
(0, _utils.registerSerializableClass)(`${_package.default.version}:Cache`, Cache); | ||
(0, _core.registerSerializableClass)(`${_package.default.version}:Cache`, Cache); |
{ | ||
"name": "@parcel/cache", | ||
"version": "2.0.0-alpha.3.1", | ||
"version": "2.0.0-nightly.65+53632227", | ||
"license": "MIT", | ||
@@ -18,6 +18,9 @@ "publishConfig": { | ||
"dependencies": { | ||
"@parcel/logger": "^2.0.0-alpha.3.1", | ||
"@parcel/utils": "^2.0.0-alpha.3.1" | ||
"@parcel/logger": "^2.0.0-nightly.65+53632227", | ||
"@parcel/utils": "^2.0.0-nightly.65+53632227" | ||
}, | ||
"gitHead": "291f3e6815a1a857a6165fafb1691ceeb878b8f6" | ||
"peerDependencies": { | ||
"@parcel/core": "^2.0.0-alpha.3.1" | ||
}, | ||
"gitHead": "53632227bab3382066ed9c40456f54af9fa5614c" | ||
} |
@@ -10,3 +10,3 @@ // @flow strict-local | ||
import logger from '@parcel/logger'; | ||
import {serialize, deserialize, registerSerializableClass} from '@parcel/utils'; | ||
import {serialize, deserialize, registerSerializableClass} from '@parcel/core'; | ||
// $FlowFixMe this is untyped | ||
@@ -28,3 +28,3 @@ import packageJson from '../package.json'; | ||
cacheId.slice(0, 2), | ||
cacheId.slice(2) + extension | ||
cacheId.slice(2) + extension, | ||
); | ||
@@ -87,3 +87,3 @@ } | ||
fs: FileSystem, | ||
dir: FilePath | ||
dir: FilePath, | ||
): Promise<void> { | ||
@@ -98,3 +98,3 @@ // First, create the main cache directory if necessary. | ||
dirPromises.push( | ||
fs.mkdirp(path.join(dir, ('00' + i.toString(16)).slice(-2))) | ||
fs.mkdirp(path.join(dir, ('00' + i.toString(16)).slice(-2))), | ||
); | ||
@@ -101,0 +101,0 @@ } |
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
7103
3
4
158
1
+ Added@lmdb/lmdb-darwin-arm64@2.8.5(transitive)
+ Added@lmdb/lmdb-darwin-x64@2.8.5(transitive)
+ Added@lmdb/lmdb-linux-arm@2.8.5(transitive)
+ Added@lmdb/lmdb-linux-arm64@2.8.5(transitive)
+ Added@lmdb/lmdb-linux-x64@2.8.5(transitive)
+ Added@lmdb/lmdb-win32-x64@2.8.5(transitive)
+ Added@msgpackr-extract/msgpackr-extract-darwin-arm64@3.0.3(transitive)
+ Added@msgpackr-extract/msgpackr-extract-darwin-x64@3.0.3(transitive)
+ Added@msgpackr-extract/msgpackr-extract-linux-arm@3.0.3(transitive)
+ Added@msgpackr-extract/msgpackr-extract-linux-arm64@3.0.3(transitive)
+ Added@msgpackr-extract/msgpackr-extract-linux-x64@3.0.3(transitive)
+ Added@parcel/cache@2.13.2(transitive)
+ Added@parcel/core@2.13.2(transitive)
+ Added@parcel/feature-flags@2.13.2(transitive)
+ Added@parcel/fs@2.13.2(transitive)
+ Added@parcel/graph@3.3.2(transitive)
+ Added@parcel/node-resolver-core@3.4.2(transitive)
+ Added@parcel/package-manager@2.13.2(transitive)
+ Added@parcel/plugin@2.13.2(transitive)
+ Added@parcel/profiler@2.13.2(transitive)
+ Added@parcel/types@2.13.2(transitive)
+ Added@parcel/types-internal@2.13.2(transitive)
+ Added@parcel/watcher@2.5.0(transitive)
+ Added@parcel/watcher-android-arm64@2.5.0(transitive)
+ Added@parcel/watcher-darwin-arm64@2.5.0(transitive)
+ Added@parcel/watcher-darwin-x64@2.5.0(transitive)
+ Added@parcel/watcher-freebsd-x64@2.5.0(transitive)
+ Added@parcel/watcher-linux-arm-glibc@2.5.0(transitive)
+ Added@parcel/watcher-linux-arm-musl@2.5.0(transitive)
+ Added@parcel/watcher-linux-arm64-glibc@2.5.0(transitive)
+ Added@parcel/watcher-linux-arm64-musl@2.5.0(transitive)
+ Added@parcel/watcher-linux-x64-glibc@2.5.0(transitive)
+ Added@parcel/watcher-linux-x64-musl@2.5.0(transitive)
+ Added@parcel/watcher-win32-arm64@2.5.0(transitive)
+ Added@parcel/watcher-win32-ia32@2.5.0(transitive)
+ Added@parcel/watcher-win32-x64@2.5.0(transitive)
+ Added@parcel/workers@2.13.2(transitive)
+ Added@swc/core@1.10.1(transitive)
+ Added@swc/core-darwin-arm64@1.10.1(transitive)
+ Added@swc/core-darwin-x64@1.10.1(transitive)
+ Added@swc/core-linux-arm-gnueabihf@1.10.1(transitive)
+ Added@swc/core-linux-arm64-gnu@1.10.1(transitive)
+ Added@swc/core-linux-arm64-musl@1.10.1(transitive)
+ Added@swc/core-linux-x64-gnu@1.10.1(transitive)
+ Added@swc/core-linux-x64-musl@1.10.1(transitive)
+ Added@swc/core-win32-arm64-msvc@1.10.1(transitive)
+ Added@swc/core-win32-ia32-msvc@1.10.1(transitive)
+ Added@swc/core-win32-x64-msvc@1.10.1(transitive)
+ Added@swc/counter@0.1.3(transitive)
+ Added@swc/types@0.1.17(transitive)
+ Addedbase-x@3.0.10(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedbrowserslist@4.24.2(transitive)
+ Addedcaniuse-lite@1.0.30001688(transitive)
+ Addedchrome-trace-event@1.0.4(transitive)
+ Addedclone@2.1.2(transitive)
+ Addeddetect-libc@2.0.3(transitive)
+ Addeddotenv@16.4.7(transitive)
+ Addeddotenv-expand@11.0.7(transitive)
+ Addedelectron-to-chromium@1.5.73(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedlmdb@2.8.5(transitive)
+ Addedmicromatch@4.0.8(transitive)
+ Addedmsgpackr@1.11.2(transitive)
+ Addedmsgpackr-extract@3.0.3(transitive)
+ Addednode-addon-api@6.1.07.1.1(transitive)
+ Addednode-gyp-build-optional-packages@5.1.15.2.2(transitive)
+ Addednode-releases@2.0.19(transitive)
+ Addedordered-binary@1.5.3(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedupdate-browserslist-db@1.1.1(transitive)
+ Addedutility-types@3.11.0(transitive)
+ Addedweak-lru-cache@1.2.2(transitive)