tiny-essentials 1.25.3 → 1.25.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog/1/25/3.md +6 -0
- package/changelog/1/25/4.md +3 -0
- package/dist/v1/TinyArrayComparator.min.js +1 -0
- package/dist/v1/TinyEssentials.min.js +1 -1
- package/dist/v1/TinyMaInSys.min.js +1 -0
- package/dist/v1/build/TinyArrayComparator.cjs +7 -0
- package/dist/v1/build/TinyArrayComparator.d.mts +3 -0
- package/dist/v1/build/TinyArrayComparator.mjs +2 -0
- package/dist/v1/index.cjs +7 -0
- package/dist/v1/index.d.mts +6 -1
- package/dist/v1/index.mjs +4 -2
- package/dist/v1/libs/TinyArrayComparator.cjs +130 -0
- package/dist/v1/libs/TinyArrayComparator.d.mts +79 -0
- package/dist/v1/libs/TinyArrayComparator.mjs +112 -0
- package/dist/v1/libs/TinyMamdaniInferenceSystem.cjs +273 -0
- package/dist/v1/libs/TinyMamdaniInferenceSystem.d.mts +84 -0
- package/dist/v1/libs/TinyMamdaniInferenceSystem.mjs +233 -0
- package/docs/v1/README.md +2 -0
- package/docs/v1/libs/TinyArrayComparator.md +101 -0
- package/docs/v1/libs/TinyMamdaniInferenceSystem.md +103 -0
- package/package.json +9 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
### 🔒 Security with MessageChannel
|
|
2
|
+
Say goodbye to the standard `postMessage` broadcast! `TinyIframeEvents` now establishes a direct tunnel between the parent and the iframe using `MessageChannel`.
|
|
3
|
+
|
|
4
|
+
* **The `onReady()` Method:** No more race conditions! You can now use `.onReady(() => { ... })` to safely execute your logic exactly when the secure channel is fully established. Any messages emitted before the connection is ready are safely queued and automatically flushed once the handshake completes.
|
|
5
|
+
|
|
6
|
+
**Full Changelog**: https://github.com/Tiny-Essentials/Tiny-Essentials/compare/1.25.2...1.25.3
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var r={d:(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o:(r,e)=>Object.prototype.hasOwnProperty.call(r,e)},e={};r.d(e,{TinyArrayComparator:()=>a});class t{static generateHash(r){const e="object"==typeof r?JSON.stringify(r):String(r);let t=0;for(let r=0,a=e.length;r<a;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t.toString(36)}#r=[];get oldArray(){return this.#r}set oldArray(r){if(!Array.isArray(r))throw new TypeError("The provided oldArray must be a valid Array.");this.#r=r}constructor(r){void 0!==r&&(this.oldArray=r)}_generateHash(r){return t.generateHash(r)}compare(r){if(!Array.isArray(r))throw new TypeError("The provided newArray must be a valid Array.");const e={oldItemsMap:new Map,affectedItems:[]};for(const r of this.#r){const t=this._generateHash(r);e.oldItemsMap.set(t,r)}for(const t of r){const r=this._generateHash(t);e.oldItemsMap.has(r)?e.oldItemsMap.delete(r):e.affectedItems.push({item:t,status:"added"})}for(const r of e.oldItemsMap.values())e.affectedItems.push({item:r,status:"deleted"});return e.affectedItems}}const a=t;window.TinyArrayComparator=e.TinyArrayComparator})();
|