@graffy/client 0.17.8-alpha.2 → 0.17.8-alpha.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.
- package/index.cjs +4 -7
- package/index.mjs +4 -7
- package/package.json +4 -4
package/index.cjs
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
2
|
const common = require("@graffy/common");
|
|
6
3
|
const stream = require("@graffy/stream");
|
|
7
4
|
const debug = require("debug");
|
|
@@ -11,10 +8,10 @@ function getOptionsParam(options) {
|
|
|
11
8
|
}
|
|
12
9
|
const aggregateQueries = {};
|
|
13
10
|
class AggregateQuery {
|
|
11
|
+
combinedQuery = [];
|
|
12
|
+
readers = [];
|
|
13
|
+
timer = null;
|
|
14
14
|
constructor(url) {
|
|
15
|
-
__publicField(this, "combinedQuery", []);
|
|
16
|
-
__publicField(this, "readers", []);
|
|
17
|
-
__publicField(this, "timer", null);
|
|
18
15
|
this.url = url;
|
|
19
16
|
}
|
|
20
17
|
add(query) {
|
|
@@ -164,7 +161,7 @@ function Socket(url, { onUnhandled = void 0, onStatusChange = void 0 } = {}) {
|
|
|
164
161
|
} else if (handlers[id]) {
|
|
165
162
|
handlers[id].callback(...data);
|
|
166
163
|
} else {
|
|
167
|
-
onUnhandled
|
|
164
|
+
onUnhandled?.(id, ...data);
|
|
168
165
|
}
|
|
169
166
|
}
|
|
170
167
|
function closed(_event) {
|
package/index.mjs
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
1
|
import { pack, unpack, add, makeId, makeWatcher } from "@graffy/common";
|
|
5
2
|
import { makeStream } from "@graffy/stream";
|
|
6
3
|
import debug from "debug";
|
|
@@ -10,10 +7,10 @@ function getOptionsParam(options) {
|
|
|
10
7
|
}
|
|
11
8
|
const aggregateQueries = {};
|
|
12
9
|
class AggregateQuery {
|
|
10
|
+
combinedQuery = [];
|
|
11
|
+
readers = [];
|
|
12
|
+
timer = null;
|
|
13
13
|
constructor(url) {
|
|
14
|
-
__publicField(this, "combinedQuery", []);
|
|
15
|
-
__publicField(this, "readers", []);
|
|
16
|
-
__publicField(this, "timer", null);
|
|
17
14
|
this.url = url;
|
|
18
15
|
}
|
|
19
16
|
add(query) {
|
|
@@ -163,7 +160,7 @@ function Socket(url, { onUnhandled = void 0, onStatusChange = void 0 } = {}) {
|
|
|
163
160
|
} else if (handlers[id]) {
|
|
164
161
|
handlers[id].callback(...data);
|
|
165
162
|
} else {
|
|
166
|
-
onUnhandled
|
|
163
|
+
onUnhandled?.(id, ...data);
|
|
167
164
|
}
|
|
168
165
|
}
|
|
169
166
|
function closed(_event) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graffy/client",
|
|
3
3
|
"description": "Graffy client library for the browser, usin the `fetch()` or `WebSocket` APIs. This module is intended to be used with a Node.js server running Graffy Server.",
|
|
4
4
|
"author": "aravind (https://github.com/aravindet)",
|
|
5
|
-
"version": "0.17.8-alpha.
|
|
5
|
+
"version": "0.17.8-alpha.3",
|
|
6
6
|
"main": "./index.cjs",
|
|
7
7
|
"exports": {
|
|
8
8
|
"import": "./index.mjs",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@graffy/common": "0.17.8-alpha.
|
|
20
|
-
"@graffy/stream": "0.17.8-alpha.
|
|
21
|
-
"debug": "^4.4.
|
|
19
|
+
"@graffy/common": "0.17.8-alpha.3",
|
|
20
|
+
"@graffy/stream": "0.17.8-alpha.3",
|
|
21
|
+
"debug": "^4.4.3"
|
|
22
22
|
}
|
|
23
23
|
}
|