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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codehooks-js",
3
- "version": "1.2.16",
3
+ "version": "1.2.17",
4
4
  "type": "module",
5
5
  "description": "Codehooks.io official library - provides express.JS like syntax",
6
6
  "main": "index.js",
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
- options?: object
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.error("Error message", error.message)
90
- console.error(error)
91
- res.status(404).end('No file here:' + filePath)
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]