@e22m4u/js-http-static-router 0.2.0 → 0.2.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/dist/cjs/index.cjs +3 -3
- package/package.json +7 -7
- package/src/http-static-router.js +3 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -207,7 +207,7 @@ var HttpStaticRouter = class extends import_js_service.DebuggableService {
|
|
|
207
207
|
*/
|
|
208
208
|
constructor(containerOrOptions, options) {
|
|
209
209
|
const debugOptions = {
|
|
210
|
-
|
|
210
|
+
noGlobalNamespace: true,
|
|
211
211
|
namespace: "jsHttpStaticRouter"
|
|
212
212
|
};
|
|
213
213
|
if ((0, import_js_service.isServiceContainer)(containerOrOptions)) {
|
|
@@ -219,13 +219,13 @@ var HttpStaticRouter = class extends import_js_service.DebuggableService {
|
|
|
219
219
|
containerOrOptions
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
|
-
super(
|
|
222
|
+
super(debugOptions);
|
|
223
223
|
if (options === void 0) {
|
|
224
224
|
options = containerOrOptions;
|
|
225
225
|
containerOrOptions = void 0;
|
|
226
226
|
}
|
|
227
227
|
} else {
|
|
228
|
-
super(
|
|
228
|
+
super(debugOptions);
|
|
229
229
|
}
|
|
230
230
|
if (options !== void 0) {
|
|
231
231
|
if (!options || typeof options !== "object" || Array.isArray(options)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e22m4u/js-http-static-router",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "HTTP-маршрутизатор статичных ресурсов для Node.js",
|
|
5
5
|
"author": "Mikhail Evstropov <e22m4u@yandex.ru>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,25 +38,25 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@e22m4u/js-format": "~0.4.0",
|
|
41
|
-
"@e22m4u/js-service": "~0.6.
|
|
41
|
+
"@e22m4u/js-service": "~0.6.2",
|
|
42
42
|
"http-errors": "~2.0.1",
|
|
43
43
|
"mime-types": "~3.0.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@commitlint/cli": "~20.4.
|
|
47
|
-
"@commitlint/config-conventional": "~20.4.
|
|
46
|
+
"@commitlint/cli": "~20.4.4",
|
|
47
|
+
"@commitlint/config-conventional": "~20.4.4",
|
|
48
48
|
"@eslint/js": "~9.39.2",
|
|
49
49
|
"@types/chai": "~5.2.3",
|
|
50
50
|
"@types/mocha": "~10.0.10",
|
|
51
51
|
"c8": "~11.0.0",
|
|
52
52
|
"chai": "~6.2.2",
|
|
53
53
|
"chai-as-promised": "~8.0.2",
|
|
54
|
-
"esbuild": "~0.27.
|
|
54
|
+
"esbuild": "~0.27.4",
|
|
55
55
|
"eslint": "~9.39.2",
|
|
56
56
|
"eslint-config-prettier": "~10.1.8",
|
|
57
|
-
"eslint-plugin-chai-expect": "~
|
|
57
|
+
"eslint-plugin-chai-expect": "~4.0.0",
|
|
58
58
|
"eslint-plugin-import": "~2.32.0",
|
|
59
|
-
"eslint-plugin-jsdoc": "~62.
|
|
59
|
+
"eslint-plugin-jsdoc": "~62.8.0",
|
|
60
60
|
"eslint-plugin-mocha": "~11.2.0",
|
|
61
61
|
"globals": "~17.4.0",
|
|
62
62
|
"husky": "~9.1.7",
|
|
@@ -40,7 +40,7 @@ export class HttpStaticRouter extends DebuggableService {
|
|
|
40
40
|
*/
|
|
41
41
|
constructor(containerOrOptions, options) {
|
|
42
42
|
const debugOptions = {
|
|
43
|
-
|
|
43
|
+
noGlobalNamespace: true,
|
|
44
44
|
namespace: 'jsHttpStaticRouter',
|
|
45
45
|
};
|
|
46
46
|
if (isServiceContainer(containerOrOptions)) {
|
|
@@ -57,13 +57,13 @@ export class HttpStaticRouter extends DebuggableService {
|
|
|
57
57
|
containerOrOptions,
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
|
-
super(
|
|
60
|
+
super(debugOptions);
|
|
61
61
|
if (options === undefined) {
|
|
62
62
|
options = containerOrOptions;
|
|
63
63
|
containerOrOptions = undefined;
|
|
64
64
|
}
|
|
65
65
|
} else {
|
|
66
|
-
super(
|
|
66
|
+
super(debugOptions);
|
|
67
67
|
}
|
|
68
68
|
// options
|
|
69
69
|
if (options !== undefined) {
|