@seriousme/opifex 1.5.1 → 1.6.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/CHANGELOG.md +7 -0
- package/bin/conformanceServer.ts +1 -1
- package/bin/demoServer.ts +1 -1
- package/bin/mqtt.ts +1 -1
- package/deno/{server.test.ts → tcpServer.test.ts} +1 -1
- package/deno.json +6 -2
- package/dist/bin/conformanceServer.js +1 -1
- package/dist/bin/demoServer.js +1 -1
- package/dist/bin/mqtt.js +1 -1
- package/node/{server.test.ts → tcpServer.test.ts} +2 -2
- package/package.json +11 -3
- /package/deno/{client.ts → tcpClient.ts} +0 -0
- /package/deno/{server.ts → tcpServer.ts} +0 -0
- /package/dist/node/{client.js → tcpClient.js} +0 -0
- /package/dist/node/{server.js → tcpServer.js} +0 -0
- /package/node/{client.ts → tcpClient.ts} +0 -0
- /package/node/{server.ts → tcpServer.ts} +0 -0
package/CHANGELOG.md
CHANGED
package/bin/conformanceServer.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { AuthenticationResult } from "../server/mod.ts";
|
|
|
5
5
|
import type { Context, TAuthenticationResult, Topic } from "../server/mod.ts";
|
|
6
6
|
import { logger, LogLevel } from "../utils/mod.ts";
|
|
7
7
|
import { getArgs, parseArgs } from "../utils/mod.ts";
|
|
8
|
-
import { TcpServer } from "../node/
|
|
8
|
+
import { TcpServer } from "../node/tcpServer.ts";
|
|
9
9
|
|
|
10
10
|
const utf8Decoder = new TextDecoder();
|
|
11
11
|
const userTable = new Map();
|
package/bin/demoServer.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env -S node --experimental-strip-types
|
|
2
|
-
import { TcpServer } from "../node/
|
|
2
|
+
import { TcpServer } from "../node/tcpServer.ts";
|
|
3
3
|
import type { Context, TAuthenticationResult, Topic } from "../server/mod.ts";
|
|
4
4
|
import { AuthenticationResult } from "../server/mod.ts";
|
|
5
5
|
import { getArgs, logger, LogLevel, parseArgs } from "../utils/mod.ts";
|
package/bin/mqtt.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { DEFAULT_URL } from "../client/mod.ts";
|
|
3
3
|
import { logger, LogLevel } from "../utils/mod.ts";
|
|
4
4
|
import { getArgs, parseArgs } from "../utils/mod.ts";
|
|
5
|
-
import { getFileData, TcpClient } from "../node/
|
|
5
|
+
import { getFileData, TcpClient } from "../node/tcpClient.ts";
|
|
6
6
|
import type { Args } from "../utils/args.ts";
|
|
7
7
|
|
|
8
8
|
const client = new TcpClient();
|
package/deno.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seriousme/opifex",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"exports": {
|
|
5
5
|
"./server": "./server/mod.ts",
|
|
6
|
-
"./client": "./client/mod.ts"
|
|
6
|
+
"./client": "./client/mod.ts",
|
|
7
|
+
"./mqttPacket": "./mqttPacket/mod.ts",
|
|
8
|
+
"./utils": "./utils/mod.ts,",
|
|
9
|
+
"./tcpClient": "./deno/tcpClient.ts",
|
|
10
|
+
"./tcpServer": "./deno/tcpServer.ts"
|
|
7
11
|
},
|
|
8
12
|
"exclude": [
|
|
9
13
|
"dist"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { AuthenticationResult } from "../server/mod.js";
|
|
4
4
|
import { logger, LogLevel } from "../utils/mod.js";
|
|
5
5
|
import { getArgs, parseArgs } from "../utils/mod.js";
|
|
6
|
-
import { TcpServer } from "../node/
|
|
6
|
+
import { TcpServer } from "../node/tcpServer.js";
|
|
7
7
|
const utf8Decoder = new TextDecoder();
|
|
8
8
|
const userTable = new Map();
|
|
9
9
|
userTable.set("IoTester_1", "strong_password");
|
package/dist/bin/demoServer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env -S node --experimental-strip-types
|
|
2
|
-
import { TcpServer } from "../node/
|
|
2
|
+
import { TcpServer } from "../node/tcpServer.js";
|
|
3
3
|
import { AuthenticationResult } from "../server/mod.js";
|
|
4
4
|
import { getArgs, logger, LogLevel, parseArgs } from "../utils/mod.js";
|
|
5
5
|
const utf8Decoder = new TextDecoder();
|
package/dist/bin/mqtt.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { DEFAULT_URL } from "../client/mod.js";
|
|
3
3
|
import { logger, LogLevel } from "../utils/mod.js";
|
|
4
4
|
import { getArgs, parseArgs } from "../utils/mod.js";
|
|
5
|
-
import { getFileData, TcpClient } from "../node/
|
|
5
|
+
import { getFileData, TcpClient } from "../node/tcpClient.js";
|
|
6
6
|
const client = new TcpClient();
|
|
7
7
|
const encoder = new TextEncoder();
|
|
8
8
|
const decoder = new TextDecoder();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { test } from "node:test";
|
|
2
2
|
import assert from "node:assert/strict";
|
|
3
|
-
import { TcpClient } from "./
|
|
4
|
-
import { TcpServer } from "./
|
|
3
|
+
import { TcpClient } from "./tcpClient.ts";
|
|
4
|
+
import { TcpServer } from "./tcpServer.ts";
|
|
5
5
|
import { logger, LogLevel } from "../utils/mod.ts";
|
|
6
6
|
import type { PublishPacket, QoS } from "../mqttPacket/mod.ts";
|
|
7
7
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seriousme/opifex",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "MQTT client & server for Deno & NodeJS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -23,12 +23,20 @@
|
|
|
23
23
|
},
|
|
24
24
|
"exports": {
|
|
25
25
|
"./server": "./dist/server/mod.js",
|
|
26
|
-
"./client": "./dist/client/mod.js"
|
|
26
|
+
"./client": "./dist/client/mod.js",
|
|
27
|
+
"./mqttPacket": "./dist/mqttPacket/mod.js",
|
|
28
|
+
"./utils": "./dist/utils/mod.js,",
|
|
29
|
+
"./tcpClient": "./dist/node/tcpClient.js",
|
|
30
|
+
"./tcpServer": "./dist/node/tcpServer.js"
|
|
27
31
|
},
|
|
28
32
|
"deno": {
|
|
29
33
|
"exports": {
|
|
30
34
|
"./server": "./server/mod.ts",
|
|
31
|
-
"./client": "./client/mod.ts"
|
|
35
|
+
"./client": "./client/mod.ts",
|
|
36
|
+
"./mqttPacket": "./mqttPacket/mod.ts",
|
|
37
|
+
"./utils": "./utils/mod.ts,",
|
|
38
|
+
"./tcpClient": "./deno/tcpClient.ts",
|
|
39
|
+
"./tcpServer": "./deno/tcpServer.ts"
|
|
32
40
|
},
|
|
33
41
|
"exclude": [
|
|
34
42
|
"dist"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|