textbrowser 0.52.0 → 0.52.1
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/CHANGES.md +4 -0
- package/package.json +15 -15
- package/server/main.js +1 -2
package/CHANGES.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "textbrowser",
|
|
3
|
-
"version": "0.52.
|
|
3
|
+
"version": "0.52.1",
|
|
4
4
|
"description": "Multilinear text browser",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index-es.min.js",
|
|
@@ -14,6 +14,19 @@
|
|
|
14
14
|
"bin": {
|
|
15
15
|
"textbrowser": "./server/main.js"
|
|
16
16
|
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"tsc": "tsc",
|
|
19
|
+
"server": "./server/main.js --allowPlugins --namespace=test",
|
|
20
|
+
"start": "static -p 8081",
|
|
21
|
+
"rollup": "rollup -c",
|
|
22
|
+
"lint": "npm run eslint",
|
|
23
|
+
"eslint": "eslint .",
|
|
24
|
+
"mocha": "node_modules/.bin/_mocha --require test/bootstrap/node.js --require chai/register-assert.js test/textbrowserTests.js",
|
|
25
|
+
"node": "npm run eslint && npm run rollup && npm run mocha",
|
|
26
|
+
"open-test": "open-cli http://127.0.0.1:8081/test/",
|
|
27
|
+
"start-open-test": "run-p start open-test",
|
|
28
|
+
"test": "npm run eslint && npm run rollup && npm run start-open-test"
|
|
29
|
+
},
|
|
17
30
|
"browserslist": [
|
|
18
31
|
"defaults, not op_mini all"
|
|
19
32
|
],
|
|
@@ -79,18 +92,5 @@
|
|
|
79
92
|
"rollup-plugin-re": "^1.0.7",
|
|
80
93
|
"textbrowser-data-schemas": "^0.2.0",
|
|
81
94
|
"typescript": "^5.9.3"
|
|
82
|
-
},
|
|
83
|
-
"scripts": {
|
|
84
|
-
"tsc": "tsc",
|
|
85
|
-
"server": "./server/main.js --allowPlugins --namespace=test",
|
|
86
|
-
"start": "static -p 8081",
|
|
87
|
-
"rollup": "rollup -c",
|
|
88
|
-
"lint": "npm run eslint",
|
|
89
|
-
"eslint": "eslint .",
|
|
90
|
-
"mocha": "node_modules/.bin/_mocha --require test/bootstrap/node.js --require chai/register-assert.js test/textbrowserTests.js",
|
|
91
|
-
"node": "npm run eslint && npm run rollup && npm run mocha",
|
|
92
|
-
"open-test": "open-cli http://127.0.0.1:8081/test/",
|
|
93
|
-
"start-open-test": "run-p start open-test",
|
|
94
|
-
"test": "npm run eslint && npm run rollup && npm run start-open-test"
|
|
95
95
|
}
|
|
96
|
-
}
|
|
96
|
+
}
|
package/server/main.js
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
/* eslint-env node -- Environment here */
|
|
4
4
|
import http from 'node:http';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
import statik from '@brettz9/node-static';
|
|
6
|
+
import * as statik from '@node-static/node-static';
|
|
8
7
|
import fetch from 'node-fetch';
|
|
9
8
|
// @ts-expect-error Todo: Needs Types
|
|
10
9
|
import commandLineArgs from 'command-line-args';
|