array-pull-all-with-glob 6.2.6 → 7.0.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,13 +3,19 @@
|
|
|
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
|
-
|
|
6
|
+
## 7.0.0 (2022-12-01)
|
|
7
|
+
|
|
8
|
+
### BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
- Minimum supported Node version is v14.18; we're dropping v12 support
|
|
11
|
+
|
|
12
|
+
## 6.2.0 (2022-08-12)
|
|
7
13
|
|
|
8
14
|
### Features
|
|
9
15
|
|
|
10
16
|
- export types ([11b5fb9](https://github.com/codsen/codsen/commit/11b5fb936ce20e0a77c3a09806773e1cd7695c50))
|
|
11
17
|
|
|
12
|
-
|
|
18
|
+
## 6.1.0 (2022-04-10)
|
|
13
19
|
|
|
14
20
|
### Features
|
|
15
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "array-pull-all-with-glob",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"description": "Like _.pullAll but with globs (wildcards)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"array",
|
|
@@ -39,26 +39,26 @@
|
|
|
39
39
|
},
|
|
40
40
|
"types": "types/index.d.ts",
|
|
41
41
|
"scripts": {
|
|
42
|
-
"build": "node '../../ops/scripts/esbuild.js' &&
|
|
42
|
+
"build": "node '../../ops/scripts/esbuild.js' && npm run dts",
|
|
43
43
|
"cjs-off": "exit 0",
|
|
44
44
|
"cjs-on": "exit 0",
|
|
45
|
-
"dev": "DEV=true node '../../ops/scripts/esbuild.js' &&
|
|
46
|
-
"devtest": "c8
|
|
47
|
-
"dts": "rollup -c &&
|
|
45
|
+
"dev": "DEV=true node '../../ops/scripts/esbuild.js' && npm run dts",
|
|
46
|
+
"devtest": "c8 npm run unit && npm run examples && npm run lint",
|
|
47
|
+
"dts": "rollup -c && npm run prettier -- 'types/index.d.ts' --write --loglevel 'silent'",
|
|
48
48
|
"examples": "node '../../ops/scripts/run-examples.js'",
|
|
49
|
-
"lect": "node '../../ops/lect/lect.js' &&
|
|
50
|
-
"letspublish": "
|
|
49
|
+
"lect": "node '../../ops/lect/lect.js' && npm run prettier -- 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
|
|
50
|
+
"letspublish": "npm publish || :",
|
|
51
51
|
"lint": "eslint . --ext .js --ext .ts --fix",
|
|
52
52
|
"perf": "node perf/check.js",
|
|
53
|
-
"
|
|
53
|
+
"prep": "echo 'ready'",
|
|
54
54
|
"prettier": "prettier",
|
|
55
|
-
"prettier:format": "prettier --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern",
|
|
56
|
-
"pretest": "
|
|
57
|
-
"test": "
|
|
55
|
+
"prettier:format": "npm run prettier -- --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern --loglevel 'silent'",
|
|
56
|
+
"pretest": "npm run lect && npm run build",
|
|
57
|
+
"test": "npm run devtest",
|
|
58
58
|
"unit": "uvu test"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
|
-
"node": "
|
|
61
|
+
"node": ">=14.18.0"
|
|
62
62
|
},
|
|
63
63
|
"c8": {
|
|
64
64
|
"check-coverage": true,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name array-pull-all-with-glob
|
|
3
|
-
* @fileoverview Like _.pullAll but with globs (wildcards)
|
|
4
|
-
* @version 6.2.6
|
|
5
|
-
* @author Roy Revelt, Codsen Ltd
|
|
6
|
-
* @license MIT
|
|
7
|
-
* {@link https://codsen.com/os/array-pull-all-with-glob/}
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
import{isMatch as p}from"matcher";var r="6.2.6";var g=r,c={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={...c,...s};return Array.from(e).filter(i=>!l.some(o=>p(i,o,{caseSensitive:n.caseSensitive})))}export{c as defaults,h as pull,g as version};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @name array-pull-all-with-glob
|
|
3
|
-
* @fileoverview Like _.pullAll but with globs (wildcards)
|
|
4
|
-
* @version 6.2.6
|
|
5
|
-
* @author Roy Revelt, Codsen Ltd
|
|
6
|
-
* @license MIT
|
|
7
|
-
* {@link https://codsen.com/os/array-pull-all-with-glob/}
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
"use strict";var arrayPullAllWithGlob=(()=>{var p=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames,g=Object.getOwnPropertySymbols;var m=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var h=(e,t,r)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t)=>{for(var r in t||(t={}))m.call(t,r)&&h(e,r,t[r]);if(g)for(var r of g(t))E.call(t,r)&&h(e,r,t[r]);return e};var S=(e,t)=>{for(var r in t)p(e,r,{get:t[r],enumerable:!0})},$=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of k(t))!m.call(e,s)&&s!==r&&p(e,s,{get:()=>t[s],enumerable:!(n=j(t,s))||n.enumerable});return e};var M=e=>$(p({},"__esModule",{value:!0}),e);var P={};S(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,x=(e,t)=>{if(!Array.isArray(e))switch(typeof e){case"string":e=[e];break;case"undefined":e=[];break;default:throw new TypeError(`Expected '${t}' to be a string or an array, but got a type of '${typeof e}'`)}return e.filter(r=>{if(typeof r!="string"){if(typeof r>"u")return!1;throw new TypeError(`Expected '${t}' to be an array of strings, but found a type of '${typeof r}' in the array`)}return!0})},O=(e,t)=>{t=o({caseSensitive:!1},t);let r=e+JSON.stringify(t);if(f.has(r))return f.get(r);let n=e[0]==="!";n&&(e=e.slice(1)),e=d(e).replace(/\\\*/g,"[\\s\\S]*");let s=new RegExp(`^${e}$`,t.caseSensitive?"":"i");return s.negated=n,f.set(r,s),s},A=(e,t,r,n)=>{if(e=x(e,"inputs"),t=x(t,"patterns"),t.length===0)return[];t=t.map(l=>O(l,r));let{allPatterns:s}=r||{},u=[];for(let l of e){let i,y=[...t].fill(!1);for(let[a,c]of t.entries())if(c.test(l)&&(y[a]=!0,i=!c.negated,!i))break;if(!(i===!1||i===void 0&&t.some(a=>!a.negated)||s&&y.some((a,c)=>!a&&!t[c].negated))&&(u.push(l),n))break}return u};function b(e,t,r){return A(e,t,r,!0).length>0}var w="6.2.6";var T=w,v={caseSensitive:!0};function D(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=o(o({},v),r);return Array.from(e).filter(l=>!n.some(i=>b(l,i,{caseSensitive:s.caseSensitive})))}return M(P);})();
|