@niledatabase/server 5.0.0-alpha.17 → 5.0.0-alpha.18
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/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import pg from 'pg';
|
|
|
5
5
|
var ExtensionState = /* @__PURE__ */ ((ExtensionState2) => {
|
|
6
6
|
ExtensionState2["onHandleRequest"] = "onHandleRequest";
|
|
7
7
|
ExtensionState2["onRequest"] = "onRequest";
|
|
8
|
-
ExtensionState2["onResponse"] = "
|
|
8
|
+
ExtensionState2["onResponse"] = "onResponse";
|
|
9
9
|
return ExtensionState2;
|
|
10
10
|
})(ExtensionState || {});
|
|
11
11
|
var APIErrorErrorCodeEnum = {
|
|
@@ -215,7 +215,7 @@ async function request(url, _init, config) {
|
|
|
215
215
|
text: await loggingRes?.text()
|
|
216
216
|
});
|
|
217
217
|
const updatedRes = await config.extensionCtx?.runExtensions(
|
|
218
|
-
"
|
|
218
|
+
"onResponse" /* onResponse */,
|
|
219
219
|
config,
|
|
220
220
|
params
|
|
221
221
|
);
|
|
@@ -3078,7 +3078,7 @@ function bindRunExtensions(instance) {
|
|
|
3078
3078
|
debug(`${ext.id ?? create2.name} ran onRequest`);
|
|
3079
3079
|
continue;
|
|
3080
3080
|
}
|
|
3081
|
-
if (ext.onResponse && toRun === "
|
|
3081
|
+
if (ext.onResponse && toRun === "onResponse" /* onResponse */) {
|
|
3082
3082
|
const result = await ext.onResponse(param);
|
|
3083
3083
|
if (result != null) {
|
|
3084
3084
|
return result;
|