@dbpath/pathparser
Advanced tools
Comparing version 0.2.9 to 0.2.10
@@ -5,2 +5,3 @@ "use strict"; | ||
const tokeniser_1 = require("./tokeniser"); | ||
const utils_1 = require("@dbpath/utils"); | ||
const identifier = (type) => (context) => { | ||
@@ -96,4 +97,6 @@ var pos = context.pos; | ||
const realIdEquals = c.validator.useIdsOrSingleFkLinkOrError(previousLink === null || previousLink === void 0 ? void 0 : previousLink.table, table.table, idEquals); | ||
let thisLink = Object.assign(Object.assign({}, table), { idEquals: realIdEquals, previousLink }); | ||
const errors = c.validator.validateLink(previousLink === null || previousLink === void 0 ? void 0 : previousLink.table, table.table, realIdEquals); | ||
if ((0, utils_1.hasErrors)(realIdEquals)) | ||
return liftError(context, realIdEquals); | ||
let thisLink = Object.assign(Object.assign({}, table), { idEquals: realIdEquals.twoIds, previousLink }); | ||
const errors = c.validator.validateLink(previousLink === null || previousLink === void 0 ? void 0 : previousLink.table, table.table, realIdEquals.twoIds); | ||
if (errors.length > 0) | ||
@@ -100,0 +103,0 @@ return liftError(context, errors); |
@@ -193,3 +193,3 @@ "use strict"; | ||
remembered.push(`useIdsOrSingleFkLinkOrError(${fromTableName},${toTableName}) ${JSON.stringify(idEquals)}`); | ||
return idEquals; | ||
return { twoIds: idEquals }; | ||
}, | ||
@@ -196,0 +196,0 @@ actualTableName(tableName) { |
{ | ||
"name": "@dbpath/pathparser", | ||
"description": "", | ||
"version": "0.2.9", | ||
"version": "0.2.10", | ||
"main": "dist/index", | ||
@@ -20,5 +20,5 @@ "types": "dist/index", | ||
"dependencies": { | ||
"@dbpath/types": "0.2.9", | ||
"@dbpath/utils": "0.2.9", | ||
"@dbpath/fixtures": "0.2.9" | ||
"@dbpath/types": "0.2.10", | ||
"@dbpath/utils": "0.2.10", | ||
"@dbpath/fixtures": "0.2.10" | ||
}, | ||
@@ -25,0 +25,0 @@ "devDependencies": { |
27956
612
+ Added@dbpath/fixtures@0.2.10(transitive)
+ Added@dbpath/types@0.2.10(transitive)
+ Added@dbpath/utils@0.2.10(transitive)
- Removed@dbpath/fixtures@0.2.9(transitive)
- Removed@dbpath/types@0.2.9(transitive)
- Removed@dbpath/utils@0.2.9(transitive)
Updated@dbpath/fixtures@0.2.10
Updated@dbpath/types@0.2.10
Updated@dbpath/utils@0.2.10