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

air

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

air - npm Package Compare versions

Comparing version 0.4.9 to 0.4.10

lib/air/disabled.js

10

lib/air/create.js

@@ -11,2 +11,11 @@ /**

/**
* Create a text node.
*
* @param txt The text for the node.
*/
function text(txt) {
return document.createTextNode(txt);
}
/**
* Create a wrapped DOM element.

@@ -32,2 +41,3 @@ *

this.air.el = el;
this.air.text = text;
}

@@ -34,0 +44,0 @@

17

lib/air/request.js

@@ -74,6 +74,19 @@ /**

if(this.readyState === 4) {
var res = this.responseText
, info = {
headers: parse(this.getAllResponseHeaders()), status: this.status};
info.body = res;
if(res && opts.json && (this.status === 200 || this.status === 201)) {
try {
info.body = JSON.parse(res);
}catch(e) {
return done(
e,
info,
this);
}
}
done(
null,
this.responseText,
{headers: parse(this.getAllResponseHeaders()), status: this.status},
info,
this);

@@ -80,0 +93,0 @@ }

2

package.json
{
"name": "air",
"description": "Lightweight, modular DOM library",
"version": "0.4.9",
"version": "0.4.10",
"author": "muji <noop@xpm.io>",

@@ -6,0 +6,0 @@ "license": "MIT",

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