array-pull-all-with-glob 7.2.0 → 7.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,11 +3,17 @@
|
|
|
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
|
+
## 7.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
|
## 7.2.0 (2026-08-19)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
9
15
|
|
|
10
|
-
- resolve review findings
|
|
16
|
+
- resolve various review findings ([b60e9ee](https://github.com/codsen/codsen/commit/b60e9eeb499af94685cfb87b4970fe025be1fc10))
|
|
11
17
|
- retire direct publish aliases ([f98e31e](https://github.com/codsen/codsen/commit/f98e31eb89bc185471225664e610b55f34fbf648))
|
|
12
18
|
|
|
13
19
|
### Features
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name array-pull-all-with-glob
|
|
3
3
|
* @fileoverview Like _.pullAll but with globs (wildcards)
|
|
4
|
-
* @version 7.2.
|
|
4
|
+
* @version 7.2.1
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/array-pull-all-with-glob/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import{match as c}from"codsen-utils";var s="7.2.
|
|
10
|
+
import{match as c}from"codsen-utils";var s="7.2.1";var h=s,a={caseSensitive:!0};function y(e,t,r){if(!e.length)return[];if(!e.length||!t.length)return Array.from(e);let n=typeof t=="string"?[t]:Array.from(t),l={...a,...r};return Array.from(e).filter(i=>!n.some(o=>c(i,o,{caseSensitiveMatch:l.caseSensitive})))}export{a as defaults,y as pull,h as version};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name array-pull-all-with-glob
|
|
3
3
|
* @fileoverview Like _.pullAll but with globs (wildcards)
|
|
4
|
-
* @version 7.2.
|
|
4
|
+
* @version 7.2.1
|
|
5
5
|
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/array-pull-all-with-glob/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";var arrayPullAllWithGlob=(()=>{var v=Object.defineProperty;var
|
|
10
|
+
"use strict";var arrayPullAllWithGlob=(()=>{var v=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var F=Object.getOwnPropertyNames,k=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable;var j=(t,e,r)=>e in t?v(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e||(e={}))D.call(e,r)&&j(t,r,e[r]);if(k)for(var r of k(e))N.call(e,r)&&j(t,r,e[r]);return t};var V=(t,e)=>{for(var r in e)v(t,r,{get:e[r],enumerable:!0})},Q=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of F(e))!D.call(t,l)&&l!==r&&v(t,l,{get:()=>e[l],enumerable:!(n=U(e,l))||n.enumerable});return t};var _=t=>Q(v({},"__esModule",{value:!0}),t);var ie={};V(ie,{defaults:()=>T,pull:()=>ne,version:()=>re});var oe=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"]);var $,ue=($=Object.getOwnPropertyDescriptor(RegExp.prototype,"source"))==null?void 0:$.get;var ae=Date.prototype.getTime;var H=256,z=1024,G=1,K=new Map,Z=new Map;function S(t){if(t>=97&&t<=122)return t-32;if(t>65535)return t;let e=String.fromCharCode(t).toUpperCase();if(e.length!==1)return t;let r=e.charCodeAt(0);return t>127&&r<128?t:r}function O(t,e,r,n,l,s){for(let i=0;i<l;i++){let o=t.charCodeAt(e+i),u=r.charCodeAt(n+i);if(s||(o>=97&&o<=122&&(o-=32),u>=97&&u<=122&&(u-=32)),o!==u)return!1}return!0}function M(t,e,r){let n=e.indexOf("\\");if(n===-1&&t===e)return!0;let l=e.indexOf("*");if(n===-1&&l===-1){if(r)return!1;for(let c=0;c<e.length;c++)if(e.charCodeAt(c)>127)return;return t.length===e.length&&O(t,0,e,0,e.length,!1)}if(n!==-1)return;let s=0,i=!1,o=-1;for(let c=0;c<e.length;c++){let m=e.charCodeAt(c);if(m>127)return;if(m===42){if(o=c,!i){if(s++,s>1)return;i=!0}}else i=!1}let u=o+1,a=e.length-u;return t.length<l+a?!1:O(t,0,e,0,l,r)&&O(t,t.length-a,e,u,a,r)}function q(t){let e=new Uint32Array(t.length),r=0;for(let n=1;n<t.length;n++){for(;r>0&&t[n]!==t[r];)r=e[r-1];t[n]===t[r]&&r++,e[n]=r}return e}function J(t,e){let r=[[]],n=!0,l=!1,s=!1,i=0;for(let f=0;f<t.length;){let g=t.codePointAt(f);if(g!==92){if(g===42)l=!0,s||(r.push([]),s=!0);else{let h=e?g:S(g);r[r.length-1].push(h),n&&(n=h<=127),i++,s=!1}f+=g>65535?2:1;continue}let d=f+1;for(;t.charCodeAt(d)===92;)d++;let y=d-f,p=t.codePointAt(d),b,C=!1;p===42?(C=y%2===0,b=C?y/2:(y-1)/2):p===void 0||p===10||p===13||p===8232||p===8233?b=Math.ceil(y/2):b=Math.floor(y/2);for(let h=0;h<b;h++)r[r.length-1].push(92),i++;if(C){s=!1,f=d;continue}if(p!==void 0){let h=e?p:S(p);r[r.length-1].push(h),n&&(n=h<=127),i++,d+=p>65535?2:1}s=!1,f=d}let o=l&&r[0].length===0,u=l&&r[r.length-1].length===0,a=[];for(let f of r)f.length&&a.push({values:f});let c=o?0:1,m=a.length-(u?0:1);for(let f=c;f<m;f++)a[f].values.length>G&&(a[f].failure=q(a[f].values));return{asciiOnly:n,endsWithWildcard:u,hasWildcard:l,minimumInputLength:i,segments:a,startsWithWildcard:o}}function R(t,e){let r=e?K:Z,n=t.length<=z;if(n){let s=r.get(t);if(s)return s}let l=J(t,e);if(n){if(r.size>=H){let s=r.keys().next().value;s!==void 0&&r.delete(s)}r.set(t,l)}return l}function I(t,e){if(e){let l=[];for(let s=0;s<t.length;){let i=t.codePointAt(s);l.push(i),s+=i>65535?2:1}return l}let r=new Uint32Array(t.length),n=0;for(let l=0;l<t.length;){let s=t.codePointAt(l);r[n]=S(s),n++,l+=s>65535?2:1}return n===r.length?r:r.subarray(0,n)}function A(t,e,r,n){for(let l=0;l<r.values.length;l++){let s=t.charCodeAt(e+l);if(!n&&s>=97&&s<=122&&(s-=32),s!==r.values[l])return!1}return!0}function Y(t,e,r,n,l){let s=n-e.values.length;if(s<r)return-1;if(!e.failure){for(let o=r;o<=s;o++)if(A(t,o,e,l))return o;return-1}let i=0;for(let o=r;o<n;o++){let u=t.charCodeAt(o);for(!l&&u>=97&&u<=122&&(u-=32);i>0&&u!==e.values[i];)i=e.failure[i-1];if(u===e.values[i]&&(i++,i===e.values.length))return o-i+1}return-1}function B(t,e,r){if(t.length<e.minimumInputLength)return!1;if(!e.hasWildcard)return t.length===e.minimumInputLength&&A(t,0,e.segments[0],r);let n=0,l=e.segments.length,s=0,i=t.length;if(!e.startsWithWildcard){let o=e.segments[0];if(!A(t,0,o,r))return!1;s=o.values.length,n++}if(!e.endsWithWildcard){l--;let o=e.segments[l];if(i-=o.values.length,!A(t,i,o,r))return!1}for(let o=n;o<l;o++){let u=e.segments[o],a=Y(t,u,s,i,r);if(a===-1)return!1;s=a+u.values.length}return!0}function w(t,e,r){for(let n=0;n<r.values.length;n++)if(t[e+n]!==r.values[n])return!1;return!0}function X(t,e,r,n){let l=n-e.values.length;if(l<r)return-1;if(!e.failure){for(let i=r;i<=l;i++)if(w(t,i,e))return i;return-1}let s=0;for(let i=r;i<n;i++){for(;s>0&&t[i]!==e.values[s];)s=e.failure[s-1];if(t[i]===e.values[s]&&(s++,s===e.values.length))return i-s+1}return-1}function L(t,e){if(t.length<e.minimumInputLength)return!1;if(!e.hasWildcard)return t.length===e.minimumInputLength&&w(t,0,e.segments[0]);let r=0,n=e.segments.length,l=0,s=t.length;if(!e.startsWithWildcard){let i=e.segments[0];if(!w(t,0,i))return!1;l=i.values.length,r++}if(!e.endsWithWildcard){n--;let i=e.segments[n];if(s-=i.values.length,!w(t,s,i))return!1}for(let i=r;i<n;i++){let o=e.segments[i],u=X(t,o,l,s);if(u===-1)return!1;l=u+o.values.length}return!0}function ee(t,e,r){let n=M(t,e,r);if(n!==void 0)return n;let l=R(e,r);return l.asciiOnly?B(t,l,r):L(I(t,r),l)}function W(t,e,r,n){var i;let l=M(t,e,r);if(l!==void 0)return l;let s=R(e,r);return s.asciiOnly?B(t,s,r):((i=n.tokens)!=null||(n.tokens=I(t,r)),L(n.tokens,s))}function P(t,e,r){if(typeof e!="string"&&!e.length)return!1;let n=r===void 0?!1:r.caseSensitiveMatch===!0;if(typeof e=="string"){let o=e.charCodeAt(0)===33,u=o?e.slice(1):e,a=ee(t,u,n);return o?!a:a}let l={},s=!1,i=!1;for(let o of e){let u=o.charCodeAt(0)===33,a=u?o.slice(1):o;if(u){if(W(t,a,n,l))return!1}else s=!0,!i&&W(t,a,n,l)&&(i=!0)}return s?i:!0}var E="7.2.1";var re=E,T={caseSensitive:!0};function ne(t,e,r){if(!t.length)return[];if(!t.length||!e.length)return Array.from(t);let n=typeof e=="string"?[e]:Array.from(e),l=x(x({},T),r);return Array.from(t).filter(i=>!n.some(o=>P(i,o,{caseSensitiveMatch:l.caseSensitive})))}return _(ie);})();
|
|
11
11
|
/**
|
|
12
12
|
* @name codsen-utils
|
|
13
13
|
* @fileoverview Various utility functions
|
|
14
|
-
* @version 1.
|
|
14
|
+
* @version 1.9.0
|
|
15
15
|
* @author Roy Revelt
|
|
16
16
|
* @license MIT
|
|
17
17
|
* {@link https://codsen.com/os/codsen-utils/}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "array-pull-all-with-glob",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"description": "Like _.pullAll but with globs (wildcards)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"array",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"codsen-utils": "^1.
|
|
77
|
+
"codsen-utils": "^1.9.0"
|
|
78
78
|
},
|
|
79
79
|
"engines": {
|
|
80
80
|
"node": ">=18.20.8"
|