@pluv/platform-node 0.15.0 → 0.16.0
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/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +8 -0
- package/README.md +3 -7
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +9 -9
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/platform-node@0.
|
|
2
|
+
> @pluv/platform-node@0.16.0 build /home/runner/work/pluv/pluv/packages/platform-node
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
-
[34mCLI[39m tsup v8.0.
|
|
7
|
+
[34mCLI[39m tsup v8.0.2
|
|
8
8
|
[34mCLI[39m Target: es6
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[32mESM[39m [1mdist/index.mjs [22m[32m6.17 KB[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 83ms
|
|
13
13
|
[32mCJS[39m [1mdist/index.js [22m[32m7.99 KB[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 86ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 4507ms
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m2.77 KB[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.77 KB[39m
|
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
<br />
|
|
6
6
|
<img src="https://github.com/pluv-io/pluv/blob/master/assets/pluv-icon-192x192.png?raw=true" alt="Pluv.IO" width="180" style="border-radius:16px" />
|
|
7
7
|
<br />
|
|
8
|
-
Pluv.IO (preview)
|
|
8
|
+
<a href="https://pluv.io/docs/introduction">Pluv.IO (preview)</a>
|
|
9
9
|
<br />
|
|
10
10
|
</h1>
|
|
11
11
|
|
|
12
12
|
<h3 align="center">Multi-platform, E2E type-safe realtime packages</h3>
|
|
13
|
-
<h4 align="center">💕 Inspired by <a href="https://trpc.io">trpc</a> 💕
|
|
13
|
+
<h4 align="center">💕 Inspired by <a href="https://trpc.io">trpc</a> 💕 <a href="https://docs.yjs.dev/">yjs</a> 💕 and <a href="https://developers.cloudflare.com/">Cloudflare</a> 💕 </h4>
|
|
14
14
|
|
|
15
15
|
<p align="center">
|
|
16
16
|
<a href="https://www.npmjs.com/package/@pluv/platform-node">
|
|
@@ -19,14 +19,10 @@
|
|
|
19
19
|
<a href="https://github.com/pluv-io/pluv/blob/master/LICENSE">
|
|
20
20
|
<img alt="GitHub" src="https://img.shields.io/github/license/pluv-io/pluv" alt="License MIT" />
|
|
21
21
|
</a>
|
|
22
|
-
<img src="https://badgen.net/badge/-/TypeScript?icon=typescript&label&labelColor=blue&color=555555" alt="TypeScript" />
|
|
23
22
|
<a href="https://commitizen.github.io/cz-cli/">
|
|
24
23
|
<img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg" alt="Commitizen friendly" />
|
|
25
24
|
</a>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<p align="center">
|
|
29
|
-
<img src="https://github.com/pluv-io/pluv/blob/master/assets/demo-events.gif?raw=true" alt="Demo" />
|
|
25
|
+
<img src="https://badgen.net/badge/-/TypeScript?icon=typescript&label&labelColor=blue&color=555555" alt="TypeScript" />
|
|
30
26
|
</p>
|
|
31
27
|
|
|
32
28
|
## `@pluv/platform-node`
|
package/dist/index.js
CHANGED
|
@@ -156,14 +156,14 @@ var import_util = require("util");
|
|
|
156
156
|
// src/NodeWebSocket.ts
|
|
157
157
|
var import_io = require("@pluv/io");
|
|
158
158
|
var NodeWebSocket = class extends import_io.AbstractWebSocket {
|
|
159
|
+
get readyState() {
|
|
160
|
+
return this.webSocket.readyState;
|
|
161
|
+
}
|
|
159
162
|
constructor(webSocket, config) {
|
|
160
163
|
const { room, sessionId, userId } = config;
|
|
161
164
|
super({ room, sessionId, userId });
|
|
162
165
|
this.webSocket = webSocket;
|
|
163
166
|
}
|
|
164
|
-
get readyState() {
|
|
165
|
-
return this.webSocket.readyState;
|
|
166
|
-
}
|
|
167
167
|
addEventListener(type, handler) {
|
|
168
168
|
switch (type) {
|
|
169
169
|
case "close":
|
package/dist/index.mjs
CHANGED
|
@@ -120,14 +120,14 @@ import { TextDecoder } from "util";
|
|
|
120
120
|
// src/NodeWebSocket.ts
|
|
121
121
|
import { AbstractWebSocket } from "@pluv/io";
|
|
122
122
|
var NodeWebSocket = class extends AbstractWebSocket {
|
|
123
|
+
get readyState() {
|
|
124
|
+
return this.webSocket.readyState;
|
|
125
|
+
}
|
|
123
126
|
constructor(webSocket, config) {
|
|
124
127
|
const { room, sessionId, userId } = config;
|
|
125
128
|
super({ room, sessionId, userId });
|
|
126
129
|
this.webSocket = webSocket;
|
|
127
130
|
}
|
|
128
|
-
get readyState() {
|
|
129
|
-
return this.webSocket.readyState;
|
|
130
|
-
}
|
|
131
131
|
addEventListener(type, handler) {
|
|
132
132
|
switch (type) {
|
|
133
133
|
case "close":
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/platform-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "@pluv/io adapter for node.js",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@types/node": "^20.
|
|
20
|
+
"@types/node": "^20.11.17",
|
|
21
21
|
"@types/ws": "^8.5.10",
|
|
22
22
|
"path-to-regexp": "^6.2.1",
|
|
23
|
-
"@pluv/
|
|
24
|
-
"@pluv/
|
|
23
|
+
"@pluv/types": "^0.16.0",
|
|
24
|
+
"@pluv/io": "^0.16.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"eslint": "^8.56.0",
|
|
28
|
-
"tsup": "^8.0.
|
|
29
|
-
"typescript": "^5.
|
|
30
|
-
"ws": "^8.
|
|
31
|
-
"
|
|
32
|
-
"
|
|
28
|
+
"tsup": "^8.0.2",
|
|
29
|
+
"typescript": "^5.3.3",
|
|
30
|
+
"ws": "^8.16.0",
|
|
31
|
+
"eslint-config-pluv": "^0.16.0",
|
|
32
|
+
"@pluv/tsconfig": "^0.16.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"ws": "^8.0.0"
|