Skip to content

Commit

Permalink
fix: ignore json parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Dec 26, 2024
1 parent f02108c commit 8c6bff0
Show file tree
Hide file tree
Showing 17 changed files with 285 additions and 230 deletions.
7 changes: 7 additions & 0 deletions apps/zhi-infra/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# zhi-infra

## 0.21.7

### Patch Changes

- Updated dependencies
- zhi-common@1.33.1

## 0.21.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/zhi-infra/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zhi-infra",
"version": "0.21.6",
"version": "0.21.7",
"type": "module",
"description": "basic issues for zhi",
"main": "./dist/index.cjs",
Expand Down
7 changes: 7 additions & 0 deletions libs/zhi-blog-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# zhi-blog-api

## 1.67.2

### Patch Changes

- Updated dependencies
- zhi-common@1.33.1

## 1.67.1

### Patch 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.67.1",
"version": "1.67.2",
"type": "module",
"description": "a common blog interface",
"main": "./dist/index.js",
Expand Down
6 changes: 6 additions & 0 deletions libs/zhi-common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# zhi-common

## 1.33.1

### Patch Changes

- fix: ignore json parse error

## 1.33.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion libs/zhi-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zhi-common",
"version": "1.33.0",
"version": "1.33.1",
"type": "module",
"description": "a collection of util tools",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion libs/zhi-common/src/lib/jsonUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class JsonUtil {
ret = JSON.parse(str) || def
} catch (e) {
ret = def
this.logger.warn("json parse error", e)
this.logger.debug("json parse error", e)
}

// 如果json被二次转义,在尝试解析一次
Expand Down
7 changes: 7 additions & 0 deletions libs/zhi-fetch-middleware/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# zhi-fetch-middleware

## 0.13.1

### Patch Changes

- Updated dependencies
- zhi-common@1.33.1

## 0.13.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion libs/zhi-fetch-middleware/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zhi-fetch-middleware",
"version": "0.13.0",
"version": "0.13.1",
"type": "module",
"description": "an intermediate tier prepared for fetch requests",
"main": "./dist/index.js",
Expand Down
7 changes: 7 additions & 0 deletions libs/zhi-github-middleware/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# zhi-github-middleware

## 0.5.1

### Patch Changes

- Updated dependencies
- zhi-common@1.33.1

## 0.5.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion libs/zhi-github-middleware/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zhi-github-middleware",
"version": "0.5.0",
"version": "0.5.1",
"type": "module",
"description": "a middleware for github api",
"main": "./dist/index.js",
Expand Down
6 changes: 6 additions & 0 deletions libs/zhi-gitlab-middleware/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# zhi-gitlab-middleware

## 0.11.1

### Patch Changes

- zhi-fetch-middleware@0.13.1

## 0.11.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion libs/zhi-gitlab-middleware/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zhi-gitlab-middleware",
"version": "0.11.0",
"version": "0.11.1",
"type": "module",
"description": "a middleware for gitlab api ",
"main": "./dist/index.js",
Expand Down
Loading

0 comments on commit 8c6bff0

Please sign in to comment.