diff --git a/package.json b/package.json index 0ea38081..8916feb3 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "require": "./dist/bundle-common-js.cjs", "types": "./dist/src/index.d.ts" }, + "./dist/src/CliCoreBase.js": "./dist/src/CliCoreBase.js", "./dist/src/TemplateProcessor.js": "./dist/src/TemplateProcessor.js", "./dist/src/CliCore.js": "./dist/src/CliCore.js", "./dist/src/StatedREPL.js": "./dist/src/StatedREPL.js", diff --git a/src/TemplateProcessor.ts b/src/TemplateProcessor.ts index af804539..2f5e7803 100644 --- a/src/TemplateProcessor.ts +++ b/src/TemplateProcessor.ts @@ -1962,10 +1962,11 @@ export default class TemplateProcessor { } out(jsonPointer:JsonPointerString){ - if(jp.has(this.output, jsonPointer)){ - return jp.get(this.output, jsonPointer) - } - return null; + try{ + return jp.get(this.output, jsonPointer); + }catch(e){ + return null; + } } private async localImport(localPath: string) {