silentium 0.0.2 → 0.0.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/CHANGELOG.md +19 -0
- package/beforeRelease.sh +11 -0
- package/dist/silentium.cjs +39 -63
- package/dist/silentium.cjs.map +1 -1
- package/dist/silentium.d.ts +34 -53
- package/dist/silentium.js +40 -63
- package/dist/silentium.js.map +1 -1
- package/dist/silentium.min.js +1 -1
- package/dist/silentium.min.mjs +1 -1
- package/dist/silentium.min.mjs.map +1 -1
- package/dist/silentium.mjs +40 -63
- package/dist/silentium.mjs.map +1 -1
- package/docs/assets/css/base.css +15 -0
- package/docs/assets/css/custom.css +72 -0
- package/docs/assets/img/logo.svg +1522 -0
- package/docs/assets/js/components/linkDynamic.mjs +14 -0
- package/docs/assets/js/components/linkReloadable.mjs +17 -0
- package/docs/assets/js/components.mjs +2 -0
- package/docs/assets/js/index.mjs +74 -0
- package/docs/assets/js/lib/StyleFetched.mjs +19 -0
- package/docs/build.sh +7 -3
- package/docs/buildRoutes.sh +15 -0
- package/docs/favicon.ico +0 -0
- package/docs/index-dev.html +4 -80
- package/docs/index.html +6 -82
- package/docs/pages/compatibility/elegant-objects.html +4 -4
- package/docs/pages/examples/errors.html +2 -2
- package/docs/pages/examples.html +12 -14
- package/docs/pages/guest/guest-applied.html +9 -5
- package/docs/pages/guest/guest-cast.html +20 -26
- package/docs/pages/guest/guest-disposable.html +32 -42
- package/docs/pages/guest/guest-executor-applied.html +21 -17
- package/docs/pages/guest/guest-object.html +22 -26
- package/docs/pages/guest/guest-pool.html +17 -18
- package/docs/pages/guest/guest-sync.html +7 -2
- package/docs/pages/guest/index.html +18 -29
- package/docs/pages/guest.html +112 -18
- package/docs/pages/index.html +24 -52
- package/docs/pages/integrations/vue.html +5 -8
- package/docs/pages/patron/index.html +14 -20
- package/docs/pages/patron/patron-applied.html +2 -2
- package/docs/pages/patron/patron-executor-applied.html +2 -2
- package/docs/pages/patron/patron-once.html +12 -18
- package/docs/pages/patron/patron-pool.html +12 -18
- package/docs/pages/patron.html +137 -16
- package/docs/pages/philosofy.html +30 -49
- package/docs/pages/source/index.html +11 -14
- package/docs/pages/source/source-all.html +9 -12
- package/docs/pages/source/source-applied.html +2 -2
- package/docs/pages/source/source-dynamic.html +3 -3
- package/docs/pages/source/source-executor-applied.html +2 -2
- package/docs/pages/source/source-map.html +5 -5
- package/docs/pages/source/source-once.html +2 -2
- package/docs/pages/source/source-race.html +10 -10
- package/docs/pages/source/source-sequence.html +2 -2
- package/docs/pages/source/source-with-pool.html +8 -11
- package/docs/pages/source/source.html +11 -14
- package/docs/pages/source.html +162 -31
- package/docs/pages/terminology/source.html +5 -9
- package/docs/pages/terminology.html +12 -18
- package/docs/pages/utils.html +33 -21
- package/docs/routes.json +1 -0
- package/docs/template.html +4 -80
- package/eslint.config.mjs +3 -0
- package/package.json +2 -2
- package/src/Guest/Guest.ts +3 -3
- package/src/Guest/GuestApplied.ts +1 -1
- package/src/Guest/GuestCast.ts +1 -1
- package/src/Guest/GuestDisposable.ts +1 -1
- package/src/Guest/GuestExecutorApplied.ts +1 -1
- package/src/Guest/GuestObject.ts +1 -1
- package/src/Guest/GuestPool.ts +1 -1
- package/src/Guest/GuestSync.ts +1 -1
- package/src/Patron/Patron.ts +2 -2
- package/src/Patron/PatronApplied.ts +1 -1
- package/src/Patron/PatronExecutorApplied.ts +1 -1
- package/src/Patron/PatronOnce.ts +1 -1
- package/src/Patron/PatronPool.ts +4 -4
- package/src/Private/Private.ts +1 -1
- package/src/Source/Source.ts +4 -4
- package/src/Source/SourceAll.ts +1 -1
- package/src/Source/SourceApplied.ts +1 -1
- package/src/Source/SourceDynamic.ts +1 -1
- package/src/Source/SourceExecutorApplied.ts +1 -1
- package/src/Source/SourceMap.ts +1 -1
- package/src/Source/SourceOnce.ts +1 -1
- package/src/Source/SourceRace.ts +1 -1
- package/src/Source/SourceSequence.ts +1 -1
- package/src/Source/SourceWithPool.ts +1 -1
- package/src/index.ts +0 -1
- package/docs/pages/source/source-active.html +0 -120
- package/src/Source/SourceActive.test.ts +0 -13
- package/src/Source/SourceActive.ts +0 -41
package/dist/silentium.d.ts
CHANGED
|
@@ -6,15 +6,15 @@ interface GuestObjectType<T = any> {
|
|
|
6
6
|
}
|
|
7
7
|
type GuestType<T = any> = GuestExecutorType<T> | GuestObjectType<T>;
|
|
8
8
|
/**
|
|
9
|
-
* @url https://
|
|
9
|
+
* @url https://silentium-lab.github.io/silentium/#/utils/give
|
|
10
10
|
*/
|
|
11
11
|
declare function give<T>(data: T, guest: GuestType<T>): void;
|
|
12
12
|
/**
|
|
13
|
-
* @url https://
|
|
13
|
+
* @url https://silentium-lab.github.io/silentium/#/utils/is-guest
|
|
14
14
|
*/
|
|
15
15
|
declare function isGuest(mbGuest: any): mbGuest is GuestType;
|
|
16
16
|
/**
|
|
17
|
-
* @url https://
|
|
17
|
+
* @url https://silentium-lab.github.io/silentium/#/guest
|
|
18
18
|
*/
|
|
19
19
|
declare class Guest<T> implements GuestObjectType<T> {
|
|
20
20
|
private receiver;
|
|
@@ -27,7 +27,7 @@ interface GuestDisposableType<T = any> extends GuestObjectType<T> {
|
|
|
27
27
|
}
|
|
28
28
|
type MaybeDisposableType<T = any> = Partial<GuestDisposableType<T>>;
|
|
29
29
|
/**
|
|
30
|
-
* @url https://
|
|
30
|
+
* @url https://silentium-lab.github.io/silentium/#/guest/guest-disposable
|
|
31
31
|
*/
|
|
32
32
|
declare class GuestDisposable<T> implements GuestDisposableType<T> {
|
|
33
33
|
private guest;
|
|
@@ -38,7 +38,7 @@ declare class GuestDisposable<T> implements GuestDisposableType<T> {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
|
-
* @url https://
|
|
41
|
+
* @url https://silentium-lab.github.io/silentium/#/guest/guest-cast
|
|
42
42
|
*/
|
|
43
43
|
declare class GuestCast<T> implements GuestDisposableType<T> {
|
|
44
44
|
private sourceGuest;
|
|
@@ -50,15 +50,15 @@ declare class GuestCast<T> implements GuestDisposableType<T> {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* @url https://
|
|
53
|
+
* @url https://silentium-lab.github.io/silentium/#/utils/patron-pools
|
|
54
54
|
*/
|
|
55
55
|
declare const patronPools: (patron: GuestObjectType) => PoolType<any>[];
|
|
56
56
|
/**
|
|
57
|
-
* @url https://
|
|
57
|
+
* @url https://silentium-lab.github.io/silentium/#/utils/remove-patron-from-pools
|
|
58
58
|
*/
|
|
59
59
|
declare const removePatronFromPools: (patron: GuestObjectType) => void;
|
|
60
60
|
/**
|
|
61
|
-
* @url https://
|
|
61
|
+
* @url https://silentium-lab.github.io/silentium/#/utils/is-patron-in-pools
|
|
62
62
|
*/
|
|
63
63
|
declare const isPatronInPools: (patron: GuestObjectType) => boolean;
|
|
64
64
|
interface PoolType<T = any> extends GuestObjectType<T> {
|
|
@@ -68,7 +68,7 @@ interface PoolType<T = any> extends GuestObjectType<T> {
|
|
|
68
68
|
size(): number;
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
|
-
* @url https://
|
|
71
|
+
* @url https://silentium-lab.github.io/silentium/#/patron/patron-pool
|
|
72
72
|
*/
|
|
73
73
|
declare class PatronPool<T> implements PoolType<T> {
|
|
74
74
|
private initiator;
|
|
@@ -84,7 +84,7 @@ declare class PatronPool<T> implements PoolType<T> {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
|
-
* @url https://
|
|
87
|
+
* @url https://silentium-lab.github.io/silentium/#/guest/guest-pool
|
|
88
88
|
*/
|
|
89
89
|
declare class GuestPool<T> implements GuestObjectType<T>, PoolType<T> {
|
|
90
90
|
private guests;
|
|
@@ -102,7 +102,7 @@ interface GuestValueType<T = any> extends GuestObjectType<T> {
|
|
|
102
102
|
value(): T;
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
|
-
* @url https://
|
|
105
|
+
* @url https://silentium-lab.github.io/silentium/#/guest/guest-sync
|
|
106
106
|
*/
|
|
107
107
|
declare class GuestSync<T> implements GuestValueType<T> {
|
|
108
108
|
private theValue;
|
|
@@ -112,7 +112,7 @@ declare class GuestSync<T> implements GuestValueType<T> {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
|
-
* @url https://
|
|
115
|
+
* @url https://silentium-lab.github.io/silentium/#/guest/guest-object
|
|
116
116
|
*/
|
|
117
117
|
declare class GuestObject<T> implements GuestDisposableType<T> {
|
|
118
118
|
private baseGuest;
|
|
@@ -123,7 +123,7 @@ declare class GuestObject<T> implements GuestDisposableType<T> {
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
|
-
* @url https://
|
|
126
|
+
* @url https://silentium-lab.github.io/silentium/#/guest/guest-applied
|
|
127
127
|
*/
|
|
128
128
|
declare class GuestApplied<T, R> implements GuestObjectType<T> {
|
|
129
129
|
private baseGuest;
|
|
@@ -133,7 +133,7 @@ declare class GuestApplied<T, R> implements GuestObjectType<T> {
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
|
-
* @url https://
|
|
136
|
+
* @url https://silentium-lab.github.io/silentium/#/guest/guest-executor-applied
|
|
137
137
|
*/
|
|
138
138
|
declare class GuestExecutorApplied<T> implements GuestObjectType<T> {
|
|
139
139
|
give: GuestExecutorType<T, this>;
|
|
@@ -141,7 +141,7 @@ declare class GuestExecutorApplied<T> implements GuestObjectType<T> {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
|
-
* @url https://
|
|
144
|
+
* @url https://silentium-lab.github.io/silentium/#/patron
|
|
145
145
|
*/
|
|
146
146
|
declare class Patron<T> implements GuestDisposableType<T> {
|
|
147
147
|
private willBePatron;
|
|
@@ -151,12 +151,12 @@ declare class Patron<T> implements GuestDisposableType<T> {
|
|
|
151
151
|
disposed(value: T | null): boolean;
|
|
152
152
|
}
|
|
153
153
|
/**
|
|
154
|
-
* @url https://
|
|
154
|
+
* @url https://silentium-lab.github.io/silentium/#/utils/is-patron
|
|
155
155
|
*/
|
|
156
156
|
declare const isPatron: (guest: GuestType) => guest is Patron<unknown>;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
* @url https://
|
|
159
|
+
* @url https://silentium-lab.github.io/silentium/#/patron/patron-once
|
|
160
160
|
*/
|
|
161
161
|
declare class PatronOnce<T> implements GuestDisposableType<T> {
|
|
162
162
|
private baseGuest;
|
|
@@ -168,7 +168,7 @@ declare class PatronOnce<T> implements GuestDisposableType<T> {
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
|
-
* @url https://
|
|
171
|
+
* @url https://silentium-lab.github.io/silentium/#/patron/patron-applied
|
|
172
172
|
*/
|
|
173
173
|
declare class PatronApplied<T, R> implements GuestObjectType<T> {
|
|
174
174
|
private guestApplied;
|
|
@@ -178,7 +178,7 @@ declare class PatronApplied<T, R> implements GuestObjectType<T> {
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
|
-
* @url https://
|
|
181
|
+
* @url https://silentium-lab.github.io/silentium/#/patron/patron-executor-applied
|
|
182
182
|
*/
|
|
183
183
|
declare class PatronExecutorApplied<T> implements GuestObjectType<T> {
|
|
184
184
|
private guestApplied;
|
|
@@ -193,15 +193,15 @@ interface SourceObjectType<T> {
|
|
|
193
193
|
}
|
|
194
194
|
type SourceType<T = any> = SourceExecutorType<T> | SourceObjectType<T>;
|
|
195
195
|
/**
|
|
196
|
-
* @url https://
|
|
196
|
+
* @url https://silentium-lab.github.io/silentium/#/utils/value
|
|
197
197
|
*/
|
|
198
198
|
declare function value<T>(source: SourceType<T>, guest: GuestType<T>): unknown;
|
|
199
199
|
/**
|
|
200
|
-
* @url https://
|
|
200
|
+
* @url https://silentium-lab.github.io/silentium/#/utils/is-source
|
|
201
201
|
*/
|
|
202
202
|
declare function isSource(mbSource: any): mbSource is SourceType;
|
|
203
203
|
/**
|
|
204
|
-
* @url https://
|
|
204
|
+
* @url https://silentium-lab.github.io/silentium/#/guest/source
|
|
205
205
|
*/
|
|
206
206
|
declare class Source<T = any> implements SourceObjectType<T> {
|
|
207
207
|
private source;
|
|
@@ -209,7 +209,7 @@ declare class Source<T = any> implements SourceObjectType<T> {
|
|
|
209
209
|
value(guest: GuestType<T>): GuestType<T>;
|
|
210
210
|
}
|
|
211
211
|
/**
|
|
212
|
-
* @url https://
|
|
212
|
+
* @url https://silentium-lab.github.io/silentium/#/utils/source-of
|
|
213
213
|
*/
|
|
214
214
|
declare const sourceOf: <T>(value: T) => Source<T>;
|
|
215
215
|
|
|
@@ -218,7 +218,7 @@ interface SourceAllType<T = any> extends SourceObjectType<T> {
|
|
|
218
218
|
guestKey<R>(key: string): GuestObjectType<R>;
|
|
219
219
|
}
|
|
220
220
|
/**
|
|
221
|
-
* @url https://
|
|
221
|
+
* @url https://silentium-lab.github.io/silentium/#/guest/source-all
|
|
222
222
|
*/
|
|
223
223
|
declare class SourceAll<T> implements SourceAllType<T> {
|
|
224
224
|
private theAll;
|
|
@@ -233,7 +233,7 @@ declare class SourceAll<T> implements SourceAllType<T> {
|
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
/**
|
|
236
|
-
* @url https://
|
|
236
|
+
* @url https://silentium-lab.github.io/silentium/#/utils/private
|
|
237
237
|
*/
|
|
238
238
|
interface PrivateType<T> {
|
|
239
239
|
get<R extends unknown[], CT = null>(...args: R): CT extends null ? T : CT;
|
|
@@ -245,7 +245,7 @@ declare class Private<T> implements PrivateType<T> {
|
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
/**
|
|
248
|
-
* @url https://
|
|
248
|
+
* @url https://silentium-lab.github.io/silentium/#/guest/source-sequence
|
|
249
249
|
*/
|
|
250
250
|
declare class SourceSequence<T, TG> implements SourceObjectType<TG[]> {
|
|
251
251
|
private baseSource;
|
|
@@ -255,7 +255,7 @@ declare class SourceSequence<T, TG> implements SourceObjectType<TG[]> {
|
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
/**
|
|
258
|
-
* @url https://
|
|
258
|
+
* @url https://silentium-lab.github.io/silentium/#/guest/source-map
|
|
259
259
|
*/
|
|
260
260
|
declare class SourceMap<T, TG> implements SourceObjectType<TG[]> {
|
|
261
261
|
private baseSource;
|
|
@@ -265,7 +265,7 @@ declare class SourceMap<T, TG> implements SourceObjectType<TG[]> {
|
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
/**
|
|
268
|
-
* @url https://
|
|
268
|
+
* @url https://silentium-lab.github.io/silentium/#/guest/source-race
|
|
269
269
|
*/
|
|
270
270
|
declare class SourceRace<T> implements SourceObjectType<T> {
|
|
271
271
|
private sources;
|
|
@@ -277,7 +277,7 @@ interface PoolAwareType<T = any> {
|
|
|
277
277
|
pool(): PatronPool<T>;
|
|
278
278
|
}
|
|
279
279
|
/**
|
|
280
|
-
* @url https://
|
|
280
|
+
* @url https://silentium-lab.github.io/silentium/#/source-with-pool
|
|
281
281
|
*/
|
|
282
282
|
type SourceWithPoolType<T = any> = SourceObjectType<T> & GuestObjectType<T> & PoolAwareType<T>;
|
|
283
283
|
declare class SourceWithPool<T> implements SourceWithPoolType<T> {
|
|
@@ -293,26 +293,7 @@ declare class SourceWithPool<T> implements SourceWithPoolType<T> {
|
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
/**
|
|
296
|
-
* @url https://
|
|
297
|
-
*/
|
|
298
|
-
interface ActionType<P = any> {
|
|
299
|
-
do(config: P): this;
|
|
300
|
-
}
|
|
301
|
-
interface SourceAcitveType<R = unknown, T = unknown> extends SourceObjectType<T>, ActionType<R> {
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* @url https://kosukhin.github.io/patron.site/#/guest/source-active
|
|
305
|
-
*/
|
|
306
|
-
declare class SourceActive<R, T> implements SourceAcitveType<R, T> {
|
|
307
|
-
private configExecutor;
|
|
308
|
-
private source;
|
|
309
|
-
constructor(configExecutor: (config: R, source: SourceWithPoolType<T>) => void);
|
|
310
|
-
do(config: R): this;
|
|
311
|
-
value(guest: GuestType<T>): this;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* @url https://kosukhin.github.io/patron.site/#/source-dynamic
|
|
296
|
+
* @url https://silentium-lab.github.io/silentium/#/source-dynamic
|
|
316
297
|
*/
|
|
317
298
|
declare class SourceDynamic<T = unknown> implements SourceWithPoolType<T> {
|
|
318
299
|
private baseGuest;
|
|
@@ -324,7 +305,7 @@ declare class SourceDynamic<T = unknown> implements SourceWithPoolType<T> {
|
|
|
324
305
|
}
|
|
325
306
|
|
|
326
307
|
/**
|
|
327
|
-
* @url https://
|
|
308
|
+
* @url https://silentium-lab.github.io/silentium/#/source/source-applied
|
|
328
309
|
*/
|
|
329
310
|
declare class SourceApplied<T, R> implements SourceObjectType<R> {
|
|
330
311
|
private baseSource;
|
|
@@ -334,7 +315,7 @@ declare class SourceApplied<T, R> implements SourceObjectType<R> {
|
|
|
334
315
|
}
|
|
335
316
|
|
|
336
317
|
/**
|
|
337
|
-
* @url https://
|
|
318
|
+
* @url https://silentium-lab.github.io/silentium/#/source/source-executor-applied
|
|
338
319
|
*/
|
|
339
320
|
declare class SourceExecutorApplied<T> implements SourceObjectType<T> {
|
|
340
321
|
value: SourceExecutorType<T>;
|
|
@@ -342,7 +323,7 @@ declare class SourceExecutorApplied<T> implements SourceObjectType<T> {
|
|
|
342
323
|
}
|
|
343
324
|
|
|
344
325
|
/**
|
|
345
|
-
* @url https://
|
|
326
|
+
* @url https://silentium-lab.github.io/silentium/#/source/source-once
|
|
346
327
|
*/
|
|
347
328
|
declare class SourceOnce<T> implements SourceWithPoolType<T> {
|
|
348
329
|
private source;
|
|
@@ -362,4 +343,4 @@ declare class PrivateClass<T> implements PrivateType<T> {
|
|
|
362
343
|
get<R extends unknown[], CT = null>(...args: R): CT extends null ? T : CT;
|
|
363
344
|
}
|
|
364
345
|
|
|
365
|
-
export {
|
|
346
|
+
export { Guest, GuestApplied, GuestCast, GuestDisposable, type GuestDisposableType, GuestExecutorApplied, type GuestExecutorType, GuestObject, type GuestObjectType, GuestPool, GuestSync, type GuestType, type GuestValueType, type MaybeDisposableType, Patron, PatronApplied, PatronExecutorApplied, PatronOnce, PatronPool, type PoolAwareType, type PoolType, Private, PrivateClass, type PrivateType, Source, SourceAll, type SourceAllType, SourceApplied, SourceDynamic, SourceExecutorApplied, type SourceExecutorType, SourceMap, type SourceObjectType, SourceOnce, SourceRace, SourceSequence, type SourceType, SourceWithPool, type SourceWithPoolType, give, isGuest, isPatron, isPatronInPools, isSource, patronPools, removePatronFromPools, sourceOf, value };
|
package/dist/silentium.js
CHANGED
|
@@ -60,9 +60,9 @@ class GuestCast {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
var __defProp$
|
|
64
|
-
var __defNormalProp$
|
|
65
|
-
var __publicField$
|
|
63
|
+
var __defProp$9 = Object.defineProperty;
|
|
64
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
65
|
+
var __publicField$9 = (obj, key, value) => __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
66
66
|
const poolSets = /* @__PURE__ */ new Map();
|
|
67
67
|
const patronPools = (patron) => {
|
|
68
68
|
const pools = [];
|
|
@@ -96,8 +96,8 @@ const isPatronInPools = (patron) => {
|
|
|
96
96
|
class PatronPool {
|
|
97
97
|
constructor(initiator) {
|
|
98
98
|
this.initiator = initiator;
|
|
99
|
-
__publicField$
|
|
100
|
-
__publicField$
|
|
99
|
+
__publicField$9(this, "patrons");
|
|
100
|
+
__publicField$9(this, "give");
|
|
101
101
|
this.patrons = /* @__PURE__ */ new Set();
|
|
102
102
|
poolSets.set(this, this.patrons);
|
|
103
103
|
const doReceive = (value) => {
|
|
@@ -146,13 +146,13 @@ class PatronPool {
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
var __defProp$
|
|
150
|
-
var __defNormalProp$
|
|
151
|
-
var __publicField$
|
|
149
|
+
var __defProp$8 = Object.defineProperty;
|
|
150
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
151
|
+
var __publicField$8 = (obj, key, value) => __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
152
152
|
class GuestPool {
|
|
153
153
|
constructor(initiator) {
|
|
154
|
-
__publicField$
|
|
155
|
-
__publicField$
|
|
154
|
+
__publicField$8(this, "guests", /* @__PURE__ */ new Set());
|
|
155
|
+
__publicField$8(this, "patronPool");
|
|
156
156
|
this.patronPool = new PatronPool(initiator);
|
|
157
157
|
}
|
|
158
158
|
give(value) {
|
|
@@ -262,12 +262,12 @@ class GuestApplied {
|
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
var __defProp$
|
|
266
|
-
var __defNormalProp$
|
|
267
|
-
var __publicField$
|
|
265
|
+
var __defProp$7 = Object.defineProperty;
|
|
266
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
267
|
+
var __publicField$7 = (obj, key, value) => __defNormalProp$7(obj, key + "" , value);
|
|
268
268
|
class GuestExecutorApplied {
|
|
269
269
|
constructor(baseGuest, applier) {
|
|
270
|
-
__publicField$
|
|
270
|
+
__publicField$7(this, "give");
|
|
271
271
|
this.give = applier((v) => give(v, baseGuest));
|
|
272
272
|
}
|
|
273
273
|
}
|
|
@@ -293,13 +293,13 @@ class Patron {
|
|
|
293
293
|
}
|
|
294
294
|
const isPatron = (guest) => typeof guest === "object" && guest !== null && guest?.introduction?.() === "patron";
|
|
295
295
|
|
|
296
|
-
var __defProp$
|
|
297
|
-
var __defNormalProp$
|
|
298
|
-
var __publicField$
|
|
296
|
+
var __defProp$6 = Object.defineProperty;
|
|
297
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
298
|
+
var __publicField$6 = (obj, key, value) => __defNormalProp$6(obj, key + "" , value);
|
|
299
299
|
class PatronOnce {
|
|
300
300
|
constructor(baseGuest) {
|
|
301
301
|
this.baseGuest = baseGuest;
|
|
302
|
-
__publicField$
|
|
302
|
+
__publicField$6(this, "received", false);
|
|
303
303
|
if (baseGuest === void 0) {
|
|
304
304
|
throw new Error("PatronOnce didnt receive baseGuest argument");
|
|
305
305
|
}
|
|
@@ -323,12 +323,12 @@ class PatronOnce {
|
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
var __defProp$
|
|
327
|
-
var __defNormalProp$
|
|
328
|
-
var __publicField$
|
|
326
|
+
var __defProp$5 = Object.defineProperty;
|
|
327
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
328
|
+
var __publicField$5 = (obj, key, value) => __defNormalProp$5(obj, key + "" , value);
|
|
329
329
|
class PatronApplied {
|
|
330
330
|
constructor(baseGuest, applier) {
|
|
331
|
-
__publicField$
|
|
331
|
+
__publicField$5(this, "guestApplied");
|
|
332
332
|
this.guestApplied = new GuestApplied(baseGuest, applier);
|
|
333
333
|
}
|
|
334
334
|
give(value) {
|
|
@@ -340,12 +340,12 @@ class PatronApplied {
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
var __defProp$
|
|
344
|
-
var __defNormalProp$
|
|
345
|
-
var __publicField$
|
|
343
|
+
var __defProp$4 = Object.defineProperty;
|
|
344
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
345
|
+
var __publicField$4 = (obj, key, value) => __defNormalProp$4(obj, key + "" , value);
|
|
346
346
|
class PatronExecutorApplied {
|
|
347
347
|
constructor(baseGuest, applier) {
|
|
348
|
-
__publicField$
|
|
348
|
+
__publicField$4(this, "guestApplied");
|
|
349
349
|
this.guestApplied = new GuestExecutorApplied(baseGuest, applier);
|
|
350
350
|
}
|
|
351
351
|
give(value) {
|
|
@@ -357,15 +357,15 @@ class PatronExecutorApplied {
|
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
|
|
360
|
-
var __defProp$
|
|
361
|
-
var __defNormalProp$
|
|
362
|
-
var __publicField$
|
|
360
|
+
var __defProp$3 = Object.defineProperty;
|
|
361
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
362
|
+
var __publicField$3 = (obj, key, value) => __defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
363
363
|
class SourceWithPool {
|
|
364
364
|
constructor(sourceDocument) {
|
|
365
365
|
this.sourceDocument = sourceDocument;
|
|
366
|
-
__publicField$
|
|
367
|
-
__publicField$
|
|
368
|
-
__publicField$
|
|
366
|
+
__publicField$3(this, "thePool", new PatronPool(this));
|
|
367
|
+
__publicField$3(this, "theEmptyPool", new PatronPool(this));
|
|
368
|
+
__publicField$3(this, "isEmpty");
|
|
369
369
|
this.isEmpty = sourceDocument === void 0;
|
|
370
370
|
}
|
|
371
371
|
pool() {
|
|
@@ -397,15 +397,15 @@ class SourceWithPool {
|
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
-
var __defProp$
|
|
401
|
-
var __defNormalProp$
|
|
402
|
-
var __publicField$
|
|
400
|
+
var __defProp$2 = Object.defineProperty;
|
|
401
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
402
|
+
var __publicField$2 = (obj, key, value) => __defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
403
403
|
class SourceAll {
|
|
404
404
|
constructor(initialKnownKeys = []) {
|
|
405
|
-
__publicField$
|
|
406
|
-
__publicField$
|
|
407
|
-
__publicField$
|
|
408
|
-
__publicField$
|
|
405
|
+
__publicField$2(this, "theAll");
|
|
406
|
+
__publicField$2(this, "keysKnown");
|
|
407
|
+
__publicField$2(this, "keysFilled", /* @__PURE__ */ new Set());
|
|
408
|
+
__publicField$2(this, "filledAllPool", new GuestPool(this));
|
|
409
409
|
this.theAll = new SourceWithPool({});
|
|
410
410
|
this.keysKnown = new Set(initialKnownKeys);
|
|
411
411
|
}
|
|
@@ -605,29 +605,6 @@ class SourceRace {
|
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
|
|
608
|
-
var __defProp$2 = Object.defineProperty;
|
|
609
|
-
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
610
|
-
var __publicField$2 = (obj, key, value) => __defNormalProp$2(obj, key + "" , value);
|
|
611
|
-
class SourceActive {
|
|
612
|
-
constructor(configExecutor) {
|
|
613
|
-
this.configExecutor = configExecutor;
|
|
614
|
-
__publicField$2(this, "source", new SourceWithPool());
|
|
615
|
-
if (configExecutor === void 0) {
|
|
616
|
-
throw new Error(
|
|
617
|
-
"SourceActive constructor didnt receive executor function"
|
|
618
|
-
);
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
do(config) {
|
|
622
|
-
this.configExecutor(config, this.source);
|
|
623
|
-
return this;
|
|
624
|
-
}
|
|
625
|
-
value(guest) {
|
|
626
|
-
this.source.value(guest);
|
|
627
|
-
return this;
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
|
|
631
608
|
class SourceDynamic {
|
|
632
609
|
constructor(baseGuest, baseSource) {
|
|
633
610
|
this.baseGuest = baseGuest;
|
|
@@ -731,5 +708,5 @@ class Private {
|
|
|
731
708
|
}
|
|
732
709
|
}
|
|
733
710
|
|
|
734
|
-
export { Guest, GuestApplied, GuestCast, GuestDisposable, GuestExecutorApplied, GuestObject, GuestPool, GuestSync, Patron, PatronApplied, PatronExecutorApplied, PatronOnce, PatronPool, Private, PrivateClass, Source,
|
|
711
|
+
export { Guest, GuestApplied, GuestCast, GuestDisposable, GuestExecutorApplied, GuestObject, GuestPool, GuestSync, Patron, PatronApplied, PatronExecutorApplied, PatronOnce, PatronPool, Private, PrivateClass, Source, SourceAll, SourceApplied, SourceDynamic, SourceExecutorApplied, SourceMap, SourceOnce, SourceRace, SourceSequence, SourceWithPool, give, isGuest, isPatron, isPatronInPools, isSource, patronPools, removePatronFromPools, sourceOf, value };
|
|
735
712
|
//# sourceMappingURL=silentium.js.map
|