yaml 2.3.0-2 → 2.3.0-4

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.
@@ -77,6 +77,8 @@ function createNode(value, tagName, ctx) {
77
77
  : new Scalar(value);
78
78
  if (tagName)
79
79
  node.tag = tagName;
80
+ else if (!tagObj.default)
81
+ node.tag = tagObj.tag;
80
82
  if (ref)
81
83
  ref.node = node;
82
84
  return node;
@@ -79,6 +79,8 @@ function createNode(value, tagName, ctx) {
79
79
  : new Scalar.Scalar(value);
80
80
  if (tagName)
81
81
  node.tag = tagName;
82
+ else if (!tagObj.default)
83
+ node.tag = tagObj.tag;
82
84
  if (ref)
83
85
  ref.node = node;
84
86
  return node;
package/dist/util.d.ts CHANGED
@@ -7,5 +7,6 @@ export { map as mapTag } from './schema/common/map.js';
7
7
  export { seq as seqTag } from './schema/common/seq.js';
8
8
  export { string as stringTag } from './schema/common/string.js';
9
9
  export { foldFlowLines, FoldOptions } from './stringify/foldFlowLines';
10
+ export { StringifyContext } from './stringify/stringify.js';
10
11
  export { stringifyNumber } from './stringify/stringifyNumber.js';
11
12
  export { stringifyString } from './stringify/stringifyString.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yaml",
3
- "version": "2.3.0-2",
3
+ "version": "2.3.0-4",
4
4
  "license": "ISC",
5
5
  "author": "Eemeli Aro <eemeli@gmail.com>",
6
6
  "repository": "github:eemeli/yaml",
@@ -36,13 +36,6 @@
36
36
  "default": "./browser/dist/util.js"
37
37
  }
38
38
  },
39
- "typesVersions": {
40
- "*": {
41
- "*": [
42
- "dist/*"
43
- ]
44
- }
45
- },
46
39
  "scripts": {
47
40
  "build": "npm run build:node && npm run build:browser",
48
41
  "build:browser": "rollup -c config/rollup.browser-config.mjs",