hide-a-bed 1.1.0 → 1.1.1

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.
Files changed (2) hide show
  1. package/impl/crud.mjs +1 -0
  2. package/package.json +1 -1
package/impl/crud.mjs CHANGED
@@ -13,6 +13,7 @@ export const get = CouchGet.implement(async (config, id) => {
13
13
  const url = `${config.couch}/${id}`
14
14
  const resp = await needle('get', url, opts)
15
15
  const result = resp?.body || {}
16
+ result.statusCode = resp.statusCode
16
17
  if (resp.statusCode !== 200) {
17
18
  throw new Error('not found')
18
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hide-a-bed",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "An abstraction over couchdb calls that includes easy mock/stubs with pouchdb",
5
5
  "main": "index.mjs",
6
6
  "scripts": {