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

exokit

Package Overview
Dependencies
Maintainers
1
Versions
388
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exokit - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

40

index.js

@@ -336,2 +336,21 @@ const events = require('events');

const _normalizeUrl = src => new URL(src, baseUrl).href;
const _parseAttributes = attrs => {
const result = {};
for (let i = 0; i < attrs.length; i++) {
const attr = attrs[i];
result[attr.name] = attr.value;
}
return result;
};
const _formatAttributes = attributes => {
const result = [];
for (const name in attributes) {
const value = attributes[name];
result.push({
name,
value,
});
}
return result;
};
const _parseStyle = styleString => {

@@ -391,11 +410,7 @@ const style = {};

} else {
const attributes = node.attrs && (() => {
const result = {};
for (let i = 0; i < node.attrs.length; i++) {
const attr = node.attrs[i];
result[attr.name] = attr.value;
}
return result;
})();
const element = new HTMLElement(node.tagName, attributes, node.value);
const element = new HTMLElement(
node.tagName,
node.attrs && _parseAttributes(node.attrs),
node.value
);
element.parentNode = parentNode;

@@ -421,2 +436,9 @@ element[setWindowSymbol](window);

get attrs() {
return _formatAttributes(this.attributes);
}
set attrs(attrs) {
this.attributes = _parseAttributes(attrs);
}
get children() {

@@ -423,0 +445,0 @@ return this.childNodes;

{
"name": "exokit",
"version": "0.0.8",
"version": "0.0.9",
"main": "index.js",

@@ -5,0 +5,0 @@ "dependencies": {

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