pico-engine-core
Advanced tools
Comparing version 0.14.6 to 0.14.7
{ | ||
"name": "pico-engine-core", | ||
"version": "0.14.6", | ||
"version": "0.14.7", | ||
"description": "The core javascript api for the pico-engine. (no http, logging, process management etc...)", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -362,5 +362,7 @@ var _ = require("lodash"); | ||
[signal("events", "store_sent_name", {name: "Bob"}), []], | ||
[query("getSentAttrs"), {name: "Bob"}], | ||
[query("getSentName"), "Bob"], | ||
[signal("events", "action_send", {name: "Jim"}), []], | ||
//this should in turn call store_sent_name and change it | ||
[query("getSentAttrs"), {name: "Jim"}], | ||
[query("getSentName"), "Jim"] | ||
@@ -367,0 +369,0 @@ ], t.end); |
var getArg = require("../getArg"); | ||
var fns = { | ||
attrs: function(ctx, args){ | ||
return ctx.event.attrs; | ||
}, | ||
attr: function(ctx, args){ | ||
@@ -5,0 +8,0 @@ var name = getArg(args, "name", 0); |
49782
1598