Socket
Socket
Sign inDemoInstall

@pnpm/server

Package Overview
Dependencies
Maintainers
3
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 8.0.0-alpha.3 to 8.0.0-alpha.4

12

CHANGELOG.md
# @pnpm/server
## 8.0.0-alpha.4
### Major Changes
- da091c71: Remove state from store. The store should not store the information about what projects on the computer use what dependencies. This information was needed for pruning in pnpm v4. Also, without this information, we cannot have the `pnpm store usages` command. So `pnpm store usages` is deprecated.
### Patch Changes
- Updated dependencies [da091c71]
- @pnpm/store-controller-types@8.0.0-alpha.3
- @pnpm/types@6.0.0-alpha.0
## 8.0.0-alpha.3

@@ -4,0 +16,0 @@

12

lib/connectStoreController.js

@@ -14,5 +14,2 @@ "use strict";

fetchPackage: fetchPackage.bind(null, remotePrefix, limitedFetch),
findPackageUsages: async (searchQueries) => {
return await limitedFetch(`${remotePrefix}/findPackageUsages`, { searchQueries });
},
getPackageLocation: async (packageId, packageName, opts) => {

@@ -35,12 +32,3 @@ return await limitedFetch(`${remotePrefix}/getPackageLocation`, {

requestPackage: requestPackage.bind(null, remotePrefix, limitedFetch),
saveState: async () => {
await limitedFetch(`${remotePrefix}/saveState`, {});
},
stop: async () => { await limitedFetch(`${remotePrefix}/stop`, {}); },
updateConnections: async (prefix, opts) => {
await limitedFetch(`${remotePrefix}/updateConnections`, {
opts,
prefix,
});
},
upload: async (builtPkgLocation, opts) => {

@@ -47,0 +35,0 @@ await limitedFetch(`${remotePrefix}/upload`, {

@@ -98,7 +98,2 @@ "use strict";

break;
case '/updateConnections':
body = await bodyPromise;
await store.updateConnections(body.prefix, body.opts);
res.end(JSON.stringify('OK'));
break;
case '/prune':

@@ -109,6 +104,2 @@ // Disable store pruning when a server is running

break;
case '/saveState':
await store.saveState();
res.end(JSON.stringify('OK'));
break;
case '/importPackage':

@@ -147,6 +138,2 @@ const importPackageBody = (await bodyPromise); // tslint:disable-line:no-any

}
case '/findPackageUsages':
body = await bodyPromise;
res.end(JSON.stringify(await store.findPackageUsages(body.searchQueries)));
break;
default:

@@ -153,0 +140,0 @@ res.statusCode = 404;

14

package.json
{
"name": "@pnpm/server",
"version": "8.0.0-alpha.3",
"version": "8.0.0-alpha.4",
"description": "A pnpm installer server",

@@ -37,7 +37,7 @@ "main": "lib/index.js",

"@pnpm/logger": "3.2.2",
"@pnpm/npm-resolver": "8.0.0-alpha.1",
"@pnpm/package-requester": "12.0.0-alpha.3",
"@pnpm/package-store": "9.0.0-alpha.3",
"@pnpm/npm-resolver": "8.0.0-alpha.2",
"@pnpm/package-requester": "12.0.0-alpha.4",
"@pnpm/package-store": "9.0.0-alpha.4",
"@pnpm/server": "link:",
"@pnpm/tarball-fetcher": "6.0.0-alpha.3",
"@pnpm/tarball-fetcher": "6.0.0-alpha.4",
"@types/mz": "^2.7.0",

@@ -55,4 +55,4 @@ "@types/node-fetch": "^2.5.7",

"@pnpm/fetch": "1.0.3",
"@pnpm/store-controller-types": "8.0.0-alpha.2",
"@pnpm/types": "5.0.0",
"@pnpm/store-controller-types": "8.0.0-alpha.3",
"@pnpm/types": "6.0.0-alpha.0",
"p-limit": "2.3.0",

@@ -59,0 +59,0 @@ "promise-share": "1.0.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