textbrowser 0.42.0 → 0.42.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "textbrowser",
3
- "version": "0.42.0",
3
+ "version": "0.42.3",
4
4
  "description": "Multilinear text browser",
5
5
  "type": "module",
6
6
  "main": "dist/index-es.min.js",
@@ -44,7 +44,7 @@
44
44
  "node-fetch": "^2.6.6",
45
45
  "node-serviceworker": "^0.3.0",
46
46
  "rtl-detect": "1.0.4",
47
- "simple-get-json": "8.2.0"
47
+ "simple-get-json": "^8.2.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@babel/eslint-parser": "^7.17.0",
@@ -56,6 +56,7 @@
56
56
  "@rollup/plugin-commonjs": "^21.0.3",
57
57
  "@rollup/plugin-json": "^4.1.0",
58
58
  "@rollup/plugin-node-resolve": "^13.1.3",
59
+ "@stadtlandnetz/rollup-plugin-postprocess": "^1.1.0",
59
60
  "ajv": "8.11.0",
60
61
  "babel-plugin-dynamic-import-node": "^2.3.3",
61
62
  "chai": "^4.3.6",
@@ -81,7 +82,7 @@
81
82
  "mocha": "^9.2.2",
82
83
  "npm-run-all": "^4.1.5",
83
84
  "open-cli": "^7.0.1",
84
- "rollup": "2.70.1",
85
+ "rollup": "^2.70.1",
85
86
  "rollup-plugin-re": "^1.0.7",
86
87
  "rollup-plugin-terser": "^7.0.2"
87
88
  },
@@ -128,7 +128,7 @@ export const getWorkData = async function ({
128
128
  ? Promise.all(
129
129
  pluginPaths.map((pluginPath) => {
130
130
  // eslint-disable-next-line no-unsanitized/method
131
- return import(pluginPath);
131
+ return import(typeof process === 'undefined' ? pluginPath : '../' + pluginPath);
132
132
  })
133
133
  )
134
134
  : null
package/server/main.js CHANGED
@@ -123,7 +123,7 @@ const srv = http.createServer(async (req, res) => {
123
123
  };
124
124
  if (userParams.expressServer) {
125
125
  // eslint-disable-next-line no-unsanitized/method -- Site-specified plugin
126
- const server = import(userParams.expressServer)();
126
+ const server = (await import(userParams.expressServer)).default();
127
127
  server.get('*', staticServer);
128
128
  server(req, res);
129
129
  return;