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.1.1 to 1.1.2

13

lib/TwimlResponse.js
var _ = require('underscore');
// Escape XML entites in a given string
function esc(str) {
return String(str).replace(/&/g, '&')
.replace(/\"/g, '"')
.replace(/\'/g, ''')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;');
}
//helper to generate a helper function which returns XML node for a given parent

@@ -87,3 +96,3 @@ function addTwimlFunction(node, twimlName) {

for (var attr in this.attributes) {
buffer.push(' ' + attr + '="' + this.attributes[attr] + '"');
buffer.push(' ' + attr + '="' + esc(this.attributes[attr]) + '"');
}

@@ -96,3 +105,3 @@

if (this.text) {
buffer.push(this.text);
buffer.push(esc(this.text));
}

@@ -99,0 +108,0 @@ else {

2

package.json
{
"name":"twilio",
"description":"A Twilio helper library",
"version":"1.1.1",
"version":"1.1.2",
"author":"Kevin Whinnery <kevin.whinnery@gmail.com>",

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

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