Skip to content

Commit

Permalink
chore: release v1.9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
aooiuu committed Jul 29, 2024
1 parent 7315b1b commit 636a835
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "docs",
"type": "module",
"version": "1.9.7",
"version": "1.9.8",
"private": true,
"scripts": {
"docs:dev": "vitepress dev",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "any-reader",
"type": "module",
"version": "1.9.7",
"version": "1.9.8",
"private": true,
"packageManager": "pnpm@9.4.0",
"description": "",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@any-reader/cli",
"type": "commonjs",
"version": "1.9.7",
"version": "1.9.8",
"description": "",
"author": "aooiuu <aooiu@qq.com>",
"license": "GPL3",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@any-reader/core",
"type": "module",
"version": "1.9.7",
"version": "1.9.8",
"description": "",
"author": "aooiuu <aooiu@qq.com>",
"license": "GPL3",
Expand Down
2 changes: 1 addition & 1 deletion packages/epub/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@any-reader/epub",
"version": "1.9.7",
"version": "1.9.8",
"description": "",
"scripts": {
"build": "unbuild"
Expand Down
2 changes: 1 addition & 1 deletion packages/rubick/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@any-reader/rubick",
"type": "commonjs",
"version": "1.9.7",
"version": "1.9.8",
"private": true,
"description": "",
"author": "aooiuu <aooiu@qq.com>",
Expand Down
2 changes: 1 addition & 1 deletion packages/rule-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@any-reader/rule-utils",
"type": "module",
"version": "1.9.7",
"version": "1.9.8",
"description": "",
"author": "aooiuu <aooiu@qq.com>",
"license": "GPL3",
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@any-reader/server",
"type": "module",
"version": "1.9.7",
"version": "1.9.8",
"description": "",
"author": "aooiuu <aooiu@qq.com>",
"license": "GPL3",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@any-reader/shared",
"type": "module",
"version": "1.9.7",
"version": "1.9.8",
"description": "",
"author": "aooiuu <aooiu@qq.com>",
"license": "GPL3",
Expand Down
1 change: 0 additions & 1 deletion packages/shared/src/controller/ResourceHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export class ResourceHistory extends BaseController {
// 添加一个记录
@Post('add')
async create(data: any) {
await this.del(data)
return await this.db.getResourceHistory().create(data)
}
}
5 changes: 4 additions & 1 deletion packages/shared/src/service/ChapterHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ export class ChapterHistoryService {
chapterPath: data.chapterPath,
})
if (!row) {
row = this.repository.create(data)
row = this.repository.create({
...data,
id: undefined,
})
row.createTime = Date.now()
}
row.updateTime = Date.now()
Expand Down
1 change: 1 addition & 0 deletions packages/shared/src/service/ResourceFavorites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export class ResourceFavoritesService {
const now = Date.now()
const entity = this.repository.create({
...data,
id: undefined,
createTime: now,
updateTime: now,
})
Expand Down
1 change: 1 addition & 0 deletions packages/shared/src/service/ResourceHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export class ResourceHistoryService {
const now = Date.now()
const entity = this.repository.create({
...data,
id: undefined,
createTime: now,
updateTime: now,
})
Expand Down
2 changes: 1 addition & 1 deletion packages/utools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@any-reader/utools",
"version": "1.9.7",
"version": "1.9.8",
"private": true,
"description": "",
"author": "aooiuu <aooiu@qq.com>",
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "any-reader",
"description": "摸鱼,自定义规则多站点聚合搜索阅读小说、漫画。包含JS规则解析库和VSCode插件。支持本地小说 TXT、EPUB",
"icon": "resources/icon.png",
"version": "1.9.7",
"version": "1.9.8",
"publisher": "aooiu",
"private": true,
"qna": "https://github.com/aooiuu/any-reader/issues",
Expand Down
2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@any-reader/web",
"version": "1.9.7",
"version": "1.9.8",
"description": "",
"author": "aooiuu <aooiu@qq.com>",
"license": "GPL3",
Expand Down

0 comments on commit 636a835

Please sign in to comment.