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

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
@@ -59,58 +59,58 @@ Accidental version bump during migration to sourcehut. Sorry about that.
59
59
 
60
60
  ## 4.12.0 (2019-01-20)
61
61
 
62
- - Various documentation and setup tweaks after we migrated to monorepo
63
- - Setup refresh: updated dependencies and all config files using automated tools
62
+ - Various documentation and setup tweaks after we migrated to monorepo
63
+ - Setup refresh: updated dependencies and all config files using automated tools
64
64
 
65
65
  ## 4.7.0 (2018-10-12)
66
66
 
67
- - Updated all dependencies and restored the coverage tracking both in unit tests and via coveralls.io
67
+ - Updated all dependencies and restored the coverage tracking both in unit tests and via coveralls.io
68
68
 
69
69
  ## 4.6.0 (2018-08-23)
70
70
 
71
- - Now we allow the second input argument to be a string or an array of zero or more strings
71
+ - Now we allow the second input argument to be a string or an array of zero or more strings
72
72
 
73
73
  ## 4.5.0 (2018-06-11)
74
74
 
75
75
  GitHub sold us out. In the meantime, we:
76
76
 
77
- - Migrated to BitBucket (to host repo + perform CI) and Codacy (for code quality audit)
78
- - Dropped BitHound (RIP) and Travis
79
- - Removed `package-lock`
77
+ - Migrated to BitBucket (to host repo + perform CI) and Codacy (for code quality audit)
78
+ - Dropped BitHound (RIP) and Travis
79
+ - Removed `package-lock`
80
80
 
81
81
  ## 4.4.0 (2018-05-14)
82
82
 
83
- - Now pointing unit tests at ES Modules build, not CommonJS-one. This means, unit test coverage will be correct (higher) because there won't be any missing rows that Babel added which are impossible to cover.
84
- - Tweaks to ava [config](https://github.com/avajs/ava/blob/master/docs/recipes/es-modules.md) in `package.json`, properly enabling the `dev` Rollup builds.
83
+ - Now pointing unit tests at ES Modules build, not CommonJS-one. This means, unit test coverage will be correct (higher) because there won't be any missing rows that Babel added which are impossible to cover.
84
+ - Tweaks to ava [config](https://github.com/avajs/ava/blob/master/docs/recipes/es-modules.md) in `package.json`, properly enabling the `dev` Rollup builds.
85
85
 
86
86
  ## 4.3.0 (2018-04-29)
87
87
 
88
- - Set up Prettier
89
- - Removed `package.lock` and `.editorconfig`
90
- - Wired Rollup to remove comments from non-dev builds. This means we can now leave the `console.log`s in the source code — Rollup will remove them during the builds.
88
+ - Set up Prettier
89
+ - Removed `package.lock` and `.editorconfig`
90
+ - Wired Rollup to remove comments from non-dev builds. This means we can now leave the `console.log`s in the source code — Rollup will remove them during the builds.
91
91
 
92
92
  ## 4.2.0 (2018-02-11)
93
93
 
94
- - `opts.caseSensitive`, directly controlling today's new released [matcher's](https://www.npmjs.com/package/matcher) same feature. Case sensitive is on by default now, but you can turn it off if you're dealing with file system stuff for example. It's best to be case-insensitive in those cases.
94
+ - `opts.caseSensitive`, directly controlling today's new released [matcher's](https://www.npmjs.com/package/matcher) same feature. Case sensitive is on by default now, but you can turn it off if you're dealing with file system stuff for example. It's best to be case-insensitive in those cases.
95
95
 
96
96
  Also, I set up `check-types-mini` ([npm](https://www.npmjs.com/package/check-types-mini), [GitLab](https://gitlab.com/codsen/codsen/tree/master/packages/check-types-mini)) to patrol the opts' types. Just in case consumers misbehave.
97
97
 
98
98
  ## 4.1.0 (2018-01-21)
99
99
 
100
- - Shortened the error source function paths in error messages. There's no point to report the name of the main function when there's only one function. The package name will suffice.
100
+ - Shortened the error source function paths in error messages. There's no point to report the name of the main function when there's only one function. The package name will suffice.
101
101
 
102
102
  ## 4.0.0 (2017-10-23)
103
103
 
104
- - The main source now is in ES2015 modules with `import`/`export`.
105
- - Implemented Rollup to generate 3 flavours of this package: CommonJS, UMD and ESM `module` with `import`/`export`.
104
+ - The main source now is in ES2015 modules with `import`/`export`.
105
+ - Implemented Rollup to generate 3 flavours of this package: CommonJS, UMD and ESM `module` with `import`/`export`.
106
106
 
107
107
  ## 3.1.0 (2017-08-31)
108
108
 
109
- - Now generating transpiled version within `/es5/` folder, which you can require like that, `var pull = require('array-pull-all-with-glob/es5')`
109
+ - Now generating transpiled version within `/es5/` folder, which you can require like that, `var pull = require('array-pull-all-with-glob/es5')`
110
110
 
111
111
  ## 3.0.0 (2017-08-25)
112
112
 
113
- - Switched to [matcher](https://github.com/sindresorhus/matcher/) to do all the globbing.
113
+ - Switched to [matcher](https://github.com/sindresorhus/matcher/) to do all the globbing.
114
114
 
115
115
  - 💥 Removed dependency on `lodash.clonedeep`
116
116
  - 💥 Removed dependency on `lodash.replace`
@@ -121,4 +121,4 @@ Also, I set up `check-types-mini` ([npm](https://www.npmjs.com/package/check-typ
121
121
  - 🔧 Simple thing, but, technically, a major API change. Input arguments are not mutated any more.
122
122
  - 🔧 New unit tests to guarantee that.
123
123
  - 🔧 Tightened the API with insurance against missing args or wrong types in the input. Now if the main input is missing, it will throw. If first argument (remove from where) is present, but second (what to remove) is missing, first arguement is returned. It's called being nice with others (libraries).
124
- - Added changelog.md
124
+ - Added changelog.md
@@ -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.1
4
+ * @version 6.2.2
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.1";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.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};
@@ -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.1
4
+ * @version 6.2.2
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.1";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.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);})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "array-pull-all-with-glob",
3
- "version": "6.2.1",
3
+ "version": "6.2.2",
4
4
  "description": "Like _.pullAll but with globs (wildcards)",
5
5
  "keywords": [
6
6
  "array",