codehooks-js 1.2.16 → 1.2.17
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/types/index.d.ts +3 -1
- package/webserver.mjs +3 -3
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -225,6 +225,7 @@ export type NoSQLAPI = {
|
|
|
225
225
|
updateOne: (
|
|
226
226
|
query: string | object,
|
|
227
227
|
document: object,
|
|
228
|
+
updateoperators?: object,
|
|
228
229
|
options?: object
|
|
229
230
|
) => Promise<object>;
|
|
230
231
|
/**
|
|
@@ -328,6 +329,7 @@ export type DatastoreAPI = {
|
|
|
328
329
|
updateOne: (
|
|
329
330
|
collection: string,
|
|
330
331
|
query: string | object,
|
|
332
|
+
updateoperators?: object,
|
|
331
333
|
options?: object
|
|
332
334
|
) => Promise<any>;
|
|
333
335
|
/**
|
|
@@ -338,7 +340,7 @@ export type DatastoreAPI = {
|
|
|
338
340
|
collection: string,
|
|
339
341
|
query: object,
|
|
340
342
|
document: object,
|
|
341
|
-
|
|
343
|
+
updateoperators?: object
|
|
342
344
|
) => Promise<any>;
|
|
343
345
|
/**
|
|
344
346
|
* - Replace one data object by ID in a datastore collection.
|
package/webserver.mjs
CHANGED
|
@@ -86,9 +86,9 @@ export function serveStatic(options, app, filestore, hook, fsoptions) {
|
|
|
86
86
|
})
|
|
87
87
|
|
|
88
88
|
} catch (error) {
|
|
89
|
-
console.
|
|
90
|
-
console.
|
|
91
|
-
res.status(404).end(
|
|
89
|
+
console.debug("Error message", error.message)
|
|
90
|
+
console.debug(error)
|
|
91
|
+
res.status(404).end(`No file here: ${filePath} (${error.message})`)
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
const farr = [readFunc]
|