Skip to content

Commit

Permalink
chore: removed js-yaml package
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Jan 18, 2025
1 parent ce182da commit 320ed6e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"console-log-level": "^1.4.1",
"dotenv": "16.4.5",
"hono": "^4.6.12",
"js-yaml": "^4.1.0",
"openai": "^4.70.2",
"typebox-validators": "0.3.5",
"yaml": "^2.7.0"
Expand Down
5 changes: 2 additions & 3 deletions src/github/utils/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { TransformDecodeCheckError, Value, ValueError } from "@sinclair/typebox/value";
import YAML from "js-yaml";
import { YAMLError } from "yaml";
import YAML, { YAMLError } from "yaml";
import { GitHubContext } from "../github-context";
import { expressionRegex } from "../types/plugin";
import { configSchema, configSchemaValidator, PluginConfiguration } from "../types/plugin-configuration";
Expand Down Expand Up @@ -188,7 +187,7 @@ export function parseYaml(data: null | string) {
try {
if (data) {
console.log("Before parsing", data);
const parsedData = YAML.load(data);
const parsedData = YAML.parse(data);
console.log("Parsed YAML data", parsedData);
return { yaml: parsedData ?? null, errors: null };
}
Expand Down

0 comments on commit 320ed6e

Please sign in to comment.