@wooksjs/express-adapter 0.3.0 → 0.4.9

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.
package/dist/index.cjs CHANGED
@@ -56,7 +56,7 @@ class WooksExpress extends eventHttp.WooksHttp {
56
56
  this.opts = opts;
57
57
  expressApp.use(this.getServerCb());
58
58
  }
59
- async listen(...args) {
59
+ listen(...args) {
60
60
  const server = this.server = this.expressApp.listen(...args);
61
61
  return new Promise((resolve, reject) => {
62
62
  server.once("listening", resolve);
package/dist/index.mjs CHANGED
@@ -54,7 +54,7 @@ class WooksExpress extends WooksHttp {
54
54
  this.opts = opts;
55
55
  expressApp.use(this.getServerCb());
56
56
  }
57
- async listen(...args) {
57
+ listen(...args) {
58
58
  const server = this.server = this.expressApp.listen(...args);
59
59
  return new Promise((resolve, reject) => {
60
60
  server.once("listening", resolve);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wooksjs/express-adapter",
3
- "version": "0.3.0",
3
+ "version": "0.4.9",
4
4
  "description": "Express Adapter for Wooks Composables",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -24,9 +24,15 @@
24
24
  "exports": {
25
25
  ".": {
26
26
  "node": {
27
+ "default": "./dist/index.mjs",
27
28
  "require": "./dist/index.cjs",
28
- "import": "./dist/index.mjs"
29
- }
29
+ "import": "./dist/index.mjs",
30
+ "types": "./dist/index.d.ts"
31
+ },
32
+ "default": "./dist/index.mjs",
33
+ "require": "./dist/index.cjs",
34
+ "import": "./dist/index.mjs",
35
+ "types": "./dist/index.d.ts"
30
36
  }
31
37
  },
32
38
  "keywords": [
@@ -59,8 +65,8 @@
59
65
  },
60
66
  "homepage": "https://github.com/wooksjs/express-adapter#readme",
61
67
  "peerDependencies": {
62
- "@wooksjs/event-http": "^0.3.0",
63
- "wooks": "^0.3.0",
68
+ "@wooksjs/event-http": "^0.4.8",
69
+ "wooks": "^0.4.8",
64
70
  "express": "^4.0.0"
65
71
  },
66
72
  "devDependencies": {
@@ -70,8 +76,8 @@
70
76
  "@types/node": "^18.11.0",
71
77
  "@typescript-eslint/eslint-plugin": "^5.42.0",
72
78
  "@typescript-eslint/parser": "^5.0.0",
73
- "@wooksjs/event-http": "^0.3.0",
74
- "@wooksjs/http-body": "^0.3.0",
79
+ "@wooksjs/event-http": "^0.4.8",
80
+ "@wooksjs/http-body": "^0.4.8",
75
81
  "conventional-changelog": "^3.1.24",
76
82
  "conventional-changelog-cli": "^2.1.1",
77
83
  "enquirer": "^2.3.6",