chemicaljs 1.4.2 → 1.4.3

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.
Files changed (2) hide show
  1. package/index.js +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,6 +1,7 @@
1
- import { resolve } from "node:path";
1
+ import { resolve, dirname } from "node:path";
2
2
  import { readFileSync } from "node:fs";
3
3
  import { createServer } from "node:http";
4
+ import { fileURLToPath } from 'node:url';
4
5
  import express from "express";
5
6
  import wisp from "wisp-server-node";
6
7
  import { baremuxPath } from "@mercuryworkshop/bare-mux/node";
@@ -10,7 +11,7 @@ import { uvPath } from "@titaniumnetwork-dev/ultraviolet";
10
11
  import { scramjetPath } from "@mercuryworkshop/scramjet";
11
12
  import createRammerhead from "rammerhead/src/server/index.js";
12
13
 
13
- const __dirname = new URL(".", import.meta.url).pathname;
14
+ const __dirname = dirname(fileURLToPath(import.meta.url));
14
15
 
15
16
  class ChemicalServer {
16
17
  constructor(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chemicaljs",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Easily create your own web proxy with no experience required.",
5
5
  "repository": {
6
6
  "type": "git",