Socket
Socket
Sign inDemoInstall

deleight

Package Overview
Dependencies
0
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.2 to 1.3.3

2

dist/actribute/cjs/actribute.js

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

"use strict";function t(t,r){const e=r.split(".");let s=t[e[0].trim()];for(let r=1;r<e.length&&("object"==typeof s||"function"==typeof s);r++)s=(t=s)[e[r].trim()];return s}exports.Actribute=class{registry={};openAttr;closedAttr;constructor(t){this.openAttr=t?.open||"o-pen",this.closedAttr=t?.closed||"c-losed"}register(t){return Object.assign(this.registry,t)&&this}process(t){let r,e,s;"string"==typeof t?e=t:t instanceof Element?r=t:t instanceof Array?s=t:"object"==typeof t&&(r=t.el,e=t.attr,s=t.ctx),r||(r=document.body),e||(e="c-"),s||(s=[]);const o=r.attributes,i=o.length;let n,c,h,f=!1,p=r.hasAttribute(this.openAttr);for(c=0;c<i;c++)if(n=o[c],n.name.startsWith(e))if(f=!0,h=n.name.substring(e.length),this.registry.hasOwnProperty(h))this.registry[h](r,n,...s);else{if(!this.registry.hasOwnProperty("*"))throw new Error(`The component "${h}" was not found in the registry.`);this.registry["*"](r,n,...s)}if(!f||p)for(let t of Array.from(r.children))t.hasAttribute(this.closedAttr)||this.process({el:t,attr:e,ctx:s});return this}},exports.props=function(r,e,s){const o=[],i=e.length;let n,c,h;for(n of(r=r.trim()).split(s||" "))if(n=n.trim(),""!==n){for(c=void 0,h=-1;void 0===c&&++h<i;)c=t(e[h],n);if(void 0===c)throw new TypeError(`The property "${n}" was not found in any of the sources.`);o.push(c)}return o};
"use strict";function t(t,e){const r=e.split(".");let s=t[r[0].trim()];for(let e=1;e<r.length&&("object"==typeof s||"function"==typeof s);e++)s=(t=s)[r[e].trim()];return s}exports.Actribute=class{registry={};openAttr;closedAttr;constructor(t){this.openAttr=t?.open||"o-pen",this.closedAttr=t?.closed||"c-losed"}register(t){return Object.assign(this.registry,t)&&this}process(t){let e,r,s;"string"==typeof t?r=t:t instanceof Element?e=t:t instanceof Array?s=t:"object"==typeof t&&(e=t.el,r=t.attr,s=t.ctx),e||(e=document.body),r||(r="c-"),s||(s=[]);const o=e.attributes,i=o.length;let n,c,h,l=!1,f=e.hasAttribute(this.openAttr);for(c=0;c<i;c++)if(n=o[c],n&&n.name.startsWith(r))if(l=!0,h=n.name.substring(r.length),this.registry.hasOwnProperty(h))this.registry[h](e,n,...s);else{if(!this.registry.hasOwnProperty("*"))throw new Error(`The component "${h}" was not found in the registry.`);this.registry["*"](e,n,...s)}if(!l||f){let t=e.firstElementChild;for(;t;)t.hasAttribute(this.closedAttr)||this.process({el:t,attr:r,ctx:s}),t=t.nextElementSibling}return this}},exports.props=function(e,r,s){const o=[],i=r.length;let n,c,h;for(n of(e=e.trim()).split(s||" "))if(n=n.trim(),""!==n){for(c=void 0,h=-1;void 0===c&&++h<i;)c=t(r[h],n);if(void 0===c)throw new TypeError(`The property "${n}" was not found in any of the sources.`);o.push(c)}return o};

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

class t{registry={};openAttr;closedAttr;constructor(t){this.openAttr=t?.open||"o-pen",this.closedAttr=t?.closed||"c-losed"}register(t){return Object.assign(this.registry,t)&&this}process(t){let r,e,o;"string"==typeof t?e=t:t instanceof Element?r=t:t instanceof Array?o=t:"object"==typeof t&&(r=t.el,e=t.attr,o=t.ctx),r||(r=document.body),e||(e="c-"),o||(o=[]);const s=r.attributes,i=s.length;let n,h,c,f=!1,l=r.hasAttribute(this.openAttr);for(h=0;h<i;h++)if(n=s[h],n.name.startsWith(e))if(f=!0,c=n.name.substring(e.length),this.registry.hasOwnProperty(c))this.registry[c](r,n,...o);else{if(!this.registry.hasOwnProperty("*"))throw new Error(`The component "${c}" was not found in the registry.`);this.registry["*"](r,n,...o)}if(!f||l)for(let t of Array.from(r.children))t.hasAttribute(this.closedAttr)||this.process({el:t,attr:e,ctx:o});return this}}function r(t,r){const e=r.split(".");let o=t[e[0].trim()];for(let r=1;r<e.length&&("object"==typeof o||"function"==typeof o);r++)o=(t=o)[e[r].trim()];return o}function e(t,e,o){const s=[],i=e.length;let n,h,c;for(n of(t=t.trim()).split(o||" "))if(n=n.trim(),""!==n){for(h=void 0,c=-1;void 0===h&&++c<i;)h=r(e[c],n);if(void 0===h)throw new TypeError(`The property "${n}" was not found in any of the sources.`);s.push(h)}return s}export{t as Actribute,e as props};
class t{registry={};openAttr;closedAttr;constructor(t){this.openAttr=t?.open||"o-pen",this.closedAttr=t?.closed||"c-losed"}register(t){return Object.assign(this.registry,t)&&this}process(t){let e,r,s;"string"==typeof t?r=t:t instanceof Element?e=t:t instanceof Array?s=t:"object"==typeof t&&(e=t.el,r=t.attr,s=t.ctx),e||(e=document.body),r||(r="c-"),s||(s=[]);const o=e.attributes,i=o.length;let n,h,c,l=!1,f=e.hasAttribute(this.openAttr);for(h=0;h<i;h++)if(n=o[h],n&&n.name.startsWith(r))if(l=!0,c=n.name.substring(r.length),this.registry.hasOwnProperty(c))this.registry[c](e,n,...s);else{if(!this.registry.hasOwnProperty("*"))throw new Error(`The component "${c}" was not found in the registry.`);this.registry["*"](e,n,...s)}if(!l||f){let t=e.firstElementChild;for(;t;)t.hasAttribute(this.closedAttr)||this.process({el:t,attr:r,ctx:s}),t=t.nextElementSibling}return this}}function e(t,e){const r=e.split(".");let s=t[r[0].trim()];for(let e=1;e<r.length&&("object"==typeof s||"function"==typeof s);e++)s=(t=s)[r[e].trim()];return s}function r(t,r,s){const o=[],i=r.length;let n,h,c;for(n of(t=t.trim()).split(s||" "))if(n=n.trim(),""!==n){for(h=void 0,c=-1;void 0===h&&++c<i;)h=e(r[c],n);if(void 0===h)throw new TypeError(`The property "${n}" was not found in any of the sources.`);o.push(h)}return o}export{t as Actribute,r as props};

@@ -63,2 +63,20 @@ /**

/**
* Selects the first elements corresponding to each of the selector args.
* This calls qcontainingElement.uerySelector on each of the selectors,
* so that only first elements are selected. It is different from
* querySelectorAll which will select *all* elements.
*
* The containing element defaults to document.body.
*
* @example
* import { select } from 'deleight/appliance'
* const [firstDiv, firstP, firstSpan] = select('div, p, span');
*
*
* @param { string[] } selectors
* @param { Element } [containingElement]
*
*/
declare function querySelectors(selectors: string[] | string, containingElement?: Element): Element[];
/**
* Select the elements matching the keys in applyMap and run the functions given by the values over them.

@@ -103,2 +121,2 @@ * This eliminates the many calls to querySelectorAll, which is quite verbose.

export { type IApplyMap, apply, applyTo, parentSelector, ruleSelector, ruleSelectorAll };
export { type IApplyMap, apply, applyTo, parentSelector, querySelectors, ruleSelector, ruleSelectorAll };

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

"use strict";function e(e,t,r){const o=e.split(",").map((e=>e.trim())),n=[];let l;for(let e of Array.from(t.sheet?.cssRules||[]))for(l of o)if(e.cssText.startsWith(l)&&(n.push(e),r))return n;return n}function t(t,r){return e(t,r,!0)[0]}function r(e,t,r){let o,n;if((e instanceof Element||e instanceof CSSRule)&&(e=[e]),t instanceof Array||(t=[t]),r)for(o of e)for(n of t)n(o);else for(n of t)n(...e)}exports.apply=function(o,n,l,f){let s;n||(n=document.body),s=f?n instanceof HTMLStyleElement?e=>t(e,n):n.querySelector.bind(n):n instanceof HTMLStyleElement?t=>e(t,n):n.querySelectorAll.bind(n);for(let[e,t]of Object.entries(o))r(s(e),t,l)},exports.applyTo=r,exports.parentSelector=function(e,t){let r=e.parentElement;for(;r&&!r.matches(t);)r=r.parentElement;return r},exports.ruleSelector=t,exports.ruleSelectorAll=e;
"use strict";function e(e,t,r){const o=e.split(",").map((e=>e.trim())),n=[];let l;for(let e of Array.from(t.sheet?.cssRules||[]))for(l of o)if(e.cssText.startsWith(l)&&(n.push(e),r))return n;return n}function t(t,r){return e(t,r,!0)[0]}function r(e,t,r){let o,n;if((e instanceof Element||e instanceof CSSRule)&&(e=[e]),t instanceof Array||(t=[t]),r)for(o of e)for(n of t)n(o);else for(n of t)n(...e)}exports.apply=function(o,n,l,s){let f;n||(n=document.body),f=s?n instanceof HTMLStyleElement?e=>t(e,n):n.querySelector.bind(n):n instanceof HTMLStyleElement?t=>e(t,n):n.querySelectorAll.bind(n);for(let[e,t]of Object.entries(o))r(f(e),t,l)},exports.applyTo=r,exports.parentSelector=function(e,t){let r=e.parentElement;for(;r&&!r.matches(t);)r=r.parentElement;return r},exports.querySelectors=function(e,t){return t||(t=document.body),"string"==typeof e&&(e=e.split(",")),e.map((e=>t.querySelector(e.trim())))},exports.ruleSelector=t,exports.ruleSelectorAll=e;

@@ -63,2 +63,20 @@ /**

/**
* Selects the first elements corresponding to each of the selector args.
* This calls qcontainingElement.uerySelector on each of the selectors,
* so that only first elements are selected. It is different from
* querySelectorAll which will select *all* elements.
*
* The containing element defaults to document.body.
*
* @example
* import { select } from 'deleight/appliance'
* const [firstDiv, firstP, firstSpan] = select('div, p, span');
*
*
* @param { string[] } selectors
* @param { Element } [containingElement]
*
*/
declare function querySelectors(selectors: string[] | string, containingElement?: Element): Element[];
/**
* Select the elements matching the keys in applyMap and run the functions given by the values over them.

@@ -103,2 +121,2 @@ * This eliminates the many calls to querySelectorAll, which is quite verbose.

export { type IApplyMap, apply, applyTo, parentSelector, ruleSelector, ruleSelectorAll };
export { type IApplyMap, apply, applyTo, parentSelector, querySelectors, ruleSelector, ruleSelectorAll };

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

function e(e,t,n){const o=e.split(",").map((e=>e.trim())),r=[];let f;for(let e of Array.from(t.sheet?.cssRules||[]))for(f of o)if(e.cssText.startsWith(f)&&(r.push(e),n))return r;return r}function t(t,n){return e(t,n,!0)[0]}function n(e,t){let n=e.parentElement;for(;n&&!n.matches(t);)n=n.parentElement;return n}function o(n,o,f,l){let s;o||(o=document.body),s=l?o instanceof HTMLStyleElement?e=>t(e,o):o.querySelector.bind(o):o instanceof HTMLStyleElement?t=>e(t,o):o.querySelectorAll.bind(o);for(let[e,t]of Object.entries(n))r(s(e),t,f)}function r(e,t,n){let o,r;if((e instanceof Element||e instanceof CSSRule)&&(e=[e]),t instanceof Array||(t=[t]),n)for(o of e)for(r of t)r(o);else for(r of t)r(...e)}export{o as apply,r as applyTo,n as parentSelector,t as ruleSelector,e as ruleSelectorAll};
function e(e,t,n){const r=e.split(",").map((e=>e.trim())),o=[];let f;for(let e of Array.from(t.sheet?.cssRules||[]))for(f of r)if(e.cssText.startsWith(f)&&(o.push(e),n))return o;return o}function t(t,n){return e(t,n,!0)[0]}function n(e,t){let n=e.parentElement;for(;n&&!n.matches(t);)n=n.parentElement;return n}function r(e,t){return t||(t=document.body),"string"==typeof e&&(e=e.split(",")),e.map((e=>t.querySelector(e.trim())))}function o(n,r,o,l){let i;r||(r=document.body),i=l?r instanceof HTMLStyleElement?e=>t(e,r):r.querySelector.bind(r):r instanceof HTMLStyleElement?t=>e(t,r):r.querySelectorAll.bind(r);for(let[e,t]of Object.entries(n))f(i(e),t,o)}function f(e,t,n){let r,o;if((e instanceof Element||e instanceof CSSRule)&&(e=[e]),t instanceof Array||(t=[t]),n)for(r of e)for(o of t)o(r);else for(o of t)o(...e)}export{o as apply,f as applyTo,n as parentSelector,r as querySelectors,t as ruleSelector,e as ruleSelectorAll};

@@ -65,6 +65,11 @@ /**

/**
* Set specified properties and/or attributes on the specified elements.
* Please do not pass the same 'generator' multiple times in values. First
* convert them to arrays.
* Set specified properties and/or attributes on the specified elements
* (or their children). Pass an iterable of elements (often an array) as the
* first arg and an object mapping property names to value iterables to be matched against
* the elenments at corresponding indices.
*
* If a key in `values` starts with the underscore (`_`), the attribute with
* the name following the underscore will be set.
*
*
* @example

@@ -80,4 +85,5 @@ * // Shuffle the class attributes of all the children of the first main element:

* @param {ISetMap} values
* @param { boolean } undefinedIsEmpty
*/
declare function set(elements: Iterable<Element | CSSStyleRule>, values: ISetMap): [Iterable<Element | CSSStyleRule>, ISetMap];
declare function set(elements: Iterable<Element | CSSStyleRule>, values: ISetMap, undefinedIsEmpty?: boolean): [Iterable<Element | CSSStyleRule>, ISetMap];
/**

@@ -84,0 +90,0 @@ * Correctly replace the specified nodes with corresponding values.

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

"use strict";const e={before(e,t){t.parentNode?.insertBefore(e,t)},append(e,t){t.appendChild(e)}};exports.insert=function(t,r,o){o||(o=e.append);let n=t;n.next||(n=t[Symbol.iterator]());for(let e of r)o(e,n.next().value);return[t,r]},exports.inserter=e,exports.remove=function(e,t){t||(e=[...e]);for(let t of e)t.parentNode?.removeChild(t);return e},exports.set=function(e,t){const r={},o={};let n,s,l,f,i=new Map;for(let[e,s]of Object.entries(t))i.has(s)?o[e]=i.get(s):(n=s,n.next||(n=s[Symbol.iterator]()),r[e]=n,i.set(s,e));let a,c={};for(let t of e){for([s,l]of Object.entries(r))f=l.next().value,c[s]=f,s.startsWith("_")?(s=s.slice(1),t.setAttribute(s,f)):t[s]=f;for([s,a]of Object.entries(o))s.startsWith("_")?(s=s.slice(1),t.setAttribute(s,c[a])):t[s]=c[a]}return[e,t]},exports.update=function(e,t,r){let o,n;const s=document.createComment(""),l=[];r||(e=Array.from(e),t=Array.from(t));for(let t of e)o=t.parentNode,n=s.cloneNode(!1),o?.replaceChild(n,t),l.push([n,o]);const f=l.values();for(let e of t)[n,o]=f.next().value,o?.replaceChild(e,n);return[e,t]};
"use strict";const e={before(e,t){t.parentNode?.insertBefore(e,t)},append(e,t){t.appendChild(e)}};exports.insert=function(t,r,o){o||(o=e.append);let n=t;n.next||(n=t[Symbol.iterator]());for(let e of r)o(e,n.next().value);return[t,r]},exports.inserter=e,exports.remove=function(e,t){t||(e=[...e]);for(let t of e)t.parentNode?.removeChild(t);return e},exports.set=function(e,t,r){const o={},n={};let s,l,i,f,a=new Map;for(let[e,r]of Object.entries(t))a.has(r)?n[e]=a.get(r):(s=r,s.next||(s=r[Symbol.iterator]()),o[e]=s,a.set(r,e));let p,c={};for(let t of e){for([l,i]of Object.entries(o))f=i.next().value,r&&void 0===f&&(f=""),c[l]=f,l.startsWith("_")?(l=l.slice(1),t.setAttribute(l,f)):t[l]=f;for([l,p]of Object.entries(n))l.startsWith("_")?(l=l.slice(1),t.setAttribute(l,c[p])):t[l]=c[p]}return[e,t]},exports.update=function(e,t,r){let o,n;const s=document.createComment(""),l=[];r||(e=Array.from(e),t=Array.from(t));for(let t of e)o=t.parentNode,n=s.cloneNode(!1),o?.replaceChild(n,t),l.push([n,o]);const i=l.values();let f;for(let e of t)f=i.next(),f.done?o.appendChild(e):([n,o]=f.value,o?.replaceChild(e,n));for(;!(f=i.next()).done;)[n,o]=f.value,o.removeChild(n);return[e,t]};

@@ -65,6 +65,11 @@ /**

/**
* Set specified properties and/or attributes on the specified elements.
* Please do not pass the same 'generator' multiple times in values. First
* convert them to arrays.
* Set specified properties and/or attributes on the specified elements
* (or their children). Pass an iterable of elements (often an array) as the
* first arg and an object mapping property names to value iterables to be matched against
* the elenments at corresponding indices.
*
* If a key in `values` starts with the underscore (`_`), the attribute with
* the name following the underscore will be set.
*
*
* @example

@@ -80,4 +85,5 @@ * // Shuffle the class attributes of all the children of the first main element:

* @param {ISetMap} values
* @param { boolean } undefinedIsEmpty
*/
declare function set(elements: Iterable<Element | CSSStyleRule>, values: ISetMap): [Iterable<Element | CSSStyleRule>, ISetMap];
declare function set(elements: Iterable<Element | CSSStyleRule>, values: ISetMap, undefinedIsEmpty?: boolean): [Iterable<Element | CSSStyleRule>, ISetMap];
/**

@@ -84,0 +90,0 @@ * Correctly replace the specified nodes with corresponding values.

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

function e(e,r,o){o||(o=t.append);let n=e;n.next||(n=e[Symbol.iterator]());for(let e of r)o(e,n.next().value);return[e,r]}const t={before(e,t){t.parentNode?.insertBefore(e,t)},append(e,t){t.appendChild(e)}};function r(e,t){const r={},o={};let n,l,f,a,i=new Map;for(let[e,l]of Object.entries(t))i.has(l)?o[e]=i.get(l):(n=l,n.next||(n=l[Symbol.iterator]()),r[e]=n,i.set(l,e));let s,c={};for(let t of e){for([l,f]of Object.entries(r))a=f.next().value,c[l]=a,l.startsWith("_")?(l=l.slice(1),t.setAttribute(l,a)):t[l]=a;for([l,s]of Object.entries(o))l.startsWith("_")?(l=l.slice(1),t.setAttribute(l,c[s])):t[l]=c[s]}return[e,t]}function o(e,t,r){let o,n;const l=document.createComment(""),f=[];r||(e=Array.from(e),t=Array.from(t));for(let t of e)o=t.parentNode,n=l.cloneNode(!1),o?.replaceChild(n,t),f.push([n,o]);const a=f.values();for(let e of t)[n,o]=a.next().value,o?.replaceChild(e,n);return[e,t]}function n(e,t){t||(e=[...e]);for(let t of e)t.parentNode?.removeChild(t);return e}export{e as insert,t as inserter,n as remove,r as set,o as update};
function e(e,o,r){r||(r=t.append);let n=e;n.next||(n=e[Symbol.iterator]());for(let e of o)r(e,n.next().value);return[e,o]}const t={before(e,t){t.parentNode?.insertBefore(e,t)},append(e,t){t.appendChild(e)}};function o(e,t,o){const r={},n={};let l,f,a,i,s=new Map;for(let[e,o]of Object.entries(t))s.has(o)?n[e]=s.get(o):(l=o,l.next||(l=o[Symbol.iterator]()),r[e]=l,s.set(o,e));let c,d={};for(let t of e){for([f,a]of Object.entries(r))i=a.next().value,o&&void 0===i&&(i=""),d[f]=i,f.startsWith("_")?(f=f.slice(1),t.setAttribute(f,i)):t[f]=i;for([f,c]of Object.entries(n))f.startsWith("_")?(f=f.slice(1),t.setAttribute(f,d[c])):t[f]=d[c]}return[e,t]}function r(e,t,o){let r,n;const l=document.createComment(""),f=[];o||(e=Array.from(e),t=Array.from(t));for(let t of e)r=t.parentNode,n=l.cloneNode(!1),r?.replaceChild(n,t),f.push([n,r]);const a=f.values();let i;for(let e of t)i=a.next(),i.done?r.appendChild(e):([n,r]=i.value,r?.replaceChild(e,n));for(;!(i=a.next()).done;)[n,r]=i.value,r.removeChild(n);return[e,t]}function n(e,t){t||(e=[...e]);for(let t of e)t.parentNode?.removeChild(t);return e}export{e as insert,t as inserter,n as remove,o as set,r as update};

@@ -42,4 +42,5 @@ /**

/**
* Returns a generator that yields first argument (what) the number of
* times specified by the second argument (times).
* Returns a generator that yields first argument (`what`) the number of
* times specified by the second argument (`times`). If `times` is not
* given, `what` is repeated indefinitely.
*

@@ -52,5 +53,5 @@ * @example

* @param {Iterable<any>} what
* @param {number} times
* @param {number} [times]
*/
declare function repeat(what: Iterable<any>, times: number): Generator<any, void, unknown>;
declare function repeat(what: Iterable<any>, times?: number): Generator<any, void, unknown>;
/**

@@ -57,0 +58,0 @@ * Returns an iterator over the next 'count' items of the iterator.

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

"use strict";function t(t){return t.next?t:t[Symbol.iterator]()}function*e(t,e,n){let o=e;for(n&&(yield n,o--);o-- >0;)yield t.next().value}const n=new WeakMap;exports.flat=function*(...e){const n=e.length;let o,r;for(e=e.map((e=>t(e)));;)for(o=0;o<n;o++){if(r=e[o].next(),r.done)return;yield r.value}},exports.getLength=function(t){return n.get(t)||t.length},exports.group=function*(n,o){const r=t(n);let l=r.next();for(;!l.done;)yield[...e(r,o,l.value)],l=r.next()},exports.items=function*(t,e){for(let n of e)yield t[n]},exports.iter=t,exports.iterLengths=n,exports.next=e,exports.range=function*(t,e,n){n||(n=1),null==e&&t&&(e=t,t=0);for(let o=t;o<e;o+=n)yield o},exports.repeat=function*(t,e){let n;for(let o=0;o<e;o++)for(n of t)yield n},exports.setLength=function(t,e){return n.set(t,e),t},exports.uItems=function*(t){const e=[...t];for(let t=e.length-1;t>=0;t--)yield e.splice(Math.round(Math.random()*t),1)[0]};
"use strict";function e(e){return e.next?e:e[Symbol.iterator]()}function*t(e,t,o){let n=t;for(o&&(yield o,n--);n-- >0;)yield e.next().value}const o=new WeakMap;exports.flat=function*(...t){const o=t.length;let n,r;for(t=t.map((t=>e(t)));;)for(n=0;n<o;n++){if(r=t[n].next(),r.done)return;yield r.value}},exports.getLength=function(e){return o.get(e)||e.length},exports.group=function*(o,n){const r=e(o);let l=r.next();for(;!l.done;)yield[...t(r,n,l.value)],l=r.next()},exports.items=function*(e,t){for(let o of t)yield e[o]},exports.iter=e,exports.iterLengths=o,exports.next=t,exports.range=function*(e,t,o){o||(o=1),null==t&&e&&(t=e,e=0);for(let n=e;n<t;n+=o)yield n},exports.repeat=function*(e,t){let o;if(void 0===t){const t=[];for(let o of e)t.push(o),yield o;for(;;)for(o of t)yield o}else for(let n=0;n<t;n++)for(o of e)yield o},exports.setLength=function(e,t){return o.set(e,t),e},exports.uItems=function*(e){const t=[...e];for(let e=t.length-1;e>=0;e--)yield t.splice(Math.round(Math.random()*e),1)[0]};

@@ -42,4 +42,5 @@ /**

/**
* Returns a generator that yields first argument (what) the number of
* times specified by the second argument (times).
* Returns a generator that yields first argument (`what`) the number of
* times specified by the second argument (`times`). If `times` is not
* given, `what` is repeated indefinitely.
*

@@ -52,5 +53,5 @@ * @example

* @param {Iterable<any>} what
* @param {number} times
* @param {number} [times]
*/
declare function repeat(what: Iterable<any>, times: number): Generator<any, void, unknown>;
declare function repeat(what: Iterable<any>, times?: number): Generator<any, void, unknown>;
/**

@@ -57,0 +58,0 @@ * Returns an iterator over the next 'count' items of the iterator.

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

function n(n){return n.next?n:n[Symbol.iterator]()}function*t(n,t,e){e||(e=1),null==t&&n&&(t=n,n=0);for(let o=n;o<t;o+=e)yield o}function*e(n,t){for(let e of t)yield n[e]}function*o(n,t){let e;for(let o=0;o<t;o++)for(e of n)yield e}function*l(n,t,e){let o=t;for(e&&(yield e,o--);o-- >0;)yield n.next().value}function*f(t,e){const o=n(t);let f=o.next();for(;!f.done;)yield[...l(o,e,f.value)],f=o.next()}function*r(...t){const e=t.length;let o,l;for(t=t.map((t=>n(t)));;)for(o=0;o<e;o++){if(l=t[o].next(),l.done)return;yield l.value}}function*i(n){const t=[...n];for(let n=t.length-1;n>=0;n--)yield t.splice(Math.round(Math.random()*n),1)[0]}function u(n){return c.get(n)||n.length}const c=new WeakMap;function d(n,t){return c.set(n,t),n}export{r as flat,u as getLength,f as group,e as items,n as iter,c as iterLengths,l as next,t as range,o as repeat,d as setLength,i as uItems};
function e(e){return e.next?e:e[Symbol.iterator]()}function*n(e,n,t){t||(t=1),null==n&&e&&(n=e,e=0);for(let o=e;o<n;o+=t)yield o}function*t(e,n){for(let t of n)yield e[t]}function*o(e,n){let t;if(void 0===n){const n=[];for(let t of e)n.push(t),yield t;for(;;)for(t of n)yield t}else for(let o=0;o<n;o++)for(t of e)yield t}function*l(e,n,t){let o=n;for(t&&(yield t,o--);o-- >0;)yield e.next().value}function*f(n,t){const o=e(n);let f=o.next();for(;!f.done;)yield[...l(o,t,f.value)],f=o.next()}function*i(...n){const t=n.length;let o,l;for(n=n.map((n=>e(n)));;)for(o=0;o<t;o++){if(l=n[o].next(),l.done)return;yield l.value}}function*r(e){const n=[...e];for(let e=n.length-1;e>=0;e--)yield n.splice(Math.round(Math.random()*e),1)[0]}function u(e){return c.get(e)||e.length}const c=new WeakMap;function d(e,n){return c.set(e,n),e}export{i as flat,u as getLength,f as group,t as items,e as iter,c as iterLengths,l as next,n as range,o as repeat,d as setLength,r as uItems};
{
"name": "deleight",
"version": "1.3.2",
"version": "1.3.3",
"description": "A group of 8 libraries for writing accessible and joyfully interactive web applications with traditional HTML, CSS and JavaScript.",

@@ -5,0 +5,0 @@ "type": "module",

@@ -5,3 +5,3 @@ # Deleight

This is a group of 10 libraies that simplify web frontend development in vanilla HTML, CSS and JavasSript. Deleight is an inclusive library that everyone operating on the web can benefit from.
This is a group of 9 libraies that simplify web frontend development in vanilla HTML, CSS and JavasSript. Deleight is an inclusive library that everyone operating on the web can benefit from.

@@ -218,12 +218,15 @@ - Frontend JavaScript developers can create apps without worrying about control, modularity or maintainance. Not only is the framework flexible, modular and compact, it also aligns with familiar semantics. You also have the convenience of a declarative API.

## Ongoing work
## Ongoing and Planned Work
- Enhancing appliance and actributes to support more independent HTML and JavaScript development.
- Adding and completing examples
1. Complete testing on the tenth library (`reftype`) for referring to JavaScript variables directly in pure HTML. Everything is still transparent and explicit.
2. Complete the site (deleightjs.com).
3. Complete and add more examples.
4. Discuss features, issues and related subjects on the site and in other channels.
5. Improve the documentation.
6. Work on further ideas.
## Ideas
- Progressive Web Apps
- Efficient navigation
- Progressive Web Apps.
- Efficient navigation library (not a router).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc