Skip to content

Commit 57cccdc

Browse files
committed
build(deps): bump js-yaml from 4.2.0 to 5.1.0
1 parent 09af679 commit 57cccdc

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"form-data": "^4.0.0",
6363
"hpagent": "^1.2.0",
6464
"isomorphic-ws": "^5.0.0",
65-
"js-yaml": "^4.1.0",
65+
"js-yaml": "^5.1.0",
6666
"jsonpath-plus": "^10.3.0",
6767
"openid-client": "^6.1.3",
6868
"rfc4648": "^1.3.0",

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from 'node:fs';
22
import https from 'node:https';
33
import http from 'node:http';
44
import tls from 'node:tls';
5-
import yaml from 'js-yaml';
5+
import * as yaml from 'js-yaml';
66
import net from 'node:net';
77
import path from 'node:path';
88

src/yaml.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import yaml from 'js-yaml';
1+
import * as yaml from 'js-yaml';
22
import { getSerializationType } from './util.js';
33
import { KubernetesObject } from './types.js';
44
import { ObjectSerializer } from './serializer.js';
@@ -26,7 +26,7 @@ export function loadYaml<T>(data: string, opts?: yaml.LoadOptions): T {
2626
* @returns An array of deserialized Kubernetes objects.
2727
*/
2828
export function loadAllYaml(data: string, opts?: yaml.LoadOptions): any[] {
29-
const ymls = yaml.loadAll(data, undefined, opts);
29+
const ymls = yaml.loadAll(data, null, opts);
3030
return ymls.map((yml) => {
3131
const obj = yml as KubernetesObject;
3232
const type = getSerializationType(obj.apiVersion, obj.kind);

0 commit comments

Comments
 (0)