@unocss/inspector 0.45.24 → 0.45.26

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/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ const path = require('path');
3
4
  const url = require('url');
4
- const pathe = require('pathe');
5
5
  const sirv = require('sirv');
6
6
  const gzipSize = require('gzip-size');
7
7
 
@@ -10,11 +10,11 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
10
10
  const sirv__default = /*#__PURE__*/_interopDefaultLegacy(sirv);
11
11
  const gzipSize__default = /*#__PURE__*/_interopDefaultLegacy(gzipSize);
12
12
 
13
- const _dirname = typeof __dirname !== "undefined" ? __dirname : pathe.dirname(url.fileURLToPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index.cjs', document.baseURI).href))));
13
+ const _dirname = typeof __dirname !== "undefined" ? __dirname : path.dirname(url.fileURLToPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index.cjs', document.baseURI).href))));
14
14
  function UnocssInspector(ctx) {
15
15
  async function configureServer(server) {
16
16
  await ctx.ready;
17
- server.middlewares.use("/__unocss", sirv__default(pathe.resolve(_dirname, "../dist/client"), {
17
+ server.middlewares.use("/__unocss", sirv__default(path.resolve(_dirname, "../dist/client"), {
18
18
  single: true,
19
19
  dev: true
20
20
  }));
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
+ import { dirname, resolve } from 'path';
1
2
  import { fileURLToPath } from 'url';
2
- import { dirname, resolve } from 'pathe';
3
3
  import sirv from 'sirv';
4
4
  import gzipSize from 'gzip-size';
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/inspector",
3
- "version": "0.45.24",
3
+ "version": "0.45.26",
4
4
  "description": "The inspector UI for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -35,7 +35,6 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "gzip-size": "^6.0.0",
38
- "pathe": "^0.3.7",
39
38
  "sirv": "^2.0.2"
40
39
  },
41
40
  "scripts": {