Skip to content

Commit

Permalink
fix output
Browse files Browse the repository at this point in the history
  • Loading branch information
anycodes committed Jun 16, 2021
1 parent 18fbf4b commit 6844bf3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/utils/addOssDomain/cdn.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "domain",
"main": "./dist/index.js",
"version": "0.0.11",
"version": "0.0.12",
"dependencies": {
"@alicloud/fc2": "^2.2.2",
"@alicloud/pop-core": "^1.7.10",
Expand Down
2 changes: 1 addition & 1 deletion publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Component
Name: domain
Provider:
- 阿里云
Version: 0.0.11
Version: 0.0.12
Description: 下发Serverless Devs默认域名
HomePage: https://github.com/devsapp/domain
Tags: #标签详情
Expand Down
4 changes: 2 additions & 2 deletions src/utils/addOssDomain/cdn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ export default class Cdn {
},
POST,
);
this.logger.debug(`DescribeCdnDomainDetail respones is: ${JSON.stringify(describeCdnDomainDetail)}`);
this.logger.debug(`DescribeCdnDomainDetail response is: ${JSON.stringify(describeCdnDomainDetail)}`);
i += 1;
cname = describeCdnDomainDetail.GetDomainDetailModel.Cname;
} while (!(cname || i > 5));

if (!cname) {
throw new Error('Not fount cdn cname, please retry.');
throw new Error('Not found cdn cname, please retry.');
}

return cname;
Expand Down

0 comments on commit 6844bf3

Please sign in to comment.