Socket
Socket
Sign inDemoInstall

twilio

Package Overview
Dependencies
Maintainers
1
Versions
301
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 0.8.1 to 1.0.0

2

config.js

@@ -5,4 +5,4 @@ //Configuration for running tests and examples against the Twilio API

authToken:'1cb7a094ce91af64cc6bcc12a449fb1c',
from:'+16513566323', //The Twilio number you've bought or configured
from:'+12012126633', //The Twilio number you've bought or configured
to:'+16512080532' //The number you would like to send messages to for testing
};

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

availablePhoneNumbers:require('./AvailablePhoneNumbers')(client, sid),
outgoingCallerIds:ListInstanceResource(client, sid, 'OutgoingCallerIds',
outgoingCallerIds:ListInstanceResource(client, sid, 'OutgoingCallerIds',
['GET', 'POST', 'PUT', 'DELETE', { update:'PUT' }],

@@ -21,0 +21,0 @@ ['GET', 'POST', { create:'POST' }]

@@ -35,3 +35,3 @@ /**

else {
throw 'RestClient requires an application SID and auth token set explicitly ' +
throw 'RestClient requires an Account SID and Auth Token set explicitly ' +
'or via the TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN environment variables';

@@ -157,2 +157,2 @@ }

module.exports = RestClient;
module.exports = RestClient;
{
"name":"twilio",
"description":"A Twilio helper library",
"version":"0.8.1",
"version":"1.0.0",
"author":"Kevin Whinnery <kevin.whinnery@gmail.com>",

@@ -6,0 +6,0 @@ "contributors":[

@@ -5,3 +5,3 @@ # node-twilio

[http://kwhinnery.github.com/twilio-node/](http://kwhinnery.github.com/twilio-node/)
[http://twilio.github.com/twilio-node/](http://twilio.github.com/twilio-node/)

@@ -17,4 +17,4 @@ ## Roadmap

Questions? Contact [kwhinnery@twilio.com](mailto:kwhinnery@twilio.com).
Questions? Contact [kwhinnery@twilio.com](mailto:kwhinnery@twilio.com)
Looking for 0.4.x or earlier documentation? That's [here](https://github.com/kwhinnery/twilio-node/blob/master/old-help.md).
Looking for 0.4.x or earlier documentation? That's [here](https://github.com/kwhinnery/twilio-node/blob/master/old-help.md).

@@ -17,5 +17,5 @@ var config = require('../config'),

client.accounts.availablePhoneNumbers('US').local.search({
areaCode:651
areaCode:612
}, function (err, data) {
expect(data.available_phone_numbers[0].phone_number).toMatch(/^\+1651.*/);
expect(data.available_phone_numbers[0].phone_number).toMatch(/^\+1612.*/);
done();

@@ -22,0 +22,0 @@ });

@@ -57,7 +57,7 @@ var config = require('../config'),

client.accounts.availablePhoneNumbers('US').local.get({
areaCode:'651'
areaCode:'612'
}, function(err, data) {
expect(data.available_phone_numbers.length).toBeGreaterThan(0);
var available = data.available_phone_numbers[0].phone_number;
expect(available).toMatch(/\+1651.*/);
expect(available).toMatch(/\+1612.*/);

@@ -87,7 +87,7 @@ var randUrl = 'http://myapp.com/awesome/'+new Date().getTime();

client.availablePhoneNumbers('US').local.get({
areaCode:'651'
areaCode:'612'
}, function(err, data) {
expect(data.available_phone_numbers.length).toBeGreaterThan(0);
var available = data.available_phone_numbers[0].phone_number;
expect(available).toMatch(/\+1651.*/);
expect(available).toMatch(/\+1612.*/);

@@ -94,0 +94,0 @@ var randUrl = 'http://myapp.com/awesome/'+new Date().getTime();

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