@wovin/core 0.0.1-RC6 → 0.0.1-RC7
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/dist/applog.cjs +85 -0
- package/dist/applog.cjs.map +1 -0
- package/dist/applog.d.cts +70 -0
- package/dist/chunk-LR7LTEQ6.cjs +577 -0
- package/dist/chunk-LR7LTEQ6.cjs.map +1 -0
- package/dist/chunk-MLDNHGG3.cjs +59 -0
- package/dist/chunk-MLDNHGG3.cjs.map +1 -0
- package/dist/chunk-MS4K4RCZ.cjs +768 -0
- package/dist/chunk-MS4K4RCZ.cjs.map +1 -0
- package/dist/chunk-U4GPJRQK.cjs +56 -0
- package/dist/chunk-U4GPJRQK.cjs.map +1 -0
- package/dist/chunk-UOPZAYFM.cjs +11 -0
- package/dist/chunk-UOPZAYFM.cjs.map +1 -0
- package/dist/index.cjs +87 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +12 -0
- package/dist/ipfs.cjs +28 -0
- package/dist/ipfs.cjs.map +1 -0
- package/dist/ipfs.d.cts +36 -0
- package/dist/mapped-ADqStkt6.d.cts +20 -0
- package/dist/pubsub.cjs +14 -0
- package/dist/pubsub.cjs.map +1 -0
- package/dist/pubsub.d.cts +41 -0
- package/dist/queries.cjs +112 -0
- package/dist/queries.cjs.map +1 -0
- package/dist/queries.d.cts +141 -0
- package/dist/stream.cjs +37 -0
- package/dist/stream.cjs.map +1 -0
- package/dist/stream.d.cts +44 -0
- package/dist/types-B8KPeyK1.d.cts +153 -0
- package/dist/types.cjs +46 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.d.cts +4 -0
- package/dist/utils.cjs +1 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.cts +2 -0
- package/dist/writeable-bMTdW_i1.d.cts +16 -0
- package/package.json +1 -1
package/dist/applog.cjs
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
var _chunkLR7LTEQ6cjs = require('./chunk-LR7LTEQ6.cjs');
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
var _chunkMS4K4RCZcjs = require('./chunk-MS4K4RCZ.cjs');
|
|
43
|
+
require('./chunk-MLDNHGG3.cjs');
|
|
44
|
+
require('./chunk-UOPZAYFM.cjs');
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
exports.AppLogTB = _chunkLR7LTEQ6cjs.AppLogTB; exports.AppLogTBC = _chunkLR7LTEQ6cjs.AppLogTBC; exports.CIDTB = _chunkLR7LTEQ6cjs.CIDTB; exports.EntityID = _chunkLR7LTEQ6cjs.EntityID; exports.EntityID_LENGTH = _chunkLR7LTEQ6cjs.EntityID_LENGTH; exports.Nullable = _chunkLR7LTEQ6cjs.Nullable; exports.URL = _chunkLR7LTEQ6cjs.URL; exports.actualize = _chunkMS4K4RCZcjs.actualize; exports.areApplogsEqual = _chunkMS4K4RCZcjs.areApplogsEqual; exports.arrStats = _chunkMS4K4RCZcjs.arrStats; exports.arraysContainSameElements = _chunkMS4K4RCZcjs.arraysContainSameElements; exports.cyrb53hash = _chunkMS4K4RCZcjs.cyrb53hash; exports.dateNowIso = _chunkMS4K4RCZcjs.dateNowIso; exports.filterOnlyLatest = _chunkLR7LTEQ6cjs.filterOnlyLatest; exports.getApplogTypeErrors = _chunkLR7LTEQ6cjs.getApplogTypeErrors; exports.getHashID = _chunkMS4K4RCZcjs.getHashID; exports.hasAg = _chunkLR7LTEQ6cjs.hasAg; exports.hasPv = _chunkLR7LTEQ6cjs.hasPv; exports.hasTs = _chunkLR7LTEQ6cjs.hasTs; exports.isStaticPattern = _chunkMS4K4RCZcjs.isStaticPattern; exports.isTsBefore = _chunkMS4K4RCZcjs.isTsBefore; exports.isValidApplog = _chunkLR7LTEQ6cjs.isValidApplog; exports.isVariable = _chunkMS4K4RCZcjs.isVariable; exports.isoDateStrCompare = _chunkMS4K4RCZcjs.isoDateStrCompare; exports.joinStreams = _chunkLR7LTEQ6cjs.joinStreams; exports.matchPart = _chunkMS4K4RCZcjs.matchPart; exports.matchPartStatic = _chunkMS4K4RCZcjs.matchPartStatic; exports.matchPattern = _chunkMS4K4RCZcjs.matchPattern; exports.removeDuplicateAppLogs = _chunkMS4K4RCZcjs.removeDuplicateAppLogs; exports.resolveOrRemoveVariables = _chunkMS4K4RCZcjs.resolveOrRemoveVariables; exports.sortApplogByTs = _chunkLR7LTEQ6cjs.sortApplogByTs; exports.sortApplogByTsDec = _chunkLR7LTEQ6cjs.sortApplogByTsDec; exports.sortApplogsByTs = _chunkMS4K4RCZcjs.sortApplogsByTs; exports.tsNearlySame = _chunkMS4K4RCZcjs.tsNearlySame; exports.uniqueEnFromAppLogs = _chunkMS4K4RCZcjs.uniqueEnFromAppLogs; exports.variableNameWithoutQuestionmark = _chunkMS4K4RCZcjs.variableNameWithoutQuestionmark; exports.withPv = _chunkLR7LTEQ6cjs.withPv; exports.withTs = _chunkLR7LTEQ6cjs.withTs;
|
|
85
|
+
//# sourceMappingURL=applog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { c as Applog, e as ApplogForInsertOptionalAgent, d as ApplogForInsert, T as Timestamp, f as ApplogNoCid, b as ApplogValue, A as ApplogStream, D as DatalogQueryPattern, S as SearchContext, V as ValueOrMatcher, R as ResultContext, g as DatalogQueryResultEntry } from './types-B8KPeyK1.cjs';
|
|
2
|
+
export { n as AgentHash, k as AgentID, w as AppLogTB, x as AppLogTBC, o as ApplogOptionalCid, m as Atom, p as AtomPattern, l as Attribute, v as CIDTB, C as CidString, s as DatalogQuery, r as DatalogQueryPatternArray, t as DatalogQueryResultRows, q as DatalogStateIdentifier, j as DatomPart, h as EntityID, E as EntityID_LENGTH, N as Nullable, u as SearchContextWithLog, U as URL, W as WithMatchers, y as getApplogTypeErrors, z as isValidApplog } from './types-B8KPeyK1.cjs';
|
|
3
|
+
import { W as WriteableApplogStream } from './writeable-bMTdW_i1.cjs';
|
|
4
|
+
import '@sinclair/typebox';
|
|
5
|
+
import '@sinclair/typebox/compiler';
|
|
6
|
+
import 'multiformats/cid';
|
|
7
|
+
|
|
8
|
+
declare const sortApplogByTs: (p: Applog, n: Applog) => 0 | 1 | -1;
|
|
9
|
+
declare const sortApplogByTsDec: (p: Applog, n: Applog) => 0 | 1 | -1;
|
|
10
|
+
declare function filterOnlyLatest(logs: Applog[], onlyLatest: boolean): Applog[];
|
|
11
|
+
declare function hasAg(log: ApplogForInsertOptionalAgent): log is ApplogForInsert;
|
|
12
|
+
declare function hasTs(log: ApplogForInsert): log is Omit<ApplogForInsert, 'ts'> & {
|
|
13
|
+
ts: Timestamp;
|
|
14
|
+
};
|
|
15
|
+
declare function hasPv(log: ApplogForInsert): log is ApplogForInsert & {
|
|
16
|
+
pv: string;
|
|
17
|
+
};
|
|
18
|
+
declare function withTs(log: ApplogForInsert, ts: Timestamp): Omit<ApplogForInsert, "ts"> & {
|
|
19
|
+
ts: string;
|
|
20
|
+
};
|
|
21
|
+
declare function withPv(log: ApplogNoCid, ds: WriteableApplogStream): {
|
|
22
|
+
pv: any;
|
|
23
|
+
at: string;
|
|
24
|
+
ts: string;
|
|
25
|
+
ag: string;
|
|
26
|
+
en: string;
|
|
27
|
+
vl: ApplogValue;
|
|
28
|
+
};
|
|
29
|
+
declare function joinStreams(streams: ApplogStream[]): ApplogStream;
|
|
30
|
+
|
|
31
|
+
declare const isoDateStrCompare: (strA: string, strB: string, dir?: 'asc' | 'desc') => number;
|
|
32
|
+
/** Sort by TS (modifies the array, but also returns for ease of use) */
|
|
33
|
+
declare function sortApplogsByTs(appLogArray: Applog[], dir?: 'asc' | 'desc'): Applog[];
|
|
34
|
+
declare const isTsBefore: (log: Applog, logToCompare: Applog) => boolean;
|
|
35
|
+
declare const uniqueEnFromAppLogs: (appLogArray: Applog[]) => string[];
|
|
36
|
+
declare const areApplogsEqual: (logA: Applog, logB: Applog) => boolean;
|
|
37
|
+
declare const removeDuplicateAppLogs: (appLogArray: Applog[]) => any[];
|
|
38
|
+
declare const getHashID: (stringifiable: any, lngth?: number) => string;
|
|
39
|
+
declare function isVariable(x: any): x is string;
|
|
40
|
+
declare function variableNameWithoutQuestionmark(str: string): string;
|
|
41
|
+
declare function isStaticPattern(x: any): x is ApplogValue;
|
|
42
|
+
declare function resolveOrRemoveVariables(pattern: DatalogQueryPattern, candidate: SearchContext): {}[];
|
|
43
|
+
declare function matchPartStatic(field: keyof Applog, patternPart: ValueOrMatcher<ApplogValue>, atomPart: ApplogValue): boolean;
|
|
44
|
+
declare function matchPart(patternPart: ValueOrMatcher<ApplogValue>, atomPart: ApplogValue, context: SearchContext): ResultContext;
|
|
45
|
+
/**
|
|
46
|
+
* Check if pattern matches triple with context substitutions
|
|
47
|
+
*/
|
|
48
|
+
declare function matchPattern(pattern: DatalogQueryPattern, applog: Applog, context: SearchContext): ResultContext;
|
|
49
|
+
declare function actualize<SELECT extends string>(context: ResultContext, find: readonly SELECT[]): DatalogQueryResultEntry<SELECT>;
|
|
50
|
+
declare const arrStats: {
|
|
51
|
+
max: (array: number[]) => number;
|
|
52
|
+
min: (array: number[]) => number;
|
|
53
|
+
range: (array: number[]) => number;
|
|
54
|
+
midrange: (array: number[]) => number;
|
|
55
|
+
sum: (array: number[]) => number;
|
|
56
|
+
mean: (array: number[]) => number;
|
|
57
|
+
average: (array: number[]) => number;
|
|
58
|
+
median: (array: number[]) => number;
|
|
59
|
+
modes: (array: number[]) => any[];
|
|
60
|
+
variance: (array: number[]) => number;
|
|
61
|
+
standardDeviation: (array: number[]) => number;
|
|
62
|
+
meanAbsoluteDeviation: (array: number[]) => number;
|
|
63
|
+
zScores: (array: number[]) => number[];
|
|
64
|
+
};
|
|
65
|
+
declare const tsNearlySame: (timeA: string, timeB: string) => boolean;
|
|
66
|
+
declare const cyrb53hash: (str: string, seed: number, strLength: number) => string;
|
|
67
|
+
declare function arraysContainSameElements(arr1: any, arr2: any): boolean;
|
|
68
|
+
declare function dateNowIso(): string;
|
|
69
|
+
|
|
70
|
+
export { Applog, ApplogForInsert, ApplogForInsertOptionalAgent, ApplogNoCid, ApplogValue, DatalogQueryPattern, DatalogQueryResultEntry, ResultContext, SearchContext, Timestamp, ValueOrMatcher, actualize, areApplogsEqual, arrStats, arraysContainSameElements, cyrb53hash, dateNowIso, filterOnlyLatest, getHashID, hasAg, hasPv, hasTs, isStaticPattern, isTsBefore, isVariable, isoDateStrCompare, joinStreams, matchPart, matchPartStatic, matchPattern, removeDuplicateAppLogs, resolveOrRemoveVariables, sortApplogByTs, sortApplogByTsDec, sortApplogsByTs, tsNearlySame, uniqueEnFromAppLogs, variableNameWithoutQuestionmark, withPv, withTs };
|