New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tdoc-api

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tdoc-api - npm Package Compare versions

Comparing version 0.1.9 to 0.1.10

lib/restler-q.js

15

index.js

@@ -11,5 +11,3 @@ /*!

Q = require('q'),
restler = require('restler-q'),
restlerData = require('restler').data,
restlerFile = require('restler').file,
restler = require('./lib/restler-q'),
qStat = Q.denodeify(fs.stat);

@@ -49,3 +47,2 @@

//TODO: add debug
function GET(me, method, data) {

@@ -135,3 +132,3 @@ return restler.get(me.address + method, {

if (p.meta)
s.meta = restlerData('a.json', 'application/json', new Buffer(JSON.stringify(p.meta), 'utf8'));
s.meta = restler.data('a.json', 'application/json', new Buffer(JSON.stringify(p.meta), 'utf8'));
if (p.alias && p.pin) {

@@ -162,7 +159,7 @@ s.alias = p.alias;

.then(function (stat) {
s.document = restlerFile(p.file, null, stat.size, null, s.mimetype);
s.document = restler.file(p.file, null, stat.size, null, s.mimetype);
return documentPOST(me, 'docs/upload', s);
});
else if (p.data) {
s.document = restlerData('a.bin', s.mimetype, p.data);
s.document = restler.data('a.bin', s.mimetype, p.data);
return documentPOST(me, 'docs/upload', s);

@@ -180,7 +177,7 @@ } else if (!p.ready)

.then(function (stats) {
s.document = restlerFile(p.file, null, stats.size, null, s.mimetype);
s.document = restler.file(p.file, null, stats.size, null, s.mimetype);
return documentPOST(me, 'docs/update', s);
});
else if (p.data) {
s.document = restlerData('a.bin', s.mimetype, p.data);
s.document = restler.data('a.bin', s.mimetype, p.data);
return documentPOST(me, 'docs/update', s);

@@ -187,0 +184,0 @@ } else

7

package.json
{
"name": "tdoc-api",
"version": "0.1.9",
"version": "0.1.10",
"description": "Wrapper around tDoc REST-ful APIs",

@@ -15,5 +15,4 @@ "main": "index.js",

"dependencies": {
"q": "^1.0.1",
"restler": "^3.2.2",
"restler-q": "^0.1.1"
"q": "^1.4.1",
"restler": "^3.2.2"
},

@@ -20,0 +19,0 @@ "devDependencies": {},

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