Comparing version 2.3.0-1 to 2.3.0-2
import { applyReviver } from '../doc/applyReviver.js'; | ||
import { NODE_TYPE } from './identity.js'; | ||
import { NODE_TYPE, isDocument } from './identity.js'; | ||
import { toJS } from './toJS.js'; | ||
@@ -18,2 +18,4 @@ | ||
toJS(doc, { mapAsMap, maxAliasCount, onAnchor, reviver } = {}) { | ||
if (!isDocument(doc)) | ||
throw new TypeError('A document argument is required'); | ||
const ctx = { | ||
@@ -20,0 +22,0 @@ anchors: new Map(), |
@@ -20,2 +20,4 @@ 'use strict'; | ||
toJS(doc, { mapAsMap, maxAliasCount, onAnchor, reviver } = {}) { | ||
if (!identity.isDocument(doc)) | ||
throw new TypeError('A document argument is required'); | ||
const ctx = { | ||
@@ -22,0 +24,0 @@ anchors: new Map(), |
{ | ||
"name": "yaml", | ||
"version": "2.3.0-1", | ||
"version": "2.3.0-2", | ||
"license": "ISC", | ||
@@ -28,2 +28,3 @@ "author": "Eemeli Aro <eemeli@gmail.com>", | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"node": "./dist/index.js", | ||
@@ -34,2 +35,3 @@ "default": "./browser/index.js" | ||
"./util": { | ||
"types": "./dist/util.d.ts", | ||
"node": "./dist/util.js", | ||
@@ -36,0 +38,0 @@ "default": "./browser/dist/util.js" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
658418
17527