Skip to content

Commit 158b713

Browse files
committed
feat: registry 验证 Edition
Signed-off-by: wss-git <wssgryx@163.com>
1 parent a1f3456 commit 158b713

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export function checkEdition(str: string) {
1414
return;
1515
}
1616
const { Edition } = yaml.load(str) as Record<string, any>;
17-
if (Edition && Edition !== '2.0.0') {
18-
const message: string = `Edition must be 2.0.0 version. Please join DingTalk group: 33947367 for consultation`;
17+
if (Edition && Edition !== '2.0.0' && Edition !== '1.0.0') {
18+
const message: string = `Edition must be 2.0.0 / 1.0.0 version. Please join DingTalk group: 33947367 for consultation`;
1919
throw new Error(message);
2020
}
2121
}

0 commit comments

Comments
 (0)