git ssb

16+

Dominic / patchbay



Commit 2d80ace8ef63530006b28f25f53eb7577cb929c6

roll out mutant destructuring!

mix irving committed on 1/13/2017, 5:32:10 AM
Parent: 9cbca35a9f214a2cc57f38645bc16fb874eb8222

Files changed

h.jschanged
modules_basic/about.jschanged
modules_basic/message-author.jschanged
modules_extra/network.jschanged
h.jsView
@@ -1,1 +1,4 @@
1-module.exports = require('micro-css/h')(require('@mmckegg/mutant/html-element'))
1 +const { h } = require('@mmckegg/mutant')
2 +
3 +module.exports = require('micro-css/h')(h)
4 +
modules_basic/about.jsView
@@ -1,7 +1,7 @@
11 const fs = require('fs')
22 const h = require('../h')
3-const when = require('@mmckegg/mutant/when')
3 +const { when } = require('@mmckegg/mutant')
44
55 exports.needs = {
66 blob_url: 'first',
77 markdown: 'first'
modules_basic/message-author.jsView
@@ -1,7 +1,7 @@
11 const fs = require('fs')
22 const h = require('../h')
3-const when = require('@mmckegg/mutant/when')
3 +const { when }= require('@mmckegg/mutant')
44
55 exports.needs = {
66 avatar_link: 'first',
77 avatar_image: 'first',
modules_extra/network.jsView
@@ -2,15 +2,12 @@
22 // const { isVisible } = require('is-visible')
33 const h = require('../h')
44 const human = require('human-time')
55
6-const Struct = require('@mmckegg/mutant/struct')
7-const Value = require('@mmckegg/mutant/value')
8-const Dict = require('@mmckegg/mutant/dict')
9-const toCollection = require('@mmckegg/mutant/dict-to-collection')
10-const mutantMap = require('@mmckegg/mutant/map')
11-const when = require('@mmckegg/mutant/when')
12-const computed = require('@mmckegg/mutant/computed')
6 +const {
7 + Struct, Value, Dict,
8 + dictToCollection, map: mutantMap, when, computed
9 +} = require('@mmckegg/mutant')
1310
1411 //var avatar = plugs.first(exports.avatar = [])
1512 //var sbot_gossip_peers = plugs.first(exports.sbot_gossip_peers = [])
1613 //var sbot_gossip_connect = plugs.first(exports.sbot_gossip_connect = [])
@@ -215,9 +212,9 @@
215212 })
216213
217214 refresh()
218215
219- return toCollection.values(state)
216 + return dictToCollection.values(state)
220217
221218 function refresh () {
222219 api.sbot_gossip_peers((err, peers) => {
223220 peers.forEach(data => {

Built with git-ssb-web