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

twilio

Package Overview
Dependencies
Maintainers
1
Versions
305
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twilio - npm Package Compare versions

Comparing version 1.6.0 to 1.7.0

19

lib/resources/Calls.js

@@ -6,2 +6,3 @@ /**

var generate = require('./generate');
var ListInstanceResource = require('./ListInstanceResource');

@@ -16,3 +17,3 @@ module.exports = function (client, accountSid) {

//Add standard instance resource functions
generate.restFunctions(resourceApi,client,['GET','POST',{update:'POST'}], baseResourceUrl + '/' + sid);
generate.restFunctions(resourceApi, client, ['GET', 'POST', {update: 'POST'}], baseResourceUrl + '/' + sid);

@@ -30,2 +31,10 @@ //Add in subresources

resourceApi.feedback = {
get: generate(client, 'GET', baseResourceUrl + '/' + sid + '/Feedback'),
post: generate(client, 'POST', baseResourceUrl + '/' + sid + '/Feedback'),
delete: generate(client, 'DELETE', baseResourceUrl + '/' + sid + '/Feedback')
};
resourceApi.feedback.create = resourceApi.feedback.post;
return resourceApi;

@@ -35,6 +44,12 @@ }

//List requests
generate.restFunctions(Calls, client, ['GET','POST',{create:'POST'}], baseResourceUrl);
generate.restFunctions(Calls, client, ['GET', 'POST', {create: 'POST'}], baseResourceUrl);
// Create ListInstanceResource for FeedbackSummary sub-resource
Calls.feedbackSummary = ListInstanceResource(client, accountSid,
'Calls/FeedbackSummary',
['GET', 'DELETE'],
['POST', {create:'POST'}]
);
return Calls;
};

2

lib/resources/Messages.js

@@ -19,3 +19,3 @@ /**

get:generate(client, 'GET', baseResourceUrl + '/' + sid + '/Media/' + mediaSid),
delete:generate(client, 'DELETE', baseResourceUrl + '/' + sid + '/Media/' + mediaSid),
delete:generate(client, 'DELETE', baseResourceUrl + '/' + sid + '/Media/' + mediaSid)
};

@@ -22,0 +22,0 @@

var crypto = require('crypto'),
_ = require('underscore');
_ = require('underscore'),
scmp = require('scmp');

@@ -17,3 +18,3 @@ /**

return twilioHeader === crypto.createHmac('sha1', authToken).update(new Buffer(url, 'utf-8')).digest('Base64');
return scmp(twilioHeader, crypto.createHmac('sha1', authToken).update(new Buffer(url, 'utf-8')).digest('Base64'));
};

@@ -20,0 +21,0 @@

{
"name": "twilio",
"description": "A Twilio helper library",
"version": "1.6.0",
"version": "1.7.0",
"author": "Kevin Whinnery <kevin.whinnery@gmail.com>",
"contributors": [
{
"name": "Carter Rabasa",
"email": "carter@twilio.com"
},
{
"name": "Stephen Walters",
"email": "stephenwalters@gmail.com"
"name": "twilio-node contributors",
"url": "https://github.com/twilio/twilio-node/graphs/contributors"
}

@@ -24,6 +20,8 @@ ],

"jwt-simple": "0.1.x",
"q": "0.9.7"
"q": "0.9.7",
"scmp": "0.0.3"
},
"devDependencies": {
"express": "3.x"
"express": "3.x",
"jasmine-node": "*"
},

@@ -30,0 +28,0 @@ "scripts": {

# twilio-node
A node.js Twilio helper library.
[![NPM](https://nodei.co/npm/twilio.png?downloads=true&stars=true)](https://nodei.co/npm/twilio/)
[![Build Status](https://travis-ci.org/twilio/twilio-node.png?branch=master)](https://travis-ci.org/twilio/twilio-node)
[![Build Status](https://travis-ci.org/twilio/twilio-node.svg?branch=master)](https://travis-ci.org/twilio/twilio-node)
A node.js Twilio helper library. For usage infomation and API docs, head out here:
## End User Docs
[http://twilio.github.com/twilio-node/](http://twilio.github.com/twilio-node/)
For detailed usage infomation and API docs, head out here:
[http://twilio.github.io/twilio-node/](http://twilio.github.io/twilio-node/)
## Contributing

@@ -20,9 +24,7 @@

Run the existing test spec with `npm test`. This requires `jasmine-node` to be installed globally via npm:
[sudo] npm install -g jasmine-node
Run the existing test spec with `npm test`.
To run just one specific test file instead of the whole suite, provide a JavaScript regular expression that will match your spec file's name, like:
jasmine-node spec -m .\*accounts.\*
./node_modules/.bin/jasmine-node spec -m .\*accounts.\*

@@ -29,0 +31,0 @@ To run live tests (such as `client.live.spec.js`) against your [Twilio account](https://www.twilio.com/user/account), you will need to create a local configuration file. In the project root directory, do the following:

Sorry, the diff of this file is not supported yet

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