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

@parcel/core

Package Overview
Dependencies
Maintainers
1
Versions
888
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parcel/core - npm Package Compare versions

Comparing version 2.0.0-canary.1613 to 2.0.0-canary.1614

test/RequestTrackerCacheInfo.test.js

1

lib/RequestTracker.js

@@ -875,2 +875,3 @@ "use strict";

// Delete an existing request graph cache, to prevent invalid states
await (0, _RequestTrackerCacheInfo.clearRequestTrackerCacheInfo)(this.options.cache);
await this.options.cache.deleteLargeBlob(requestGraphKey);

@@ -877,0 +878,0 @@ let total = 0;

@@ -6,2 +6,3 @@ "use strict";

});
exports.clearRequestTrackerCacheInfo = clearRequestTrackerCacheInfo;
exports.getRequestTrackerCacheInfo = getRequestTrackerCacheInfo;

@@ -57,2 +58,11 @@ exports.storeRequestTrackerCacheInfo = storeRequestTrackerCacheInfo;

await cache.set(toFsCacheKey('RequestTrackerCacheInfo'), requestTrackerCacheInfo);
}
/**
* When starting a build the request tracker cache keys are cleared.
* This prevents dangling references from being present if the process exits
* while writing the cache.
*/
async function clearRequestTrackerCacheInfo(cache) {
await cache.set(toFsCacheKey('RequestTrackerCacheInfo'), null);
}

32

package.json
{
"name": "@parcel/core",
"version": "2.0.0-canary.1613+2628e7b8a",
"version": "2.0.0-canary.1614+5705e4059",
"license": "MIT",

@@ -28,17 +28,17 @@ "publishConfig": {

"@mischnic/json-sourcemap": "^0.1.0",
"@parcel/cache": "2.0.0-canary.1615+2628e7b8a",
"@parcel/diagnostic": "2.0.0-canary.1615+2628e7b8a",
"@parcel/events": "2.0.0-canary.1615+2628e7b8a",
"@parcel/feature-flags": "2.12.1-canary.3238+2628e7b8a",
"@parcel/fs": "2.0.0-canary.1615+2628e7b8a",
"@parcel/graph": "3.2.1-canary.3238+2628e7b8a",
"@parcel/logger": "2.0.0-canary.1615+2628e7b8a",
"@parcel/package-manager": "2.0.0-canary.1615+2628e7b8a",
"@parcel/plugin": "2.0.0-canary.1615+2628e7b8a",
"@parcel/profiler": "2.12.1-canary.3238+2628e7b8a",
"@parcel/rust": "2.12.1-canary.3238+2628e7b8a",
"@parcel/cache": "2.0.0-canary.1616+5705e4059",
"@parcel/diagnostic": "2.0.0-canary.1616+5705e4059",
"@parcel/events": "2.0.0-canary.1616+5705e4059",
"@parcel/feature-flags": "2.12.1-canary.3239+5705e4059",
"@parcel/fs": "2.0.0-canary.1616+5705e4059",
"@parcel/graph": "3.2.1-canary.3239+5705e4059",
"@parcel/logger": "2.0.0-canary.1616+5705e4059",
"@parcel/package-manager": "2.0.0-canary.1616+5705e4059",
"@parcel/plugin": "2.0.0-canary.1616+5705e4059",
"@parcel/profiler": "2.12.1-canary.3239+5705e4059",
"@parcel/rust": "2.12.1-canary.3239+5705e4059",
"@parcel/source-map": "^2.1.1",
"@parcel/types": "2.0.0-canary.1615+2628e7b8a",
"@parcel/utils": "2.0.0-canary.1615+2628e7b8a",
"@parcel/workers": "2.0.0-canary.1615+2628e7b8a",
"@parcel/types": "2.0.0-canary.1616+5705e4059",
"@parcel/utils": "2.0.0-canary.1616+5705e4059",
"@parcel/workers": "2.0.0-canary.1616+5705e4059",
"base-x": "^3.0.8",

@@ -61,3 +61,3 @@ "browserslist": "^4.6.6",

},
"gitHead": "2628e7b8abc2e5c386cb91f56ec092339bc14f26"
"gitHead": "5705e4059818daa26228672d737db0286f0b4ecf"
}

@@ -58,3 +58,6 @@ // @flow strict-local

import {getConfigKeyContentHash} from './requests/ConfigRequest';
import {storeRequestTrackerCacheInfo} from './RequestTrackerCacheInfo';
import {
storeRequestTrackerCacheInfo,
clearRequestTrackerCacheInfo,
} from './RequestTrackerCacheInfo';

@@ -1365,2 +1368,3 @@ export const requestGraphEdgeTypes = {

// Delete an existing request graph cache, to prevent invalid states
await clearRequestTrackerCacheInfo(this.options.cache);
await this.options.cache.deleteLargeBlob(requestGraphKey);

@@ -1367,0 +1371,0 @@

@@ -61,1 +61,10 @@ // @flow strict-local

}
/**
* When starting a build the request tracker cache keys are cleared.
* This prevents dangling references from being present if the process exits
* while writing the cache.
*/
export async function clearRequestTrackerCacheInfo(cache: Cache) {
await cache.set(toFsCacheKey('RequestTrackerCacheInfo'), null);
}
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