@labdigital/commercetools-mock 0.6.4 → 0.6.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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.6.4",
2
+ "version": "0.6.5",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -50,6 +50,9 @@ export class ProductProjectionRepository extends AbstractResourceRepository {
50
50
  }
51
51
 
52
52
  search(context: RepositoryContext, query: ParsedQs) {
53
+ const expand = query.expand
54
+ ? (query.expand as string | string[])
55
+ : undefined
53
56
  const filter = (query['filter.query'] ?? query.filter) as any
54
57
  const wherePredicate = filter ? parseFilterExpression(filter) : undefined
55
58
 
@@ -57,6 +60,7 @@ export class ProductProjectionRepository extends AbstractResourceRepository {
57
60
  where: wherePredicate,
58
61
  offset: query.offset ? Number(query.offset) : undefined,
59
62
  limit: query.limit ? Number(query.limit) : undefined,
63
+ expand,
60
64
  }) //TODO: this is a partial implementation, but I don't really have the time to implement an actual search API right now
61
65
 
62
66
  return results