@nxtedition/lib 14.0.5 → 14.0.6
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 +1 -1
- package/util/template/index.js +4 -3
package/package.json
CHANGED
package/util/template/index.js
CHANGED
|
@@ -128,9 +128,10 @@ module.exports = (options) => {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
return expr(args$).pipe(
|
|
131
|
-
rx.switchMap((body) =>
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
rx.switchMap((body) => {
|
|
132
|
+
const str = `${pre}${stringify(body, type !== 'js')}${post}`
|
|
133
|
+
return compileStringTemplate(str, args$) ?? rxjs.of(str)
|
|
134
|
+
})
|
|
134
135
|
)
|
|
135
136
|
}
|
|
136
137
|
|