Skip to content

Commit

Permalink
update gerror module
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Nov 1, 2021
1 parent 7ed622e commit 0d66a19
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 90 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"brolog": "^1.13.6",
"clone-class": "^1.0.2",
"file-box": "^1.2.3",
"gerror": "^0.2.1",
"gerror": "^1.0.2",
"memory-card": "^0.12.2",
"state-switch": "^1.1.14",
"typed-emitter": "^1.4.0",
Expand Down
29 changes: 0 additions & 29 deletions src/helpers/wrap-async-error.spec.ts

This file was deleted.

50 changes: 0 additions & 50 deletions src/helpers/wrap-async-error.ts

This file was deleted.

6 changes: 2 additions & 4 deletions src/mods/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ import {
} from 'state-switch'
import {
GError,
wrapAsyncError,
} from 'gerror'

import type {
WrapAsync,
} from '../helpers/wrap-async-error.js'
import {
wrapAsyncError,
} from '../helpers/wrap-async-error.js'
} from 'gerror'

export type {
WrapAsync,
Expand Down
11 changes: 5 additions & 6 deletions src/puppet/puppet-skelton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,13 @@ import {
* @see https://github.com/wechaty/puppet/issues/165
*/

import { GError } from 'gerror'

import type {
WrapAsync,
} from '../helpers/wrap-async-error.js'
import {
GError,
wrapAsyncError,
} from '../helpers/wrap-async-error.js'
} from 'gerror'
import type {
WrapAsync,
} from 'gerror'

import type { EventErrorPayload } from '../schemas/event.js'

Expand Down

0 comments on commit 0d66a19

Please sign in to comment.