gulp-purgecss 7.0.2 → 8.0.0

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.
@@ -1,4 +1,4 @@
1
- import * as glob from 'glob';
1
+ import glob from 'fast-glob';
2
2
  import PluginError from 'plugin-error';
3
3
  import { PurgeCSS } from 'purgecss';
4
4
  import through from 'through2';
@@ -1,34 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var glob = require('glob');
3
+ var glob = require('fast-glob');
4
4
  var PluginError = require('plugin-error');
5
5
  var purgecss = require('purgecss');
6
6
  var through = require('through2');
7
7
  var applySourceMap = require('vinyl-sourcemaps-apply');
8
8
 
9
- function _interopNamespaceDefault(e) {
10
- var n = Object.create(null);
11
- if (e) {
12
- Object.keys(e).forEach(function (k) {
13
- if (k !== 'default') {
14
- var d = Object.getOwnPropertyDescriptor(e, k);
15
- Object.defineProperty(n, k, d.get ? d : {
16
- enumerable: true,
17
- get: function () { return e[k]; }
18
- });
19
- }
20
- });
21
- }
22
- n.default = e;
23
- return Object.freeze(n);
24
- }
25
-
26
- var glob__namespace = /*#__PURE__*/_interopNamespaceDefault(glob);
27
-
28
9
  const PLUGIN_NAME = "gulp-purgecss";
29
10
  function getFiles(contentArray, ignore) {
30
11
  return contentArray.reduce((acc, content) => {
31
- return [...acc, ...glob__namespace.sync(content, { ignore })];
12
+ return [...acc, ...glob.sync(content, { ignore })];
32
13
  }, []);
33
14
  }
34
15
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gulp-purgecss",
3
- "version": "7.0.2",
3
+ "version": "8.0.0",
4
4
  "description": "Gulp plugin for purgecss",
5
5
  "author": "Ffloriel",
6
6
  "homepage": "https://purgecss.com",
@@ -36,15 +36,15 @@
36
36
  "test": "jest"
37
37
  },
38
38
  "dependencies": {
39
- "glob": "^11.0.0",
39
+ "fast-glob": "^3.3.2",
40
40
  "plugin-error": "^2.0.0",
41
- "purgecss": "^7.0.2",
41
+ "purgecss": "^8.0.0",
42
42
  "through2": "^4.0.1",
43
43
  "vinyl-sourcemaps-apply": "^0.2.1"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/event-stream": "^4.0.0",
47
- "@types/glob": "^8.0.0",
47
+ "@types/glob": "^9.0.0",
48
48
  "@types/through2": "^2.0.34",
49
49
  "@types/vinyl": "^2.0.4",
50
50
  "event-stream": "^4.0.1",
@@ -57,5 +57,5 @@
57
57
  "access": "public",
58
58
  "registry": "https://registry.npmjs.org/"
59
59
  },
60
- "gitHead": "e95398d961e03a809b5e3da75e3dae1813b46b68"
60
+ "gitHead": "9269dbc8b589832bab90d29f5821fc4cf55077d6"
61
61
  }