Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/cafs

Package Overview
Dependencies
Maintainers
3
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/cafs - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

7

CHANGELOG.md
# @pnpm/cafs
## 1.0.8
### Patch Changes
- Updated dependencies [86cd72de3]
- @pnpm/store-controller-types@9.0.0
## 1.0.7

@@ -4,0 +11,0 @@

4

lib/addFilesFromDir.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const parseJson_1 = require("./parseJson");
const path = require("path");
const fs = require("mz/fs");
const pLimit = require("p-limit");
const path = require("path");
const parseJson_1 = require("./parseJson");
const limit = pLimit(20);

@@ -8,0 +8,0 @@ const MAX_BULK_SIZE = 1 * 1024 * 1024; // 1MB

/// <reference types="node" />
import { PassThrough } from 'stream';
import { DeferredManifestPromise, FilesIndex } from '@pnpm/fetcher-base';
import ssri = require('ssri');
import { PassThrough } from 'stream';
export default function (addStreamToCafs: (fileStream: PassThrough, mode: number) => Promise<ssri.Integrity>, _ignore: null | ((filename: string) => Boolean), stream: NodeJS.ReadableStream, manifest?: DeferredManifestPromise): Promise<FilesIndex>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const parseJson_1 = require("./parseJson");
const decompress = require("decompress-maybe");
const tar = require("tar-stream");
const parseJson_1 = require("./parseJson");
async function default_1(addStreamToCafs, _ignore, stream, manifest) {
const ignore = _ignore ? _ignore : () => false;
const ignore = _ignore !== null && _ignore !== void 0 ? _ignore : (() => false);
const extract = tar.extract();

@@ -9,0 +9,0 @@ const filesIndex = {};

import { DeferredManifestPromise } from '@pnpm/fetcher-base';
import { PackageFileInfo } from '@pnpm/store-controller-types';
export declare type PackageFilesIndex = {
export interface PackageFilesIndex {
files: Record<string, PackageFileInfo>;
sideEffects?: Record<string, Record<string, PackageFileInfo>>;
};
}
export default function (cafsDir: string, pkgIndex: Record<string, PackageFileInfo>, manifest?: DeferredManifestPromise): Promise<boolean>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const parseJson_1 = require("./parseJson");
const getFilePathInCafs_1 = require("./getFilePathInCafs");
const rimraf = require("@zkochan/rimraf");

@@ -7,4 +9,2 @@ const fs = require("mz/fs");

const ssri = require("ssri");
const getFilePathInCafs_1 = require("./getFilePathInCafs");
const parseJson_1 = require("./parseJson");
const limit = pLimit(20);

@@ -11,0 +11,0 @@ const MAX_BULK_SIZE = 1 * 1024 * 1024; // 1MB

"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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFilePathInCafs = exports.getFilePathByModeInCafs = exports.checkFilesIntegrity = void 0;
const addFilesFromDir_1 = __importDefault(require("./addFilesFromDir"));
const addFilesFromTarball_1 = __importDefault(require("./addFilesFromTarball"));
const checkFilesIntegrity_1 = __importDefault(require("./checkFilesIntegrity"));
exports.checkFilesIntegrity = checkFilesIntegrity_1.default;
const getFilePathInCafs_1 = __importStar(require("./getFilePathInCafs"));
exports.getFilePathInCafs = getFilePathInCafs_1.default;
Object.defineProperty(exports, "getFilePathByModeInCafs", { enumerable: true, get: function () { return getFilePathInCafs_1.getFilePathByModeInCafs; } });
const writeFile_1 = __importDefault(require("./writeFile"));
const path = require("path");
const getStream = require("get-stream");
const path = require("path");
const exists = require("path-exists");

@@ -10,10 +40,2 @@ const pathTemp = require("path-temp");

const ssri = require("ssri");
const addFilesFromDir_1 = require("./addFilesFromDir");
const addFilesFromTarball_1 = require("./addFilesFromTarball");
const checkFilesIntegrity_1 = require("./checkFilesIntegrity");
exports.checkFilesIntegrity = checkFilesIntegrity_1.default;
const getFilePathInCafs_1 = require("./getFilePathInCafs");
exports.getFilePathInCafs = getFilePathInCafs_1.default;
Object.defineProperty(exports, "getFilePathByModeInCafs", { enumerable: true, get: function () { return getFilePathInCafs_1.getFilePathByModeInCafs; } });
const writeFile_1 = require("./writeFile");
function createCafs(cafsDir, ignore) {

@@ -20,0 +42,0 @@ const locker = new Map();

/// <reference types="node" />
import { PassThrough } from 'stream';
import { DeferredManifestPromise } from '@pnpm/fetcher-base';
import { PassThrough } from 'stream';
export declare function parseJsonBuffer(buffer: Buffer, deferred: DeferredManifestPromise): void;
export declare function parseJsonStream(stream: PassThrough, deferred: DeferredManifestPromise): void;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const path = require("path");
const fs = require("mz/fs");
const path = require("path");
const dirs = new Set();

@@ -6,0 +6,0 @@ async function default_1(fileDest, buffer, mode) {

{
"name": "@pnpm/cafs",
"version": "1.0.7",
"version": "1.0.8",
"description": "A content-addressable filesystem for the packages storage",

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

"scripts": {
"lint": "eslint -c ../../eslint.json src/**/*.ts test/**/*.ts",
"_test": "cd ../.. && c8 --reporter lcov --reports-dir packages/cafs/coverage ts-node packages/cafs/test --type-check",

@@ -19,3 +20,3 @@ "test": "pnpm run compile && pnpm run _test",

"@pnpm/fetcher-base": "8.0.2",
"@pnpm/store-controller-types": "8.0.2",
"@pnpm/store-controller-types": "9.0.0",
"@zkochan/rimraf": "^1.0.0",

@@ -37,6 +38,6 @@ "concat-stream": "^2.0.0",

"@types/mz": "^2.7.1",
"@types/node": "^12.12.54",
"@types/node": "^12.12.56",
"@types/ssri": "^6.0.3",
"@types/tar-stream": "^2.1.0",
"tempy": "^0.6.0"
"tempy": "^0.7.0"
},

@@ -43,0 +44,0 @@ "bugs": {

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