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

@xiee/utils

Package Overview
Dependencies
Maintainers
1
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xiee/utils - npm Package Compare versions

Comparing version 1.2.4 to 1.2.6

css/key-buttons.css

19

js/external-link.js

@@ -1,8 +0,13 @@

(function() {
var links = document.getElementsByTagName('a');
for (var i = 0; i < links.length; i++) {
if (/^(https?:)?\/\//.test(links[i].getAttribute('href'))) {
links[i].target = '_blank';
(function(d) {
const r = /^(https?:)?\/\//;
d.querySelectorAll('a').forEach(a => {
// add _blank target to external links
if (r.test(a.getAttribute('href'))) {
a.target = '_blank';
}
}
})();
// shorten bare links
if (a.childElementCount === 0) {
a.innerText = a.innerText.replace(r, '').replace(/#.*$/, '');
}
})
})(document);
{
"name": "@xiee/utils",
"version": "1.2.4",
"version": "1.2.6",
"description": "Miscellaneous tools and utilities to manipulate HTML pages",

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

@@ -73,2 +73,9 @@ This repo contains miscellaneous tools and utilities written in JavaScript. They

## key-buttons.js
Find keyboard keys in `<code></code>` and convert the tag to `<kbd></kbd>`,
e.g., convert `<code>Ctrl + C</code>` to `<kbd>Ctrl</kbd>` + `<kbd>C</kbd>`.
With `key-buttons.css`, the keys will be styled as boxes with shadows like
buttons.
## load-highlight.js

@@ -75,0 +82,0 @@

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