@feathersjs/socketio 5.0.0-pre.27 → 5.0.0-pre.29
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/CHANGELOG.md +22 -0
- package/lib/index.js +4 -0
- package/lib/index.js.map +1 -1
- package/package.json +15 -13
- package/src/index.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [5.0.0-pre.29](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.28...v5.0.0-pre.29) (2022-09-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **socketio:** Reinitialize hooks on overriden setup method ([#2722](https://github.com/feathersjs/feathers/issues/2722)) ([5e8e7c4](https://github.com/feathersjs/feathers/commit/5e8e7c442238fdc929a0a36b8b8ca2b230ce761f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [5.0.0-pre.28](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.27...v5.0.0-pre.28) (2022-08-03)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **cli:** Improve generated application and client ([#2701](https://github.com/feathersjs/feathers/issues/2701)) ([bd55ffb](https://github.com/feathersjs/feathers/commit/bd55ffb812e89bf215f4515e7f137656ea888c3f))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [5.0.0-pre.27](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.26...v5.0.0-pre.27) (2022-07-13)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @feathersjs/socketio
|
package/lib/index.js
CHANGED
|
@@ -6,6 +6,7 @@ const http_1 = __importDefault(require("http"));
|
|
|
6
6
|
const socket_io_1 = require("socket.io");
|
|
7
7
|
const commons_1 = require("@feathersjs/commons");
|
|
8
8
|
const transport_commons_1 = require("@feathersjs/transport-commons");
|
|
9
|
+
const hooks_1 = require("@feathersjs/hooks");
|
|
9
10
|
const middleware_1 = require("./middleware");
|
|
10
11
|
const debug = (0, commons_1.createDebug)('@feathersjs/socketio');
|
|
11
12
|
function configureSocketio(port, options, config) {
|
|
@@ -57,6 +58,9 @@ function configureSocketio(port, options, config) {
|
|
|
57
58
|
return setup.call(this, server, ...rest);
|
|
58
59
|
}
|
|
59
60
|
});
|
|
61
|
+
(0, hooks_1.hooks)(app, {
|
|
62
|
+
setup: (0, hooks_1.middleware)().params('server').props({ app })
|
|
63
|
+
});
|
|
60
64
|
});
|
|
61
65
|
app.configure((0, transport_commons_1.socket)({
|
|
62
66
|
done,
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,gDAAuB;AACvB,yCAAiD;AACjD,iDAAiD;AAEjD,qEAAsD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,gDAAuB;AACvB,yCAAiD;AACjD,iDAAiD;AAEjD,qEAAsD;AACtD,6CAAqD;AAErD,6CAAiF;AAEjF,MAAM,KAAK,GAAG,IAAA,qBAAW,EAAC,sBAAsB,CAAC,CAAA;AAoBjD,SAAS,iBAAiB,CAAC,IAAU,EAAE,OAAa,EAAE,MAAY;IAChE,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,MAAM,GAAG,OAAO,CAAA;QAChB,OAAO,GAAG,IAAI,CAAA;QACd,IAAI,GAAG,IAAI,CAAA;KACZ;IAED,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,MAAM,GAAG,OAAO,CAAA;QAChB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AG,CAAC,IAAA,2BAAc,EAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAA;wBAEtC,gEAAgE;wBAChE,wDAAwD;wBACxD,qEAAqE;wBACrE,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC,CAAA;qBAC/B;oBAED,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE;wBAChC,KAAK,CAAC,yCAAyC,CAAC,CAAA;wBAChD,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAA;qBAC3B;oBAED,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;oBAEhB,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,CAAA;gBAC1C,CAAC;aACF,CAAC,CAAA;YAEF,IAAA,aAAK,EAAC,GAAG,EAAE;gBACT,KAAK,EAAE,IAAA,kBAAU,GAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;aACpD,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;QAEF,GAAG,CAAC,SAAS,CACX,IAAA,0BAAM,EAAC;YACL,IAAI;YACJ,SAAS;YACT,SAAS;YACT,IAAI,EAAE,MAAM;SACb,CAAC,CACH,CAAA;IACH,CAAC,CAAA;AACH,CAAC;AAED,iBAAS,iBAAiB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feathersjs/socketio",
|
|
3
3
|
"description": "The Feathers Socket.io real-time API provider",
|
|
4
|
-
"version": "5.0.0-pre.
|
|
4
|
+
"version": "5.0.0-pre.29",
|
|
5
5
|
"homepage": "https://feathersjs.com",
|
|
6
6
|
"main": "lib/",
|
|
7
7
|
"types": "lib/",
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
],
|
|
43
43
|
"scripts": {
|
|
44
44
|
"prepublish": "npm run compile",
|
|
45
|
-
"
|
|
45
|
+
"pack": "npm pack --pack-destination ../cli/test",
|
|
46
|
+
"compile": "shx rm -rf lib/ && tsc && npm run pack",
|
|
46
47
|
"test": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
|
|
47
48
|
},
|
|
48
49
|
"directories": {
|
|
@@ -52,22 +53,23 @@
|
|
|
52
53
|
"access": "public"
|
|
53
54
|
},
|
|
54
55
|
"dependencies": {
|
|
55
|
-
"@feathersjs/commons": "^5.0.0-pre.
|
|
56
|
-
"@feathersjs/feathers": "^5.0.0-pre.
|
|
57
|
-
"@feathersjs/
|
|
58
|
-
"
|
|
56
|
+
"@feathersjs/commons": "^5.0.0-pre.29",
|
|
57
|
+
"@feathersjs/feathers": "^5.0.0-pre.29",
|
|
58
|
+
"@feathersjs/hooks": "^0.7.5",
|
|
59
|
+
"@feathersjs/transport-commons": "^5.0.0-pre.29",
|
|
60
|
+
"socket.io": "^4.5.2"
|
|
59
61
|
},
|
|
60
62
|
"devDependencies": {
|
|
61
|
-
"@feathersjs/express": "^5.0.0-pre.
|
|
62
|
-
"@feathersjs/memory": "^5.0.0-pre.
|
|
63
|
-
"@feathersjs/tests": "^5.0.0-pre.
|
|
63
|
+
"@feathersjs/express": "^5.0.0-pre.29",
|
|
64
|
+
"@feathersjs/memory": "^5.0.0-pre.29",
|
|
65
|
+
"@feathersjs/tests": "^5.0.0-pre.29",
|
|
64
66
|
"@types/mocha": "^9.1.1",
|
|
65
|
-
"@types/node": "^18.
|
|
67
|
+
"@types/node": "^18.7.17",
|
|
66
68
|
"lodash": "^4.17.21",
|
|
67
69
|
"mocha": "^10.0.0",
|
|
68
70
|
"shx": "^0.3.4",
|
|
69
|
-
"socket.io-client": "^4.5.
|
|
70
|
-
"typescript": "^4.
|
|
71
|
+
"socket.io-client": "^4.5.2",
|
|
72
|
+
"typescript": "^4.8.3"
|
|
71
73
|
},
|
|
72
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "4314dc89a41a8bbaabf00b47697bf7887861d17d"
|
|
73
75
|
}
|
package/src/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { Server, ServerOptions } from 'socket.io'
|
|
|
3
3
|
import { createDebug } from '@feathersjs/commons'
|
|
4
4
|
import { Application } from '@feathersjs/feathers'
|
|
5
5
|
import { socket } from '@feathersjs/transport-commons'
|
|
6
|
+
import { hooks, middleware } from '@feathersjs/hooks'
|
|
6
7
|
|
|
7
8
|
import { disconnect, params, authentication, FeathersSocket } from './middleware'
|
|
8
9
|
|
|
@@ -87,6 +88,10 @@ function configureSocketio(port?: any, options?: any, config?: any) {
|
|
|
87
88
|
return setup.call(this, server, ...rest)
|
|
88
89
|
}
|
|
89
90
|
})
|
|
91
|
+
|
|
92
|
+
hooks(app, {
|
|
93
|
+
setup: middleware().params('server').props({ app })
|
|
94
|
+
})
|
|
90
95
|
})
|
|
91
96
|
|
|
92
97
|
app.configure(
|