web-documentation 1.0.39 → 1.0.40
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 +4 -4
- package/source/dummyReadme.md +5 -5
- package/source/index.ts +11 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web-documentation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.40",
|
|
4
4
|
"description": "Declarative multilanguage documentation website generator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"documentation",
|
|
@@ -105,11 +105,11 @@
|
|
|
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.
|
|
109
|
-
"web-internationalization": "^2.0.
|
|
108
|
+
"web-component-wrapper": "^0.0.602",
|
|
109
|
+
"web-internationalization": "^2.0.42",
|
|
110
110
|
"weboptimizer": "^3.0.24",
|
|
111
111
|
"webpack-dev-server": "^5.2.5",
|
|
112
|
-
"website-utilities": "^1.0.
|
|
112
|
+
"website-utilities": "^1.0.443"
|
|
113
113
|
},
|
|
114
114
|
"engines": {
|
|
115
115
|
"node": ">=24",
|
package/source/dummyReadme.md
CHANGED
|
@@ -92,16 +92,16 @@ npm install clientnode
|
|
|
92
92
|
<!--showExample:JavaScript-->
|
|
93
93
|
|
|
94
94
|
```JavaScript
|
|
95
|
-
const domNode = clientnode.createDomNodes('<p>some content to animate</p>')
|
|
95
|
+
const domNode = clientnode.createDomNodes('<p>some content to animate</p>')
|
|
96
96
|
|
|
97
97
|
const endless = () => {
|
|
98
98
|
clientnode.fadeIn(domNode)
|
|
99
99
|
.then(() => clientnode.fadeOut(domNode))
|
|
100
100
|
.then(endless)
|
|
101
|
-
}
|
|
102
|
-
endless()
|
|
101
|
+
}
|
|
102
|
+
endless()
|
|
103
103
|
|
|
104
|
-
document.querySelector('#first-example-playground').appendChild(domNode)
|
|
104
|
+
document.querySelector('#first-example-playground').appendChild(domNode)
|
|
105
105
|
```
|
|
106
106
|
|
|
107
107
|
The compiled bundle supports AMD, commonjs, commonjs2 and variable injection
|
|
@@ -137,5 +137,5 @@ document.querySelector('#second-example-playground').innerText =
|
|
|
137
137
|
operand2: {$select: 'some.data.in.scope'}
|
|
138
138
|
},
|
|
139
139
|
{some: {data: {in: {scope: 3}}}}
|
|
140
|
-
)
|
|
140
|
+
)
|
|
141
141
|
```
|
package/source/index.ts
CHANGED
|
@@ -33,9 +33,9 @@ import {
|
|
|
33
33
|
wrap
|
|
34
34
|
} from 'clientnode'
|
|
35
35
|
import {func, object} from 'clientnode/property-types'
|
|
36
|
-
import {property} from 'web-component-wrapper/decorator'
|
|
36
|
+
import {property} from 'web-component-wrapper/compatible/decorator'
|
|
37
37
|
import {WebComponentAPI} from 'web-component-wrapper/type'
|
|
38
|
-
import {Web} from 'web-component-wrapper/Web'
|
|
38
|
+
import {Web} from 'web-component-wrapper/compatible/Web'
|
|
39
39
|
import {api as websiteUtilitiesAPI} from 'website-utilities'
|
|
40
40
|
import {api as webInternationalizationAPI} from 'web-internationalization'
|
|
41
41
|
|
|
@@ -424,7 +424,15 @@ export class WebDocumentation<
|
|
|
424
424
|
['javascript', 'javascripts', 'js']
|
|
425
425
|
.includes(match[2].toLowerCase())
|
|
426
426
|
)
|
|
427
|
-
|
|
427
|
+
try {
|
|
428
|
+
new Function(code)()
|
|
429
|
+
} catch (error) {
|
|
430
|
+
log.warn(
|
|
431
|
+
'Error occurred during running ' +
|
|
432
|
+
`code "${code}":`,
|
|
433
|
+
error
|
|
434
|
+
)
|
|
435
|
+
}
|
|
428
436
|
else if ([
|
|
429
437
|
'css', 'cascadingstylesheet',
|
|
430
438
|
'cascadingstylesheets', 'stylesheet',
|