array-pull-all-with-glob 7.1.3 → 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 +19 -2
- package/LICENSE +1 -1
- package/README.md +4 -3
- package/dist/array-pull-all-with-glob.esm.js +2 -2
- package/dist/array-pull-all-with-glob.umd.js +10 -2
- package/package.json +25 -23
package/CHANGELOG.md
CHANGED
|
@@ -3,11 +3,28 @@
|
|
|
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.1
|
|
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
|
+
|
|
12
|
+
## 7.2.0 (2026-08-19)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- resolve various review findings ([b60e9ee](https://github.com/codsen/codsen/commit/b60e9eeb499af94685cfb87b4970fe025be1fc10))
|
|
17
|
+
- retire direct publish aliases ([f98e31e](https://github.com/codsen/codsen/commit/f98e31eb89bc185471225664e610b55f34fbf648))
|
|
7
18
|
|
|
8
19
|
### Features
|
|
9
20
|
|
|
10
|
-
-
|
|
21
|
+
- add codsen-glob and migrate glob consumers ([5595a2b](https://github.com/codsen/codsen/commit/5595a2b267eaa6cb60072d037aef00b7a28edd42))
|
|
22
|
+
- refresh the tooling and generate with the latest dependencies ([781f802](https://github.com/codsen/codsen/commit/781f802911066a82a4533b0e5a3fcbd742d0dd83))
|
|
23
|
+
|
|
24
|
+
### Reverts
|
|
25
|
+
|
|
26
|
+
- Revert "Merge pull request #128 from codsen/release/npm-32198404552-1" ([5baeeaa](https://github.com/codsen/codsen/commit/5baeeaaa677b86f1eaa6396cadf3aea32b06416e)), closes [#128](https://github.com/codsen/codsen/issues/128)
|
|
27
|
+
- Revert "Merge pull request #127 from codsen/release/npm-32194020886-1" ([5f1e94d](https://github.com/codsen/codsen/commit/5f1e94deef910ce735266b16aeee08a76de7a862)), closes [#127](https://github.com/codsen/codsen/issues/127)
|
|
11
28
|
|
|
12
29
|
## 7.0.0 (2022-12-01)
|
|
13
30
|
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright © 2010-
|
|
3
|
+
Copyright © 2010-2026 Roy Revelt and other contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
6
|
a copy of this software and associated documentation files (the
|
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ npm i array-pull-all-with-glob
|
|
|
32
32
|
## Quick Take
|
|
33
33
|
|
|
34
34
|
```js
|
|
35
|
-
import { strict as assert } from "assert";
|
|
35
|
+
import { strict as assert } from "node:assert";
|
|
36
36
|
|
|
37
37
|
import { pull } from "array-pull-all-with-glob";
|
|
38
38
|
|
|
@@ -45,9 +45,10 @@ assert.deepEqual(
|
|
|
45
45
|
);
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
|
|
48
49
|
## Documentation
|
|
49
50
|
|
|
50
|
-
Please [visit codsen.com](https://codsen.com/os/array-pull-all-with-glob/) for a full description of the API.
|
|
51
|
+
Please [visit codsen.com](https://codsen.com/os/array-pull-all-with-glob/) for a full description of the API. If you’re looking for the **Changelog**, it’s [here](https://github.com/codsen/codsen/blob/main/packages/array-pull-all-with-glob/CHANGELOG.md).
|
|
51
52
|
|
|
52
53
|
## Contributing
|
|
53
54
|
|
|
@@ -57,6 +58,6 @@ To report bugs or request features or assistance, [raise an issue](https://githu
|
|
|
57
58
|
|
|
58
59
|
MIT License
|
|
59
60
|
|
|
60
|
-
Copyright © 2010-
|
|
61
|
+
Copyright © 2010-2026 Roy Revelt and other contributors
|
|
61
62
|
|
|
62
63
|
<p align="center"><img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center"></p>
|
|
@@ -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.1
|
|
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{
|
|
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,10 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name array-pull-all-with-glob
|
|
3
3
|
* @fileoverview Like _.pullAll but with globs (wildcards)
|
|
4
|
-
* @version 7.1
|
|
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
|
|
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
|
+
/**
|
|
12
|
+
* @name codsen-utils
|
|
13
|
+
* @fileoverview Various utility functions
|
|
14
|
+
* @version 1.9.0
|
|
15
|
+
* @author Roy Revelt
|
|
16
|
+
* @license MIT
|
|
17
|
+
* {@link https://codsen.com/os/codsen-utils/}
|
|
18
|
+
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "array-pull-all-with-glob",
|
|
3
|
-
"version": "7.1
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"description": "Like _.pullAll but with globs (wildcards)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"array",
|
|
@@ -39,43 +39,45 @@
|
|
|
39
39
|
},
|
|
40
40
|
"types": "types/index.d.ts",
|
|
41
41
|
"scripts": {
|
|
42
|
-
"build": "node
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"dev": "DEV=true node '../../ops/scripts/esbuild.js' && npm run dts",
|
|
42
|
+
"build": "node ../../ops/scripts/esbuild.js && npm run dts",
|
|
43
|
+
"coverage": "c8 uvu test",
|
|
44
|
+
"dev": "node ../../ops/scripts/esbuild.js --dev && npm run dts",
|
|
46
45
|
"devtest": "c8 npm run unit && npm run examples && npm run lint",
|
|
47
|
-
"dts": "rollup -c &&
|
|
46
|
+
"dts": "rollup -c && biome format --write --config-path=../../biome.json --vcs-enabled=false --use-editorconfig=false types/index.d.ts",
|
|
48
47
|
"examples": "node '../../ops/scripts/run-examples.js'",
|
|
49
|
-
"lect": "node '../../ops/lect/lect.js'
|
|
50
|
-
"
|
|
51
|
-
"lint": "
|
|
48
|
+
"lect": "node '../../ops/lect/lect.js'",
|
|
49
|
+
"lect:check": "node '../../ops/lect/lect.js' --check",
|
|
50
|
+
"lint": "biome lint --error-on-warnings . && npm run typecheck",
|
|
51
|
+
"lint:fix": "biome lint --write --error-on-warnings . && npm run typecheck",
|
|
52
52
|
"perf": "node perf/check.js",
|
|
53
53
|
"prep": "echo 'ready'",
|
|
54
|
-
"prettier": "
|
|
55
|
-
"prettier:format": "
|
|
56
|
-
"pretest": "npm run lect && npm run build",
|
|
54
|
+
"prettier": "biome format",
|
|
55
|
+
"prettier:format": "biome format --write .",
|
|
56
|
+
"pretest": "npm run lect:check && npm run build",
|
|
57
57
|
"test": "npm run devtest",
|
|
58
|
+
"typecheck": "tsc --noEmit --pretty false --project tsconfig.json",
|
|
58
59
|
"unit": "uvu test"
|
|
59
60
|
},
|
|
60
|
-
"engines": {
|
|
61
|
-
"node": ">=14.18.0"
|
|
62
|
-
},
|
|
63
61
|
"c8": {
|
|
62
|
+
"all": true,
|
|
63
|
+
"branches": 100,
|
|
64
64
|
"check-coverage": true,
|
|
65
|
-
"exclude": [
|
|
66
|
-
|
|
67
|
-
],
|
|
68
|
-
"lines": 100
|
|
65
|
+
"exclude": ["**/test/**/*.*"],
|
|
66
|
+
"functions": 100,
|
|
67
|
+
"include": ["dist/*.esm.js"],
|
|
68
|
+
"lines": 100,
|
|
69
|
+
"statements": 100
|
|
69
70
|
},
|
|
70
71
|
"lect": {
|
|
71
72
|
"licence": {
|
|
72
|
-
"extras": [
|
|
73
|
-
""
|
|
74
|
-
]
|
|
73
|
+
"extras": [""]
|
|
75
74
|
}
|
|
76
75
|
},
|
|
77
76
|
"dependencies": {
|
|
78
|
-
"
|
|
77
|
+
"codsen-utils": "^1.9.0"
|
|
78
|
+
},
|
|
79
|
+
"engines": {
|
|
80
|
+
"node": ">=18.20.8"
|
|
79
81
|
},
|
|
80
82
|
"publishConfig": {
|
|
81
83
|
"registry": "https://registry.npmjs.org/"
|