New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ajax

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajax - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

.npmignore

26

lib/ajax.js

@@ -55,7 +55,7 @@ /* See license.txt for terms of usage */

function jsonpReturn(o) {
window.jsonp = undefined;
if (o.error) {
cb(o);
self.jsonp = undefined;
if (!o || o.error) {
if (cb) cb(o);
} else {
cb(0, o);
if (cb) cb(0, o);
}

@@ -65,3 +65,3 @@ }

if (has('appjs')) {
window.jsonp = jsonpReturn;
self.jsonp = jsonpReturn;

@@ -75,4 +75,4 @@ appjs.load(url, 'GET', {}, params, function(err, data) {

});
} else {
window.jsonp = function(o) {
} else if (self.document) {
self.jsonp = function(o) {
// Return on a timeout to ensure that getJSON calls return asynchronously. There

@@ -101,3 +101,15 @@ // is a case in IE where, after hitting the back button, this will return

head.appendChild(script);
} else {
self.jsonp = jsonpReturn;
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
eval(xhr.responseText);
self.jsonp = null;
}
}
xhr.send("");
}
}
{
"name": "ajax",
"description": "Utilities for loading JSON and XML.",
"version": "0.0.2",
"version": "0.0.3",
"homepage": "http://github.com/joehewitt/ajax",

@@ -25,2 +25,2 @@ "repository": {

"devDependencies": {}
}
}
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