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

@yarnpkg/parsers

Package Overview
Dependencies
Maintainers
5
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yarnpkg/parsers - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1-rc.1

lib/grammars/resolution.d.ts

2

lib/resolution.js

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

try {
return resolution_1.parse(source);
return (0, resolution_1.parse)(source);
}

@@ -13,0 +13,0 @@ catch (error) {

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

try {
return shell_1.parse(source, options);
return (0, shell_1.parse)(source, options);
}

@@ -10,0 +10,0 @@ catch (error) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseSyml = exports.stringifySyml = exports.PreserveOrdering = void 0;
// @ts-expect-error
const js_yaml_1 = require("js-yaml");

@@ -115,3 +114,3 @@ const syml_1 = require("./grammars/syml");

source += `\n`;
return syml_1.parse(source);
return (0, syml_1.parse)(source);
}

@@ -122,4 +121,5 @@ const LEGACY_REGEXP = /^(#.*(\r?\n))*?#\s+yarn\s+lockfile\s+v1\r?\n/i;

return parseViaPeg(source);
const value = js_yaml_1.safeLoad(source, {
const value = (0, js_yaml_1.safeLoad)(source, {
schema: js_yaml_1.FAILSAFE_SCHEMA,
json: true,
});

@@ -126,0 +126,0 @@ // Empty files are parsed as `undefined` instead of an empty object

{
"name": "@yarnpkg/parsers",
"version": "2.3.0",
"version": "2.3.1-rc.1",
"license": "BSD-2-Clause",

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

"devDependencies": {
"@types/js-yaml": "^3.11.1",
"pegjs": "^0.10.0"

@@ -32,3 +33,4 @@ },

"type": "git",
"url": "ssh://git@github.com/yarnpkg/berry.git"
"url": "ssh://git@github.com/yarnpkg/berry.git",
"directory": "packages/yarnpkg-parsers"
},

@@ -38,3 +40,4 @@ "engines": {

},
"stableVersion": "2.3.0",
"typings": "./lib/index.d.ts"
}
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