Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ellipsis-default-storage

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ellipsis-default-storage - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

53

index.js
var request = require('request');
module.exports = function(context) {
module.exports = {
return {
putItem: function (itemId, itemType, item, onSuccess, onError) {
request.
post({
url: context.db.putItemUrl,
form: {itemId: itemId, itemType: itemType, teamId: context.teamId, item: item}
}, function (error, response, body) {
if (!error && response.statusCode == 200) {
onSuccess(response, body);
} else {
onError(error);
}
putItem: function (itemId, itemType, item, onSuccess, onError, context) {
request.
post({
url: context.db.putItemUrl,
form: {itemId: itemId, itemType: itemType, teamId: context.teamId, item: item}
}, function (error, response, body) {
if (!error && response.statusCode == 200) {
onSuccess(response, body);
} else {
onError(error);
}
);
},
}
);
},
getItem: function (itemId, itemType, onSuccess, onError) {
request.
get(
context.db.getItemUrl + "/" + itemId + "/" + itemType + "/" + context.teamId,
function (error, response, body) {
if (!error && response.statusCode == 200) {
onSuccess(response, body);
} else {
onError(error);
}
getItem: function (itemId, itemType, onSuccess, onError, context) {
request.
get(
context.db.getItemUrl + "/" + itemId + "/" + itemType + "/" + context.teamId,
function (error, response, body) {
if (!error && response.statusCode == 200) {
onSuccess(response, body);
} else {
onError(error);
}
);
}
}
);
}
};
{
"name": "ellipsis-default-storage",
"version": "0.1.1",
"version": "0.1.2",
"description": "Interface to the default storage for Ellipsis behaviors",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc