UNPKG

neft

Version:

Universal Platform

17 lines (11 loc) 337 B
'use strict' module.exports = (File) -> {StateChange} = File (file) -> {stateChanges} = file nodes = file.node.queryAll 'state' for node in nodes target = node.parent name = node.props.name stateChanges.push new StateChange file, node, target, name return