yaml 3.0.0-1 → 3.0.0-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { i as Document, y as warn } from "./directives-CiM56lHW.js";
2
- import { c as YAMLParseError, n as Composer, r as Parser, t as LineCounter, u as prettifyError } from "./line-counter-bmCJ4fGy.js";
1
+ import { i as Document, y as warn } from "./directives-DqP9ea45.js";
2
+ import { c as YAMLParseError, n as Composer, r as Parser, t as LineCounter, u as prettifyError } from "./line-counter-B2FjSv3E.js";
3
3
  //#region src/public-api.ts
4
4
  function parseOptions(options) {
5
5
  const prettyErrors = options.prettyErrors !== false;
@@ -53,8 +53,10 @@ function parse(src, reviver, options) {
53
53
  const doc = parseDocument(src, options);
54
54
  if (!doc) return null;
55
55
  doc.warnings.forEach((warning) => warn(doc.options.logLevel, warning));
56
- if (doc.errors.length > 0) if (doc.options.logLevel !== "silent") throw doc.errors[0];
57
- else doc.errors = [];
56
+ if (doc.errors.length > 0) {
57
+ if (doc.options.logLevel !== "silent") throw doc.errors[0];
58
+ else doc.errors = [];
59
+ }
58
60
  return doc.toJS(Object.assign({ reviver: _reviver }, options));
59
61
  }
60
62
  function stringify(value, replacer, options) {
@@ -1,5 +1,5 @@
1
- import { S as Scalar, d as Pair, g as YAMLMap, h as YAMLSeq, m as YAMLSet, n as visit, p as isNode, u as Alias } from "./directives-CiM56lHW.js";
2
- import { n as parseAllDocuments } from "./public-api-BTMehGT6.js";
1
+ import { S as Scalar, _ as YAMLMap, f as Pair, g as YAMLSeq, h as YAMLSet, m as isNode, n as visit, u as Alias } from "./directives-DqP9ea45.js";
2
+ import { n as parseAllDocuments } from "./public-api-uicovB0N.js";
3
3
  //#region src/test-events.ts
4
4
  const scalarChar = {
5
5
  BLOCK_FOLDED: ">",
package/dist/util.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { B as debug, I as NodeCreator, L as ToJSContext, R as StringifyContext, V as warn, _ as string, b as map, g as foldFlowLines, h as FoldOptions, m as stringifyNumber, p as stringifyString, v as seq, z as LogLevelId } from "./directives-DlYEVlkC.js";
2
- export { FoldOptions, LogLevelId, NodeCreator, StringifyContext, ToJSContext, debug, foldFlowLines, map as mapTag, seq as seqTag, string as stringTag, stringifyNumber, stringifyString, warn };
1
+ import { B as debug, I as NodeCreator, L as ToJSContext, R as StringifyContext, V as warn, _ as string, b as map, g as foldFlowLines, h as FoldOptions, m as stringifyNumber, p as stringifyString, v as seq, z as LogLevelId } from "./directives-CGITitH5.js";
2
+ export { type FoldOptions, type LogLevelId, type NodeCreator, type StringifyContext, ToJSContext, debug, foldFlowLines, map as mapTag, seq as seqTag, string as stringTag, stringifyNumber, stringifyString, warn };
package/dist/util.js CHANGED
@@ -1,2 +1,2 @@
1
- import { _ as ToJSContext, b as stringifyString, c as seq, l as map, o as stringifyNumber, s as string, v as debug, x as foldFlowLines, y as warn } from "./directives-CiM56lHW.js";
1
+ import { b as stringifyString, c as seq, d as ToJSContext, l as map, o as stringifyNumber, s as string, v as debug, x as foldFlowLines, y as warn } from "./directives-DqP9ea45.js";
2
2
  export { ToJSContext, debug, foldFlowLines, map as mapTag, seq as seqTag, string as stringTag, stringifyNumber, stringifyString, warn };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yaml",
3
- "version": "3.0.0-1",
3
+ "version": "3.0.0-2",
4
4
  "license": "ISC",
5
5
  "author": "Eemeli Aro <eemeli@gmail.com>",
6
6
  "funding": "https://github.com/sponsors/eemeli",
@@ -38,7 +38,7 @@
38
38
  "test": "vitest run",
39
39
  "test:all": "npm test && npm run test:types && npm run test:dist && npm run test:dist:types",
40
40
  "test:dist": "npm run build && vitest run",
41
- "test:dist:types": "tsc --allowJs --moduleResolution node --noEmit --target es5 dist/cli.js dist/index.js dist/test-events.js dist/util.js",
41
+ "test:dist:types": "tsc --ignoreConfig --allowJs --moduleResolution bundler --noEmit --target es2015 dist/cli.js dist/index.js dist/test-events.js dist/util.js",
42
42
  "test:types": "tsc --noEmit && tsc --noEmit -p tests/tsconfig.json",
43
43
  "docs:install": "cd docs-slate && bundle install",
44
44
  "predocs:deploy": "node docs/prepare-docs.js",
@@ -55,15 +55,15 @@
55
55
  "trailingComma": "none"
56
56
  },
57
57
  "devDependencies": {
58
- "@eslint/js": "^9.9.1",
58
+ "@eslint/js": "^10.0.1",
59
59
  "@types/node": "^20.11.20",
60
- "eslint": "^9.9.1",
60
+ "eslint": "^10.10.0",
61
61
  "eslint-config-prettier": "^10.1.8",
62
62
  "fast-check": "^2.12.0",
63
63
  "prettier": "^3.0.2",
64
64
  "rolldown": "^1.0.0-beta.54",
65
- "rolldown-plugin-dts": "^0.22.1",
66
- "typescript": "^5.9.3",
65
+ "rolldown-plugin-dts": "^0.27.14",
66
+ "typescript": "^6.0.3",
67
67
  "typescript-eslint": "^8.4.0",
68
68
  "vitest": "^4.0.15"
69
69
  },