hide-a-bed 5.1.4 → 5.1.5

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/README.md CHANGED
@@ -48,7 +48,7 @@ If you need to force autocompletion/type-checking, you can add the following jsd
48
48
 
49
49
  ```
50
50
  function doSomething (services)
51
- /** @type { import('hide-a-bed/index.mjs').DB} db */
51
+ /** @type { import('hide-a-bed').DB} db */
52
52
  const db = services.db;
53
53
  ```
54
54
 
@@ -42,8 +42,8 @@ const SimpleViewOptions = import_zod.z.object({
42
42
  startkey: import_zod.z.any().optional(),
43
43
  endkey: import_zod.z.any().optional(),
44
44
  descending: import_zod.z.boolean().optional().describe("sort results descending"),
45
- skip: import_zod.z.number().positive().optional().describe("skip this many rows"),
46
- limit: import_zod.z.number().positive().optional().describe("limit the results to this many rows"),
45
+ skip: import_zod.z.number().nonnegative().optional().describe("skip this many rows"),
46
+ limit: import_zod.z.number().nonnegative().optional().describe("limit the results to this many rows"),
47
47
  key: import_zod.z.any().optional(),
48
48
  keys: import_zod.z.array(import_zod.z.any()).optional(),
49
49
  include_docs: import_zod.z.boolean().optional().describe("join the id to the doc and return it"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hide-a-bed",
3
- "version": "5.1.4",
3
+ "version": "5.1.5",
4
4
  "description": "An abstraction over couchdb calls that includes easy mock/stubs with pouchdb",
5
5
  "module": "index.mjs",
6
6
  "main": "cjs/index.cjs",
package/schema/query.mjs CHANGED
@@ -20,8 +20,8 @@ export const SimpleViewOptions = z.object({
20
20
  startkey: z.any().optional(),
21
21
  endkey: z.any().optional(),
22
22
  descending: z.boolean().optional().describe('sort results descending'),
23
- skip: z.number().positive().optional().describe('skip this many rows'),
24
- limit: z.number().positive().optional().describe('limit the results to this many rows'),
23
+ skip: z.number().nonnegative().optional().describe('skip this many rows'),
24
+ limit: z.number().nonnegative().optional().describe('limit the results to this many rows'),
25
25
  key: z.any().optional(),
26
26
  keys: z.array(z.any()).optional(),
27
27
  include_docs: z.boolean().optional().describe('join the id to the doc and return it'),