Socket
Socket
Sign inDemoInstall

@pnpm/store-controller-types

Package Overview
Dependencies
Maintainers
3
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/store-controller-types - npm Package Compare versions

Comparing version 8.0.0-alpha.3 to 8.0.0-alpha.4

13

CHANGELOG.md
# @pnpm/store-controller-types
## 8.0.0-alpha.4
### Major Changes
- 16d1ac0fd: `body.cacheByEngine` removed from `PackageResponse`.
- a5febb913: The importPackage function of the store controller is importing packages directly from the side-effects cache.
- a5febb913: The upload function of the store controller accepts `opts.filesIndexFile` instead of `opts.packageId`.
### Minor Changes
- a5febb913: Package request response contains the path to the files index file.
- a5febb913: sideEffects property added to files index file.
## 8.0.0-alpha.3

@@ -4,0 +17,0 @@

21

lib/index.d.ts

@@ -19,3 +19,3 @@ import { DirectoryResolution, PreferredVersions, Resolution, WantedDependency, WorkspacePackages } from '@pnpm/resolver-base';

upload(builtPkgLocation: string, opts: {
packageId: string;
filesIndexFile: string;
engine: string;

@@ -26,2 +26,3 @@ }): Promise<void>;

bundledManifest?: () => Promise<BundledManifest>;
filesIndexFile: string;
files: () => Promise<PackageFilesResponse>;

@@ -39,11 +40,17 @@ finishing: () => Promise<void>;

export declare type ImportPackageFunction = (to: string, opts: {
targetEngine?: string;
filesResponse: PackageFilesResponse;
force: boolean;
}) => Promise<void>;
}) => Promise<{
isBuilt: boolean;
}>;
export declare type PackageFileInfo = {
integrity: string;
mode: number;
size: number;
};
export interface PackageFilesResponse {
fromStore: boolean;
filesIndex: Record<string, {
mode: number;
integrity: string;
}>;
filesIndex: Record<string, PackageFileInfo>;
sideEffects?: Record<string, Record<string, PackageFileInfo>>;
}

@@ -69,2 +76,3 @@ export declare type RequestPackageFunction = (wantedDependency: WantedDependency, options: RequestPackageOptions) => Promise<PackageResponse>;

files?: () => Promise<PackageFilesResponse>;
filesIndexFile?: string;
finishing?: () => Promise<void>;

@@ -80,3 +88,2 @@ body: {

inStoreLocation?: string;
cacheByEngine?: Map<string, string>;
latest?: string;

@@ -83,0 +90,0 @@ } & ({

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("@pnpm/resolver-base"), exports);
//# sourceMappingURL=index.js.map
{
"name": "@pnpm/store-controller-types",
"version": "8.0.0-alpha.3",
"version": "8.0.0-alpha.4",
"description": "Types for the store controller",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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