@vulkano/core 1.15.1 → 1.15.3

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.
@@ -900,8 +900,8 @@ module.exports = function loadServer() {
900
900
  }
901
901
 
902
902
  if (toExecute) {
903
- socket.on(i, (body) => {
904
- toExecute({ socket, body: body || {} });
903
+ socket.on(i, (body, callback) => {
904
+ toExecute({ socket, body: body || {} }, callback || (() => {}));
905
905
  });
906
906
  } else {
907
907
  console.error('\x1b[31mError:', 'Controller not found in', (module) ? `${module}.${controller}.${action}` : `${controller}.${action}`, '\x1b[0m', 'to socket event', i);
package/libs/Jwt.js CHANGED
@@ -207,12 +207,15 @@ module.exports = {
207
207
  */
208
208
  socket(socket) {
209
209
 
210
- const {
210
+ let {
211
211
  token
212
212
  } = socket.handshake.auth || {};
213
213
 
214
214
  if (token === null || typeof token === 'undefined' || !token) {
215
- return this.getToken(socket.handshake);
215
+ token = this.getToken(socket.handshake);
216
+ if (!token) {
217
+ return null;
218
+ }
216
219
  }
217
220
 
218
221
  // Decode Token
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vulkano/core",
3
- "version": "1.15.1",
3
+ "version": "1.15.3",
4
4
  "description": "A MVC framework using Express 4",
5
5
  "license": "MIT",
6
6
  "author": "Vulkano Team",
@@ -32,40 +32,40 @@
32
32
  "@socket.io/redis-adapter": "^8.3.0",
33
33
  "axios": "^1.8.1",
34
34
  "bluebird": "^3.7.2",
35
- "body-parser": "^1.20.3",
35
+ "body-parser": "^2.2.0",
36
36
  "compression": "^1.8.0",
37
37
  "connect-timeout": "^1.9.0",
38
38
  "cookie-parser": "^1.4.7",
39
- "cron": "^4.1.0",
39
+ "cron": "^4.3.1",
40
40
  "deepmerge": "^4.3.1",
41
- "dotenv": "^16.4.7",
42
- "express": "^4.21.2",
41
+ "dotenv": "^16.5.0",
42
+ "express": "^5.1.0",
43
43
  "express-jwt": "^8.5.1",
44
44
  "express-session": "^1.18.1",
45
45
  "express-useragent": "^1.0.15",
46
46
  "frameguard": "^4.0.0",
47
47
  "fs": "^0.0.1-security",
48
48
  "fs-extra": "^11.3.0",
49
- "helmet": "^8.0.0",
50
- "i18next": "^24.2.2",
49
+ "helmet": "^8.1.0",
50
+ "i18next": "^25.2.1",
51
51
  "include-all": "^4.0.3",
52
52
  "jwt-simple": "^0.5.6",
53
53
  "moment": "^2.30.1",
54
- "moment-timezone": "^0.5.47",
55
- "mongoose": "^8.12.1",
56
- "mongoose-paginate-v2": "^1.9.0",
54
+ "moment-timezone": "^0.6.0",
55
+ "mongoose": "^8.16.0",
56
+ "mongoose-paginate-v2": "^1.9.1",
57
57
  "morgan": "^1.10.0",
58
- "multer": "^1.4.5-lts.1",
59
- "nodemon": "^3.1.9",
58
+ "multer": "^2.0.1",
59
+ "nodemon": "^3.1.10",
60
60
  "nunjucks": "^3.2.4",
61
61
  "path": "^0.12.7",
62
62
  "promise.prototype.finally": "^3.1.8",
63
- "redis": "^4.7.0",
63
+ "redis": "^5.5.6",
64
64
  "socket.io": "^4.8.1",
65
65
  "socket.io-adapter": "^2.5.5",
66
66
  "socket.io-client": "4.8.1",
67
67
  "underscore": "^1.13.7",
68
- "yargs": "^17.7.2"
68
+ "yargs": "^18.0.0"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@babel/core": "^7.26.9",
package/yarn-error.log DELETED
@@ -1,116 +0,0 @@
1
- Arguments:
2
- /Users/IvanMel/.nvm/versions/node/v22.13.1/bin/node /Users/IvanMel/.yarn/bin/yarn.js install
3
-
4
- PATH:
5
- /Users/IvanMel/.nvm/versions/node/v22.13.1/bin:/Users/IvanMel/.bun/bin:/Users/IvanMel/.pyenv/shims:/Users/IvanMel/.pyenv/bin:/usr/local/bin:/usr/local/sbin:/Users/IvanMel/.yarn/bin:/Users/IvanMel/.config/yarn/global/node_modules/.bin:/Users/IvanMel/.nvm/versions/node/v20.9.0/bin:/opt/homebrew/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/IvanMel/Library/Android/sdk/platform-tools/:/Users/IvanMel/.fig/bin:/Users/IvanMel/.local/bin
6
-
7
- Yarn version:
8
- 1.22.19
9
-
10
- Node version:
11
- 22.13.1
12
-
13
- Platform:
14
- darwin arm64
15
-
16
- Trace:
17
- SyntaxError: /Users/IvanMel/Sites/dailyscript/vulkano/framework/node_modules/@vulkano/core/package.json: Expected double-quoted property name in JSON at position 2371 (line 85 column 3)
18
- at JSON.parse (<anonymous>)
19
- at /Users/IvanMel/.yarn/lib/cli.js:1629:59
20
- at Generator.next (<anonymous>)
21
- at step (/Users/IvanMel/.yarn/lib/cli.js:310:30)
22
- at /Users/IvanMel/.yarn/lib/cli.js:321:13
23
-
24
- npm manifest:
25
- {
26
- "name": "@vulkano/core",
27
- "version": "1.14.0",
28
- "description": "A MVC framework using Express 4",
29
- "license": "MIT",
30
- "author": "Vulkano Team",
31
- "engines": {
32
- "node": "^18 || ^20"
33
- },
34
- "main": "app.js",
35
- "scripts": {
36
- "test": "echo \"Error: no test specified\" && exit 1"
37
- },
38
- "preferGlobal": true,
39
- "homepage": "https://github.com/vulkanojs/vulkano-core",
40
- "repository": {
41
- "type": "git",
42
- "url": "git+https://github.com/vulkanojs/vulkano-core.git"
43
- },
44
- "keywords": [
45
- "vulkano",
46
- "vulkano-core",
47
- "express",
48
- "mongo",
49
- "mongoose"
50
- ],
51
- "bugs": {
52
- "url": "https://github.com/vulkanojs/vulkano-core/issues"
53
- },
54
- "dependencies": {
55
- "@socket.io/mongo-adapter": "^0.3.2",
56
- "@socket.io/redis-adapter": "^8.3.0",
57
- "axios": "^1.7.2",
58
- "bluebird": "^3.7.2",
59
- "body-parser": "^1.20.2",
60
- "compression": "^1.7.4",
61
- "connect-timeout": "^1.9.0",
62
- "cookie-parser": "^1.4.6",
63
- "cron": "^3.1.7",
64
- "deepmerge": "^4.3.1",
65
- "dotenv": "^16.4.5",
66
- "express": "^4.19.2",
67
- "express-jwt": "^8.4.1",
68
- "express-session": "^1.18.0",
69
- "express-useragent": "^1.0.15",
70
- "frameguard": "^4.0.0",
71
- "fs": "^0.0.1-security",
72
- "fs-extra": "^11.2.0",
73
- "helmet": "^7.1.0",
74
- "i18next": "^23.11.5",
75
- "include-all": "^4.0.3",
76
- "jwt-simple": "^0.5.6",
77
- "moment": "^2.30.1",
78
- "moment-timezone": "^0.5.45",
79
- "mongoose": "^7.6.10",
80
- "mongoose-paginate": "^5.0.3",
81
- "morgan": "^1.10.0",
82
- "multer": "^1.4.5-lts.1",
83
- "nodemon": "^3.1.3",
84
- "nunjucks": "^3.2.4",
85
- "path": "^0.12.7",
86
- "promise.prototype.finally": "^3.1.8",
87
- "redis": "^4.6.14",
88
- "socket.io": "^4.7.5",
89
- "socket.io-adapter": "^2.5.4",
90
- "socket.io-client": "4.7.5",
91
- "underscore": "^1.13.6",
92
- "yargs": "^17.7.2"
93
- },
94
- "devDependencies": {
95
- "@babel/core": "^7.26.9",
96
- "@babel/eslint-parser": "^7.26.8",
97
- "@babel/plugin-syntax-dynamic-import": "^7.8.3",
98
- "@babel/plugin-syntax-jsx": "^7.25.9",
99
- "@babel/preset-env": "^7.26.9",
100
- "@babel/preset-react": "^7.26.3",
101
- "@babel/preset-stage-1": "^7.8.3",
102
- "eslint": "^8.57.0",
103
- "eslint-config-airbnb": "^19.0.4",
104
- "eslint-import-resolver-alias": "^1.1.2",
105
- "eslint-plugin-import": "^2.31.0",
106
- "eslint-plugin-jsx-a11y": "^6.10.2",
107
- "eslint-plugin-react": "^7.37.4",
108
- "eslint-plugin-react-hooks": "^4.6.2",
109
- }
110
- }
111
-
112
- yarn manifest:
113
- No manifest
114
-
115
- Lockfile:
116
- No lockfile