@lanetix/type-visitor
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -376,3 +376,3 @@ /* eslint-disable no-new-wrappers */ | ||
var toTy = function toTy(json) { | ||
var toTyFromJson = function toTyFromJson(json) { | ||
if (json.fun) { | ||
@@ -382,3 +382,3 @@ var ty = { | ||
}; | ||
var args = json.args && toTy(json.args); | ||
var args = json.args && toTyFromJson(json.args); | ||
if (args) { | ||
@@ -392,3 +392,3 @@ ty.args = args; | ||
for (var key in json) { | ||
ty[key] = toTy(json[key]); | ||
ty[key] = toTyFromJson(json[key]); | ||
} | ||
@@ -398,2 +398,4 @@ return ty; | ||
}; | ||
exports.toTy = toTy; | ||
// exporting toTyFromJson (formerly toTy) as an alias to make it easier for transpilers, etc. to handle the recursive calls inside toTyFromJson -- Resolves CI/code-coverage failures in lanetix/layout-validator#9 | ||
exports.toTy = toTyFromJson; |
{ | ||
"name": "@lanetix/type-visitor", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "visit your types", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
377
19540
4