@kaspernj/api-maker 1.0.166 → 1.0.167

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
@@ -16,7 +16,7 @@
16
16
  ]
17
17
  },
18
18
  "name": "@kaspernj/api-maker",
19
- "version": "1.0.166",
19
+ "version": "1.0.167",
20
20
  "description": "",
21
21
  "main": "index.js",
22
22
  "repository": {
package/src/router.jsx CHANGED
@@ -24,7 +24,7 @@ class ApiMakerRouter extends React.Component {
24
24
 
25
25
  return (
26
26
  <Suspense fallback={<div />}>
27
- <NotFoundComponent />
27
+ <NotFoundComponent match={match} />
28
28
  </Suspense>
29
29
  )
30
30
  } else {
@@ -116,9 +116,10 @@ export default (WrapperComponent) => class WithRouter extends React.Component {
116
116
  render() {
117
117
  const {path, routes, routeDefinitions, ...restProps} = this.props
118
118
  const matchingRoute = this.findMatchingRoute()
119
+ const params = matchingRoute?.params || {}
119
120
  const match = {
120
121
  matchingRoute,
121
- params: matchingRoute?.params
122
+ params
122
123
  }
123
124
 
124
125
  return (