reactronic 0.22.303 → 0.22.307
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/package.json +1 -1
- package/build/dist/source/Buffer.d.ts +0 -8
- package/build/dist/source/Buffer.js +0 -8
- package/build/dist/source/Controller.d.ts +0 -12
- package/build/dist/source/Controller.js +0 -6
- package/build/dist/source/Logging.d.ts +0 -38
- package/build/dist/source/Logging.js +0 -113
- package/build/dist/source/Options.d.ts +0 -38
- package/build/dist/source/Options.js +0 -21
- package/build/dist/source/Ref.d.ts +0 -34
- package/build/dist/source/Ref.js +0 -90
- package/build/dist/source/Rx.d.ts +0 -27
- package/build/dist/source/Rx.js +0 -58
- package/build/dist/source/Worker.d.ts +0 -8
- package/build/dist/source/Worker.js +0 -2
- package/build/dist/source/api.d.ts +0 -14
- package/build/dist/source/api.js +0 -40
- package/build/dist/source/impl/Changeset.d.ts +0 -60
- package/build/dist/source/impl/Changeset.js +0 -361
- package/build/dist/source/impl/Data.d.ts +0 -63
- package/build/dist/source/impl/Data.js +0 -51
- package/build/dist/source/impl/Hooks.d.ts +0 -79
- package/build/dist/source/impl/Hooks.js +0 -281
- package/build/dist/source/impl/Journal.d.ts +0 -34
- package/build/dist/source/impl/Journal.js +0 -149
- package/build/dist/source/impl/Meta.d.ts +0 -13
- package/build/dist/source/impl/Meta.js +0 -33
- package/build/dist/source/impl/Monitor.d.ts +0 -32
- package/build/dist/source/impl/Monitor.js +0 -97
- package/build/dist/source/impl/Operation.d.ts +0 -93
- package/build/dist/source/impl/Operation.js +0 -722
- package/build/dist/source/impl/Transaction.d.ts +0 -30
- package/build/dist/source/impl/Transaction.js +0 -313
- package/build/dist/source/util/Dbg.d.ts +0 -15
- package/build/dist/source/util/Dbg.js +0 -96
- package/build/dist/source/util/Sealant.d.ts +0 -14
- package/build/dist/source/util/Sealant.js +0 -30
- package/build/dist/source/util/SealedArray.d.ts +0 -16
- package/build/dist/source/util/SealedArray.js +0 -28
- package/build/dist/source/util/SealedMap.d.ts +0 -13
- package/build/dist/source/util/SealedMap.js +0 -21
- package/build/dist/source/util/SealedSet.d.ts +0 -13
- package/build/dist/source/util/SealedSet.js +0 -21
- package/build/dist/source/util/Utils.d.ts +0 -9
- package/build/dist/source/util/Utils.js +0 -62
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.pause = exports.all = exports.UNDEF = exports.Utils = void 0;
|
|
13
|
-
class Utils {
|
|
14
|
-
static freezeSet(obj) {
|
|
15
|
-
if (obj instanceof Set) {
|
|
16
|
-
const pd = { configurable: false, enumerable: false, get: UNDEF, set: UNDEF };
|
|
17
|
-
Object.defineProperty(obj, 'add', pd);
|
|
18
|
-
Object.defineProperty(obj, 'delete', pd);
|
|
19
|
-
Object.defineProperty(obj, 'clear', pd);
|
|
20
|
-
Object.freeze(obj);
|
|
21
|
-
}
|
|
22
|
-
return obj;
|
|
23
|
-
}
|
|
24
|
-
static freezeMap(obj) {
|
|
25
|
-
if (obj instanceof Map) {
|
|
26
|
-
const pd = { configurable: false, enumerable: false, get: UNDEF, set: UNDEF };
|
|
27
|
-
Object.defineProperty(obj, 'set', pd);
|
|
28
|
-
Object.defineProperty(obj, 'delete', pd);
|
|
29
|
-
Object.defineProperty(obj, 'clear', pd);
|
|
30
|
-
Object.freeze(obj);
|
|
31
|
-
}
|
|
32
|
-
return obj;
|
|
33
|
-
}
|
|
34
|
-
static copyAllMembers(source, target) {
|
|
35
|
-
for (const m of Object.getOwnPropertyNames(source))
|
|
36
|
-
target[m] = source[m];
|
|
37
|
-
for (const m of Object.getOwnPropertySymbols(source))
|
|
38
|
-
target[m] = source[m];
|
|
39
|
-
return target;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.Utils = Utils;
|
|
43
|
-
function UNDEF(...args) {
|
|
44
|
-
throw new Error('this method should never be called');
|
|
45
|
-
}
|
|
46
|
-
exports.UNDEF = UNDEF;
|
|
47
|
-
function all(promises) {
|
|
48
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
let error;
|
|
50
|
-
const result = yield Promise.all(promises.map(x => x.catch(e => { error = error || e; return e; })));
|
|
51
|
-
if (error)
|
|
52
|
-
throw error;
|
|
53
|
-
return result;
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
exports.all = all;
|
|
57
|
-
function pause(timeout) {
|
|
58
|
-
return new Promise(function (resolve) {
|
|
59
|
-
setTimeout(resolve.bind(null, () => resolve), timeout);
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
exports.pause = pause;
|