@wooksjs/express-adapter 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -21,8 +21,8 @@ Want to use [@wooksjs/event-http](https://www.npmjs.com/package/@wooksjs/event-h
21
21
  import express from 'express'
22
22
  import { applyExpressAdapter } from '@wooksjs/express-adapter'
23
23
  import { useBody } from '@wooksjs/http-body'
24
- import { WooksError } from '@wooksjs/event-http'
25
- import { useRouteParams } = from '@wooksjs/event-core'
24
+ import { HttpError } from '@wooksjs/event-http'
25
+ import { useRouteParams } from '@wooksjs/event-core'
26
26
 
27
27
  const app = express()
28
28
 
@@ -39,7 +39,7 @@ app.post('/post', () => {
39
39
  })
40
40
 
41
41
  app.get('/error', () => {
42
- throw new WooksError(400, 'test error')
42
+ throw new HttpError(400, 'test error')
43
43
  })
44
44
 
45
45
  app.listen(3000, () => console.log('listening 3000'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wooksjs/express-adapter",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Express Adapter for Wooks Composables",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "homepage": "https://github.com/wooksjs/express-adapter#readme",
61
61
  "peerDependencies": {
62
- "@wooksjs/event-http": "^0.1.0",
62
+ "@wooksjs/event-http": "^0.2.9",
63
63
  "express": "^4.0.0"
64
64
  },
65
65
  "devDependencies": {
@@ -69,8 +69,8 @@
69
69
  "@types/node": "^18.11.0",
70
70
  "@typescript-eslint/eslint-plugin": "^5.42.0",
71
71
  "@typescript-eslint/parser": "^5.0.0",
72
- "@wooksjs/event-http": "^0.1.0",
73
- "@wooksjs/http-body": "^0.1.0",
72
+ "@wooksjs/event-http": "^0.2.9",
73
+ "@wooksjs/http-body": "^0.2.9",
74
74
  "conventional-changelog": "^3.1.24",
75
75
  "conventional-changelog-cli": "^2.1.1",
76
76
  "enquirer": "^2.3.6",