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

twilio

Package Overview
Dependencies
Maintainers
7
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 2.5.1 to 2.5.2-edge

lib/AccessToken.js

1

lib/Client.js
//Dependencies
var jwt = require('jwt-simple');
var Q = require('q');

@@ -3,0 +4,0 @@ var querystring = require('querystring');

19

lib/index.js

@@ -10,7 +10,9 @@ /**

var webhooks = require('./webhooks'),
ConversationsClient = require('./ConversationsClient'),
IpMessagingClient = require('./IpMessagingClient'),
LookupsClient = require('./LookupsClient'),
MonitorClient = require('./MonitorClient'),
PricingClient = require('./PricingClient'),
RestClient = require('./RestClient'),
PricingClient = require('./PricingClient'),
MonitorClient = require('./MonitorClient'),
TaskRouterClient = require('./TaskRouterClient'),
LookupsClient = require('./LookupsClient'),
TrunkingClient = require('./TrunkingClient');

@@ -24,13 +26,16 @@

//Main functional components of the Twilio module
initializer.ConversationsClient = ConversationsClient;
initializer.IpMessagingClient = IpMessagingClient;
initializer.LookupsClient = LookupsClient;
initializer.MonitorClient = MonitorClient;
initializer.PricingClient = PricingClient;
initializer.RestClient = RestClient;
initializer.PricingClient = PricingClient;
initializer.MonitorClient = MonitorClient;
initializer.TaskRouterClient = TaskRouterClient;
initializer.LookupsClient = LookupsClient;
initializer.TrunkingClient = TrunkingClient;
initializer.AccessToken = require('./AccessToken');
initializer.Capability = require('./Capability');
initializer.TaskRouterCapability = require('./TaskRouterCapability');
initializer.TaskRouterTaskQueueCapability = require('./TaskRouterTaskQueueCapability');
initializer.TaskRouterWorkerCapability = require('./TaskRouterWorkerCapability');
initializer.TaskRouterWorkspaceCapability = require('./TaskRouterWorkspaceCapability');
initializer.TaskRouterTaskQueueCapability = require('./TaskRouterTaskQueueCapability');
initializer.TwimlResponse = require('./TwimlResponse');

@@ -37,0 +42,0 @@

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

var subresources = {
addresses:require('./Addresses')(client, sid),
applications:ListInstanceResource(client, sid, 'Applications',
['GET', 'POST', 'DELETE', {update:'POST'}],
['GET', 'POST', {create:'POST'}]
),
authorizedConnectApps:ListInstanceResource(client, sid, 'AuthorizedConnectApps',
['GET'],
['GET']
),
availablePhoneNumbers:require('./AvailablePhoneNumbers')(client, sid),
calls:require('./Calls')(client, sid),
conferences:require('./Conferences')(client, sid),
connectApps:ListInstanceResource(client, sid, 'ConnectApps',
['GET', 'POST', {update:'POST'}],
['GET']
),
incomingPhoneNumbers:require('./IncomingPhoneNumbers')(client, sid),
keys:ListInstanceResource(client, sid, 'Keys',
['GET', 'POST', 'DELETE', {update: 'POST'}],
['GET', 'POST', {create: 'POST'}]
),
messages: require('./Messages')(client, sid),
notifications:ListInstanceResource(client, sid, 'Notifications',
['GET', 'DELETE'],
['GET']
),
outgoingCallerIds:ListInstanceResource(client, sid, 'OutgoingCallerIds',

@@ -23,4 +48,13 @@ ['GET', 'POST', 'PUT', 'DELETE', { update:'PUT' }],

),
incomingPhoneNumbers:require('./IncomingPhoneNumbers')(client, sid),
messages: require('./Messages')(client, sid),
queues:require('./Queues')(client, sid),
recordings:require('./Recordings')(client, sid),
signingKeys:ListInstanceResource(client, sid, 'SigningKeys',
['GET', 'POST', 'DELETE', {update:'POST'}],
['POST', {create:'POST'}]
),
sip:{
domains:require('./sip/Domains')(client, sid),
ipAccessControlLists:require('./sip/IpAccessControlLists')(client,sid),
credentialLists:require('./sip/CredentialLists')(client,sid)
},
sms:{

@@ -36,18 +70,2 @@ messages:ListInstanceResource(client, sid, 'SMS/Messages',

},
applications:ListInstanceResource(client, sid, 'Applications',
['GET', 'POST', 'DELETE', {update:'POST'}],
['GET', 'POST', {create:'POST'}]
),
connectApps:ListInstanceResource(client, sid, 'ConnectApps',
['GET', 'POST', {update:'POST'}],
['GET']
),
authorizedConnectApps:ListInstanceResource(client, sid, 'AuthorizedConnectApps',
['GET'],
['GET']
),
calls:require('./Calls')(client, sid),
conferences:require('./Conferences')(client, sid),
queues:require('./Queues')(client, sid),
recordings:require('./Recordings')(client, sid),
tokens: ListInstanceResource(client, sid, 'Tokens',

@@ -61,6 +79,2 @@ [],

),
notifications:ListInstanceResource(client, sid, 'Notifications',
['GET', 'DELETE'],
['GET']
),
usage:{

@@ -72,10 +86,3 @@ records:require('./UsageRecords')(client, sid),

)
},
sip:{
domains:require('./sip/Domains')(client, sid),
ipAccessControlLists:require('./sip/IpAccessControlLists')(client,sid),
credentialLists:require('./sip/CredentialLists')(client,sid)
},
addresses:require('./Addresses')(client, sid)
}
};

@@ -82,0 +89,0 @@

{
"name": "twilio",
"description": "A Twilio helper library",
"version": "2.5.1",
"version": "2.5.2-edge",
"author": "Kevin Whinnery <kevin.whinnery@gmail.com>",

@@ -19,3 +19,3 @@ "contributors": [

"underscore": "1.x",
"jwt-simple": "0.1.x",
"jwt-simple": "0.3.x",
"q": "0.9.7",

@@ -28,6 +28,6 @@ "scmp": "0.0.3",

"express": "3.x",
"jasmine-node": "^1.14.5"
"jasmine-node": "2.0.x"
},
"scripts": {
"test": "jasmine-node spec"
"test": "jasmine-node --captureExceptions spec"
},

@@ -34,0 +34,0 @@ "main": "./lib",

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