Socket
Socket
Sign inDemoInstall

@lanetix/type-visitor

Package Overview
Dependencies
0
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

40

lib/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc