Comparing version 0.1.2 to 0.1.3
15
lbc.js
@@ -201,6 +201,17 @@ var net = require("net"); | ||
}, | ||
addBlock: function(workspace, logic, callback) { | ||
/** | ||
* Options: | ||
* - name: block name | ||
* - inActive: set to true to make inactive block | ||
*/ | ||
addBlock: function(workspace, logic, options, callback) { | ||
if(_.isFunction(options)) { | ||
callback = options; | ||
options = {}; | ||
} | ||
options = options || {}; | ||
defaultApi.request(transaction(workspace, [{ | ||
add_block: { | ||
active: true, | ||
block_name: options.name, | ||
active: !options.inActive, | ||
logic: logic | ||
@@ -207,0 +218,0 @@ } |
{ | ||
"name": "lbc", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"main": "./lbc.js", | ||
@@ -5,0 +5,0 @@ "devDepenencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
78283
807