New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

collimator

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

collimator - npm Package Compare versions

Comparing version 7.0.0 to 8.0.0

2

docs/assets/js/search.js

@@ -1,1 +0,1 @@

var typedoc = typedoc || {};typedoc.search = typedoc.search || {};typedoc.search.data = {"kinds":{"1":"External module","64":"Function","256":"Interface","1024":"Property"},"rows":[{"id":0,"kind":1,"name":"\"util/fileQuery\"","url":"modules/_util_filequery_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":64,"name":"fileQuery","url":"modules/_util_filequery_.html#filequery","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"util/fileQuery\""},{"id":2,"kind":1,"name":"\"inspectors/views\"","url":"modules/_inspectors_views_.html","classes":"tsd-kind-external-module"},{"id":3,"kind":256,"name":"ViewDescription","url":"interfaces/_inspectors_views_.viewdescription.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"inspectors/views\""},{"id":4,"kind":1024,"name":"name","url":"interfaces/_inspectors_views_.viewdescription.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/views\".ViewDescription"},{"id":5,"kind":64,"name":"views","url":"modules/_inspectors_views_.html#views","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/views\""},{"id":6,"kind":1,"name":"\"inspectors/tables\"","url":"modules/_inspectors_tables_.html","classes":"tsd-kind-external-module"},{"id":7,"kind":256,"name":"TableDescription","url":"interfaces/_inspectors_tables_.tabledescription.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"inspectors/tables\""},{"id":8,"kind":1024,"name":"name","url":"interfaces/_inspectors_tables_.tabledescription.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/tables\".TableDescription"},{"id":9,"kind":1024,"name":"primaryKeys","url":"interfaces/_inspectors_tables_.tabledescription.html#primarykeys","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/tables\".TableDescription"},{"id":10,"kind":64,"name":"tables","url":"modules/_inspectors_tables_.html#tables","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/tables\""},{"id":11,"kind":1,"name":"\"inspectors/schema\"","url":"modules/_inspectors_schema_.html","classes":"tsd-kind-external-module"},{"id":12,"kind":256,"name":"Column","url":"interfaces/_inspectors_schema_.column.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":13,"kind":1024,"name":"name","url":"interfaces/_inspectors_schema_.column.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".Column"},{"id":14,"kind":1024,"name":"type","url":"interfaces/_inspectors_schema_.column.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".Column"},{"id":15,"kind":1024,"name":"nullable","url":"interfaces/_inspectors_schema_.column.html#nullable","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".Column"},{"id":16,"kind":1024,"name":"default","url":"interfaces/_inspectors_schema_.column.html#default","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".Column"},{"id":17,"kind":1024,"name":"isprimarykey","url":"interfaces/_inspectors_schema_.column.html#isprimarykey","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".Column"},{"id":18,"kind":1024,"name":"constraints","url":"interfaces/_inspectors_schema_.column.html#constraints","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".Column"},{"id":19,"kind":256,"name":"SchemaDocument","url":"interfaces/_inspectors_schema_.schemadocument.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":20,"kind":1024,"name":"$schema","url":"interfaces/_inspectors_schema_.schemadocument.html#_schema","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".SchemaDocument"},{"id":21,"kind":1024,"name":"title","url":"interfaces/_inspectors_schema_.schemadocument.html#title","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".SchemaDocument"},{"id":22,"kind":1024,"name":"type","url":"interfaces/_inspectors_schema_.schemadocument.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".SchemaDocument"},{"id":23,"kind":1024,"name":"properties","url":"interfaces/_inspectors_schema_.schemadocument.html#properties","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".SchemaDocument"},{"id":24,"kind":1024,"name":"required","url":"interfaces/_inspectors_schema_.schemadocument.html#required","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".SchemaDocument"},{"id":25,"kind":256,"name":"SchemaProperties","url":"interfaces/_inspectors_schema_.schemaproperties.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":26,"kind":256,"name":"PropertyAttributes","url":"interfaces/_inspectors_schema_.propertyattributes.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":27,"kind":1024,"name":"type","url":"interfaces/_inspectors_schema_.propertyattributes.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".PropertyAttributes"},{"id":28,"kind":1024,"name":"readOnly","url":"interfaces/_inspectors_schema_.propertyattributes.html#readonly","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".PropertyAttributes"},{"id":29,"kind":1024,"name":"enum","url":"interfaces/_inspectors_schema_.propertyattributes.html#enum","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".PropertyAttributes"},{"id":30,"kind":64,"name":"schema","url":"modules/_inspectors_schema_.html#schema","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":31,"kind":64,"name":"table","url":"modules/_inspectors_schema_.html#table","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":32,"kind":64,"name":"properties","url":"modules/_inspectors_schema_.html#properties","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":33,"kind":64,"name":"property","url":"modules/_inspectors_schema_.html#property","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":34,"kind":64,"name":"isReadOnly","url":"modules/_inspectors_schema_.html#isreadonly","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":35,"kind":64,"name":"isEnumConstraint","url":"modules/_inspectors_schema_.html#isenumconstraint","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":36,"kind":64,"name":"required","url":"modules/_inspectors_schema_.html#required","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":37,"kind":1,"name":"\"inspectors/usedTables\"","url":"modules/_inspectors_usedtables_.html","classes":"tsd-kind-external-module"},{"id":38,"kind":256,"name":"UsedTable","url":"interfaces/_inspectors_usedtables_.usedtable.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"inspectors/usedTables\""},{"id":39,"kind":1024,"name":"name","url":"interfaces/_inspectors_usedtables_.usedtable.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/usedTables\".UsedTable"},{"id":40,"kind":64,"name":"usedTables","url":"modules/_inspectors_usedtables_.html#usedtables","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/usedTables\""},{"id":41,"kind":1,"name":"\"inspectors/relationships\"","url":"modules/_inspectors_relationships_.html","classes":"tsd-kind-external-module"},{"id":42,"kind":256,"name":"Relationship","url":"interfaces/_inspectors_relationships_.relationship.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"inspectors/relationships\""},{"id":43,"kind":1024,"name":"name","url":"interfaces/_inspectors_relationships_.relationship.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/relationships\".Relationship"},{"id":44,"kind":1024,"name":"from","url":"interfaces/_inspectors_relationships_.relationship.html#from","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/relationships\".Relationship"},{"id":45,"kind":1024,"name":"to","url":"interfaces/_inspectors_relationships_.relationship.html#to","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/relationships\".Relationship"},{"id":46,"kind":256,"name":"Relationships","url":"interfaces/_inspectors_relationships_.relationships.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"inspectors/relationships\""},{"id":47,"kind":1024,"name":"belongsTo","url":"interfaces/_inspectors_relationships_.relationships.html#belongsto","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/relationships\".Relationships"},{"id":48,"kind":1024,"name":"has","url":"interfaces/_inspectors_relationships_.relationships.html#has","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/relationships\".Relationships"},{"id":49,"kind":64,"name":"relationships","url":"modules/_inspectors_relationships_.html#relationships-1","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/relationships\""},{"id":50,"kind":1,"name":"\"collimator\"","url":"modules/_collimator_.html","classes":"tsd-kind-external-module"},{"id":51,"kind":256,"name":"ExtendedTableDescription","url":"interfaces/_collimator_.extendedtabledescription.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"collimator\""},{"id":52,"kind":1024,"name":"schema","url":"interfaces/_collimator_.extendedtabledescription.html#schema","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"collimator\".ExtendedTableDescription"},{"id":53,"kind":1024,"name":"relationships","url":"interfaces/_collimator_.extendedtabledescription.html#relationships","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"collimator\".ExtendedTableDescription"},{"id":54,"kind":256,"name":"ExtendedViewDescription","url":"interfaces/_collimator_.extendedviewdescription.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"collimator\""},{"id":55,"kind":1024,"name":"schema","url":"interfaces/_collimator_.extendedviewdescription.html#schema","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"collimator\".ExtendedViewDescription"},{"id":56,"kind":1024,"name":"uses","url":"interfaces/_collimator_.extendedviewdescription.html#uses","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"collimator\".ExtendedViewDescription"},{"id":57,"kind":256,"name":"InspectResult","url":"interfaces/_collimator_.inspectresult.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"collimator\""},{"id":58,"kind":1024,"name":"tables","url":"interfaces/_collimator_.inspectresult.html#tables","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"collimator\".InspectResult"},{"id":59,"kind":1024,"name":"views","url":"interfaces/_collimator_.inspectresult.html#views","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"collimator\".InspectResult"},{"id":60,"kind":256,"name":"Options","url":"interfaces/_collimator_.options.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"collimator\""},{"id":61,"kind":1024,"name":"looseNumbers","url":"interfaces/_collimator_.options.html#loosenumbers","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"collimator\".Options"},{"id":62,"kind":64,"name":"inspect","url":"modules/_collimator_.html#inspect","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"collimator\""}]};
var typedoc = typedoc || {};typedoc.search = typedoc.search || {};typedoc.search.data = {"kinds":{"1":"External module","64":"Function","256":"Interface","1024":"Property"},"rows":[{"id":0,"kind":1,"name":"\"util/fileQuery\"","url":"modules/_util_filequery_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":64,"name":"fileQuery","url":"modules/_util_filequery_.html#filequery","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"util/fileQuery\""},{"id":2,"kind":1,"name":"\"inspectors/views\"","url":"modules/_inspectors_views_.html","classes":"tsd-kind-external-module"},{"id":3,"kind":256,"name":"ViewDescription","url":"interfaces/_inspectors_views_.viewdescription.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"inspectors/views\""},{"id":4,"kind":1024,"name":"name","url":"interfaces/_inspectors_views_.viewdescription.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/views\".ViewDescription"},{"id":5,"kind":64,"name":"views","url":"modules/_inspectors_views_.html#views","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/views\""},{"id":6,"kind":1,"name":"\"inspectors/tables\"","url":"modules/_inspectors_tables_.html","classes":"tsd-kind-external-module"},{"id":7,"kind":256,"name":"TableDescription","url":"interfaces/_inspectors_tables_.tabledescription.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"inspectors/tables\""},{"id":8,"kind":1024,"name":"name","url":"interfaces/_inspectors_tables_.tabledescription.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/tables\".TableDescription"},{"id":9,"kind":1024,"name":"primaryKeys","url":"interfaces/_inspectors_tables_.tabledescription.html#primarykeys","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/tables\".TableDescription"},{"id":10,"kind":64,"name":"tables","url":"modules/_inspectors_tables_.html#tables","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/tables\""},{"id":11,"kind":1,"name":"\"inspectors/schema\"","url":"modules/_inspectors_schema_.html","classes":"tsd-kind-external-module"},{"id":12,"kind":256,"name":"Column","url":"interfaces/_inspectors_schema_.column.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":13,"kind":1024,"name":"name","url":"interfaces/_inspectors_schema_.column.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".Column"},{"id":14,"kind":1024,"name":"type","url":"interfaces/_inspectors_schema_.column.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".Column"},{"id":15,"kind":1024,"name":"nullable","url":"interfaces/_inspectors_schema_.column.html#nullable","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".Column"},{"id":16,"kind":1024,"name":"default","url":"interfaces/_inspectors_schema_.column.html#default","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".Column"},{"id":17,"kind":1024,"name":"isprimarykey","url":"interfaces/_inspectors_schema_.column.html#isprimarykey","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".Column"},{"id":18,"kind":1024,"name":"constraints","url":"interfaces/_inspectors_schema_.column.html#constraints","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".Column"},{"id":19,"kind":256,"name":"SchemaDocument","url":"interfaces/_inspectors_schema_.schemadocument.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":20,"kind":1024,"name":"$schema","url":"interfaces/_inspectors_schema_.schemadocument.html#_schema","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".SchemaDocument"},{"id":21,"kind":1024,"name":"title","url":"interfaces/_inspectors_schema_.schemadocument.html#title","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".SchemaDocument"},{"id":22,"kind":1024,"name":"type","url":"interfaces/_inspectors_schema_.schemadocument.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".SchemaDocument"},{"id":23,"kind":1024,"name":"properties","url":"interfaces/_inspectors_schema_.schemadocument.html#properties","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".SchemaDocument"},{"id":24,"kind":1024,"name":"required","url":"interfaces/_inspectors_schema_.schemadocument.html#required","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".SchemaDocument"},{"id":25,"kind":256,"name":"SchemaProperties","url":"interfaces/_inspectors_schema_.schemaproperties.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":26,"kind":256,"name":"PropertyAttributes","url":"interfaces/_inspectors_schema_.propertyattributes.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":27,"kind":1024,"name":"type","url":"interfaces/_inspectors_schema_.propertyattributes.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".PropertyAttributes"},{"id":28,"kind":1024,"name":"readOnly","url":"interfaces/_inspectors_schema_.propertyattributes.html#readonly","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".PropertyAttributes"},{"id":29,"kind":1024,"name":"enum","url":"interfaces/_inspectors_schema_.propertyattributes.html#enum","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".PropertyAttributes"},{"id":30,"kind":1024,"name":"oneOf","url":"interfaces/_inspectors_schema_.propertyattributes.html#oneof","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/schema\".PropertyAttributes"},{"id":31,"kind":64,"name":"schema","url":"modules/_inspectors_schema_.html#schema","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":32,"kind":64,"name":"table","url":"modules/_inspectors_schema_.html#table","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":33,"kind":64,"name":"properties","url":"modules/_inspectors_schema_.html#properties","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":34,"kind":64,"name":"property","url":"modules/_inspectors_schema_.html#property","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":35,"kind":64,"name":"isNullable","url":"modules/_inspectors_schema_.html#isnullable","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":36,"kind":64,"name":"isReadOnly","url":"modules/_inspectors_schema_.html#isreadonly","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":37,"kind":64,"name":"isEnumConstraint","url":"modules/_inspectors_schema_.html#isenumconstraint","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":38,"kind":64,"name":"required","url":"modules/_inspectors_schema_.html#required","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/schema\""},{"id":39,"kind":1,"name":"\"inspectors/usedTables\"","url":"modules/_inspectors_usedtables_.html","classes":"tsd-kind-external-module"},{"id":40,"kind":256,"name":"UsedTable","url":"interfaces/_inspectors_usedtables_.usedtable.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"inspectors/usedTables\""},{"id":41,"kind":1024,"name":"name","url":"interfaces/_inspectors_usedtables_.usedtable.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/usedTables\".UsedTable"},{"id":42,"kind":64,"name":"usedTables","url":"modules/_inspectors_usedtables_.html#usedtables","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/usedTables\""},{"id":43,"kind":1,"name":"\"inspectors/relationships\"","url":"modules/_inspectors_relationships_.html","classes":"tsd-kind-external-module"},{"id":44,"kind":256,"name":"Relationship","url":"interfaces/_inspectors_relationships_.relationship.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"inspectors/relationships\""},{"id":45,"kind":1024,"name":"name","url":"interfaces/_inspectors_relationships_.relationship.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/relationships\".Relationship"},{"id":46,"kind":1024,"name":"from","url":"interfaces/_inspectors_relationships_.relationship.html#from","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/relationships\".Relationship"},{"id":47,"kind":1024,"name":"to","url":"interfaces/_inspectors_relationships_.relationship.html#to","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/relationships\".Relationship"},{"id":48,"kind":256,"name":"Relationships","url":"interfaces/_inspectors_relationships_.relationships.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"inspectors/relationships\""},{"id":49,"kind":1024,"name":"belongsTo","url":"interfaces/_inspectors_relationships_.relationships.html#belongsto","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/relationships\".Relationships"},{"id":50,"kind":1024,"name":"has","url":"interfaces/_inspectors_relationships_.relationships.html#has","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"inspectors/relationships\".Relationships"},{"id":51,"kind":64,"name":"relationships","url":"modules/_inspectors_relationships_.html#relationships-1","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"inspectors/relationships\""},{"id":52,"kind":1,"name":"\"collimator\"","url":"modules/_collimator_.html","classes":"tsd-kind-external-module"},{"id":53,"kind":256,"name":"ExtendedTableDescription","url":"interfaces/_collimator_.extendedtabledescription.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"collimator\""},{"id":54,"kind":1024,"name":"schema","url":"interfaces/_collimator_.extendedtabledescription.html#schema","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"collimator\".ExtendedTableDescription"},{"id":55,"kind":1024,"name":"relationships","url":"interfaces/_collimator_.extendedtabledescription.html#relationships","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"collimator\".ExtendedTableDescription"},{"id":56,"kind":256,"name":"ExtendedViewDescription","url":"interfaces/_collimator_.extendedviewdescription.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"collimator\""},{"id":57,"kind":1024,"name":"schema","url":"interfaces/_collimator_.extendedviewdescription.html#schema","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"collimator\".ExtendedViewDescription"},{"id":58,"kind":1024,"name":"uses","url":"interfaces/_collimator_.extendedviewdescription.html#uses","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"collimator\".ExtendedViewDescription"},{"id":59,"kind":256,"name":"InspectResult","url":"interfaces/_collimator_.inspectresult.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"collimator\""},{"id":60,"kind":1024,"name":"tables","url":"interfaces/_collimator_.inspectresult.html#tables","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"collimator\".InspectResult"},{"id":61,"kind":1024,"name":"views","url":"interfaces/_collimator_.inspectresult.html#views","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"collimator\".InspectResult"},{"id":62,"kind":256,"name":"Options","url":"interfaces/_collimator_.options.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"collimator\""},{"id":63,"kind":1024,"name":"looseNumbers","url":"interfaces/_collimator_.options.html#loosenumbers","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"collimator\".Options"},{"id":64,"kind":64,"name":"inspect","url":"modules/_collimator_.html#inspect","classes":"tsd-kind-function tsd-parent-kind-external-module","parent":"\"collimator\""}]};

@@ -23,7 +23,7 @@ var pg = require('pg-promise')();

created_at: {
type: 'string',
type: ['string', 'null'],
format: 'date-time'
},
updated_at: {
type: 'string',
type: ['string', 'null'],
format: 'date-time'

@@ -63,14 +63,14 @@ },

description: {
type: 'string'
type: ['string', 'null']
},
status: {
type: 'string',
type: ['string', 'null'],
enum: ['new', 'started', 'complete']
},
created_at: {
type: 'string',
type: ['string', 'null'],
format: 'date-time'
},
updated_at: {
type: 'string',
type: ['string', 'null'],
format: 'date-time'

@@ -135,9 +135,9 @@ },

id: {
type: 'number'
type: ['number', 'null']
},
username: {
type: 'string'
type: ['string', 'null']
},
completed: {
type: 'string',
type: ['string', 'null'],
pattern: '^\\d+$'

@@ -144,0 +144,0 @@ }

@@ -36,5 +36,6 @@ import Promise from 'bluebird';

export interface PropertyAttributes {
type: string;
type: string | string[];
readOnly?: boolean;
enum?: any[];
oneOf?: PropertyAttributes[];
}

@@ -80,2 +81,19 @@ /**

/**
* Determines if a schema property should multiple `type` entries if the column
* is nullable.
*
* If the schema property uses a single primitive type (eg. `{type: 'string'}`),
* then an additional `'null'` type will be added (eg. `{type: ['string',
* 'null']}`).
*
* If the schema property uses a complex compound type (eg. `{oneOf: [...]}`),
* then an additional `oneOf` entry will be added containing `{type: 'null'}`.
*
* @param column The column to inspect
* @param property The property to apply nullable type annotations to, if required
* @returns A shallow clone of `property`, with nullable type annotations
* appended, if required.
*/
export declare function isNullable(column: Column, property: PropertyAttributes): PropertyAttributes;
/**
* Determines if a column should be declared read-only by determining if the

@@ -82,0 +100,0 @@ * column is a primary key that uses a sequence

@@ -13,2 +13,3 @@ 'use strict';

exports.property = property;
exports.isNullable = isNullable;
exports.isReadOnly = isReadOnly;

@@ -145,5 +146,35 @@ exports.isEnumConstraint = isEnumConstraint;

};
return _defineProperty({}, column.name, (0, _ramda.mergeAll)([TYPES[column.type], isReadOnly(column), isEnumConstraint(column)]));
var matchedType = TYPES[column.type];
return _defineProperty({}, column.name, (0, _ramda.mergeAll)([isNullable(column, matchedType), isReadOnly(column), isEnumConstraint(column)]));
}
/**
* Determines if a schema property should multiple `type` entries if the column
* is nullable.
*
* If the schema property uses a single primitive type (eg. `{type: 'string'}`),
* then an additional `'null'` type will be added (eg. `{type: ['string',
* 'null']}`).
*
* If the schema property uses a complex compound type (eg. `{oneOf: [...]}`),
* then an additional `oneOf` entry will be added containing `{type: 'null'}`.
*
* @param column The column to inspect
* @param property The property to apply nullable type annotations to, if required
* @returns A shallow clone of `property`, with nullable type annotations
* appended, if required.
*/
function isNullable(column, property) {
if (!column.nullable) {
return property;
}
if (property.oneOf) {
return Object.assign({}, property, {
oneOf: property.oneOf.concat({ type: 'null' })
});
}
return Object.assign({}, property, {
type: [].concat(property.type, 'null')
});
}
/**
* Determines if a column should be declared read-only by determining if the

@@ -150,0 +181,0 @@ * column is a primary key that uses a sequence

@@ -91,3 +91,3 @@ {

},
"version": "7.0.0"
"version": "8.0.0"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc