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

@parcel/cache

Package Overview
Dependencies
Maintainers
1
Versions
891
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/cache - npm Package Compare versions

Comparing version 2.0.0-alpha.3.1 to 2.0.0-nightly.65

8

lib/Cache.js

@@ -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 @@ }

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