sails-hook-shipwright 0.2.2 → 0.3.1

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/.husky/commit-msg CHANGED
@@ -1,4 +1 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
1
  npx --no -- commitlint --edit ${1}
package/.husky/pre-commit CHANGED
@@ -1,4 +1 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
1
  npx lint-staged
package/index.js CHANGED
@@ -126,10 +126,9 @@ module.exports = function defineShipwrightHook(sails) {
126
126
  const rsbuildDevServer = await rsbuild.createDevServer()
127
127
  sails.after('hook:http:loaded', async () => {
128
128
  sails.hooks.http.app.use(rsbuildDevServer.middlewares)
129
- sails.hooks.http.server.on(
130
- 'upgrade',
131
- rsbuildDevServer.onHTTPUpgrade
132
- )
129
+ rsbuildDevServer.connectWebSocket({
130
+ server: sails.hooks.http.server
131
+ })
133
132
  })
134
133
  sails.on('lifted', async () => {
135
134
  await rsbuildDevServer.afterListen()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sails-hook-shipwright",
3
- "version": "0.2.2",
3
+ "version": "0.3.1",
4
4
  "description": "The modern asset pipeline for Sails",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,14 +30,14 @@
30
30
  "hookName": "shipwright"
31
31
  },
32
32
  "dependencies": {
33
- "@rsbuild/core": "^0.7.10"
33
+ "@rsbuild/core": "^1.1.8"
34
34
  },
35
35
  "devDependencies": {
36
- "@commitlint/cli": "^18.4.3",
37
- "@commitlint/config-conventional": "^18.4.3",
38
- "husky": "^8.0.3",
39
- "lint-staged": "^15.2.0",
40
- "prettier": "3.1.1"
36
+ "@commitlint/cli": "^19.6.0",
37
+ "@commitlint/config-conventional": "^19.6.0",
38
+ "husky": "^9.1.7",
39
+ "lint-staged": "^15.2.10",
40
+ "prettier": "^3.4.1"
41
41
  },
42
42
  "lint-staged": {
43
43
  "**/*": "prettier --write --ignore-unknown"
Binary file
Binary file
Binary file
Binary file
Binary file