@nxtedition/lib 23.12.0 → 23.12.2
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/app.js +6 -1
- package/ass.js +1 -1
- package/http.js +1 -1
- package/package.json +1 -1
package/app.js
CHANGED
|
@@ -898,10 +898,15 @@ export function makeApp(appConfig, onTerminate) {
|
|
|
898
898
|
.pipe(rx.pluck('messages'), rx.startWith([]), rx.pairwise())
|
|
899
899
|
.subscribe(([prev, next]) => {
|
|
900
900
|
for (const { level, msg, ...message } of fp.differenceBy('id', next, prev)) {
|
|
901
|
-
if (level >=
|
|
901
|
+
if (level >= 50) {
|
|
902
|
+
logger.error(message, `status added: ${msg}`)
|
|
903
|
+
} else if (level >= 40) {
|
|
904
|
+
logger.warn(message, `status added: ${msg}`)
|
|
905
|
+
} else {
|
|
902
906
|
logger.info(message, `status added: ${msg}`)
|
|
903
907
|
}
|
|
904
908
|
}
|
|
909
|
+
|
|
905
910
|
for (const { level, msg, ...message } of fp.differenceBy('id', prev, next)) {
|
|
906
911
|
if (level >= 40) {
|
|
907
912
|
logger.info(message, `status removed: ${msg}`)
|
package/ass.js
CHANGED
|
@@ -123,7 +123,7 @@ function formatDialogues(events, styles, scriptResX, futureWordWrapping) {
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
const styleName = style || 'nxt-default'
|
|
126
|
-
const eventStyle = styles[styleName]
|
|
126
|
+
const eventStyle = styles[styleName] ?? {}
|
|
127
127
|
const textOptions = {
|
|
128
128
|
fontSize: parseFloat(eventStyle.fontsize || '32'),
|
|
129
129
|
fontFamily: eventStyle.fontname ?? 'Arial',
|
package/http.js
CHANGED
|
@@ -799,7 +799,7 @@ export function createServer(...args) {
|
|
|
799
799
|
(req, res) => (middleware ? middleware(factory(req, res)) : factory(req, res)),
|
|
800
800
|
)
|
|
801
801
|
|
|
802
|
-
server.setTimeout(options
|
|
802
|
+
server.setTimeout(options?.socketTimeout ?? options?.timeout ?? 2 * 60e3)
|
|
803
803
|
|
|
804
804
|
if (options?.signal?.aborted) {
|
|
805
805
|
queueMicrotask(() => server.close())
|