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

juijs-graph

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

juijs-graph - npm Package Compare versions

Comparing version 0.5.10-es6 to 0.5.11-es6

4

package.json
{
"name": "juijs-graph",
"version": "0.5.10-es6",
"version": "0.5.11-es6",
"sideEffects": false,

@@ -8,3 +8,3 @@ "description": "SVG-based JUI chart that can be used in the browser and Node.js. Support many types of charts. (Dashboard, Map, Topology, Full 3D)",

"test": "jest --config ./jest.config.js",
"dist": "rollup -c && npm run test"
"dist": "npm run test && rollup -c"
},

@@ -11,0 +11,0 @@ "main": "dist/jui-graph.cjs.js",

@@ -579,2 +579,78 @@ var global = {},

param: function(data) {
var r20 = /%20/g,
s = [],
add = function(key, value) {
// If value is a function, invoke it and return its value
value = utility.typeCheck("function", value) ? value() : (value == null ? "" : value);
s[s.length] = encodeURIComponent(key) + "=" + encodeURIComponent(value);
};
for(var key in data) {
add(key, data[key]);
}
return s.join("&").replace(r20, "+");
},
ajax: function(data) {
var xhr = null, paramStr = "", callback = null;
var opts = utility.extend({
url: null,
type: "GET",
data: null,
async: true,
success: null,
fail: null
}, data);
if(!this.typeCheck("string", opts.url) || !this.typeCheck("function", opts.success))
return;
if(this.typeCheck("object", opts.data))
paramStr = this.param(opts.data);
if(!this.typeCheck("undefined", XMLHttpRequest)) {
xhr = new XMLHttpRequest();
} else {
var versions = [
"MSXML2.XmlHttp.5.0",
"MSXML2.XmlHttp.4.0",
"MSXML2.XmlHttp.3.0",
"MSXML2.XmlHttp.2.0",
"Microsoft.XmlHttp"
];
for(var i = 0, len = versions.length; i < len; i++) {
try {
xhr = new ActiveXObject(versions[i]);
break;
}
catch(e) {}
}
}
if(xhr != null) {
xhr.open(opts.type, opts.url, opts.async);
xhr.send(paramStr);
callback = function() {
if (xhr.readyState === 4 && xhr.status == 200) {
opts.success(xhr);
} else {
if (utility.typeCheck("function", opts.fail)) {
opts.fail(xhr);
}
}
}
if (!opts.async) {
callback();
} else {
xhr.onreadystatechange = callback;
}
}
},
ready: (function() {

@@ -806,104 +882,3 @@ var readyList,

return ready;
})(),
param: function(data) {
var r20 = /%20/g,
s = [],
add = function(key, value) {
// If value is a function, invoke it and return its value
value = utility.typeCheck("function", value) ? value() : (value == null ? "" : value);
s[s.length] = encodeURIComponent(key) + "=" + encodeURIComponent(value);
};
for(var key in data) {
add(key, data[key]);
}
return s.join("&").replace(r20, "+");
},
ajax: function(data) {
var xhr = null, paramStr = "", callback = null;
var opts = utility.extend({
url: null,
type: "GET",
data: null,
async: true,
success: null,
fail: null
}, data);
if(!this.typeCheck("string", opts.url) || !this.typeCheck("function", opts.success))
return;
if(this.typeCheck("object", opts.data))
paramStr = this.param(opts.data);
if(!this.typeCheck("undefined", XMLHttpRequest)) {
xhr = new XMLHttpRequest();
} else {
var versions = [
"MSXML2.XmlHttp.5.0",
"MSXML2.XmlHttp.4.0",
"MSXML2.XmlHttp.3.0",
"MSXML2.XmlHttp.2.0",
"Microsoft.XmlHttp"
];
for(var i = 0, len = versions.length; i < len; i++) {
try {
xhr = new ActiveXObject(versions[i]);
break;
}
catch(e) {}
}
}
if(xhr != null) {
xhr.open(opts.type, opts.url, opts.async);
xhr.send(paramStr);
callback = function() {
if (xhr.readyState === 4 && xhr.status == 200) {
opts.success(xhr);
} else {
if (utility.typeCheck("function", opts.fail)) {
opts.fail(xhr);
}
}
}
if (!opts.async) {
callback();
} else {
xhr.onreadystatechange = callback;
}
}
},
scrollWidth: function() {
var inner = document.createElement("p");
inner.style.width = "100%";
inner.style.height = "200px";
var outer = document.createElement("div");
outer.style.position = "absolute";
outer.style.top = "0px";
outer.style.left = "0px";
outer.style.visibility = "hidden";
outer.style.width = "200px";
outer.style.height = "150px";
outer.style.overflow = "hidden";
outer.appendChild(inner);
document.body.appendChild(outer);
var w1 = inner.offsetWidth;
outer.style.overflow = "scroll";
var w2 = inner.offsetWidth;
if (w1 == w2) w2 = outer.clientWidth;
document.body.removeChild(outer);
return (w1 - w2);
}
})()
}

@@ -991,11 +966,2 @@

args = getDepends(depends);
} else {
// @Deprecated 기존의 레거시를 위한 코드
var ui = getModules("ui"),
uix = {};
utility.extend(uix, ui);
utility.extend(uix, getModules("grid"));
args = [ ui, uix, utility ];
}

@@ -1100,4 +1066,2 @@

mainObj.init.prototype.options = opts;
/** @property {Object} tpl Templates */
mainObj.init.prototype.tpl = {};
/** @property {Array} event Custom events */

@@ -1117,11 +1081,2 @@ mainObj.init.prototype.event = new Array(); // Custom Event

// Script-based Template Settings
for (var name in opts.tpl) {
var tplHtml = opts.tpl[name];
if (utility.typeCheck("string", tplHtml) && tplHtml != "") {
mainObj.init.prototype.tpl[name] = utility.template(tplHtml);
}
}
var uiObj = new mainObj.init();

@@ -1128,0 +1083,0 @@

import jui from "./base.js"
import dom from "../util/dom.js"
import manager from "./manager.js"
import collection from "./collection.js"
jui.use(dom, manager, collection);
export default {

@@ -4,0 +9,0 @@ name: "core",

@@ -72,2 +72,7 @@ import jui from './base/base.js'

var _ = jui.include("util.base"),
manager = jui.include("manager");
_.extend(jui, manager, true);
export default jui;

@@ -1,2 +0,2 @@

import jui from '../../dist/jui-graph.esm.js'
import jui from '../../src/base/base.js'

@@ -3,0 +3,0 @@ describe('/base/base.js', () => {

@@ -1,3 +0,6 @@

import jui from '../../dist/jui-graph.esm.js'
import jui from '../../src/base/base.js'
import color from '../../src/util/color.js'
jui.use(color);
describe('/util/color.js', () => {

@@ -4,0 +7,0 @@ const ColorUtil = jui.include('util.color');

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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