From d3764de29fa9eaa4fffec4b9be6603116e194186 Mon Sep 17 00:00:00 2001 From: Dan Selman Date: Tue, 22 Aug 2023 11:37:47 +0100 Subject: [PATCH] fix(types) bug in d.ts Signed-off-by: Dan Selman --- package-lock.json | 14 +++++++------- package.json | 20 ++++++++++---------- src/TemplateMarkInterpreter.ts | 2 +- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index 77d738b..f5b415c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,19 +1,19 @@ { "name": "@accordproject/template-engine", - "version": "2.3.2", + "version": "2.3.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@accordproject/template-engine", - "version": "2.3.2", + "version": "2.3.4", "license": "Apache-2.0", "dependencies": { - "@accordproject/concerto-codegen": "3.15.2", + "@accordproject/concerto-codegen": "^3.15.2", "@accordproject/concerto-core": "^3.11.1", "@accordproject/concerto-util": "^3.11.1", - "@accordproject/markdown-common": "0.16.19", - "@accordproject/markdown-template": "0.16.19", + "@accordproject/markdown-common": "^0.16.19", + "@accordproject/markdown-template": "^0.16.19", "@typescript/twoslash": "^3.2.1", "dayjs": "1.11.7", "jsonpath": "^1.1.1", @@ -22,8 +22,8 @@ "typescript": "^4.6.3" }, "devDependencies": { - "@accordproject/markdown-html": "0.16.19", - "@accordproject/markdown-template": "0.16.19", + "@accordproject/markdown-html": "^0.16.19", + "@accordproject/markdown-template": "^0.16.19", "@types/jest": "^28.1.1", "@types/jsonpath": "^0.2.0", "@types/semver": "7.3.10", diff --git a/package.json b/package.json index ed115db..300dc7a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@accordproject/template-engine", - "version": "2.3.3", + "version": "2.3.4", "description": "Generation of AgreementMark from TemplateMark + JSON Data", "homepage": "https://github.com/accordproject", "engines": { @@ -25,8 +25,7 @@ "coverage": "jest --coverage", "compile-js": "jest ./test/TypeScriptCompiler.test.ts", "test:watch": "jest --watchAll", - "updateRuntimeDependencies": "node ./scripts/updateRuntimeDependencies", - "updateCompiledTemplates": "rm -rf ./test/compiled-templates/ && mkdir ./test/compiled-templates/ && cp -r ./output/full ./test/compiled-templates/ " + "updateRuntimeDependencies": "node ./scripts/updateRuntimeDependencies" }, "repository": { "type": "git", @@ -34,17 +33,18 @@ }, "keywords": [ "concerto", - "tools", - "modeling" + "template", + "engine", + "templatemark" ], "author": "accordproject.org", "license": "Apache-2.0", "dependencies": { - "@accordproject/concerto-codegen": "3.15.2", + "@accordproject/concerto-codegen": "^3.15.2", "@accordproject/concerto-core": "^3.11.1", "@accordproject/concerto-util": "^3.11.1", - "@accordproject/markdown-common": "0.16.19", - "@accordproject/markdown-template": "0.16.19", + "@accordproject/markdown-common": "^0.16.19", + "@accordproject/markdown-template": "^0.16.19", "@typescript/twoslash": "^3.2.1", "dayjs": "1.11.7", "jsonpath": "^1.1.1", @@ -53,8 +53,8 @@ "typescript": "^4.6.3" }, "devDependencies": { - "@accordproject/markdown-html": "0.16.19", - "@accordproject/markdown-template": "0.16.19", + "@accordproject/markdown-html": "^0.16.19", + "@accordproject/markdown-template": "^0.16.19", "@types/jest": "^28.1.1", "@types/jsonpath": "^0.2.0", "@types/semver": "7.3.10", diff --git a/src/TemplateMarkInterpreter.ts b/src/TemplateMarkInterpreter.ts index 7d7ad3e..f6ab0b3 100644 --- a/src/TemplateMarkInterpreter.ts +++ b/src/TemplateMarkInterpreter.ts @@ -412,7 +412,7 @@ export class TemplateMarkInterpreter { return compiler.compile(templateMark); } - validateCiceroMark(ciceroMark: object) { + validateCiceroMark(ciceroMark: object) : object { const modelManager = new ModelManager({ strict: true }); modelManager.addCTOModel(ConcertoMetaModel.MODEL, 'concertometamodel.cto'); modelManager.addCTOModel(CommonMarkModel.MODEL, 'commonmark.cto');