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

@pnpm/modules-yaml

Package Overview
Dependencies
Maintainers
2
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/modules-yaml - npm Package Compare versions

Comparing version 10.0.8 to 11.0.0

4

lib/index.d.ts

@@ -25,5 +25,5 @@ import { DependenciesField, HoistedDependencies, Registries } from '@pnpm/types';

}
export declare function read(modulesDir: string): Promise<Modules | null>;
export declare function write(modulesDir: string, modules: Modules & {
export declare function readModulesManifest(modulesDir: string): Promise<Modules | null>;
export declare function writeModulesManifest(modulesDir: string, modules: Modules & {
registries: Registries;
}): Promise<void>;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.write = exports.read = void 0;
exports.writeModulesManifest = exports.readModulesManifest = void 0;
const path_1 = __importDefault(require("path"));

@@ -15,3 +15,3 @@ const read_yaml_file_1 = __importDefault(require("read-yaml-file"));

const MODULES_FILENAME = '.modules.yaml';
async function read(modulesDir) {
async function readModulesManifest(modulesDir) {
const modulesYamlPath = path_1.default.join(modulesDir, MODULES_FILENAME);

@@ -69,3 +69,3 @@ let modules;

}
exports.read = read;
exports.readModulesManifest = readModulesManifest;
const YAML_OPTS = {

@@ -77,3 +77,3 @@ lineWidth: 1000,

};
async function write(modulesDir, modules) {
async function writeModulesManifest(modulesDir, modules) {
const modulesYamlPath = path_1.default.join(modulesDir, MODULES_FILENAME);

@@ -102,3 +102,3 @@ const saveModules = { ...modules };

}
exports.write = write;
exports.writeModulesManifest = writeModulesManifest;
//# sourceMappingURL=index.js.map
{
"name": "@pnpm/modules-yaml",
"version": "10.0.8",
"version": "11.0.0",
"description": "Reads/writes `node_modules/.modules.yaml`",

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

"devDependencies": {
"@pnpm/modules-yaml": "10.0.8",
"@pnpm/modules-yaml": "11.0.0",
"@types/is-windows": "^1.0.0",

@@ -35,0 +35,0 @@ "tempy": "^1.0.1"

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