theprogrammablemind 9.8.0-beta.18 → 9.8.0-beta.19
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/src/configHelpers.js +1 -14
- package/src/semantics.js +1 -0
package/package.json
CHANGED
package/src/configHelpers.js
CHANGED
|
@@ -110,22 +110,9 @@ class HandlerStack {
|
|
|
110
110
|
this.handlers.pop()
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
/*
|
|
114
|
-
async wrap(call, w) {
|
|
115
|
-
const s = w
|
|
116
|
-
this.push(w)
|
|
117
|
-
const p = call()
|
|
118
|
-
if (p) {
|
|
119
|
-
return p.finally(() => {
|
|
120
|
-
this.pop()
|
|
121
|
-
})
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
*/
|
|
125
|
-
|
|
126
113
|
async wrap(call, w) {
|
|
127
114
|
this.push(w)
|
|
128
|
-
const p = call()
|
|
115
|
+
const p = await call()
|
|
129
116
|
if (p && typeof p.finally === 'function') {
|
|
130
117
|
return p.finally(() => {
|
|
131
118
|
this.pop()
|