typescript-is
Advanced tools
Comparing version 0.16.2 to 0.16.3
11
index.js
@@ -22,3 +22,12 @@ let defaultGetErrorObject = undefined; | ||
function appendInputToErrorMessage(message, path, inputObject) { | ||
return message + ', found: ' + JSON.stringify(inputObjectAtPath(path, inputObject)); | ||
const foundInputObject = inputObjectAtPath(path, inputObject); | ||
try { | ||
return message + ', found: ' + require('util').inspect(foundInputObject); | ||
} catch (error) { | ||
} | ||
try { | ||
return message + ', found: ' + JSON.stringify(foundInputObject); | ||
} catch (error) { | ||
} | ||
return message; | ||
} | ||
@@ -25,0 +34,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.transformNode = void 0; | ||
const path = require("path"); | ||
@@ -4,0 +5,0 @@ const ts = require("typescript"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.sliceMapValues = exports.setUnion = exports.setIntersection = exports.sliceSet = void 0; | ||
function sliceSet(set) { | ||
@@ -4,0 +5,0 @@ const items = []; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.visitType = void 0; | ||
const ts = require("typescript"); | ||
@@ -4,0 +5,0 @@ const tsutils = require("tsutils/typeguard/3.0"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.visitType = void 0; | ||
const ts = require("typescript"); | ||
@@ -4,0 +5,0 @@ const tsutils = require("tsutils/typeguard/3.0"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.visitType = void 0; | ||
const ts = require("typescript"); | ||
@@ -4,0 +5,0 @@ const tsutils = require("tsutils/typeguard/3.0"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.visitType = void 0; | ||
const ts = require("typescript"); | ||
@@ -4,0 +5,0 @@ const tsutils = require("tsutils/typeguard/3.0"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.visitType = void 0; | ||
const ts = require("typescript"); | ||
@@ -4,0 +5,0 @@ const tsutils = require("tsutils/typeguard/3.0"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.visitShortCircuit = exports.visitUndefinedOrType = exports.visitType = void 0; | ||
const ts = require("typescript"); | ||
@@ -4,0 +5,0 @@ const tsutils = require("tsutils/typeguard/3.0"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.visitType = void 0; | ||
const ts = require("typescript"); | ||
@@ -4,0 +5,0 @@ const tsutils = require("tsutils/typeguard/3.0"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createErrorObject = exports.isBigIntType = exports.createSuperfluousPropertiesLoop = exports.createAssertionFunction = exports.createStrictNullCheckStatement = exports.createDisjunctionFunction = exports.createConjunctionFunction = exports.createAcceptingFunction = exports.createBinaries = exports.getIgnoredTypeFunction = exports.getAnyFunction = exports.getUnknownFunction = exports.getNeverFunction = exports.getNullFunction = exports.getUndefinedFunction = exports.getNumberFunction = exports.getBigIntFunction = exports.getBooleanFunction = exports.getStringFunction = exports.getResolvedTypeParameter = exports.getTypeReferenceMapping = exports.getPropertyInfo = exports.setFunctionIfNotExists = exports.checkIsDateClass = exports.checkIsClass = exports.pathIdentifier = exports.objectIdentifier = void 0; | ||
const ts = require("typescript"); | ||
@@ -4,0 +5,0 @@ const typescript_1 = require("typescript"); |
{ | ||
"name": "typescript-is", | ||
"version": "0.16.2", | ||
"version": "0.16.3", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=6.14.4" |
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
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
223306
2732