Socket
Socket
Sign inDemoInstall

twilio-transport

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twilio-transport - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

lib/request.js

@@ -24,3 +24,3 @@ 'use strict';

return JSON.parse(xhr.responseText);
} catch(e) {
} catch (e) {
return xhr.responseText;

@@ -27,0 +27,0 @@ }

@@ -22,3 +22,12 @@ 'use strict';

.map(el => el.split('='))
.reduce((prev, curr) => { prev[curr[0]] = curr[1]; return prev; }, {});
.reduce((prev, curr) => {
if (!prev.hasOwnProperty(curr[0])) {
prev[curr[0]] = curr[1];
} else if (Array.isArray(prev[curr[0]])) {
prev[curr[0]].push(curr[1]);
} else {
prev[curr[0]] = [prev[curr[0]], curr[1]];
}
return prev;
}, {});
}

@@ -25,0 +34,0 @@ return uriStruct;

{
"name": "twilio-transport",
"version": "0.0.1",
"version": "0.0.2",
"description": "Twilio generic transport interface",

@@ -16,3 +16,4 @@ "main": "lib/transport.js",

"dependencies": {
"loglevel": "^1.4.0"
"loglevel": "^1.4.0",
"xmlhttprequest": "^1.8.0"
},

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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