Socket
Socket
Sign inDemoInstall

package-store

Package Overview
Dependencies
36
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0 to 0.5.1

9

lib/fetch.d.ts

@@ -0,1 +1,2 @@

import { PackageJson } from '@pnpm/types';
import { Store } from './fs/storeController';

@@ -5,3 +6,2 @@ import { LoggedPkg } from './loggers';

import { DirectoryResolution, PackageMeta, PackageSpec, Resolution } from './resolve';
import { Package } from './types';
export interface PackageContentInfo {

@@ -14,7 +14,7 @@ isNew: boolean;

resolution: DirectoryResolution;
pkg: Package;
pkg: PackageJson;
id: string;
} | {
isLocal: false;
fetchingPkg: Promise<Package>;
fetchingPkg: Promise<PackageJson>;
fetchingFiles: Promise<PackageContentInfo>;

@@ -25,2 +25,3 @@ calculatingIntegrity: Promise<void>;

resolution: Resolution;
latest?: string;
};

@@ -33,3 +34,3 @@ export default function fetch(spec: PackageSpec, options: {

fetchingFiles: Promise<PackageContentInfo>;
fetchingPkg: Promise<Package>;
fetchingPkg: Promise<PackageJson>;
};

@@ -36,0 +37,0 @@ };

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

try {
let latest;
let pkg;

@@ -51,2 +52,3 @@ let resolution = options.shrinkwrapResolution;

pkg = resolveResult.package;
latest = resolveResult.latest;
}

@@ -89,2 +91,3 @@ const id = pkgId;

isLocal: false,
latest,
path: target,

@@ -91,0 +94,0 @@ resolution,

@@ -1,3 +0,3 @@

import { Package } from '../types';
export default function readPkg(pkgPath: string): Promise<Package>;
export declare function fromDir(pkgPath: string): Promise<Package>;
import { PackageJson } from '@pnpm/types';
export default function readPkg(pkgPath: string): Promise<PackageJson>;
export declare function fromDir(pkgPath: string): Promise<PackageJson>;

@@ -1,3 +0,3 @@

import { Package } from '../types';
export default function safeReadPkg(pkgPath: string): Promise<Package | null>;
export declare function fromDir(pkgPath: string): Promise<Package | null>;
import { PackageJson } from '@pnpm/types';
export default function safeReadPkg(pkgPath: string): Promise<PackageJson | null>;
export declare function fromDir(pkgPath: string): Promise<PackageJson | null>;

@@ -0,4 +1,4 @@

import { PackageJson } from '@pnpm/types';
import { LoggedPkg } from '../loggers';
import { Got } from '../network/got';
import { Package } from '../types';
import { PackageMeta } from './npm';

@@ -34,3 +34,4 @@ export { PackageMeta };

resolution: Resolution;
package?: Package;
package?: PackageJson;
latest?: string;
}

@@ -37,0 +38,0 @@ export declare type HostedPackageSpec = PackageSpecBase & {

@@ -61,3 +61,8 @@ "use strict";

};
return { id, resolution, package: correctPkg };
return {
id,
latest: meta['dist-tags'].latest,
package: correctPkg,
resolution,
};
}

@@ -64,0 +69,0 @@ catch (err) {

@@ -0,4 +1,4 @@

import { PackageJson } from '@pnpm/types';
import { PackageSpec } from '..';
import { Got } from '../../network/got';
import { Package } from '../../types';
export interface PackageMeta {

@@ -12,3 +12,3 @@ 'dist-tag': {

}
export declare type PackageInRegistry = Package & {
export declare type PackageInRegistry = PackageJson & {
dist: {

@@ -15,0 +15,0 @@ integrity?: string;

{
"name": "package-store",
"description": "A storage for npm packages. Used by pnpm",
"version": "0.5.0",
"version": "0.5.1",
"author": {

@@ -22,2 +22,3 @@ "name": "Zoltan Kochan",

"dependencies": {
"@pnpm/types": "^1.0.0",
"@types/load-json-file": "^2.0.5",

@@ -24,0 +25,0 @@ "@types/node": "^8.0.34",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc