s4d 0.2.0 → 0.2.2
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/LICENSE.md +1 -1
- package/dist/DevServer.d.ts +2 -2
- package/dist/DevServer.js +3 -3
- package/package.json +4 -4
package/LICENSE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright 2024 Morris Brodersen <mb@morrisbrodersen.de>
|
|
1
|
+
Copyright 2024-2025 Morris Brodersen <mb@morrisbrodersen.de>
|
|
2
2
|
|
|
3
3
|
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
4
4
|
with or without fee is hereby granted, provided that the above copyright notice
|
package/dist/DevServer.d.ts
CHANGED
package/dist/DevServer.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as fs from 'fs';
|
|
2
|
-
import * as http from 'http';
|
|
3
1
|
import mime from 'mime';
|
|
4
|
-
import * as
|
|
2
|
+
import * as fs from 'node:fs';
|
|
3
|
+
import * as http from 'node:http';
|
|
4
|
+
import * as path from 'node:path';
|
|
5
5
|
import WebSocket, { WebSocketServer } from 'ws';
|
|
6
6
|
export class DevServer {
|
|
7
7
|
webroot;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "s4d",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Minimal web development server with live reload",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"local",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=20"
|
|
23
23
|
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist"
|
|
26
|
+
],
|
|
24
27
|
"exports": "./dist/index.js",
|
|
25
28
|
"bin": {
|
|
26
29
|
"s4d": "dist/bin.js"
|
|
27
30
|
},
|
|
28
|
-
"files": [
|
|
29
|
-
"dist"
|
|
30
|
-
],
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "tsc --project tsconfig.build.json",
|
|
33
33
|
"format": "prettier --write .",
|