From 853fcc31e828c0604eede89e6b2fbf18b08a76ac Mon Sep 17 00:00:00 2001 From: wb-hx510875 <wb-hx510875@alibaba-inc.com> Date: Wed, 9 Dec 2020 14:27:17 +0800 Subject: [PATCH 1/2] chore: fix spelling --- src/langs/common/combinator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/langs/common/combinator.js b/src/langs/common/combinator.js index 4265950..402c53f 100644 --- a/src/langs/common/combinator.js +++ b/src/langs/common/combinator.js @@ -20,7 +20,7 @@ const { _lowerFirst, } = require('../../lib/helper.js'); -class BaseConbinator { +class BaseCombinator { constructor(config = {}, imports = {}) { this.level = 0; this.eol = ''; @@ -203,4 +203,4 @@ class BaseConbinator { } } -module.exports = BaseConbinator; +module.exports = BaseCombinator; From 266b34437bd37c01e66c166c899038e1e84fac77 Mon Sep 17 00:00:00 2001 From: wb-hx510875 <wb-hx510875@alibaba-inc.com> Date: Wed, 9 Dec 2020 14:27:29 +0800 Subject: [PATCH 2/2] chore: fix warning --- src/resolver/model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolver/model.js b/src/resolver/model.js index f94c05d..0ac892b 100644 --- a/src/resolver/model.js +++ b/src/resolver/model.js @@ -28,7 +28,7 @@ class ModelResolver extends BaseResolver { const config = this.config; const ast = this.ast; - assert.equal(ast.type, 'model'); + assert.strictEqual(ast.type, 'model'); combinator.config.emitType = 'model';