@yarnpkg/parsers
Advanced tools
Comparing version 2.3.0 to 2.3.1-rc.1
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
162136
18
5264
2
2