array-pull-all-with-glob 6.2.2 → 6.2.3

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
@@ -39,7 +39,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
39
39
 
40
40
  ## 5.0.1 (2021-01-28)
41
41
 
42
- ### Bug Fixes
42
+ ### Fixed
43
43
 
44
44
  - add testStats to npmignore ([f3c84e9](https://github.com/codsen/codsen/commit/f3c84e95afc5514214312f913692d85b2e12eb29))
45
45
 
@@ -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 6.2.2
4
+ * @version 6.2.3
5
5
  * @author Roy Revelt, Codsen Ltd
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/array-pull-all-with-glob/}
8
8
  */
9
9
 
10
- import{isMatch as p}from"matcher";var r="6.2.2";var g=r,u={caseSensitive:!0};function h(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={...u,...s};return Array.from(e).filter(i=>!l.some(a=>p(i,a,{caseSensitive:n.caseSensitive})))}export{u as defaults,h as pull,g as version};
10
+ import{isMatch as p}from"matcher";var r="6.2.3";var g=r,u={caseSensitive:!0};function h(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={...u,...s};return Array.from(e).filter(i=>!l.some(a=>p(i,a,{caseSensitive:n.caseSensitive})))}export{u as defaults,h as pull,g 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 6.2.2
4
+ * @version 6.2.3
5
5
  * @author Roy Revelt, Codsen Ltd
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 p=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var h=(e,r,t)=>r in e?p(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,o=(e,r)=>{for(var t in r||(r={}))m.call(r,t)&&h(e,t,r[t]);if(g)for(var t of g(r))S.call(r,t)&&h(e,t,r[t]);return e};var j=(e,r)=>{for(var t in r)p(e,t,{get:r[t],enumerable:!0})},$=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of E(r))!m.call(e,s)&&s!==t&&p(e,s,{get:()=>r[s],enumerable:!(n=k(r,s))||n.enumerable});return e};var M=e=>$(p({},"__esModule",{value:!0}),e);var P={};j(P,{defaults:()=>v,pull:()=>D,version:()=>T});function d(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var f=new Map,b=(e,r)=>{if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${r}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(t=>{if(typeof t!="string"){if(typeof t>"u")return!1;throw new TypeError(`Expected '${r}' to be an array of strings, but found a type of '${typeof t}' in the array`)}return!0})},O=(e,r)=>{r=o({caseSensitive:!1},r);let t=e+JSON.stringify(r);if(f.has(t))return f.get(t);let n=e[0]==="!";n&&(e=e.slice(1)),e=d(e).replace(/\\\*/g,"[\\s\\S]*");let s=new RegExp(`^${e}$`,r.caseSensitive?"":"i");return s.negated=n,f.set(t,s),s},A=(e,r,t,n)=>{if(e=b(e,"inputs"),r=b(r,"patterns"),r.length===0)return[];r=r.map(l=>O(l,t));let{allPatterns:s}=t||{},u=[];for(let l of e){let i,y=[...r].fill(!1);for(let[a,c]of r.entries())if(c.test(l)&&(y[a]=!0,i=!c.negated,!i))break;if(!(i===!1||i===void 0&&r.some(a=>!a.negated)||s&&y.some((a,c)=>!a&&!r[c].negated))&&(u.push(l),n))break}return u};function x(e,r,t){return A(e,r,t,!0).length>0}var w="6.2.2";var T=w,v={caseSensitive:!0};function D(e,r,t){if(!e.length)return[];if(!e.length||!r.length)return Array.from(e);let n=typeof r=="string"?[r]:Array.from(r),s=o(o({},v),t);return Array.from(e).filter(l=>!n.some(i=>x(l,i,{caseSensitive:s.caseSensitive})))}return M(P);})();
10
+ "use strict";var arrayPullAllWithGlob=(()=>{var p=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var h=(e,r,t)=>r in e?p(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,o=(e,r)=>{for(var t in r||(r={}))m.call(r,t)&&h(e,t,r[t]);if(g)for(var t of g(r))S.call(r,t)&&h(e,t,r[t]);return e};var j=(e,r)=>{for(var t in r)p(e,t,{get:r[t],enumerable:!0})},$=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let s of E(r))!m.call(e,s)&&s!==t&&p(e,s,{get:()=>r[s],enumerable:!(n=k(r,s))||n.enumerable});return e};var M=e=>$(p({},"__esModule",{value:!0}),e);var P={};j(P,{defaults:()=>v,pull:()=>D,version:()=>T});function d(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var f=new Map,b=(e,r)=>{if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${r}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(t=>{if(typeof t!="string"){if(typeof t>"u")return!1;throw new TypeError(`Expected '${r}' to be an array of strings, but found a type of '${typeof t}' in the array`)}return!0})},O=(e,r)=>{r=o({caseSensitive:!1},r);let t=e+JSON.stringify(r);if(f.has(t))return f.get(t);let n=e[0]==="!";n&&(e=e.slice(1)),e=d(e).replace(/\\\*/g,"[\\s\\S]*");let s=new RegExp(`^${e}$`,r.caseSensitive?"":"i");return s.negated=n,f.set(t,s),s},A=(e,r,t,n)=>{if(e=b(e,"inputs"),r=b(r,"patterns"),r.length===0)return[];r=r.map(l=>O(l,t));let{allPatterns:s}=t||{},u=[];for(let l of e){let i,y=[...r].fill(!1);for(let[a,c]of r.entries())if(c.test(l)&&(y[a]=!0,i=!c.negated,!i))break;if(!(i===!1||i===void 0&&r.some(a=>!a.negated)||s&&y.some((a,c)=>!a&&!r[c].negated))&&(u.push(l),n))break}return u};function x(e,r,t){return A(e,r,t,!0).length>0}var w="6.2.3";var T=w,v={caseSensitive:!0};function D(e,r,t){if(!e.length)return[];if(!e.length||!r.length)return Array.from(e);let n=typeof r=="string"?[r]:Array.from(r),s=o(o({},v),t);return Array.from(e).filter(l=>!n.some(i=>x(l,i,{caseSensitive:s.caseSensitive})))}return M(P);})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "array-pull-all-with-glob",
3
- "version": "6.2.2",
3
+ "version": "6.2.3",
4
4
  "description": "Like _.pullAll but with globs (wildcards)",
5
5
  "keywords": [
6
6
  "array",