array-pull-all-with-glob 7.0.22 → 7.0.24
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/.eslintcache +1 -0
- package/LICENSE +2 -2
- package/README.md +2 -2
- package/dist/array-pull-all-with-glob.esm.js +3 -3
- package/dist/array-pull-all-with-glob.umd.js +3 -3
- package/package.json +2 -2
package/.eslintcache
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"/home/runner/work/codsen/codsen/packages/array-pull-all-with-glob/examples/_quickTake.js":"1","/home/runner/work/codsen/codsen/packages/array-pull-all-with-glob/perf/check.js":"2","/home/runner/work/codsen/codsen/packages/array-pull-all-with-glob/rollup.config.js":"3","/home/runner/work/codsen/codsen/packages/array-pull-all-with-glob/src/main.ts":"4","/home/runner/work/codsen/codsen/packages/array-pull-all-with-glob/test/test.js":"5"},{"size":255,"mtime":1760280945872,"results":"6","hashOfConfig":"7"},{"size":442,"mtime":1760280945872,"results":"8","hashOfConfig":"9"},{"size":373,"mtime":1760280945872,"results":"10","hashOfConfig":"7"},{"size":1053,"mtime":1760280945872,"results":"11","hashOfConfig":"9"},{"size":5088,"mtime":1760280945873,"results":"12","hashOfConfig":"13"},{"filePath":"14","messages":"15","suppressedMessages":"16","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1f1u168",{"filePath":"17","messages":"18","suppressedMessages":"19","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"91l1rm",{"filePath":"20","messages":"21","suppressedMessages":"22","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"23","messages":"24","suppressedMessages":"25","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"26","messages":"27","suppressedMessages":"28","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"ns3qdb","/home/runner/work/codsen/codsen/packages/array-pull-all-with-glob/examples/_quickTake.js",[],[],"/home/runner/work/codsen/codsen/packages/array-pull-all-with-glob/perf/check.js",[],[],"/home/runner/work/codsen/codsen/packages/array-pull-all-with-glob/rollup.config.js",[],[],"/home/runner/work/codsen/codsen/packages/array-pull-all-with-glob/src/main.ts",[],[],"/home/runner/work/codsen/codsen/packages/array-pull-all-with-glob/test/test.js",[],["29","30","31","32"],{"ruleId":"33","severity":2,"message":"34","line":3,"column":17,"nodeType":null,"messageId":"35","endLine":3,"endColumn":19,"suppressions":"36"},{"ruleId":"33","severity":2,"message":"37","line":3,"column":25,"nodeType":null,"messageId":"35","endLine":3,"endColumn":31,"suppressions":"38"},{"ruleId":"33","severity":2,"message":"39","line":3,"column":33,"nodeType":null,"messageId":"35","endLine":3,"endColumn":37,"suppressions":"40"},{"ruleId":"33","severity":2,"message":"41","line":3,"column":44,"nodeType":null,"messageId":"35","endLine":3,"endColumn":49,"suppressions":"42"},"@typescript-eslint/no-unused-vars","'is' is defined but never used.","unusedVar",["43"],"'throws' is defined but never used.",["44"],"'type' is defined but never used.",["45"],"'match' is defined but never used.",["46"],{"kind":"47","justification":"48"},{"kind":"47","justification":"48"},{"kind":"47","justification":"48"},{"kind":"47","justification":"48"},"directive",""]
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright
|
|
3
|
+
Copyright © 2010-2025 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
|
|
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
19
19
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
20
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
21
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -55,8 +55,8 @@ To report bugs or request features or assistance, [raise an issue](https://githu
|
|
|
55
55
|
|
|
56
56
|
## Licence
|
|
57
57
|
|
|
58
|
-
MIT License
|
|
58
|
+
MIT License
|
|
59
59
|
|
|
60
|
-
Copyright © 2010-2025 Roy Revelt and other contributors
|
|
60
|
+
Copyright © 2010-2025 Roy Revelt and other contributors
|
|
61
61
|
|
|
62
62
|
<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.0.
|
|
5
|
-
* @author Roy Revelt
|
|
4
|
+
* @version 7.0.24
|
|
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{isMatch as a}from"matcher";var r="7.0.
|
|
10
|
+
import{isMatch as a}from"matcher";var r="7.0.24";var h=r,c={caseSensitive:!0};function y(e,t,s){if(!e.length)return[];if(!e.length||!t.length)return Array.from(e);let l=typeof t=="string"?[t]:Array.from(t),n={...c,...s};return Array.from(e).filter(i=>!l.some(p=>a(i,p,{caseSensitive:n.caseSensitive})))}export{c as defaults,y as pull,h as version};
|
|
@@ -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.0.
|
|
5
|
-
* @author Roy Revelt
|
|
4
|
+
* @version 7.0.24
|
|
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 y=Object.freeze,c=Object.defineProperty;var $=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames,b=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var x=(e,t,r)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p=(e,t)=>{for(var r in t||(t={}))w.call(t,r)&&x(e,r,t[r]);if(b)for(var r of b(t))R.call(t,r)&&x(e,r,t[r]);return e};var T=(e,t)=>{for(var r in t)c(e,r,{get:t[r],enumerable:!0})},D=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of C(t))!w.call(e,s)&&s!==r&&c(e,s,{get:()=>t[s],enumerable:!(n=$(t,s))||n.enumerable});return e};var M=e=>D(c({},"__esModule",{value:!0}),e);var d=(e,t)=>y(c(e,"raw",{value:y(t||e.slice())}));var z={};T(z,{defaults:()=>k,pull:()=>H,version:()=>B});function h(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var m=new Map,v=(e,t)=>{if(!Array.isArray(e))switch(typeof e){case"string":{e=[e];break}case"undefined":{e=[];break}default:throw new TypeError("Expected '".concat(t,"' to be a string or an array, but got a type of '").concat(typeof e,"'"))}return e.filter(r=>{if(typeof r!="string"){if(r===void 0)return!1;throw new TypeError("Expected '".concat(t,"' to be an array of strings, but found a type of '").concat(typeof r,"' in the array"))}return!0})},A,S,_,O=(e,t)=>{t=p({caseSensitive:!1},t);let r="s"+(t.caseSensitive?"":"i"),n=e+"|"+r;if(m.has(n))return m.get(n);let s=e[0]==="!";s&&(e=e.slice(1)),e=e.replaceAll(String.raw(A||(A=d(["*"],["\\*"]))),"__ESCAPED_STAR__").replaceAll("\\\\","__ESCAPED_BACKSLASH__").replaceAll(/\\(.)/g,"$1"),e=h(e).replaceAll(String.raw(S||(S=d(["*"],["\\*"]))),".*"),e=e.replaceAll("__ESCAPED_STAR__",String.raw(_||(_=d(["*"],["\\*"])))).replaceAll("__ESCAPED_BACKSLASH__","\\\\");let
|
|
10
|
+
"use strict";var arrayPullAllWithGlob=(()=>{var y=Object.freeze,c=Object.defineProperty;var $=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames,b=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var x=(e,t,r)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p=(e,t)=>{for(var r in t||(t={}))w.call(t,r)&&x(e,r,t[r]);if(b)for(var r of b(t))R.call(t,r)&&x(e,r,t[r]);return e};var T=(e,t)=>{for(var r in t)c(e,r,{get:t[r],enumerable:!0})},D=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of C(t))!w.call(e,s)&&s!==r&&c(e,s,{get:()=>t[s],enumerable:!(n=$(t,s))||n.enumerable});return e};var M=e=>D(c({},"__esModule",{value:!0}),e);var d=(e,t)=>y(c(e,"raw",{value:y(t||e.slice())}));var z={};T(z,{defaults:()=>k,pull:()=>H,version:()=>B});function h(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var m=new Map,v=(e,t)=>{if(!Array.isArray(e))switch(typeof e){case"string":{e=[e];break}case"undefined":{e=[];break}default:throw new TypeError("Expected '".concat(t,"' to be a string or an array, but got a type of '").concat(typeof e,"'"))}return e.filter(r=>{if(typeof r!="string"){if(r===void 0)return!1;throw new TypeError("Expected '".concat(t,"' to be an array of strings, but found a type of '").concat(typeof r,"' in the array"))}return!0})},A,S,_,O=(e,t)=>{t=p({caseSensitive:!1},t);let r="s"+(t.caseSensitive?"":"i"),n=e+"|"+r;if(m.has(n))return m.get(n);let s=e[0]==="!";s&&(e=e.slice(1)),e=e.replaceAll(String.raw(A||(A=d(["*"],["\\*"]))),"__ESCAPED_STAR__").replaceAll("\\\\","__ESCAPED_BACKSLASH__").replaceAll(/\\(.)/g,"$1"),e=h(e).replaceAll(String.raw(S||(S=d(["*"],["\\*"]))),".*"),e=e.replaceAll("__ESCAPED_STAR__",String.raw(_||(_=d(["*"],["\\*"])))).replaceAll("__ESCAPED_BACKSLASH__","\\\\");let o=new RegExp("^".concat(e,"$"),r);return o.negated=s,m.set(n,o),o},K=(e,t,r,n)=>{if(e=v(e,"inputs"),t=v(t,"patterns"),t.length===0)return[];t=t.map(l=>O(l,r));let s=t.filter(l=>l.negated),o=t.filter(l=>!l.negated),{allPatterns:u}=r||{},i=[];if(u&&n&&s.length>1&&o.length===0){for(let l of e)for(let f of s)if(f.test(l))return[];return e.slice(0,1)}for(let l of e){let f=!1;for(let a of s)if(a.test(l)){f=!0;break}if(!f){if(o.length===0)i.push(l);else if(u){let a=Array.from({length:o.length},()=>!1);for(let[g,P]of o.entries())P.test(l)&&(a[g]=!0);a.every(Boolean)&&i.push(l)}else{let a=!1;for(let g of o)if(g.test(l)){a=!0;break}a&&i.push(l)}if(n&&i.length>0)break}}return i};function E(e,t,r){return K(e,t,r,!0).length>0}var j="7.0.24";var B=j,k={caseSensitive:!0};function H(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),s=p(p({},k),r);return Array.from(e).filter(u=>!n.some(i=>E(u,i,{caseSensitive:s.caseSensitive})))}return M(z);})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "array-pull-all-with-glob",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.24",
|
|
4
4
|
"description": "Like _.pullAll but with globs (wildcards)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"array",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"examples": "node '../../ops/scripts/run-examples.js'",
|
|
49
49
|
"lect": "node '../../ops/lect/lect.js' && npm run prettier -- 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
|
|
50
50
|
"letspublish": "npm publish --provenance || :",
|
|
51
|
-
"lint": "eslint . --fix",
|
|
51
|
+
"lint": "eslint . --fix --concurrency=auto --cache",
|
|
52
52
|
"perf": "node perf/check.js",
|
|
53
53
|
"prep": "echo 'ready'",
|
|
54
54
|
"prettier": "prettier",
|