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

JSUS

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

JSUS - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

33

lib/dom.js

@@ -196,14 +196,25 @@ (function (JSUS) {

DOM.getTextInput = function (id, attributes) {
var mt = document.createElement('input');
mt.id = id;
mt.setAttribute('type', 'text');
return this.addAttributes2Elem(mt, attributes);
};
DOM.getTextInput = function (id, attributes) {
var ti = document.createElement('input');
if ('undefined' !== typeof id) ti.id = id;
ti.setAttribute('type', 'text');
return this.addAttributes2Elem(ti, attributes);
};
DOM.addTextInput = function (root, id, attributes) {
var ti = this.getTextInput(id, attributes);
return root.appendChild(ti);
};
DOM.getTextArea = function (id, attributes) {
var ta = document.createElement('textarea');
if ('undefined' !== typeof id) ta.id = id;
return this.addAttributes2Elem(ta, attributes);
};
DOM.addTextArea = function (root, id, attributes) {
var ta = this.getTextArea(id, attributes);
return root.appendChild(ta);
};
DOM.addTextInput = function (root, id, attributes) {
var ti = this.getTextInput(id, attributes);
return root.appendChild(ti);
};
DOM.getCanvas = function (id, attributes) {

@@ -210,0 +221,0 @@ var canvas = document.createElement('canvas');

{
"name": "JSUS",
"description": "JavaScript UtilS. Collection of general purpose functions. JSUS helps!",
"version": "0.2.4",
"version": "0.2.5",
"keywords": [ "util", "general", "array", "eval", "time", "date", "object"],

@@ -6,0 +6,0 @@ "author": "Stefano Balietti <futur.dorko@gmail.com>",

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