@graffy/core 0.15.9 → 0.15.10-alpha.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/index.cjs +3 -5
- package/index.mjs +3 -5
- package/package.json +4 -5
package/index.cjs
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
var common = require("@graffy/common");
|
|
3
3
|
var stream = require("@graffy/stream");
|
|
4
4
|
var debug = require("debug");
|
|
5
|
-
var testing = require("@graffy/testing");
|
|
6
5
|
function _interopDefaultLegacy(e) {
|
|
7
6
|
return e && typeof e === "object" && "default" in e ? e : { "default": e };
|
|
8
7
|
}
|
|
@@ -130,10 +129,9 @@ function resolve(handlers, firstPayload, options) {
|
|
|
130
129
|
if (nextCalled) {
|
|
131
130
|
throw Error("resolve.duplicate_next_call: " + handlers[i].name);
|
|
132
131
|
}
|
|
133
|
-
if (typeof nextPayload === "undefined") {
|
|
134
|
-
throw Error("resolve.next_without_payload: " + handlers[i].name);
|
|
135
|
-
}
|
|
136
132
|
nextCalled = true;
|
|
133
|
+
if (typeof nextPayload === "undefined" || !nextPayload.length)
|
|
134
|
+
return;
|
|
137
135
|
return run(i + 1, nextPayload);
|
|
138
136
|
});
|
|
139
137
|
}
|
|
@@ -148,7 +146,7 @@ class Core {
|
|
|
148
146
|
this.handlers[type].push({ path, handle });
|
|
149
147
|
}
|
|
150
148
|
call(type, payload, options = {}) {
|
|
151
|
-
log("call", type,
|
|
149
|
+
log("call", type, payload);
|
|
152
150
|
return resolve(this.handlers[type], payload, options);
|
|
153
151
|
}
|
|
154
152
|
}
|
package/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { encodePath, unwrap, remove, wrap, merge, mergeStreams, encodeGraph, decodeGraph, wrapObject, encodeQuery, unwrapObject, decorate, decodePath, decodeQuery, finalize } from "@graffy/common";
|
|
2
2
|
import { makeStream, mapStream as mapStream$1 } from "@graffy/stream";
|
|
3
3
|
import debug from "debug";
|
|
4
|
-
import { format } from "@graffy/testing";
|
|
5
4
|
function isPlainObject(obj) {
|
|
6
5
|
return obj && typeof obj === "object" && !Array.isArray(obj);
|
|
7
6
|
}
|
|
@@ -125,10 +124,9 @@ function resolve(handlers, firstPayload, options) {
|
|
|
125
124
|
if (nextCalled) {
|
|
126
125
|
throw Error("resolve.duplicate_next_call: " + handlers[i].name);
|
|
127
126
|
}
|
|
128
|
-
if (typeof nextPayload === "undefined") {
|
|
129
|
-
throw Error("resolve.next_without_payload: " + handlers[i].name);
|
|
130
|
-
}
|
|
131
127
|
nextCalled = true;
|
|
128
|
+
if (typeof nextPayload === "undefined" || !nextPayload.length)
|
|
129
|
+
return;
|
|
132
130
|
return run(i + 1, nextPayload);
|
|
133
131
|
});
|
|
134
132
|
}
|
|
@@ -143,7 +141,7 @@ class Core {
|
|
|
143
141
|
this.handlers[type].push({ path, handle });
|
|
144
142
|
}
|
|
145
143
|
call(type, payload, options = {}) {
|
|
146
|
-
log("call", type,
|
|
144
|
+
log("call", type, payload);
|
|
147
145
|
return resolve(this.handlers[type], payload, options);
|
|
148
146
|
}
|
|
149
147
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graffy/core",
|
|
3
3
|
"description": "The main module for Graffy, a library for intuitive real-time data APIs.",
|
|
4
4
|
"author": "aravind (https://github.com/aravindet)",
|
|
5
|
-
"version": "0.15.
|
|
5
|
+
"version": "0.15.10-alpha.1",
|
|
6
6
|
"main": "./index.cjs",
|
|
7
7
|
"exports": {
|
|
8
8
|
"import": "./index.mjs",
|
|
@@ -16,9 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@graffy/common": "0.15.
|
|
20
|
-
"@graffy/stream": "0.15.
|
|
21
|
-
"debug": "^4.3.2"
|
|
22
|
-
"@graffy/testing": "0.15.9"
|
|
19
|
+
"@graffy/common": "0.15.10-alpha.1",
|
|
20
|
+
"@graffy/stream": "0.15.10-alpha.1",
|
|
21
|
+
"debug": "^4.3.2"
|
|
23
22
|
}
|
|
24
23
|
}
|