ast-loose-compare 4.2.0 → 4.2.1
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.md
CHANGED
|
@@ -3,12 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 4.2.1 (2026-08-22)
|
|
7
|
+
|
|
8
|
+
### Performance Improvements
|
|
9
|
+
|
|
10
|
+
- optimise package hot paths and JSON editing ([f3112bd](https://github.com/codsen/codsen/commit/f3112bd7fc0d7c9bc09312d3744c950691d72ca5))
|
|
11
|
+
|
|
6
12
|
## 4.2.0 (2026-08-19)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
9
15
|
|
|
10
16
|
- repair representative perf workloads ([975e958](https://github.com/codsen/codsen/commit/975e958c0794ec256eba84e088b472483fb69e52))
|
|
11
|
-
- resolve review findings
|
|
17
|
+
- resolve various review findings ([b60e9ee](https://github.com/codsen/codsen/commit/b60e9eeb499af94685cfb87b4970fe025be1fc10))
|
|
12
18
|
- retire direct publish aliases ([f98e31e](https://github.com/codsen/codsen/commit/f98e31eb89bc185471225664e610b55f34fbf648))
|
|
13
19
|
|
|
14
20
|
### Features
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name ast-loose-compare
|
|
3
3
|
* @fileoverview Compare anything: AST, objects, arrays and strings
|
|
4
|
-
* @version 4.2.
|
|
4
|
+
* @version 4.2.1
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/ast-loose-compare/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import{empty as n}from"ast-contains-only-empty-space";import{isPlainObject as c}from"codsen-utils";var a="4.2.
|
|
10
|
+
import{empty as n}from"ast-contains-only-empty-space";import{isPlainObject as c}from"codsen-utils";var a="4.2.1";var h=a;function u(r,e,s){function i(o){return o!=null}let t,p;if(s===void 0){if(!i(r)||!i(e))return}else if(!i(r)||!i(e))return!1;if(s=s||!0,typeof r!=typeof e)return!!(n(r)&&n(e));if(Array.isArray(r)&&Array.isArray(e))if(e.length){for(t=0,p=e.length;t<p;t++)if(Array.isArray(e[t])||c(e[t])){if(s=u(r[t],e[t],s),!s)return!1}else if(e[t]!==r[t])return!!(n(e[t])&&n(r[t]))}else return!!(e.length===0&&r.length===0||n(e)&&n(r));else if(c(r)&&c(e))if(Object.keys(e).length){let o=Object.keys(e);for(t=0,p=o.length;t<p;t++)if(Array.isArray(e[o[t]])||c(e[o[t]])||typeof e[o[t]]=="string"){if(s=u(r[o[t]],e[o[t]],s),!s)return!1}else if(e[o[t]]!==r[o[t]]&&(!n(e[o[t]])||!n(r[o[t]])))return!1}else return!!(Object.keys(e).length===0&&Object.keys(r).length===0||n(e)&&n(r));else if(typeof r=="string"&&typeof e=="string"){if(r!==e)return!!(n(e)&&n(r))}else return!!(n(e)&&n(r));return s}function x(r,e){return u(r,e)}export{x as looseCompare,h as version};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name ast-loose-compare
|
|
3
3
|
* @fileoverview Compare anything: AST, objects, arrays and strings
|
|
4
|
-
* @version 4.2.
|
|
4
|
+
* @version 4.2.1
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/ast-loose-compare/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";var astLooseCompare=(()=>{var a=Object.defineProperty;var
|
|
10
|
+
"use strict";var astLooseCompare=(()=>{var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var m=(e,t)=>{for(var n in t)a(e,n,{get:t[n],enumerable:!0})},v=(e,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of g(t))!y.call(e,r)&&r!==n&&a(e,r,{get:()=>t[r],enumerable:!(s=d(t,r))||s.enumerable});return e};var A=e=>v(a({},"__esModule",{value:!0}),e);var k={};m(k,{looseCompare:()=>C,version:()=>x});function b(e){if(e==null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in e)&&!(Symbol.toStringTag in e)}function f(e){if(typeof e=="string")return!e.trim();if(Array.isArray(e)){for(let t of e)if(!f(t))return!1}else if(b(e)){for(let t of Object.keys(e))if(!f(e[t]))return!1}return!0}function i(e){return typeof e=="string"?!e.trim():typeof e!="object"||!e?!1:f(e)}var W=new Set([..."\u060B$\u20BC\u17DB\xA5\u20A1\u20B1\xA3\u20AC\xA2\u20B9\uFDFC\u20AA\u20A9\u20AD\u20A8\u20AE\u20A6\u20BD\u20AB\u0E3F\u20A9\u20BA\u20B4","$U","$b","B/.","BZ$","Br","Bs","C$","CHF","Ft","Gs","J$","KM","K\u010D","L","MT","NT$","P","Q","R","R$","RD$","RM","Rp","S","S/.","TT$","Z$","kn","kr","lei","z\u0142","\u0192","\u0414\u0438\u043D.","\u0434\u0435\u043D","\u043B\u0432","\u062F.\u0625","Lek"]);function l(e){if(e==null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in e)&&!(Symbol.toStringTag in e)}var p,$=(p=Object.getOwnPropertyDescriptor(RegExp.prototype,"source"))==null?void 0:p.get;var M=Date.prototype.getTime;var h="4.2.1";var x=h;function c(e,t,n){function s(o){return o!=null}let r,u;if(n===void 0){if(!s(e)||!s(t))return}else if(!s(e)||!s(t))return!1;if(n=n||!0,typeof e!=typeof t)return!!(i(e)&&i(t));if(Array.isArray(e)&&Array.isArray(t))if(t.length){for(r=0,u=t.length;r<u;r++)if(Array.isArray(t[r])||l(t[r])){if(n=c(e[r],t[r],n),!n)return!1}else if(t[r]!==e[r])return!!(i(t[r])&&i(e[r]))}else return!!(t.length===0&&e.length===0||i(t)&&i(e));else if(l(e)&&l(t))if(Object.keys(t).length){let o=Object.keys(t);for(r=0,u=o.length;r<u;r++)if(Array.isArray(t[o[r]])||l(t[o[r]])||typeof t[o[r]]=="string"){if(n=c(e[o[r]],t[o[r]],n),!n)return!1}else if(t[o[r]]!==e[o[r]]&&(!i(t[o[r]])||!i(e[o[r]])))return!1}else return!!(Object.keys(t).length===0&&Object.keys(e).length===0||i(t)&&i(e));else if(typeof e=="string"&&typeof t=="string"){if(e!==t)return!!(i(t)&&i(e))}else return!!(i(t)&&i(e));return n}function C(e,t){return c(e,t)}return A(k);})();
|
|
11
11
|
/**
|
|
12
12
|
* @name ast-contains-only-empty-space
|
|
13
13
|
* @fileoverview Does AST contain only empty space?
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/**
|
|
20
20
|
* @name codsen-utils
|
|
21
21
|
* @fileoverview Various utility functions
|
|
22
|
-
* @version 1.
|
|
22
|
+
* @version 1.9.0
|
|
23
23
|
* @author Roy Revelt
|
|
24
24
|
* @license MIT
|
|
25
25
|
* {@link https://codsen.com/os/codsen-utils/}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ast-loose-compare",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "Compare anything: AST, objects, arrays and strings",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"array",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"ast-contains-only-empty-space": "^4.2.0",
|
|
79
|
-
"codsen-utils": "^1.
|
|
79
|
+
"codsen-utils": "^1.9.0"
|
|
80
80
|
},
|
|
81
81
|
"engines": {
|
|
82
82
|
"node": ">=18.20.8"
|