Skip to content

Commit a75fd1e

Browse files
committed
Moved from 'js-yaml' to 'yaml', because of parsing errors
1 parent 118a4f2 commit a75fd1e

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

bin/cdxgen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { basename, dirname, join, resolve } from "node:path";
66
import process from "node:process";
77
import { findUpSync } from "find-up";
88
import globalAgent from "global-agent";
9-
import { load as _load } from "js-yaml";
9+
import { parse as _load } from "yaml";
1010
import jws from "jws";
1111
import { createBom, submitBom } from "../lib/cli/index.js";
1212
import {

bin/evinse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import fs from "node:fs";
44
import process from "node:process";
55
import { findUpSync } from "find-up";
6-
import { load as _load } from "js-yaml";
6+
import { parse as _load } from "yaml";
77
// Evinse (Evinse Verification Is Nearly SBOM Evidence)
88
import yargs from "yargs";
99
import { hideBin } from "yargs/helpers";

lib/cli/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { platform as _platform, arch, homedir } from "node:os";
1616
import { basename, dirname, join, relative, resolve, sep } from "node:path";
1717
import process from "node:process";
1818
import got from "got";
19-
import { load as loadYaml } from "js-yaml";
19+
import { parse as loadYaml } from "yaml";
2020
import { PackageURL } from "packageurl-js";
2121
import { gte, lte } from "semver";
2222
import { parse } from "ssri";

lib/helpers/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import { parseEDNString } from "edn-data";
3535
import { globSync } from "glob";
3636
import got from "got";
3737
import iconv from "iconv-lite";
38-
import { load as _load } from "js-yaml";
38+
import { parse as _load } from "yaml";
3939
import StreamZip from "node-stream-zip";
4040
import { PackageURL } from "packageurl-js";
4141
import propertiesReader from "properties-reader";

lib/helpers/utils.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Buffer } from "node:buffer";
22
import { readFileSync } from "node:fs";
33
import path from "node:path";
44
import { afterAll, beforeAll, describe, expect, test } from "@jest/globals";
5-
import { load as loadYaml } from "js-yaml";
5+
import { parse as loadYaml } from "yaml";
66
import { parse } from "ssri";
77
import {
88
buildObjectForCocoaPod,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
"global-agent": "^3.0.0",
9494
"got": "^14.4.7",
9595
"iconv-lite": "^0.6.3",
96-
"js-yaml": "^4.1.0",
9796
"jws": "^4.0.0",
9897
"node-stream-zip": "^1.15.0",
9998
"packageurl-js": "1.0.2",
@@ -106,6 +105,7 @@
106105
"uuid": "^11.0.2",
107106
"validate-iri": "^1.0.1",
108107
"xml-js": "^1.6.11",
108+
"yaml": "^2.8.0",
109109
"yargs": "^17.7.2",
110110
"yoctocolors": "^2.1.1"
111111
},

0 commit comments

Comments
 (0)