Socket
Socket
Sign inDemoInstall

@pnpm/directory-fetcher

Package Overview
Dependencies
Maintainers
2
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/directory-fetcher - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

3

lib/index.d.ts
import { Cafs, DeferredManifestPromise } from '@pnpm/fetcher-base';
import { DirectoryResolution } from '@pnpm/resolver-base';
export interface DirectoryFetcherOptions {
lockfileDir: string;
manifest?: DeferredManifestPromise;

@@ -14,3 +15,3 @@ }

export default _default;
export declare function fetchFromDir(dir: string, opts: DirectoryFetcherOptions): Promise<{
export declare function fetchFromDir(dir: string, opts: Omit<DirectoryFetcherOptions, 'lockfileDir'>): Promise<{
local: true;

@@ -17,0 +18,0 @@ filesIndex: Record<string, string>;

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

return {
directory: (cafs, resolution, opts) => fetchFromDir(resolution.directory, opts),
directory: (cafs, resolution, opts) => {
const dir = path_1.default.join(opts.lockfileDir, resolution.directory);
return fetchFromDir(dir, opts);
},
};

@@ -16,0 +19,0 @@ };

{
"name": "@pnpm/directory-fetcher",
"version": "1.0.0",
"version": "1.0.1",
"description": "A fetcher for local directory packages",
"funding": "https://opencollective.com/pnpm",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"types": "lib/index.d.ts",
"files": [

@@ -27,4 +27,4 @@ "lib",

"dependencies": {
"@pnpm/fetcher-base": "11.1.0",
"@pnpm/resolver-base": "8.1.0",
"@pnpm/fetcher-base": "11.1.1",
"@pnpm/resolver-base": "8.1.1",
"load-json-file": "^6.2.0",

@@ -31,0 +31,0 @@ "npm-packlist": "^2.2.2",

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