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.5.1 to 1.5.2

1

js/fold-details.js

@@ -29,2 +29,3 @@ // fold elements with <details>: https://yihui.org/en/2023/09/code-folding/

}
setText();
btn.onclick = (e) => {

@@ -31,0 +32,0 @@ status = !status;

2

js/fold-details.min.js

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

(e=>{const t=e.currentScript?.dataset,a="folder";let n=!!t?.open;if(e.querySelectorAll(t?.selector||"pre>code[class],pre[class]").forEach((r=>{const l=e.createElement("details"),o=e.createElement("summary");l.className=a,l.open=n,o.innerText=(t?.label||"Details")+(t?.tagName?` <${r.tagName}>`:""),"CODE"===r.tagName&&"PRE"===r.parentNode.tagName&&(r=r.parentNode),l.append(o),r.before(l),l.append(r)})),!t?.hasOwnProperty("button"))return;const r=e.querySelector(t.parent);let l=e.querySelector(t.button);if(!l&&!r)return;l||(l=e.createElement("button"),l.id="toggle-all",r.insertAdjacentElement(t.position||"afterbegin",l));const o=t.buttonLabel||"Show Details",c=t.buttonLabel2||"Hide Details";l.onclick=t=>{n=!n,e.querySelectorAll(`details.${a}`).forEach((e=>{e.open=n})),l.innerText=n?c:o}})(document);
(e=>{const t=e.currentScript?.dataset,a="folder";let n=!!t?.open;if(e.querySelectorAll(t?.selector||"pre>code[class],pre[class]").forEach((r=>{const l=e.createElement("details"),o=e.createElement("summary");l.className=a,l.open=n,o.innerText=(t?.label||"Details")+(t?.tagName?` <${r.tagName}>`:""),"CODE"===r.tagName&&"PRE"===r.parentNode.tagName&&(r=r.parentNode),l.append(o),r.before(l),l.append(r)})),!t?.hasOwnProperty("button"))return;const r=e.querySelector(t.parent);let l=e.querySelector(t.button);if(!l&&!r)return;l||(l=e.createElement("button"),l.id="toggle-all",r.insertAdjacentElement(t.position||"afterbegin",l));const o=t.buttonLabel||"Show Details",c=t.buttonLabel2||"Hide Details";function s(){l.innerText=n?c:o}s(),l.onclick=t=>{n=!n,e.querySelectorAll(`details.${a}`).forEach((e=>{e.open=n})),s()}})(document);
{
"name": "@xiee/utils",
"version": "1.5.1",
"version": "1.5.2",
"description": "Miscellaneous tools and utilities to manipulate HTML pages",

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

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