@graffy/common 0.15.23-alpha.1 → 0.15.24
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 -3
- package/index.mjs +2 -2
- package/package.json +3 -3
- package/types/coding/id.d.ts +1 -1
package/index.cjs
CHANGED
|
@@ -30,7 +30,8 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
-
Object.
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports[Symbol.toStringTag] = "Module";
|
|
34
35
|
var nonSecure = require("nanoid/non-secure");
|
|
35
36
|
var mergeIterators = require("merge-async-iterators");
|
|
36
37
|
var stream = require("@graffy/stream");
|
|
@@ -176,7 +177,7 @@ function encode$3(value) {
|
|
|
176
177
|
}
|
|
177
178
|
return encode$4(buffer);
|
|
178
179
|
}
|
|
179
|
-
const nextKey =
|
|
180
|
+
const nextKey = new WeakMap();
|
|
180
181
|
function decode$3(key) {
|
|
181
182
|
let i = 0;
|
|
182
183
|
const buffer = decode$4(key, 0);
|
|
@@ -1444,7 +1445,7 @@ async function* mergeStreams(...streams) {
|
|
|
1444
1445
|
yield* mergeIterators__default["default"](streams);
|
|
1445
1446
|
}
|
|
1446
1447
|
function makeWatcher() {
|
|
1447
|
-
const listeners =
|
|
1448
|
+
const listeners = new Set();
|
|
1448
1449
|
function write(change) {
|
|
1449
1450
|
for (const push of listeners)
|
|
1450
1451
|
push(change);
|
package/index.mjs
CHANGED
|
@@ -169,7 +169,7 @@ function encode$3(value) {
|
|
|
169
169
|
}
|
|
170
170
|
return encode$4(buffer);
|
|
171
171
|
}
|
|
172
|
-
const nextKey =
|
|
172
|
+
const nextKey = new WeakMap();
|
|
173
173
|
function decode$3(key) {
|
|
174
174
|
let i = 0;
|
|
175
175
|
const buffer = decode$4(key, 0);
|
|
@@ -1437,7 +1437,7 @@ async function* mergeStreams(...streams) {
|
|
|
1437
1437
|
yield* mergeIterators(streams);
|
|
1438
1438
|
}
|
|
1439
1439
|
function makeWatcher() {
|
|
1440
|
-
const listeners =
|
|
1440
|
+
const listeners = new Set();
|
|
1441
1441
|
function write(change) {
|
|
1442
1442
|
for (const push of listeners)
|
|
1443
1443
|
push(change);
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graffy/common",
|
|
3
3
|
"description": "Common libraries that used by various Graffy modules.",
|
|
4
4
|
"author": "aravind (https://github.com/aravindet)",
|
|
5
|
-
"version": "0.15.
|
|
5
|
+
"version": "0.15.24",
|
|
6
6
|
"main": "./index.cjs",
|
|
7
7
|
"exports": {
|
|
8
8
|
"import": "./index.mjs",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"lodash": "^4.17.19",
|
|
20
20
|
"nanoid": "^3.2.0",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"merge-async-iterators": "^0.2.1",
|
|
22
|
+
"@graffy/stream": "0.15.24"
|
|
23
23
|
}
|
|
24
24
|
}
|
package/types/coding/id.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare var _default: (
|
|
1
|
+
declare var _default: () => string;
|
|
2
2
|
export default _default;
|