Socket
Socket
Sign inDemoInstall

@pnpm/server

Package Overview
Dependencies
Maintainers
2
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/server - npm Package Compare versions

Comparing version 0.13.0-0 to 0.13.1

19

lib/connectStoreController.js

@@ -82,11 +82,12 @@ "use strict";

.then((packageResponseBody) => {
const fetchingManifest = packageResponseBody['manifest'] // tslint:disable-line
const fetchingRawManifest = !packageResponseBody['fetchingRawManifestInProgress'] // tslint:disable-line
? undefined
: limitedFetch(`${remotePrefix}/manifestResponse`, {
: limitedFetch(`${remotePrefix}/rawManifestResponse`, {
msgId,
});
delete packageResponseBody['fetchingRawManifestInProgress']; // tslint:disable-line
if (options.skipFetch) {
return {
body: packageResponseBody,
fetchingManifest,
fetchingRawManifest,
};

@@ -100,4 +101,4 @@ }

fetchingFiles,
fetchingManifest,
finishing: Promise.all([fetchingManifest, fetchingFiles]).then(() => undefined),
fetchingRawManifest,
finishing: Promise.all([fetchingRawManifest, fetchingFiles]).then(() => undefined),
};

@@ -114,4 +115,4 @@ });

.then((fetchResponseBody) => {
const fetchingFullManifest = options.fetchFullManifest
? limitedFetch(`${remotePrefix}/manifestResponse`, { msgId })
const fetchingRawManifest = options.fetchRawManifest
? limitedFetch(`${remotePrefix}/rawManifestResponse`, { msgId })
: undefined;

@@ -123,4 +124,4 @@ const fetchingFiles = limitedFetch(`${remotePrefix}/packageFilesResponse`, {

fetchingFiles,
fetchingFullManifest,
finishing: Promise.all([fetchingFullManifest, fetchingFiles]).then(() => undefined),
fetchingRawManifest,
finishing: Promise.all([fetchingRawManifest, fetchingFiles]).then(() => undefined),
inStoreLocation: fetchResponseBody.inStoreLocation,

@@ -127,0 +128,0 @@ };

@@ -15,3 +15,3 @@ "use strict";

function default_1(store, opts) {
const manifestPromises = {};
const rawManifestPromises = {};
const filesPromises = {};

@@ -51,4 +51,5 @@ const lock = lock_1.default();

const pkgResponse = yield store.requestPackage(body.wantedDependency, body.options);
if (pkgResponse['fetchingFullManifest']) { // tslint:disable-line
manifestPromises[body.msgId] = pkgResponse['fetchingFullManifest']; // tslint:disable-line
if (pkgResponse['fetchingRawManifest']) { // tslint:disable-line
rawManifestPromises[body.msgId] = pkgResponse['fetchingRawManifest']; // tslint:disable-line
pkgResponse.body['fetchingRawManifestInProgress'] = true; // tslint:disable-line
}

@@ -64,4 +65,4 @@ if (pkgResponse['fetchingFiles']) { // tslint:disable-line

const pkgResponse = yield store.fetchPackage(body.options);
if (pkgResponse['fetchingFullManifest']) { // tslint:disable-line
manifestPromises[body.msgId] = pkgResponse['fetchingFullManifest']; // tslint:disable-line
if (pkgResponse['fetchingRawManifest']) { // tslint:disable-line
rawManifestPromises[body.msgId] = pkgResponse['fetchingRawManifest']; // tslint:disable-line
}

@@ -80,6 +81,6 @@ if (pkgResponse['fetchingFiles']) { // tslint:disable-line

break;
case '/manifestResponse':
case '/rawManifestResponse':
body = yield bodyPromise;
const manifestResponse = yield manifestPromises[body.msgId];
delete manifestPromises[body.msgId];
const manifestResponse = yield rawManifestPromises[body.msgId];
delete rawManifestPromises[body.msgId];
res.end(JSON.stringify(manifestResponse));

@@ -86,0 +87,0 @@ break;

{
"name": "@pnpm/server",
"version": "0.13.0-0",
"version": "0.13.1",
"description": "A pnpm installer server",

@@ -64,3 +64,3 @@ "main": "lib/index.js",

"dependencies": {
"@pnpm/package-requester": "^2.0.0-1",
"@pnpm/package-requester": "^2.0.0",
"@pnpm/resolver-base": "^1.1.0",

@@ -74,5 +74,5 @@ "@pnpm/types": "^1.7.0",

"p-limit": "^1.1.0",
"package-store": "^0.21.0-1",
"package-store": "^0.21.0",
"uuid": "^3.1.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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