@lanetix/type-visitor
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -0,1 +1,3 @@ | ||
/* eslint-disable no-new-wrappers */ | ||
/* Suggested by Mike Atkins: use `String` as a crude proxy for `Symbol` */ | ||
'use strict'; | ||
@@ -7,14 +9,24 @@ | ||
var tyfun = { | ||
unit: 'unit', | ||
id: 'id', | ||
string: 'string', | ||
integer: 'integer', | ||
decimal: 'decimal', | ||
list: 'list', | ||
option: 'option', | ||
sum: 'sum', | ||
product: 'product' | ||
unit: new String('unit'), | ||
id: new String('id'), | ||
string: new String('string'), | ||
integer: new String('integer'), | ||
decimal: new String('decimal'), | ||
list: new String('list'), | ||
option: new String('option'), | ||
sum: new String('sum'), | ||
product: new String('product') | ||
}; | ||
exports.tyfun = tyfun; | ||
var visitContext = { | ||
top: new String('top'), | ||
listChild: new String('list'), | ||
optionChild: new String('option'), | ||
sumChild: new String('sum'), | ||
productChild: new String('product') | ||
}; | ||
exports.visitContext = visitContext; | ||
/* eslint-enable no-new-wrappers */ | ||
var tyfunToPgType = { | ||
@@ -25,13 +37,3 @@ string: 'text', | ||
}; | ||
exports.tyfunToPgType = tyfunToPgType; | ||
var visitContext = { | ||
top: 'top', | ||
listChild: 'list', | ||
optionChild: 'option', | ||
sumChild: 'sum', | ||
productChild: 'product' | ||
}; | ||
exports.visitContext = visitContext; | ||
var simpleVisitor = function simpleVisitor(_ref) { | ||
@@ -38,0 +40,0 @@ var prim = _ref.prim; |
{ | ||
"name": "@lanetix/type-visitor", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "visit your types", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
18847
362