Skip to content

Commit

Permalink
feat: add forceProxy for telegra.ph like platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Mar 30, 2024
1 parent 80c519d commit 45bd0cd
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
6 changes: 6 additions & 0 deletions libs/zhi-blog-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# zhi-blog-api

## 1.61.0

### Minor Changes

- feat: add forceProxy for telegra.ph like platforms

## 1.60.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion libs/zhi-blog-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zhi-blog-api",
"version": "1.60.0",
"version": "1.61.0",
"type": "module",
"description": "a common blog interface",
"main": "./dist/index.js",
Expand Down
6 changes: 6 additions & 0 deletions libs/zhi-blog-api/src/lib/blogConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,11 @@ abstract class BlogConfig {
*/
public picbedService?: PicbedServiceTypeEnum

/**
* 强制使用代理
*/
public forceProxy?: boolean

protected constructor() {
this.home = ""
this.apiUrl = ""
Expand Down Expand Up @@ -324,6 +329,7 @@ abstract class BlogConfig {
this.bundledPicbedSupported = false
this.picbedService = PicbedServiceTypeEnum.None
this.imageStorePath = "images"
this.forceProxy = false
}
}

Expand Down
7 changes: 7 additions & 0 deletions libs/zhi-siyuan-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# zhi-siyuan-api

## 2.20.5

### Patch Changes

- Updated dependencies
- zhi-blog-api@1.61.0

## 2.20.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion libs/zhi-siyuan-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zhi-siyuan-api",
"version": "2.20.4",
"version": "2.20.5",
"type": "module",
"description": "a siyuan-note api including both kernel and client",
"main": "./dist/index.js",
Expand Down

0 comments on commit 45bd0cd

Please sign in to comment.