ellipsis-default-storage
Advanced tools
Comparing version 0.1.5 to 0.1.6
10
index.js
@@ -16,3 +16,3 @@ var request = require('request'); | ||
putItem: function (args) { | ||
var missing = findMissingArgs(["itemId", "itemType", "item", "context"], args); | ||
var missing = findMissingArgs(["itemId", "itemType", "item", "ellipsis"], args); | ||
if (missing.length > 0) { | ||
@@ -23,4 +23,4 @@ onError("Missing values for: " + missing.join(", ")); | ||
post({ | ||
url: args.context.apiBaseUrl + "/put_item", | ||
form: {itemId: args.itemId, itemType: args.itemType, token: args.context.token, item: args.item} | ||
url: args.ellipsis.apiBaseUrl + "/put_item", | ||
form: {itemId: args.itemId, itemType: args.itemType, token: args.ellipsis.token, item: args.item} | ||
}, function (error, response, body) { | ||
@@ -42,3 +42,3 @@ if (!error && response.statusCode == 200) { | ||
getItem: function (args) { | ||
var missing = findMissingArgs(["itemId", "itemType", "context"], args); | ||
var missing = findMissingArgs(["itemId", "itemType", "ellipsis"], args); | ||
if (missing.length > 0) { | ||
@@ -49,3 +49,3 @@ onError("Missing values for: " + missing.join(", ")); | ||
get( | ||
args.context.apiBaseUrl + "/get_item/" + args.itemId + "/" + args.itemType + "/" + args.context.token, | ||
args.context.apiBaseUrl + "/get_item/" + args.itemId + "/" + args.itemType + "/" + args.ellipsis.token, | ||
function (error, response, body) { | ||
@@ -52,0 +52,0 @@ if (!error && response.statusCode == 200) { |
{ | ||
"name": "ellipsis-default-storage", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Interface to the default storage for Ellipsis behaviors", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2443