提交 2b07171b 编写于 作者: M mxd

Merge branch 'dev'

......@@ -52,7 +52,7 @@ magic-api 是一个基于Java的接口快速开发框架,编写接口将通过
<dependency>
<groupId>org.ssssssss</groupId>
<artifactId>magic-api-spring-boot-starter</artifactId>
<version>1.4.4</version>
<version>1.4.5</version>
</dependency>
```
## 修改application.properties
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>org.ssssssss</groupId>
<artifactId>magic-api-parent</artifactId>
<version>1.4.4</version>
<version>1.4.5</version>
</parent>
<artifactId>magic-api-spring-boot-starter</artifactId>
<packaging>jar</packaging>
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>org.ssssssss</groupId>
<artifactId>magic-api-parent</artifactId>
<version>1.4.4</version>
<version>1.4.5</version>
</parent>
<artifactId>magic-api</artifactId>
<packaging>jar</packaging>
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>org.ssssssss</groupId>
<artifactId>magic-api-parent</artifactId>
<version>1.4.4</version>
<version>1.4.5</version>
</parent>
<artifactId>magic-editor</artifactId>
<packaging>jar</packaging>
......
{
"name": "magic-editor",
"version": "1.4.4",
"version": "1.4.5",
"private": false,
"description": "magic-editor for magic-api",
"main": "dist/magic-editor.umd.min.js",
......
......@@ -792,7 +792,7 @@ export class Parser {
} else if (token.getTokenType() === TokenType.Identifier) {
let defineName = token.getText()
let define = ['var','let','const'].indexOf(token.getText()) > -1;
if (define || (this.stream.hasMore() && this.stream.getToken().type === TokenType.Identifier)) {
if (define || (this.stream.hasMore() && this.stream.getToken().type === TokenType.Identifier && keywords.indexOf(defineName) === -1)) {
let varName = this.stream.consume().getText();
if (this.stream.match(TokenType.Assignment, true)) {
let isAsync = this.stream.match("async", true);
......@@ -818,9 +818,6 @@ export class Parser {
}
if (returnJavaType) {
if(expression instanceof VariableAccess){
return env[expression.getVariable()];
}
return expression && await expression.getJavaType(env);
}
return env;
......
......@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.ssssssss</groupId>
<artifactId>magic-api-parent</artifactId>
<version>1.4.4</version>
<version>1.4.5</version>
<packaging>pom</packaging>
<name>magic-api-parent</name>
<description>auto generate http api</description>
......@@ -30,7 +30,7 @@
</scm>
<properties>
<spring-boot.version>2.4.5</spring-boot.version>
<magic-script.version>1.5.4</magic-script.version>
<magic-script.version>1.5.5</magic-script.version>
<commons-compress.version>1.21</commons-compress.version>
<commons-io.version>2.7</commons-io.version>
<commons-text.version>1.6</commons-text.version>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册