vite-plugin-php 1.0.65 → 1.0.66

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/README.md CHANGED
@@ -22,6 +22,7 @@ Check out the [starter repo](https://github.com/nititech/php-vite-starter) for a
22
22
 
23
23
  | Version | Feature |
24
24
  | ------- | ----------------------------------------------------------------------------------------------------------- |
25
+ | 1.0.66 | Fixed file monitoring on Windows |
25
26
  | 1.0.65 | Fixed request body forwarding for all request methods |
26
27
  | 1.0.62 | HTML transforms are now only applied to HTML contents during dev |
27
28
  | 1.0.60 | Fixed inline module transpiling -> PHP code is being properly inserted into transpiled inline module chunks |
package/dist/index.cjs CHANGED
@@ -1,28 +1,26 @@
1
1
  'use strict';
2
2
 
3
- const require$$0$2 = require('fs');
4
- const require$$0$1 = require('path');
3
+ const require$$0$1 = require('fs');
4
+ const require$$0 = require('path');
5
5
  const vite = require('vite');
6
- const require$$0 = require('tty');
7
6
  const http = require('node:http');
8
7
  const child_process = require('child_process');
9
8
  const url = require('url');
10
- const require$$0$3 = require('os');
11
- const require$$0$4 = require('util');
12
- const require$$0$5 = require('stream');
13
- const require$$0$6 = require('events');
9
+ const require$$0$2 = require('os');
10
+ const require$$0$3 = require('util');
11
+ const require$$0$4 = require('stream');
12
+ const require$$0$5 = require('events');
14
13
 
15
14
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
16
15
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
17
16
 
18
- const require$$0__default$5 = /*#__PURE__*/_interopDefaultCompat(require$$0$2);
19
- const require$$0__default$2 = /*#__PURE__*/_interopDefaultCompat(require$$0$1);
20
- const require$$0__default = /*#__PURE__*/_interopDefaultCompat(require$$0);
17
+ const require$$0__default$4 = /*#__PURE__*/_interopDefaultCompat(require$$0$1);
18
+ const require$$0__default$1 = /*#__PURE__*/_interopDefaultCompat(require$$0);
21
19
  const http__default = /*#__PURE__*/_interopDefaultCompat(http);
22
- const require$$0__default$1 = /*#__PURE__*/_interopDefaultCompat(require$$0$3);
20
+ const require$$0__default = /*#__PURE__*/_interopDefaultCompat(require$$0$2);
21
+ const require$$0__default$2 = /*#__PURE__*/_interopDefaultCompat(require$$0$3);
23
22
  const require$$0__default$3 = /*#__PURE__*/_interopDefaultCompat(require$$0$4);
24
- const require$$0__default$4 = /*#__PURE__*/_interopDefaultCompat(require$$0$5);
25
- const require$$0__default$6 = /*#__PURE__*/_interopDefaultCompat(require$$0$6);
23
+ const require$$0__default$5 = /*#__PURE__*/_interopDefaultCompat(require$$0$5);
26
24
 
27
25
  function makeID() {
28
26
  return Date.now().toString(36) + Math.random() * 100;
@@ -34,35 +32,21 @@ function getDefaultExportFromCjs (x) {
34
32
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
35
33
  }
36
34
 
37
- function commonjsRequire(path) {
38
- throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
39
- }
40
-
41
35
  var picocolors = {exports: {}};
42
36
 
43
- let argv = process.argv || [],
44
- env = process.env;
37
+ let p = process || {}, argv = p.argv || [], env = p.env || {};
45
38
  let isColorSupported =
46
- !("NO_COLOR" in env || argv.includes("--no-color")) &&
47
- ("FORCE_COLOR" in env ||
48
- argv.includes("--color") ||
49
- process.platform === "win32" ||
50
- (commonjsRequire != null && require$$0__default.isatty(1) && env.TERM !== "dumb") ||
51
- "CI" in env);
52
-
53
- let formatter =
54
- (open, close, replace = open) =>
39
+ !(!!env.NO_COLOR || argv.includes("--no-color")) &&
40
+ (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || ((p.stdout || {}).isTTY && env.TERM !== "dumb") || !!env.CI);
41
+
42
+ let formatter = (open, close, replace = open) =>
55
43
  input => {
56
- let string = "" + input;
57
- let index = string.indexOf(close, open.length);
58
- return ~index
59
- ? open + replaceClose(string, close, replace, index) + close
60
- : open + string + close
44
+ let string = "" + input, index = string.indexOf(close, open.length);
45
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close
61
46
  };
62
47
 
63
48
  let replaceClose = (string, close, replace, index) => {
64
- let result = "";
65
- let cursor = 0;
49
+ let result = "", cursor = 0;
66
50
  do {
67
51
  result += string.substring(cursor, index) + replace;
68
52
  cursor = index + close.length;
@@ -72,54 +56,54 @@ let replaceClose = (string, close, replace, index) => {
72
56
  };
73
57
 
74
58
  let createColors = (enabled = isColorSupported) => {
75
- let init = enabled ? formatter : () => String;
59
+ let f = enabled ? formatter : () => String;
76
60
  return {
77
61
  isColorSupported: enabled,
78
- reset: init("\x1b[0m", "\x1b[0m"),
79
- bold: init("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
80
- dim: init("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
81
- italic: init("\x1b[3m", "\x1b[23m"),
82
- underline: init("\x1b[4m", "\x1b[24m"),
83
- inverse: init("\x1b[7m", "\x1b[27m"),
84
- hidden: init("\x1b[8m", "\x1b[28m"),
85
- strikethrough: init("\x1b[9m", "\x1b[29m"),
86
-
87
- black: init("\x1b[30m", "\x1b[39m"),
88
- red: init("\x1b[31m", "\x1b[39m"),
89
- green: init("\x1b[32m", "\x1b[39m"),
90
- yellow: init("\x1b[33m", "\x1b[39m"),
91
- blue: init("\x1b[34m", "\x1b[39m"),
92
- magenta: init("\x1b[35m", "\x1b[39m"),
93
- cyan: init("\x1b[36m", "\x1b[39m"),
94
- white: init("\x1b[37m", "\x1b[39m"),
95
- gray: init("\x1b[90m", "\x1b[39m"),
96
-
97
- bgBlack: init("\x1b[40m", "\x1b[49m"),
98
- bgRed: init("\x1b[41m", "\x1b[49m"),
99
- bgGreen: init("\x1b[42m", "\x1b[49m"),
100
- bgYellow: init("\x1b[43m", "\x1b[49m"),
101
- bgBlue: init("\x1b[44m", "\x1b[49m"),
102
- bgMagenta: init("\x1b[45m", "\x1b[49m"),
103
- bgCyan: init("\x1b[46m", "\x1b[49m"),
104
- bgWhite: init("\x1b[47m", "\x1b[49m"),
105
-
106
- blackBright: init("\x1b[90m", "\x1b[39m"),
107
- redBright: init("\x1b[91m", "\x1b[39m"),
108
- greenBright: init("\x1b[92m", "\x1b[39m"),
109
- yellowBright: init("\x1b[93m", "\x1b[39m"),
110
- blueBright: init("\x1b[94m", "\x1b[39m"),
111
- magentaBright: init("\x1b[95m", "\x1b[39m"),
112
- cyanBright: init("\x1b[96m", "\x1b[39m"),
113
- whiteBright: init("\x1b[97m", "\x1b[39m"),
114
-
115
- bgBlackBright: init("\x1b[100m","\x1b[49m"),
116
- bgRedBright: init("\x1b[101m","\x1b[49m"),
117
- bgGreenBright: init("\x1b[102m","\x1b[49m"),
118
- bgYellowBright: init("\x1b[103m","\x1b[49m"),
119
- bgBlueBright: init("\x1b[104m","\x1b[49m"),
120
- bgMagentaBright: init("\x1b[105m","\x1b[49m"),
121
- bgCyanBright: init("\x1b[106m","\x1b[49m"),
122
- bgWhiteBright: init("\x1b[107m","\x1b[49m"),
62
+ reset: f("\x1b[0m", "\x1b[0m"),
63
+ bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
64
+ dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
65
+ italic: f("\x1b[3m", "\x1b[23m"),
66
+ underline: f("\x1b[4m", "\x1b[24m"),
67
+ inverse: f("\x1b[7m", "\x1b[27m"),
68
+ hidden: f("\x1b[8m", "\x1b[28m"),
69
+ strikethrough: f("\x1b[9m", "\x1b[29m"),
70
+
71
+ black: f("\x1b[30m", "\x1b[39m"),
72
+ red: f("\x1b[31m", "\x1b[39m"),
73
+ green: f("\x1b[32m", "\x1b[39m"),
74
+ yellow: f("\x1b[33m", "\x1b[39m"),
75
+ blue: f("\x1b[34m", "\x1b[39m"),
76
+ magenta: f("\x1b[35m", "\x1b[39m"),
77
+ cyan: f("\x1b[36m", "\x1b[39m"),
78
+ white: f("\x1b[37m", "\x1b[39m"),
79
+ gray: f("\x1b[90m", "\x1b[39m"),
80
+
81
+ bgBlack: f("\x1b[40m", "\x1b[49m"),
82
+ bgRed: f("\x1b[41m", "\x1b[49m"),
83
+ bgGreen: f("\x1b[42m", "\x1b[49m"),
84
+ bgYellow: f("\x1b[43m", "\x1b[49m"),
85
+ bgBlue: f("\x1b[44m", "\x1b[49m"),
86
+ bgMagenta: f("\x1b[45m", "\x1b[49m"),
87
+ bgCyan: f("\x1b[46m", "\x1b[49m"),
88
+ bgWhite: f("\x1b[47m", "\x1b[49m"),
89
+
90
+ blackBright: f("\x1b[90m", "\x1b[39m"),
91
+ redBright: f("\x1b[91m", "\x1b[39m"),
92
+ greenBright: f("\x1b[92m", "\x1b[39m"),
93
+ yellowBright: f("\x1b[93m", "\x1b[39m"),
94
+ blueBright: f("\x1b[94m", "\x1b[39m"),
95
+ magentaBright: f("\x1b[95m", "\x1b[39m"),
96
+ cyanBright: f("\x1b[96m", "\x1b[39m"),
97
+ whiteBright: f("\x1b[97m", "\x1b[39m"),
98
+
99
+ bgBlackBright: f("\x1b[100m", "\x1b[49m"),
100
+ bgRedBright: f("\x1b[101m", "\x1b[49m"),
101
+ bgGreenBright: f("\x1b[102m", "\x1b[49m"),
102
+ bgYellowBright: f("\x1b[103m", "\x1b[49m"),
103
+ bgBlueBright: f("\x1b[104m", "\x1b[49m"),
104
+ bgMagentaBright: f("\x1b[105m", "\x1b[49m"),
105
+ bgCyanBright: f("\x1b[106m", "\x1b[49m"),
106
+ bgWhiteBright: f("\x1b[107m", "\x1b[49m"),
123
107
  }
124
108
  };
125
109
 
@@ -164,7 +148,7 @@ function initReplaceEnv(config) {
164
148
  } else {
165
149
  if (envPrefix.some((prefix) => key.startsWith(prefix))) {
166
150
  const relativeHtml = vite.normalizePath(
167
- require$$0$1.relative(config.root, filename)
151
+ require$$0.relative(config.root, filename)
168
152
  );
169
153
  config.logger.warn(
170
154
  colors.yellow(
@@ -181,14 +165,14 @@ function initReplaceEnv(config) {
181
165
  }
182
166
 
183
167
  function writeFile(file, data) {
184
- require$$0$2.mkdirSync(require$$0$1.dirname(file), { recursive: true });
185
- require$$0$2.writeFileSync(file, data);
168
+ require$$0$1.mkdirSync(require$$0.dirname(file), { recursive: true });
169
+ require$$0$1.writeFileSync(file, data);
186
170
  }
187
171
 
188
172
  const phpTagPattern = /<\?(?:php|).+?(\?>|$)/gis;
189
173
  function escapePHP({ inputFile, config }) {
190
174
  const replaceEnv = initReplaceEnv(config);
191
- const input = require$$0$2.readFileSync(inputFile, "utf-8").toString();
175
+ const input = require$$0$1.readFileSync(inputFile, "utf-8").toString();
192
176
  const phpCodes = {};
193
177
  const isJS = inputFile.includes(".js") || inputFile.includes(".ts");
194
178
  const isML = inputFile.includes(".php") || inputFile.includes(".htm");
@@ -243,7 +227,7 @@ function start(root) {
243
227
  }
244
228
  function stop() {
245
229
  if (globalThis.php) {
246
- globalThis.php.stdin?.end();
230
+ globalThis.php.stdin?.destroy();
247
231
  globalThis.php.stdout?.destroy();
248
232
  globalThis.php.stderr?.destroy();
249
233
  if (globalThis.php.kill()) {
@@ -322,8 +306,8 @@ var path$9 = {};
322
306
 
323
307
  Object.defineProperty(path$9, "__esModule", { value: true });
324
308
  path$9.convertPosixPathToPattern = path$9.convertWindowsPathToPattern = path$9.convertPathToPattern = path$9.escapePosixPath = path$9.escapeWindowsPath = path$9.escape = path$9.removeLeadingDotSegment = path$9.makeAbsolute = path$9.unixify = void 0;
325
- const os = require$$0__default$1;
326
- const path$8 = require$$0__default$2;
309
+ const os = require$$0__default;
310
+ const path$8 = require$$0__default$1;
327
311
  const IS_WINDOWS_PLATFORM = os.platform() === 'win32';
328
312
  const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2; // ./ or .\\
329
313
  /**
@@ -563,8 +547,8 @@ var isGlob$1 = function isGlob(str, options) {
563
547
  };
564
548
 
565
549
  var isGlob = isGlob$1;
566
- var pathPosixDirname = require$$0__default$2.posix.dirname;
567
- var isWin32 = require$$0__default$1.platform() === 'win32';
550
+ var pathPosixDirname = require$$0__default$1.posix.dirname;
551
+ var isWin32 = require$$0__default.platform() === 'win32';
568
552
 
569
553
  var slash = '/';
570
554
  var backslash = /\\/g;
@@ -1060,7 +1044,7 @@ var toRegexRange_1 = toRegexRange$1;
1060
1044
  * Licensed under the MIT License.
1061
1045
  */
1062
1046
 
1063
- const util$1 = require$$0__default$3;
1047
+ const util$1 = require$$0__default$2;
1064
1048
  const toRegexRange = toRegexRange_1;
1065
1049
 
1066
1050
  const isObject$1 = val => val !== null && typeof val === 'object' && !Array.isArray(val);
@@ -2025,7 +2009,7 @@ var braces_1 = braces$1;
2025
2009
 
2026
2010
  var utils$f = {};
2027
2011
 
2028
- const path$7 = require$$0__default$2;
2012
+ const path$7 = require$$0__default$1;
2029
2013
  const WIN_SLASH = '\\\\/';
2030
2014
  const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
2031
2015
 
@@ -2205,7 +2189,7 @@ var constants$3 = {
2205
2189
 
2206
2190
  (function (exports) {
2207
2191
 
2208
- const path = require$$0__default$2;
2192
+ const path = require$$0__default$1;
2209
2193
  const win32 = process.platform === 'win32';
2210
2194
  const {
2211
2195
  REGEX_BACKSLASH,
@@ -3749,7 +3733,7 @@ parse$1.fastpaths = (input, options) => {
3749
3733
 
3750
3734
  var parse_1 = parse$1;
3751
3735
 
3752
- const path$6 = require$$0__default$2;
3736
+ const path$6 = require$$0__default$1;
3753
3737
  const scan = scan_1;
3754
3738
  const parse = parse_1;
3755
3739
  const utils$c = utils$f;
@@ -4092,7 +4076,7 @@ var picomatch_1 = picomatch$2;
4092
4076
 
4093
4077
  var picomatch$1 = picomatch_1;
4094
4078
 
4095
- const util = require$$0__default$3;
4079
+ const util = require$$0__default$2;
4096
4080
  const braces = braces_1;
4097
4081
  const picomatch = picomatch$1;
4098
4082
  const utils$b = utils$f;
@@ -4560,7 +4544,7 @@ var micromatch_1 = micromatch$1;
4560
4544
 
4561
4545
  Object.defineProperty(pattern$1, "__esModule", { value: true });
4562
4546
  pattern$1.removeDuplicateSlashes = pattern$1.matchAny = pattern$1.convertPatternsToRe = pattern$1.makeRe = pattern$1.getPatternParts = pattern$1.expandBraceExpansion = pattern$1.expandPatternsWithBraceExpansion = pattern$1.isAffectDepthOfReadingPattern = pattern$1.endsWithSlashGlobStar = pattern$1.hasGlobStar = pattern$1.getBaseDirectory = pattern$1.isPatternRelatedToParentDirectory = pattern$1.getPatternsOutsideCurrentDirectory = pattern$1.getPatternsInsideCurrentDirectory = pattern$1.getPositivePatterns = pattern$1.getNegativePatterns = pattern$1.isPositivePattern = pattern$1.isNegativePattern = pattern$1.convertToNegativePattern = pattern$1.convertToPositivePattern = pattern$1.isDynamicPattern = pattern$1.isStaticPattern = void 0;
4563
- const path$5 = require$$0__default$2;
4547
+ const path$5 = require$$0__default$1;
4564
4548
  const globParent = globParent$1;
4565
4549
  const micromatch = micromatch_1;
4566
4550
  const GLOBSTAR = '**';
@@ -4755,7 +4739,7 @@ var stream$4 = {};
4755
4739
  * Copyright (c) 2014-2020 Teambition
4756
4740
  * Licensed under the MIT license.
4757
4741
  */
4758
- const Stream = require$$0__default$4;
4742
+ const Stream = require$$0__default$3;
4759
4743
  const PassThrough = Stream.PassThrough;
4760
4744
  const slice = Array.prototype.slice;
4761
4745
 
@@ -5135,7 +5119,7 @@ var fs$5 = {};
5135
5119
  (function (exports) {
5136
5120
  Object.defineProperty(exports, "__esModule", { value: true });
5137
5121
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
5138
- const fs = require$$0__default$5;
5122
+ const fs = require$$0__default$4;
5139
5123
  exports.FILE_SYSTEM_ADAPTER = {
5140
5124
  lstat: fs.lstat,
5141
5125
  stat: fs.stat,
@@ -5486,7 +5470,7 @@ var fs$1 = {};
5486
5470
  (function (exports) {
5487
5471
  Object.defineProperty(exports, "__esModule", { value: true });
5488
5472
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
5489
- const fs = require$$0__default$5;
5473
+ const fs = require$$0__default$4;
5490
5474
  exports.FILE_SYSTEM_ADAPTER = {
5491
5475
  lstat: fs.lstat,
5492
5476
  stat: fs.stat,
@@ -5505,7 +5489,7 @@ var fs$1 = {};
5505
5489
  } (fs$1));
5506
5490
 
5507
5491
  Object.defineProperty(settings$2, "__esModule", { value: true });
5508
- const path$3 = require$$0__default$2;
5492
+ const path$3 = require$$0__default$1;
5509
5493
  const fsStat$3 = out$1;
5510
5494
  const fs = fs$1;
5511
5495
  let Settings$1 = class Settings {
@@ -5947,7 +5931,7 @@ let Reader$1 = class Reader {
5947
5931
  reader$1.default = Reader$1;
5948
5932
 
5949
5933
  Object.defineProperty(async$4, "__esModule", { value: true });
5950
- const events_1 = require$$0__default$6;
5934
+ const events_1 = require$$0__default$5;
5951
5935
  const fsScandir$2 = out$2;
5952
5936
  const fastq = queueExports;
5953
5937
  const common$1 = common$3;
@@ -6076,7 +6060,7 @@ function callSuccessCallback(callback, entries) {
6076
6060
  var stream$2 = {};
6077
6061
 
6078
6062
  Object.defineProperty(stream$2, "__esModule", { value: true });
6079
- const stream_1$5 = require$$0__default$4;
6063
+ const stream_1$5 = require$$0__default$3;
6080
6064
  const async_1$3 = async$4;
6081
6065
  class StreamProvider {
6082
6066
  constructor(_root, _settings) {
@@ -6189,7 +6173,7 @@ sync$3.default = SyncProvider;
6189
6173
  var settings$1 = {};
6190
6174
 
6191
6175
  Object.defineProperty(settings$1, "__esModule", { value: true });
6192
- const path$2 = require$$0__default$2;
6176
+ const path$2 = require$$0__default$1;
6193
6177
  const fsScandir = out$2;
6194
6178
  class Settings {
6195
6179
  constructor(_options = {}) {
@@ -6251,7 +6235,7 @@ function getSettings(settingsOrOptions = {}) {
6251
6235
  var reader = {};
6252
6236
 
6253
6237
  Object.defineProperty(reader, "__esModule", { value: true });
6254
- const path$1 = require$$0__default$2;
6238
+ const path$1 = require$$0__default$1;
6255
6239
  const fsStat$2 = out$1;
6256
6240
  const utils$6 = utils$k;
6257
6241
  class Reader {
@@ -6286,7 +6270,7 @@ reader.default = Reader;
6286
6270
  var stream$1 = {};
6287
6271
 
6288
6272
  Object.defineProperty(stream$1, "__esModule", { value: true });
6289
- const stream_1$3 = require$$0__default$4;
6273
+ const stream_1$3 = require$$0__default$3;
6290
6274
  const fsStat$1 = out$1;
6291
6275
  const fsWalk$2 = out$3;
6292
6276
  const reader_1$2 = reader;
@@ -6639,7 +6623,7 @@ class EntryTransformer {
6639
6623
  entry.default = EntryTransformer;
6640
6624
 
6641
6625
  Object.defineProperty(provider, "__esModule", { value: true });
6642
- const path = require$$0__default$2;
6626
+ const path = require$$0__default$1;
6643
6627
  const deep_1 = deep;
6644
6628
  const entry_1 = entry$1;
6645
6629
  const error_1 = error;
@@ -6712,7 +6696,7 @@ async$7.default = ProviderAsync;
6712
6696
  var stream = {};
6713
6697
 
6714
6698
  Object.defineProperty(stream, "__esModule", { value: true });
6715
- const stream_1$1 = require$$0__default$4;
6699
+ const stream_1$1 = require$$0__default$3;
6716
6700
  const stream_2 = stream$1;
6717
6701
  const provider_1$1 = provider;
6718
6702
  class ProviderStream extends provider_1$1.default {
@@ -6817,8 +6801,8 @@ var settings = {};
6817
6801
  (function (exports) {
6818
6802
  Object.defineProperty(exports, "__esModule", { value: true });
6819
6803
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
6820
- const fs = require$$0__default$5;
6821
- const os = require$$0__default$1;
6804
+ const fs = require$$0__default$4;
6805
+ const os = require$$0__default;
6822
6806
  /**
6823
6807
  * The `os.cpus` method can return zero. We expect the number of cores to be greater than zero.
6824
6808
  * https://github.com/nodejs/node/blob/7faeddf23a98c53896f8b574a6e66589e8fb1eb8/lib/os.js#L106-L107
@@ -7011,7 +6995,7 @@ function usePHP(cfg = {}) {
7011
6995
  return `${tempDir}/${file}.html`;
7012
6996
  }
7013
6997
  function cleanupTemp() {
7014
- require$$0$2.rmSync(tempDir, { recursive: true, force: true });
6998
+ require$$0$1.rmSync(tempDir, { recursive: true, force: true });
7015
6999
  }
7016
7000
  function onExit() {
7017
7001
  if (config?.command === "serve") {
@@ -7036,7 +7020,7 @@ function usePHP(cfg = {}) {
7036
7020
  enforce: "post",
7037
7021
  config(config2, env) {
7038
7022
  const gitIgnoreFile = `${tempDir}/.gitignore`;
7039
- if (!require$$0$2.existsSync(gitIgnoreFile)) {
7023
+ if (!require$$0$1.existsSync(gitIgnoreFile)) {
7040
7024
  writeFile(gitIgnoreFile, "*\n**/*.php.html");
7041
7025
  }
7042
7026
  entries = [
@@ -7085,9 +7069,12 @@ function usePHP(cfg = {}) {
7085
7069
  phpServer.start(viteServer?.config.root);
7086
7070
  server.middlewares.use(async (req, res, next) => {
7087
7071
  try {
7088
- if (req.url && !["/@vite", "/@fs", "/@id/__x00__"].some(
7089
- (path) => req.url.startsWith(path)
7090
- )) {
7072
+ if (req.url && ![
7073
+ "/@vite",
7074
+ "/@fs",
7075
+ "/@id/__x00__",
7076
+ "/node_modules"
7077
+ ].some((path) => req.url.startsWith(path))) {
7091
7078
  req.on("error", (error) => {
7092
7079
  throw error;
7093
7080
  });
@@ -7114,7 +7101,7 @@ function usePHP(cfg = {}) {
7114
7101
  });
7115
7102
  if (entry2) {
7116
7103
  const tempFile = getTempFileName(entry2);
7117
- if (require$$0$2.existsSync(require$$0$1.resolve(tempFile))) {
7104
+ if (require$$0$1.existsSync(require$$0.resolve(tempFile))) {
7118
7105
  url.pathname = tempFile;
7119
7106
  url.port = phpServer.port.toString();
7120
7107
  url.searchParams.set(
@@ -7199,7 +7186,7 @@ function usePHP(cfg = {}) {
7199
7186
  },
7200
7187
  async handleHotUpdate({ server, file }) {
7201
7188
  const entry2 = entries.find(
7202
- (entryFile) => require$$0$1.resolve(entryFile) === file
7189
+ (entryFile) => require$$0.resolve(entryFile) === require$$0.resolve(file)
7203
7190
  );
7204
7191
  if (entry2) {
7205
7192
  const outputFile = getTempFileName(entry2);
@@ -7209,7 +7196,7 @@ function usePHP(cfg = {}) {
7209
7196
  }).write(outputFile);
7210
7197
  server.moduleGraph.invalidateAll();
7211
7198
  }
7212
- if (entry2 || !file.startsWith(require$$0$1.resolve(tempDir)) && file.includes(".php")) {
7199
+ if (entry2 || !file.startsWith(require$$0.resolve(tempDir)) && file.includes(".php")) {
7213
7200
  server.ws.send({
7214
7201
  type: "full-reload"
7215
7202
  });
package/dist/index.mjs CHANGED
@@ -1,14 +1,13 @@
1
- import require$$0$5, { mkdirSync, writeFileSync, readFileSync, existsSync, rmSync } from 'fs';
2
- import require$$0$2, { relative, dirname, resolve } from 'path';
1
+ import require$$0$4, { mkdirSync, writeFileSync, readFileSync, existsSync, rmSync } from 'fs';
2
+ import require$$0$1, { relative, dirname, resolve } from 'path';
3
3
  import { normalizePath } from 'vite';
4
- import require$$0 from 'tty';
5
4
  import http from 'node:http';
6
5
  import { spawn } from 'child_process';
7
6
  import { fileURLToPath } from 'url';
8
- import require$$0$1 from 'os';
9
- import require$$0$3 from 'util';
10
- import require$$0$4 from 'stream';
11
- import require$$0$6 from 'events';
7
+ import require$$0 from 'os';
8
+ import require$$0$2 from 'util';
9
+ import require$$0$3 from 'stream';
10
+ import require$$0$5 from 'events';
12
11
 
13
12
  function makeID() {
14
13
  return Date.now().toString(36) + Math.random() * 100;
@@ -20,35 +19,21 @@ function getDefaultExportFromCjs (x) {
20
19
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
21
20
  }
22
21
 
23
- function commonjsRequire(path) {
24
- throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
25
- }
26
-
27
22
  var picocolors = {exports: {}};
28
23
 
29
- let argv = process.argv || [],
30
- env = process.env;
24
+ let p = process || {}, argv = p.argv || [], env = p.env || {};
31
25
  let isColorSupported =
32
- !("NO_COLOR" in env || argv.includes("--no-color")) &&
33
- ("FORCE_COLOR" in env ||
34
- argv.includes("--color") ||
35
- process.platform === "win32" ||
36
- (commonjsRequire != null && require$$0.isatty(1) && env.TERM !== "dumb") ||
37
- "CI" in env);
38
-
39
- let formatter =
40
- (open, close, replace = open) =>
26
+ !(!!env.NO_COLOR || argv.includes("--no-color")) &&
27
+ (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || ((p.stdout || {}).isTTY && env.TERM !== "dumb") || !!env.CI);
28
+
29
+ let formatter = (open, close, replace = open) =>
41
30
  input => {
42
- let string = "" + input;
43
- let index = string.indexOf(close, open.length);
44
- return ~index
45
- ? open + replaceClose(string, close, replace, index) + close
46
- : open + string + close
31
+ let string = "" + input, index = string.indexOf(close, open.length);
32
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close
47
33
  };
48
34
 
49
35
  let replaceClose = (string, close, replace, index) => {
50
- let result = "";
51
- let cursor = 0;
36
+ let result = "", cursor = 0;
52
37
  do {
53
38
  result += string.substring(cursor, index) + replace;
54
39
  cursor = index + close.length;
@@ -58,54 +43,54 @@ let replaceClose = (string, close, replace, index) => {
58
43
  };
59
44
 
60
45
  let createColors = (enabled = isColorSupported) => {
61
- let init = enabled ? formatter : () => String;
46
+ let f = enabled ? formatter : () => String;
62
47
  return {
63
48
  isColorSupported: enabled,
64
- reset: init("\x1b[0m", "\x1b[0m"),
65
- bold: init("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
66
- dim: init("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
67
- italic: init("\x1b[3m", "\x1b[23m"),
68
- underline: init("\x1b[4m", "\x1b[24m"),
69
- inverse: init("\x1b[7m", "\x1b[27m"),
70
- hidden: init("\x1b[8m", "\x1b[28m"),
71
- strikethrough: init("\x1b[9m", "\x1b[29m"),
72
-
73
- black: init("\x1b[30m", "\x1b[39m"),
74
- red: init("\x1b[31m", "\x1b[39m"),
75
- green: init("\x1b[32m", "\x1b[39m"),
76
- yellow: init("\x1b[33m", "\x1b[39m"),
77
- blue: init("\x1b[34m", "\x1b[39m"),
78
- magenta: init("\x1b[35m", "\x1b[39m"),
79
- cyan: init("\x1b[36m", "\x1b[39m"),
80
- white: init("\x1b[37m", "\x1b[39m"),
81
- gray: init("\x1b[90m", "\x1b[39m"),
82
-
83
- bgBlack: init("\x1b[40m", "\x1b[49m"),
84
- bgRed: init("\x1b[41m", "\x1b[49m"),
85
- bgGreen: init("\x1b[42m", "\x1b[49m"),
86
- bgYellow: init("\x1b[43m", "\x1b[49m"),
87
- bgBlue: init("\x1b[44m", "\x1b[49m"),
88
- bgMagenta: init("\x1b[45m", "\x1b[49m"),
89
- bgCyan: init("\x1b[46m", "\x1b[49m"),
90
- bgWhite: init("\x1b[47m", "\x1b[49m"),
91
-
92
- blackBright: init("\x1b[90m", "\x1b[39m"),
93
- redBright: init("\x1b[91m", "\x1b[39m"),
94
- greenBright: init("\x1b[92m", "\x1b[39m"),
95
- yellowBright: init("\x1b[93m", "\x1b[39m"),
96
- blueBright: init("\x1b[94m", "\x1b[39m"),
97
- magentaBright: init("\x1b[95m", "\x1b[39m"),
98
- cyanBright: init("\x1b[96m", "\x1b[39m"),
99
- whiteBright: init("\x1b[97m", "\x1b[39m"),
100
-
101
- bgBlackBright: init("\x1b[100m","\x1b[49m"),
102
- bgRedBright: init("\x1b[101m","\x1b[49m"),
103
- bgGreenBright: init("\x1b[102m","\x1b[49m"),
104
- bgYellowBright: init("\x1b[103m","\x1b[49m"),
105
- bgBlueBright: init("\x1b[104m","\x1b[49m"),
106
- bgMagentaBright: init("\x1b[105m","\x1b[49m"),
107
- bgCyanBright: init("\x1b[106m","\x1b[49m"),
108
- bgWhiteBright: init("\x1b[107m","\x1b[49m"),
49
+ reset: f("\x1b[0m", "\x1b[0m"),
50
+ bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
51
+ dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
52
+ italic: f("\x1b[3m", "\x1b[23m"),
53
+ underline: f("\x1b[4m", "\x1b[24m"),
54
+ inverse: f("\x1b[7m", "\x1b[27m"),
55
+ hidden: f("\x1b[8m", "\x1b[28m"),
56
+ strikethrough: f("\x1b[9m", "\x1b[29m"),
57
+
58
+ black: f("\x1b[30m", "\x1b[39m"),
59
+ red: f("\x1b[31m", "\x1b[39m"),
60
+ green: f("\x1b[32m", "\x1b[39m"),
61
+ yellow: f("\x1b[33m", "\x1b[39m"),
62
+ blue: f("\x1b[34m", "\x1b[39m"),
63
+ magenta: f("\x1b[35m", "\x1b[39m"),
64
+ cyan: f("\x1b[36m", "\x1b[39m"),
65
+ white: f("\x1b[37m", "\x1b[39m"),
66
+ gray: f("\x1b[90m", "\x1b[39m"),
67
+
68
+ bgBlack: f("\x1b[40m", "\x1b[49m"),
69
+ bgRed: f("\x1b[41m", "\x1b[49m"),
70
+ bgGreen: f("\x1b[42m", "\x1b[49m"),
71
+ bgYellow: f("\x1b[43m", "\x1b[49m"),
72
+ bgBlue: f("\x1b[44m", "\x1b[49m"),
73
+ bgMagenta: f("\x1b[45m", "\x1b[49m"),
74
+ bgCyan: f("\x1b[46m", "\x1b[49m"),
75
+ bgWhite: f("\x1b[47m", "\x1b[49m"),
76
+
77
+ blackBright: f("\x1b[90m", "\x1b[39m"),
78
+ redBright: f("\x1b[91m", "\x1b[39m"),
79
+ greenBright: f("\x1b[92m", "\x1b[39m"),
80
+ yellowBright: f("\x1b[93m", "\x1b[39m"),
81
+ blueBright: f("\x1b[94m", "\x1b[39m"),
82
+ magentaBright: f("\x1b[95m", "\x1b[39m"),
83
+ cyanBright: f("\x1b[96m", "\x1b[39m"),
84
+ whiteBright: f("\x1b[97m", "\x1b[39m"),
85
+
86
+ bgBlackBright: f("\x1b[100m", "\x1b[49m"),
87
+ bgRedBright: f("\x1b[101m", "\x1b[49m"),
88
+ bgGreenBright: f("\x1b[102m", "\x1b[49m"),
89
+ bgYellowBright: f("\x1b[103m", "\x1b[49m"),
90
+ bgBlueBright: f("\x1b[104m", "\x1b[49m"),
91
+ bgMagentaBright: f("\x1b[105m", "\x1b[49m"),
92
+ bgCyanBright: f("\x1b[106m", "\x1b[49m"),
93
+ bgWhiteBright: f("\x1b[107m", "\x1b[49m"),
109
94
  }
110
95
  };
111
96
 
@@ -229,7 +214,7 @@ function start(root) {
229
214
  }
230
215
  function stop() {
231
216
  if (globalThis.php) {
232
- globalThis.php.stdin?.end();
217
+ globalThis.php.stdin?.destroy();
233
218
  globalThis.php.stdout?.destroy();
234
219
  globalThis.php.stderr?.destroy();
235
220
  if (globalThis.php.kill()) {
@@ -308,8 +293,8 @@ var path$9 = {};
308
293
 
309
294
  Object.defineProperty(path$9, "__esModule", { value: true });
310
295
  path$9.convertPosixPathToPattern = path$9.convertWindowsPathToPattern = path$9.convertPathToPattern = path$9.escapePosixPath = path$9.escapeWindowsPath = path$9.escape = path$9.removeLeadingDotSegment = path$9.makeAbsolute = path$9.unixify = void 0;
311
- const os = require$$0$1;
312
- const path$8 = require$$0$2;
296
+ const os = require$$0;
297
+ const path$8 = require$$0$1;
313
298
  const IS_WINDOWS_PLATFORM = os.platform() === 'win32';
314
299
  const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2; // ./ or .\\
315
300
  /**
@@ -549,8 +534,8 @@ var isGlob$1 = function isGlob(str, options) {
549
534
  };
550
535
 
551
536
  var isGlob = isGlob$1;
552
- var pathPosixDirname = require$$0$2.posix.dirname;
553
- var isWin32 = require$$0$1.platform() === 'win32';
537
+ var pathPosixDirname = require$$0$1.posix.dirname;
538
+ var isWin32 = require$$0.platform() === 'win32';
554
539
 
555
540
  var slash = '/';
556
541
  var backslash = /\\/g;
@@ -1046,7 +1031,7 @@ var toRegexRange_1 = toRegexRange$1;
1046
1031
  * Licensed under the MIT License.
1047
1032
  */
1048
1033
 
1049
- const util$1 = require$$0$3;
1034
+ const util$1 = require$$0$2;
1050
1035
  const toRegexRange = toRegexRange_1;
1051
1036
 
1052
1037
  const isObject$1 = val => val !== null && typeof val === 'object' && !Array.isArray(val);
@@ -2011,7 +1996,7 @@ var braces_1 = braces$1;
2011
1996
 
2012
1997
  var utils$f = {};
2013
1998
 
2014
- const path$7 = require$$0$2;
1999
+ const path$7 = require$$0$1;
2015
2000
  const WIN_SLASH = '\\\\/';
2016
2001
  const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
2017
2002
 
@@ -2191,7 +2176,7 @@ var constants$3 = {
2191
2176
 
2192
2177
  (function (exports) {
2193
2178
 
2194
- const path = require$$0$2;
2179
+ const path = require$$0$1;
2195
2180
  const win32 = process.platform === 'win32';
2196
2181
  const {
2197
2182
  REGEX_BACKSLASH,
@@ -3735,7 +3720,7 @@ parse$1.fastpaths = (input, options) => {
3735
3720
 
3736
3721
  var parse_1 = parse$1;
3737
3722
 
3738
- const path$6 = require$$0$2;
3723
+ const path$6 = require$$0$1;
3739
3724
  const scan = scan_1;
3740
3725
  const parse = parse_1;
3741
3726
  const utils$c = utils$f;
@@ -4078,7 +4063,7 @@ var picomatch_1 = picomatch$2;
4078
4063
 
4079
4064
  var picomatch$1 = picomatch_1;
4080
4065
 
4081
- const util = require$$0$3;
4066
+ const util = require$$0$2;
4082
4067
  const braces = braces_1;
4083
4068
  const picomatch = picomatch$1;
4084
4069
  const utils$b = utils$f;
@@ -4546,7 +4531,7 @@ var micromatch_1 = micromatch$1;
4546
4531
 
4547
4532
  Object.defineProperty(pattern$1, "__esModule", { value: true });
4548
4533
  pattern$1.removeDuplicateSlashes = pattern$1.matchAny = pattern$1.convertPatternsToRe = pattern$1.makeRe = pattern$1.getPatternParts = pattern$1.expandBraceExpansion = pattern$1.expandPatternsWithBraceExpansion = pattern$1.isAffectDepthOfReadingPattern = pattern$1.endsWithSlashGlobStar = pattern$1.hasGlobStar = pattern$1.getBaseDirectory = pattern$1.isPatternRelatedToParentDirectory = pattern$1.getPatternsOutsideCurrentDirectory = pattern$1.getPatternsInsideCurrentDirectory = pattern$1.getPositivePatterns = pattern$1.getNegativePatterns = pattern$1.isPositivePattern = pattern$1.isNegativePattern = pattern$1.convertToNegativePattern = pattern$1.convertToPositivePattern = pattern$1.isDynamicPattern = pattern$1.isStaticPattern = void 0;
4549
- const path$5 = require$$0$2;
4534
+ const path$5 = require$$0$1;
4550
4535
  const globParent = globParent$1;
4551
4536
  const micromatch = micromatch_1;
4552
4537
  const GLOBSTAR = '**';
@@ -4741,7 +4726,7 @@ var stream$4 = {};
4741
4726
  * Copyright (c) 2014-2020 Teambition
4742
4727
  * Licensed under the MIT license.
4743
4728
  */
4744
- const Stream = require$$0$4;
4729
+ const Stream = require$$0$3;
4745
4730
  const PassThrough = Stream.PassThrough;
4746
4731
  const slice = Array.prototype.slice;
4747
4732
 
@@ -5121,7 +5106,7 @@ var fs$5 = {};
5121
5106
  (function (exports) {
5122
5107
  Object.defineProperty(exports, "__esModule", { value: true });
5123
5108
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
5124
- const fs = require$$0$5;
5109
+ const fs = require$$0$4;
5125
5110
  exports.FILE_SYSTEM_ADAPTER = {
5126
5111
  lstat: fs.lstat,
5127
5112
  stat: fs.stat,
@@ -5472,7 +5457,7 @@ var fs$1 = {};
5472
5457
  (function (exports) {
5473
5458
  Object.defineProperty(exports, "__esModule", { value: true });
5474
5459
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
5475
- const fs = require$$0$5;
5460
+ const fs = require$$0$4;
5476
5461
  exports.FILE_SYSTEM_ADAPTER = {
5477
5462
  lstat: fs.lstat,
5478
5463
  stat: fs.stat,
@@ -5491,7 +5476,7 @@ var fs$1 = {};
5491
5476
  } (fs$1));
5492
5477
 
5493
5478
  Object.defineProperty(settings$2, "__esModule", { value: true });
5494
- const path$3 = require$$0$2;
5479
+ const path$3 = require$$0$1;
5495
5480
  const fsStat$3 = out$1;
5496
5481
  const fs = fs$1;
5497
5482
  let Settings$1 = class Settings {
@@ -5933,7 +5918,7 @@ let Reader$1 = class Reader {
5933
5918
  reader$1.default = Reader$1;
5934
5919
 
5935
5920
  Object.defineProperty(async$4, "__esModule", { value: true });
5936
- const events_1 = require$$0$6;
5921
+ const events_1 = require$$0$5;
5937
5922
  const fsScandir$2 = out$2;
5938
5923
  const fastq = queueExports;
5939
5924
  const common$1 = common$3;
@@ -6062,7 +6047,7 @@ function callSuccessCallback(callback, entries) {
6062
6047
  var stream$2 = {};
6063
6048
 
6064
6049
  Object.defineProperty(stream$2, "__esModule", { value: true });
6065
- const stream_1$5 = require$$0$4;
6050
+ const stream_1$5 = require$$0$3;
6066
6051
  const async_1$3 = async$4;
6067
6052
  class StreamProvider {
6068
6053
  constructor(_root, _settings) {
@@ -6175,7 +6160,7 @@ sync$3.default = SyncProvider;
6175
6160
  var settings$1 = {};
6176
6161
 
6177
6162
  Object.defineProperty(settings$1, "__esModule", { value: true });
6178
- const path$2 = require$$0$2;
6163
+ const path$2 = require$$0$1;
6179
6164
  const fsScandir = out$2;
6180
6165
  class Settings {
6181
6166
  constructor(_options = {}) {
@@ -6237,7 +6222,7 @@ function getSettings(settingsOrOptions = {}) {
6237
6222
  var reader = {};
6238
6223
 
6239
6224
  Object.defineProperty(reader, "__esModule", { value: true });
6240
- const path$1 = require$$0$2;
6225
+ const path$1 = require$$0$1;
6241
6226
  const fsStat$2 = out$1;
6242
6227
  const utils$6 = utils$k;
6243
6228
  class Reader {
@@ -6272,7 +6257,7 @@ reader.default = Reader;
6272
6257
  var stream$1 = {};
6273
6258
 
6274
6259
  Object.defineProperty(stream$1, "__esModule", { value: true });
6275
- const stream_1$3 = require$$0$4;
6260
+ const stream_1$3 = require$$0$3;
6276
6261
  const fsStat$1 = out$1;
6277
6262
  const fsWalk$2 = out$3;
6278
6263
  const reader_1$2 = reader;
@@ -6625,7 +6610,7 @@ class EntryTransformer {
6625
6610
  entry.default = EntryTransformer;
6626
6611
 
6627
6612
  Object.defineProperty(provider, "__esModule", { value: true });
6628
- const path = require$$0$2;
6613
+ const path = require$$0$1;
6629
6614
  const deep_1 = deep;
6630
6615
  const entry_1 = entry$1;
6631
6616
  const error_1 = error;
@@ -6698,7 +6683,7 @@ async$7.default = ProviderAsync;
6698
6683
  var stream = {};
6699
6684
 
6700
6685
  Object.defineProperty(stream, "__esModule", { value: true });
6701
- const stream_1$1 = require$$0$4;
6686
+ const stream_1$1 = require$$0$3;
6702
6687
  const stream_2 = stream$1;
6703
6688
  const provider_1$1 = provider;
6704
6689
  class ProviderStream extends provider_1$1.default {
@@ -6803,8 +6788,8 @@ var settings = {};
6803
6788
  (function (exports) {
6804
6789
  Object.defineProperty(exports, "__esModule", { value: true });
6805
6790
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
6806
- const fs = require$$0$5;
6807
- const os = require$$0$1;
6791
+ const fs = require$$0$4;
6792
+ const os = require$$0;
6808
6793
  /**
6809
6794
  * The `os.cpus` method can return zero. We expect the number of cores to be greater than zero.
6810
6795
  * https://github.com/nodejs/node/blob/7faeddf23a98c53896f8b574a6e66589e8fb1eb8/lib/os.js#L106-L107
@@ -7071,9 +7056,12 @@ function usePHP(cfg = {}) {
7071
7056
  phpServer.start(viteServer?.config.root);
7072
7057
  server.middlewares.use(async (req, res, next) => {
7073
7058
  try {
7074
- if (req.url && !["/@vite", "/@fs", "/@id/__x00__"].some(
7075
- (path) => req.url.startsWith(path)
7076
- )) {
7059
+ if (req.url && ![
7060
+ "/@vite",
7061
+ "/@fs",
7062
+ "/@id/__x00__",
7063
+ "/node_modules"
7064
+ ].some((path) => req.url.startsWith(path))) {
7077
7065
  req.on("error", (error) => {
7078
7066
  throw error;
7079
7067
  });
@@ -7185,7 +7173,7 @@ function usePHP(cfg = {}) {
7185
7173
  },
7186
7174
  async handleHotUpdate({ server, file }) {
7187
7175
  const entry2 = entries.find(
7188
- (entryFile) => resolve(entryFile) === file
7176
+ (entryFile) => resolve(entryFile) === resolve(file)
7189
7177
  );
7190
7178
  if (entry2) {
7191
7179
  const outputFile = getTempFileName(entry2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-php",
3
- "version": "1.0.65",
3
+ "version": "1.0.66",
4
4
  "author": "Nikita 'donnikitos' Nitichevski <me@donnikitos.com> (https://donnikitos.com/)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,12 +9,12 @@
9
9
  "main": "./dist/index.mjs",
10
10
  "module": "./dist/index.mjs",
11
11
  "devDependencies": {
12
- "@types/node": "^22.5.4",
12
+ "@types/node": "^22.9.0",
13
13
  "fast-glob": "^3.3.2",
14
- "picocolors": "^1.0.1",
15
- "typescript": "^5.6.2",
14
+ "picocolors": "^1.1.1",
15
+ "typescript": "^5.6.3",
16
16
  "unbuild": "^2.0.0",
17
- "vite": "^5.4.3"
17
+ "vite": "^5.4.10"
18
18
  },
19
19
  "exports": {
20
20
  ".": {