yaml 1.9.1 → 1.9.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.
Files changed (2) hide show
  1. package/package.json +4 -2
  2. package/types.d.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yaml",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "license": "ISC",
5
5
  "author": "Eemeli Aro <eemeli@gmail.com>",
6
6
  "repository": "github:eemeli/yaml",
@@ -69,6 +69,7 @@
69
69
  "start": "npm run dist:build && node -i -e 'YAML=require(\".\")'",
70
70
  "test": "cross-env TRACE_LEVEL=log jest",
71
71
  "test:trace": "cross-env TRACE_LEVEL=trace,log jest --no-cache",
72
+ "test:types": "tsc --lib ES2017 --noEmit tests/typings.ts",
72
73
  "docs:install": "cd docs-slate && bundle install",
73
74
  "docs:deploy": "cd docs-slate && ./deploy.sh",
74
75
  "docs": "cd docs-slate && bundle exec middleman server",
@@ -110,7 +111,8 @@
110
111
  "eslint-plugin-prettier": "^3.1.3",
111
112
  "fast-check": "^1.24.1",
112
113
  "jest": "^25.3.0",
113
- "prettier": "^2.0.4"
114
+ "prettier": "^2.0.4",
115
+ "typescript": "^3.8.3"
114
116
  },
115
117
  "dependencies": {
116
118
  "@babel/runtime": "^7.9.2"
package/types.d.ts CHANGED
@@ -196,6 +196,7 @@ export namespace Schema {
196
196
 
197
197
  export class Scalar extends AST.Node {
198
198
  constructor(value: any)
199
+ toJSON(arg?: any, ctx?: AST.NodeToJsonContext): any
199
200
  type?: Scalar.Type
200
201
  /**
201
202
  * By default (undefined), numbers use decimal notation.
@@ -276,7 +277,7 @@ export namespace AST {
276
277
  /** A fully qualified tag, if required */
277
278
  tag?: string
278
279
  /** A plain JS representation of this node */
279
- toJSON(arg?: any, ctx?: NodeToJsonContext): any
280
+ toJSON(arg?: any): any
280
281
  /** The type of this node */
281
282
  type?: Type | Pair.Type
282
283
  }