@veryfront/ext-node-websocket-ws 0.1.1189 → 0.1.1191
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/README.md +9 -14
- package/esm/index.d.ts +2 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,25 +1,20 @@
|
|
|
1
1
|
# `@veryfront/ext-node-websocket-ws`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Default Node.js WebSocket transport for Veryfront, backed by the `ws` package.
|
|
4
4
|
Core owns request authorization, upgrade correlation, and shutdown. This
|
|
5
5
|
extension owns the third-party protocol implementation and publishes the
|
|
6
6
|
dependency-free `NodeWebSocketServerProvider` contract.
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
The standard `veryfront` npm/CLI distribution installs and auto-activates the
|
|
9
|
+
extension, so local HMR works without starter-specific configuration. A custom
|
|
10
|
+
Node service distribution must install the package alongside `veryfront`:
|
|
9
11
|
|
|
10
12
|
```bash
|
|
11
13
|
deno add npm:@veryfront/ext-node-websocket-ws
|
|
12
14
|
```
|
|
13
15
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
extensions: [extNodeWebSocketWs()],
|
|
20
|
-
});
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Veryfront never auto-loads this package and has no built-in WebSocket fallback.
|
|
24
|
-
Without an explicitly registered provider, Node HTTP requests remain available
|
|
25
|
-
but Node WebSocket upgrades fail closed with an actionable diagnostic.
|
|
16
|
+
Projects can disable the builtin with
|
|
17
|
+
`{ name: "ext-node-websocket-ws", enabled: false }`. Without an available
|
|
18
|
+
provider, Node HTTP requests remain available but Node WebSocket upgrades fail
|
|
19
|
+
closed with an actionable diagnostic. Core never imports `ws` or substitutes a
|
|
20
|
+
hidden protocol fallback.
|
package/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** Default `ws` implementation of Veryfront's Node WebSocket contract. */
|
|
2
2
|
import type { ExtensionFactory } from "veryfront/extensions";
|
|
3
3
|
export declare const WsNodeWebSocketServerProvider: any;
|
|
4
|
-
/** Create the
|
|
4
|
+
/** Create the standard Node.js `ws` transport extension. */
|
|
5
5
|
export declare const extNodeWebSocketWs: ExtensionFactory;
|
|
6
6
|
export default extNodeWebSocketWs;
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAE1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAS7D,eAAO,MAAM,6BAA6B,KAEzC,CAAC;AAEF,4DAA4D;AAC5D,eAAO,MAAM,kBAAkB,EAAE,gBA+BhC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
package/esm/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** Default `ws` implementation of Veryfront's Node WebSocket contract. */
|
|
2
2
|
import { captureNodeWebSocketServer, createNodeWebSocketServerProvider, NodeWebSocketServerProviderName, } from "veryfront/extensions/websocket";
|
|
3
3
|
// @ts-types="@types/ws"
|
|
4
4
|
import { WebSocketServer } from "ws";
|
|
5
5
|
export const WsNodeWebSocketServerProvider = createNodeWebSocketServerProvider((options) => captureNodeWebSocketServer(new WebSocketServer(options)));
|
|
6
|
-
/** Create the
|
|
6
|
+
/** Create the standard Node.js `ws` transport extension. */
|
|
7
7
|
export const extNodeWebSocketWs = () => {
|
|
8
8
|
let active = false;
|
|
9
9
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veryfront/ext-node-websocket-ws",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1191",
|
|
4
4
|
"description": "Veryfront first-party extension package for ext-node-websocket-ws",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"veryfront",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"veryfront": {
|
|
36
36
|
"extension": true,
|
|
37
|
-
"activation": "
|
|
37
|
+
"activation": "auto",
|
|
38
38
|
"contracts": {
|
|
39
39
|
"provides": [
|
|
40
40
|
"NodeWebSocketServerProvider"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"ws": "8.21.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"veryfront": "^0.1.
|
|
58
|
+
"veryfront": "^0.1.1191"
|
|
59
59
|
},
|
|
60
60
|
"type": "module",
|
|
61
61
|
"types": "./esm/index.d.ts",
|