web-documentation 1.0.38 → 1.0.39
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 +3 -3
- package/source/deploy.ts +0 -1
- package/source/index.ts +5 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web-documentation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"description": "Declarative multilanguage documentation website generator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"documentation",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"css-loader": "^7.1.4",
|
|
74
74
|
"cssnano": "^8.0.2",
|
|
75
75
|
"default-gateway": "^7.2.2",
|
|
76
|
-
"errorreporter": "^1.0.
|
|
76
|
+
"errorreporter": "^1.0.349",
|
|
77
77
|
"eslint": "^10.5.0",
|
|
78
78
|
"eslint-config-google": "^0.14.0",
|
|
79
79
|
"eslint-plugin-jsdoc": "^63.0.2",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"typescript-eslint": "^8.61.0",
|
|
106
106
|
"ua-parser-js": "^2.0.10",
|
|
107
107
|
"unzipper": "^0.12.3",
|
|
108
|
-
"web-component-wrapper": "^0.0.
|
|
108
|
+
"web-component-wrapper": "^0.0.600",
|
|
109
109
|
"web-internationalization": "^2.0.41",
|
|
110
110
|
"weboptimizer": "^3.0.24",
|
|
111
111
|
"webpack-dev-server": "^5.2.5",
|
package/source/deploy.ts
CHANGED
package/source/index.ts
CHANGED
|
@@ -423,12 +423,9 @@ export class WebDocumentation<
|
|
|
423
423
|
if (
|
|
424
424
|
['javascript', 'javascripts', 'js']
|
|
425
425
|
.includes(match[2].toLowerCase())
|
|
426
|
-
)
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
domNode.setAttribute('type', 'text/javascript')
|
|
430
|
-
domNode.innerText = code
|
|
431
|
-
} else if ([
|
|
426
|
+
)
|
|
427
|
+
new Function(code)()
|
|
428
|
+
else if ([
|
|
432
429
|
'css', 'cascadingstylesheet',
|
|
433
430
|
'cascadingstylesheets', 'stylesheet',
|
|
434
431
|
'stylesheets', 'sheet', 'sheets', 'style',
|
|
@@ -454,7 +451,8 @@ export class WebDocumentation<
|
|
|
454
451
|
reInjectScripts = true
|
|
455
452
|
}
|
|
456
453
|
|
|
457
|
-
|
|
454
|
+
if (domNode)
|
|
455
|
+
codeDomNode.after(domNode)
|
|
458
456
|
|
|
459
457
|
if (reInjectScripts)
|
|
460
458
|
/*
|