feathers-utils 1.9.0 → 1.9.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/README.md +7 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -19,8 +19,9 @@ npm i feathers-utils
19
19
 
20
20
  ### Hooks
21
21
 
22
- - `hooks/checkMulti()`: throws if the request is **multi** data, but the service has `allowsMulti(method)` returns `false`
23
- - `hooks/setData({ allowUndefined: Boolean })`
22
+ - `checkMulti()`: throws if the request is **multi** data, but the service has `allowsMulti(method)` returns `false`
23
+ - `runPerItem`
24
+ - `setData({ allowUndefined: Boolean })`
24
25
 
25
26
  ### Mixins
26
27
 
@@ -30,9 +31,13 @@ npm i feathers-utils
30
31
 
31
32
  - `addHook`: add hooks to specific services
32
33
  - `filterQuery`
34
+ - `getItemsIsArray(context)`: returns `{ items: any[], isArray: boolean }`
35
+ - `getPaginate`
33
36
  - `isMulti(context) => Boolean`: returns true, if `find`, `create/patch/remove`: multi
37
+ - `isPaginated`
34
38
  - `markHookForSkip`: add hookName to `context.params.skipHooks` - also see `shouldSkip`
35
39
  - `mergeQuery`: deeply merges queries
36
40
  - `mergeArrays`: merges arrays with intersection options
37
41
  - `pushSet`: if existing array: *push*, else *set*
42
+ - `setResultEmpty`
38
43
  - `shouldSkip`: checks `context.params.skipHooks` for `'all' | '${hookName}' | '${type}:${hookName}'` - also see `markHookForSkip`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feathers-utils",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "Some utils for projects using '@feathersjs/feathers'",
5
5
  "author": "fratzinger",
6
6
  "repository": {