mol_wire_pub 1.0.512 → 1.0.513
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/README.md +392 -9
- package/node.deps.json +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# $mol_wire
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A reactivity system. It gives ability to:
|
|
4
4
|
|
|
5
5
|
- Make any state observable using only 1.5KB lib. [$hyoo_crowd](https://github.com/hyoo-ru/crowd.hyoo.ru) as example.
|
|
6
6
|
- Automatic dynamic track runtime value dependencies and optimize task execution order.
|
|
@@ -74,6 +74,8 @@ npm install mol_wire_lib
|
|
|
74
74
|
|
|
75
75
|
7KB [](https://bundlephobia.com/package/mol_wire_lib)
|
|
76
76
|
|
|
77
|
+
### TypeScript example:
|
|
78
|
+
|
|
77
79
|
```ts
|
|
78
80
|
import {
|
|
79
81
|
$mol_wire_solo as solo,
|
|
@@ -88,12 +90,10 @@ class User {
|
|
|
88
90
|
}
|
|
89
91
|
```
|
|
90
92
|
|
|
93
|
+
### JavaScript example:
|
|
94
|
+
|
|
91
95
|
```js
|
|
92
|
-
const
|
|
93
|
-
$mol_wire_solo as solo,
|
|
94
|
-
$mol_wire_plex as plex,
|
|
95
|
-
$mol_wire_method as task,
|
|
96
|
-
} = require( 'mol_wire_lib' )
|
|
96
|
+
const $ = require( 'mol_wire_lib' )
|
|
97
97
|
|
|
98
98
|
class User {
|
|
99
99
|
age( next = 0 ) { return next }
|
|
@@ -101,9 +101,9 @@ class User {
|
|
|
101
101
|
finger_cut( id: string ) { this.finger_exists( id, false ) }
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
$.$mol_wire_solo( User.prototype, 'age' )
|
|
105
|
+
$.$mol_wire_plex( User.prototype, 'finger_exists' )
|
|
106
|
+
$.$mol_wire_task( User.prototype, 'finger_cut' )
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
### [mol_wire_pub](https://github.com/hyoo-ru/mam_mol/tree/master/wire/pub)
|
|
@@ -160,3 +160,386 @@ reactivate( document.body )
|
|
|
160
160
|
- [CellX](https://github.com/Riim/cellx)
|
|
161
161
|
|
|
162
162
|
### [Architectural comparison](https://github.com/nin-jin/slides/tree/master/reactivity#reactive-libraries)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
## Core concepts
|
|
166
|
+
|
|
167
|
+
In `$mol_wire` we build reactive systems using classes that have reactive properties. We represent a reactive property using a class method with an appropriate decorator.
|
|
168
|
+
|
|
169
|
+
### Channels
|
|
170
|
+
|
|
171
|
+
We define properties in accordance to the pattern of **channels**. A channel behaves like a **getter** when called without arguments and as a **getter-setter** otherwise. This approach proves to be more flexible than [others](https://mol.hyoo.ru/#!section=docs/=uuueew_u63ko8).
|
|
172
|
+
|
|
173
|
+
Here's an example of a simple channel:
|
|
174
|
+
|
|
175
|
+
```ts
|
|
176
|
+
let _title = ''
|
|
177
|
+
const title = ( text = _title )=> _title = text
|
|
178
|
+
|
|
179
|
+
title() // getter, returns ''
|
|
180
|
+
title( 'Buy some milk' ) // getter-setter, sets and returns 'Buy some milk'
|
|
181
|
+
title() // getter, returns 'Buy some milk'
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
You can notice that this is similar to some [JQuery methods](https://api.jquery.com/val/).
|
|
185
|
+
|
|
186
|
+
Instead of a plain function and a variable `$mol_wire` uses class methods with an appropriate decorator:
|
|
187
|
+
|
|
188
|
+
```ts
|
|
189
|
+
import { $mol_wire_solo as solo } from 'mol_wire_lib'
|
|
190
|
+
|
|
191
|
+
class Store {
|
|
192
|
+
@solo title( text = '' ) { return text }
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
const store = new Store()
|
|
196
|
+
|
|
197
|
+
store.title() // getter, returns ''
|
|
198
|
+
store.title( 'Buy some milk' ) // getter-setter, sets and returns 'Buy some milk'
|
|
199
|
+
store.title() // getter, returns 'Buy some milk'
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
The decorator **memoizes** what's been returned from the method so when someone uses it as a **getter** the method itself is not called and instead the memoized value is returned.
|
|
203
|
+
|
|
204
|
+
Properties either:
|
|
205
|
+
- **store** values
|
|
206
|
+
- or **compute** new values based on **other** properties.
|
|
207
|
+
|
|
208
|
+
The **computed** properties will only recompute when one of their **dependencies** change.
|
|
209
|
+
|
|
210
|
+
```ts
|
|
211
|
+
import { $mol_wire_solo as solo } from 'mol_wire_lib'
|
|
212
|
+
|
|
213
|
+
class User {
|
|
214
|
+
// stores a value
|
|
215
|
+
@solo name_first( next = 'Thomas' ) {
|
|
216
|
+
return next
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// stores a value
|
|
220
|
+
@solo name_last( next = 'Anderson' ) {
|
|
221
|
+
return next
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// computes a value based on other channels
|
|
225
|
+
@solo name() {
|
|
226
|
+
console.log('compute name')
|
|
227
|
+
return `${this.name_first()} ${this.name_last()}`
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
const user = new User()
|
|
232
|
+
|
|
233
|
+
console.log(user.name()) // logs: 'compute name', 'Thomas Anderson'
|
|
234
|
+
console.log(user.name()) // logs: 'Thomas Anderson'
|
|
235
|
+
|
|
236
|
+
// setter, marks 'name' as a subject to recomputation,
|
|
237
|
+
// but doesn't recompute immediately
|
|
238
|
+
user.name_last('William')
|
|
239
|
+
|
|
240
|
+
console.log(user.name()) // logs: 'compute name', 'Thomas William'
|
|
241
|
+
console.log(user.name()) // logs: 'Thomas William'
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### Memoization
|
|
245
|
+
|
|
246
|
+
Channels marked with a `@solo` or `@plex` decorator are memoized until a new value is set to them or one of their **dependencies** change.
|
|
247
|
+
|
|
248
|
+
We can use memoization to guarantee that a reference to an object will stay the same:
|
|
249
|
+
|
|
250
|
+
```ts
|
|
251
|
+
import { $mol_wire_solo as solo } from 'mol_wire_lib'
|
|
252
|
+
|
|
253
|
+
class Task {
|
|
254
|
+
@solo timestamp( value = 0 ) {
|
|
255
|
+
return value
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// won't create new instances until `timestamp` is changed
|
|
259
|
+
@solo moment() {
|
|
260
|
+
return new Moment(this.timestamp())
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
Or with memoization we can cache expensive computations:
|
|
266
|
+
|
|
267
|
+
```ts
|
|
268
|
+
import { $mol_wire_solo as solo } from 'mol_wire_lib'
|
|
269
|
+
|
|
270
|
+
class Task {
|
|
271
|
+
@solo title( title = '' ) {
|
|
272
|
+
return title
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
// won't recompute
|
|
276
|
+
@solo segmenter() {
|
|
277
|
+
return new Intl.Segmenter()
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
// won't recompute until `title` is changed
|
|
281
|
+
@solo mirrored_title() {
|
|
282
|
+
const segmenter = this.segmenter()
|
|
283
|
+
const segments = [ ... segmenter.segment( this.title() ) ]
|
|
284
|
+
return segments.map( s => s.segment ).reverse().join('')
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
With `$mol_wire_plex` (as in multiplexing) we can store multiple values:
|
|
290
|
+
|
|
291
|
+
```ts
|
|
292
|
+
import { $mol_wire_plex as plex } from 'mol_wire_lib'
|
|
293
|
+
|
|
294
|
+
class Project {
|
|
295
|
+
@plex task( id: number ) {
|
|
296
|
+
return new Task( id )
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
const project = new Project()
|
|
301
|
+
const task1 = project.task(1)
|
|
302
|
+
const task2 = project.task(2)
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
### Hacking
|
|
306
|
+
|
|
307
|
+
Another piece of flexibility that **channels** give is what's called **hacking**. It allows us to impose custom rules on how channels are read or set:
|
|
308
|
+
|
|
309
|
+
```ts
|
|
310
|
+
import {
|
|
311
|
+
$mol_wire_solo as solo,
|
|
312
|
+
$mol_wire_plex as plex,
|
|
313
|
+
} from 'mol_wire_lib'
|
|
314
|
+
|
|
315
|
+
class Task {
|
|
316
|
+
// task has a duration
|
|
317
|
+
@solo duration( dur?: number ) {
|
|
318
|
+
return dur
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
class Project_limited {
|
|
323
|
+
// project has many tasks
|
|
324
|
+
@plex task( id: number ) {
|
|
325
|
+
const task = new Task()
|
|
326
|
+
|
|
327
|
+
// the "hacking" technique:
|
|
328
|
+
// when someone tries to get or set the duration for a task
|
|
329
|
+
// we proxy this through our own method imposing a limitation for maximum duration
|
|
330
|
+
task.duration = ( duration ) => this.task_duration( id, duration )
|
|
331
|
+
|
|
332
|
+
return task
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
@plex task_duration( id: number, duration = 1 ) {
|
|
336
|
+
// clamp the duration to the maximum value
|
|
337
|
+
return Math.min( duration, this.duration_max() )
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
duration_max() {
|
|
341
|
+
return 10
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
const project_limited = new Project_limited()
|
|
346
|
+
|
|
347
|
+
const task_limited = project_limited.task(1)
|
|
348
|
+
task_limited.duration(20) // try to set 20 for the duration
|
|
349
|
+
|
|
350
|
+
console.log(task_limited.duration()) // logs: 10
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
### Destructors
|
|
354
|
+
|
|
355
|
+
We can take the use of **memoization** even further by leveraging **destructors**.
|
|
356
|
+
|
|
357
|
+
`$mol_wire` will call a special method named `destructor` on an object that is no longer needed:
|
|
358
|
+
|
|
359
|
+
```ts
|
|
360
|
+
import { $mol_wire_solo as solo } from 'mol_wire_lib'
|
|
361
|
+
|
|
362
|
+
class ExampleAPI {
|
|
363
|
+
socket: WebSocket
|
|
364
|
+
|
|
365
|
+
constructor (
|
|
366
|
+
public api_key : string ,
|
|
367
|
+
) {
|
|
368
|
+
this.socket = new WebSocket(`wss://example.com?api_key=${api_key}`)
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
// the special method
|
|
372
|
+
destructor() {
|
|
373
|
+
this.socket.close()
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
class App {
|
|
378
|
+
@solo api_key( value = '' ) {
|
|
379
|
+
return value
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
@solo api() {
|
|
383
|
+
return new ExampleAPI( this.api_key() )
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
const app = new App()
|
|
388
|
+
|
|
389
|
+
// set an api key
|
|
390
|
+
app.api_key('testkey1')
|
|
391
|
+
|
|
392
|
+
// create an instance of WebSocket, establish a connection
|
|
393
|
+
app.api()
|
|
394
|
+
|
|
395
|
+
// change the api key
|
|
396
|
+
// this will trigger creation of a new web socket
|
|
397
|
+
// and the old one will get destructured
|
|
398
|
+
app.api_key('testkey2')
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
### Asynchronous computed values
|
|
402
|
+
|
|
403
|
+
Unlike many other reactivity systems, `$mol_wire` allows you to have computeds that depend on asynchronous values.
|
|
404
|
+
|
|
405
|
+
`$mol_wire` makes it possible by using an implementaion of Suspense API where an asynchronous task throws an exception to pause the computation until the task resolves. You can read more about it [here](https://mol.hyoo.ru/#!section=docs/=h5rg2r_mmlg15).
|
|
406
|
+
|
|
407
|
+
```ts
|
|
408
|
+
import {
|
|
409
|
+
$mol_wire_solo as solo,
|
|
410
|
+
$mol_wire_sync,
|
|
411
|
+
$mol_wire_async,
|
|
412
|
+
} from 'mol_wire_lib'
|
|
413
|
+
|
|
414
|
+
// produce a value with 1 second delay
|
|
415
|
+
function value_async(): Promise<number> {
|
|
416
|
+
return new Promise((resolve) => {
|
|
417
|
+
const value = 25
|
|
418
|
+
setTimeout(() => resolve(value), 1000)
|
|
419
|
+
})
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
class App {
|
|
423
|
+
@solo value() {
|
|
424
|
+
// convert asynchronous function to a synchronous one
|
|
425
|
+
// NOTE closures won't work here,
|
|
426
|
+
// NOTE only use references to pre-defined functions or object methods
|
|
427
|
+
const value_sync = $mol_wire_sync(value_async)
|
|
428
|
+
|
|
429
|
+
// treat the value as it is already there
|
|
430
|
+
return value_sync() * 2
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
run() {
|
|
434
|
+
console.log(this.value())
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
const app = new App()
|
|
439
|
+
|
|
440
|
+
// run the application in a Suspense environment
|
|
441
|
+
$mol_wire_async(app).run()
|
|
442
|
+
|
|
443
|
+
// logs: 50
|
|
444
|
+
```
|
|
445
|
+
|
|
446
|
+
### Side effects in asynchronous computations
|
|
447
|
+
|
|
448
|
+
In `$mol_wire` we treat values that are computed **asynchronously** as they're **already there**. This is thanks to **Suspense API**: when an asynchronous task starts in a **method** it throws an exception and when it finishes the **method** is **called again**. A more detailed description is [here](https://mol.hyoo.ru/#!section=docs/=3b4eua_31c025).
|
|
449
|
+
|
|
450
|
+
Because of that we have to be a little careful about how we make **side effects** inside our methods.
|
|
451
|
+
|
|
452
|
+
The `@$mol_wire_method` decorator (which is usually aliased to `@action`) prevents methods from being called multiple times:
|
|
453
|
+
|
|
454
|
+
```ts
|
|
455
|
+
import {
|
|
456
|
+
$mol_wire_method as action,
|
|
457
|
+
$mol_wire_sync,
|
|
458
|
+
} from 'mol_wire_lib'
|
|
459
|
+
|
|
460
|
+
class App {
|
|
461
|
+
// Auto wrap method to task
|
|
462
|
+
@action main() {
|
|
463
|
+
// Convert async api to sync
|
|
464
|
+
const syncFetch = $mol_wire_sync( fetch )
|
|
465
|
+
|
|
466
|
+
this.log( 'Request' ) // 3 calls, 1 log
|
|
467
|
+
const response = syncFetch( 'https://example.org' ) // Sync but non-blocking
|
|
468
|
+
const syncResponse = $mol_wire_sync( response )
|
|
469
|
+
|
|
470
|
+
this.log( 'Parse' ) // 2 calls, 1 log
|
|
471
|
+
const response = syncResponse.json() // Sync but non-blocking
|
|
472
|
+
|
|
473
|
+
this.log( 'Done' ) // 1 call, 1 log
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
// Auto wrap method to sub-task
|
|
477
|
+
@action log( ... args: any[] ) {
|
|
478
|
+
console.log( ... args )
|
|
479
|
+
// No restarts within a portion of a task
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
### Cancelling asynchronous tasks
|
|
485
|
+
|
|
486
|
+
We can cancel asynchronous tasks when we no longer need them by using **destructors** again.
|
|
487
|
+
|
|
488
|
+
Here's an example of a cancelable `fetch`:
|
|
489
|
+
|
|
490
|
+
```ts
|
|
491
|
+
import { $mol_wire_sync } from 'mol_wire_lib'
|
|
492
|
+
|
|
493
|
+
const fetchJSON = $mol_wire_sync( function fetch_abortable(
|
|
494
|
+
input: RequestInfo,
|
|
495
|
+
init: RequestInit = {}
|
|
496
|
+
) {
|
|
497
|
+
const controller = new AbortController
|
|
498
|
+
init.signal ||= controller.signal
|
|
499
|
+
|
|
500
|
+
const promise = fetch( input, init )
|
|
501
|
+
.then( response => response.json() )
|
|
502
|
+
|
|
503
|
+
// assign a destructor to cancel the request
|
|
504
|
+
const destructor = ()=> controller.abort()
|
|
505
|
+
return Object.assign( promise, { destructor } )
|
|
506
|
+
} )
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
Then, we can use it in our computeds:
|
|
510
|
+
|
|
511
|
+
```ts
|
|
512
|
+
import { $mol_wire_plex as plex } from 'mol_wire_lib'
|
|
513
|
+
|
|
514
|
+
class GitHub {
|
|
515
|
+
@plex static issue( id: number ) {
|
|
516
|
+
return fetchJSON( `https://api.github.com/repos/nin-jin/HabHub/issues/${id}` )
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
```
|
|
520
|
+
|
|
521
|
+
or a more interesting use case could look like this:
|
|
522
|
+
|
|
523
|
+
```ts
|
|
524
|
+
import { $mol_wire_async } from 'mol_wire_lib'
|
|
525
|
+
|
|
526
|
+
button.onclick = $mol_wire_async( function() {
|
|
527
|
+
const { profile } = fetchJSON( 'https://example.org/input' )
|
|
528
|
+
console.log( profile )
|
|
529
|
+
} )
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
In the above example clicking the button will trigger an HTTP request. If it doesn't resolve until the user clicks again, a new request will be sent and the previous one will get **cancelled**.
|
|
533
|
+
|
|
534
|
+
And this is how easy it is to add debounce to this function:
|
|
535
|
+
|
|
536
|
+
```diff
|
|
537
|
+
button.onclick = $mol_wire_async( function() {
|
|
538
|
+
+ // schedule a timer
|
|
539
|
+
+ // the execution won't go past this point until it resolves
|
|
540
|
+
+ // if onclick is called again the timer gets rescheduled
|
|
541
|
+
+ $mol_wait_timeout( 1000 )
|
|
542
|
+
const { profile } = fetchJSON( 'https://example.org/input' )
|
|
543
|
+
console.log( profile )
|
|
544
|
+
} )
|
|
545
|
+
```
|
package/node.deps.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"files":["mam.ts","LICENSE","README.md","yarn.lock","mam.jam.js","tsfmt.json","package.json","tsconfig.json","lang.lang.tree","meta.lang.tree","sandbox.config.json","mol/CNAME","mol/LICENSE","mol/readme.md","mol/index.html","mol/mol.meta.tree","mol/CONTRIBUTING.md","mol/CODE_OF_CONDUCT.md","mol/fail/fail.ts","mol/wire/cursor/cursor.ts","mol/wire/pub/pub.ts","mol/wire/sub/sub.ts","mol/wire/wire.ts","mol/wire/README.md"],"mods":{},"deps_in":{"mol/wire":{},"mol":{"mol/wire":-9007199254740991,"mol/fail":-9007199254740991},"":{"mol":-9007199254740991},"mol/wire/sub":{"mol/wire":-1},"mol/wire/pub":{"mol/wire/sub":-1},"mol/wire/cursor":{"mol/wire/sub":-2,"mol/wire/pub":-2},"mol/fail":{"mol/wire/pub":-4}},"deps_out":{"mol/wire/pub":{"mol/fail":-4,"mol/wire/cursor":-2},"mol/wire":{"mol":-9007199254740991,"mol/wire/sub":-1},"mol":{"":-9007199254740991},"mol/wire/sub":{"mol/wire/pub":-1,"mol/wire/cursor":-2},"mol/wire/cursor":{},"mol/fail":{"mol":-9007199254740991}},"sloc":{"ts":172,"LICENSE":113,"md":
|
|
1
|
+
{"files":["mam.ts","LICENSE","README.md","yarn.lock","mam.jam.js","tsfmt.json","package.json","tsconfig.json","lang.lang.tree","meta.lang.tree","sandbox.config.json","mol/CNAME","mol/LICENSE","mol/readme.md","mol/index.html","mol/mol.meta.tree","mol/CONTRIBUTING.md","mol/CODE_OF_CONDUCT.md","mol/fail/fail.ts","mol/wire/cursor/cursor.ts","mol/wire/pub/pub.ts","mol/wire/sub/sub.ts","mol/wire/wire.ts","mol/wire/README.md"],"mods":{},"deps_in":{"mol/wire":{},"mol":{"mol/wire":-9007199254740991,"mol/fail":-9007199254740991},"":{"mol":-9007199254740991},"mol/wire/sub":{"mol/wire":-1},"mol/wire/pub":{"mol/wire/sub":-1},"mol/wire/cursor":{"mol/wire/sub":-2,"mol/wire/pub":-2},"mol/fail":{"mol/wire/pub":-4}},"deps_out":{"mol/wire/pub":{"mol/fail":-4,"mol/wire/cursor":-2},"mol/wire":{"mol":-9007199254740991,"mol/wire/sub":-1},"mol":{"":-9007199254740991},"mol/wire/sub":{"mol/wire/pub":-1,"mol/wire/cursor":-2},"mol/wire/cursor":{},"mol/fail":{"mol":-9007199254740991}},"sloc":{"ts":172,"LICENSE":113,"md":857,"lock":981,"js":9,"json":94,"tree":41,"CNAME":1,"html":1},"deps":{"mol/wire/pub":{"..":-9007199254740991,"/mol/wire/pub":-1,"/mol/wire/sub":-3,"/mol/fail":-4,"/mol/wire/auto":-3,"/mol/wire/cursor/stale":-2},"mol/wire":{"..":-9007199254740991,"/mol/wire/sub":-1,"/mol/wire/auto":-1,"/mol/wire/affected":-1},"mol":{"..":-9007199254740991},"":{},"mol/wire/sub":{"..":-9007199254740991,"/mol/wire/sub":-1,"/mol/wire/pub":-1,"/mol/wire/cursor":-2},"mol/wire/cursor":{"..":-9007199254740991,"/mol/wire/cursor":-1},"mol/fail":{"..":-9007199254740991,"/mol/fail":-1}}}
|
package/package.json
CHANGED
package/web.deps.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"files":["mam.ts","LICENSE","README.md","yarn.lock","mam.jam.js","tsfmt.json","package.json","tsconfig.json","lang.lang.tree","meta.lang.tree","sandbox.config.json","mol/CNAME","mol/LICENSE","mol/readme.md","mol/index.html","mol/mol.meta.tree","mol/CONTRIBUTING.md","mol/CODE_OF_CONDUCT.md","mol/fail/fail.ts","mol/wire/cursor/cursor.ts","mol/wire/pub/pub.ts","mol/wire/sub/sub.ts","mol/wire/wire.ts","mol/wire/README.md"],"mods":{},"deps_in":{"mol/wire":{},"mol":{"mol/wire":-9007199254740991,"mol/fail":-9007199254740991},"":{"mol":-9007199254740991},"mol/wire/sub":{"mol/wire":-1},"mol/wire/pub":{"mol/wire/sub":-1},"mol/wire/cursor":{"mol/wire/sub":-2,"mol/wire/pub":-2},"mol/fail":{"mol/wire/pub":-4}},"deps_out":{"mol/wire/pub":{"mol/fail":-4,"mol/wire/cursor":-2},"mol/wire":{"mol":-9007199254740991,"mol/wire/sub":-1},"mol":{"":-9007199254740991},"mol/wire/sub":{"mol/wire/pub":-1,"mol/wire/cursor":-2},"mol/wire/cursor":{},"mol/fail":{"mol":-9007199254740991}},"sloc":{"ts":172,"LICENSE":113,"md":
|
|
1
|
+
{"files":["mam.ts","LICENSE","README.md","yarn.lock","mam.jam.js","tsfmt.json","package.json","tsconfig.json","lang.lang.tree","meta.lang.tree","sandbox.config.json","mol/CNAME","mol/LICENSE","mol/readme.md","mol/index.html","mol/mol.meta.tree","mol/CONTRIBUTING.md","mol/CODE_OF_CONDUCT.md","mol/fail/fail.ts","mol/wire/cursor/cursor.ts","mol/wire/pub/pub.ts","mol/wire/sub/sub.ts","mol/wire/wire.ts","mol/wire/README.md"],"mods":{},"deps_in":{"mol/wire":{},"mol":{"mol/wire":-9007199254740991,"mol/fail":-9007199254740991},"":{"mol":-9007199254740991},"mol/wire/sub":{"mol/wire":-1},"mol/wire/pub":{"mol/wire/sub":-1},"mol/wire/cursor":{"mol/wire/sub":-2,"mol/wire/pub":-2},"mol/fail":{"mol/wire/pub":-4}},"deps_out":{"mol/wire/pub":{"mol/fail":-4,"mol/wire/cursor":-2},"mol/wire":{"mol":-9007199254740991,"mol/wire/sub":-1},"mol":{"":-9007199254740991},"mol/wire/sub":{"mol/wire/pub":-1,"mol/wire/cursor":-2},"mol/wire/cursor":{},"mol/fail":{"mol":-9007199254740991}},"sloc":{"ts":172,"LICENSE":113,"md":857,"lock":981,"js":9,"json":94,"tree":41,"CNAME":1,"html":1},"deps":{"mol/wire/pub":{"..":-9007199254740991,"/mol/wire/pub":-1,"/mol/wire/sub":-3,"/mol/fail":-4,"/mol/wire/auto":-3,"/mol/wire/cursor/stale":-2},"mol/wire":{"..":-9007199254740991,"/mol/wire/sub":-1,"/mol/wire/auto":-1,"/mol/wire/affected":-1},"mol":{"..":-9007199254740991},"":{},"mol/wire/sub":{"..":-9007199254740991,"/mol/wire/sub":-1,"/mol/wire/pub":-1,"/mol/wire/cursor":-2},"mol/wire/cursor":{"..":-9007199254740991,"/mol/wire/cursor":-1},"mol/fail":{"..":-9007199254740991,"/mol/fail":-1}}}
|