@react-navigation/core
Advanced tools
Comparing version 3.0.0-alpha.3 to 3.0.0-alpha.4
@@ -60,3 +60,3 @@ /* eslint global-require: 0 */ | ||
get pathUtils() { | ||
return require('./routers/pathUtils').default; | ||
return require('./routers/pathUtils'); | ||
}, | ||
@@ -63,0 +63,0 @@ |
@@ -15,3 +15,3 @@ import pathToRegexp, { compile } from 'path-to-regexp'; | ||
const getParamsFromPath = (inputParams, pathMatch, pathMatchKeys) => { | ||
export const getParamsFromPath = (inputParams, pathMatch, pathMatchKeys) => { | ||
const params = pathMatch.slice(1).reduce( | ||
@@ -46,3 +46,3 @@ // iterate over matched path params | ||
const urlToPathAndParams = (url, uriPrefix) => { | ||
export const urlToPathAndParams = (url, uriPrefix) => { | ||
const searchMatch = url.match(/^(.*)\?(.*)$/); | ||
@@ -68,3 +68,3 @@ const params = searchMatch ? queryString.parse(searchMatch[2]) : {}; | ||
const createPathParser = (childRouters, routeConfigs, { paths: pathConfigs = {}, disableRouteNamePaths }) => { | ||
export const createPathParser = (childRouters, routeConfigs, { paths: pathConfigs = {}, disableRouteNamePaths }) => { | ||
const pathsByRouteNames = {}; | ||
@@ -192,8 +192,2 @@ let paths = []; | ||
return { getActionForPathAndParams, getPathAndParamsForRoute }; | ||
}; | ||
export default { | ||
getParamsFromPath, | ||
createPathParser, | ||
urlToPathAndParams | ||
}; |
{ | ||
"name": "@react-navigation/core", | ||
"version": "3.0.0-alpha.3", | ||
"version": "3.0.0-alpha.4", | ||
"description": "Core utilities for the react-navigation framework", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -60,3 +60,3 @@ /* eslint global-require: 0 */ | ||
get pathUtils() { | ||
return require('./routers/pathUtils').default; | ||
return require('./routers/pathUtils'); | ||
}, | ||
@@ -63,0 +63,0 @@ |
@@ -15,3 +15,3 @@ import pathToRegexp, { compile } from 'path-to-regexp'; | ||
const getParamsFromPath = (inputParams, pathMatch, pathMatchKeys) => { | ||
export const getParamsFromPath = (inputParams, pathMatch, pathMatchKeys) => { | ||
const params = pathMatch.slice(1).reduce( | ||
@@ -48,3 +48,3 @@ // iterate over matched path params | ||
const urlToPathAndParams = (url, uriPrefix) => { | ||
export const urlToPathAndParams = (url, uriPrefix) => { | ||
const searchMatch = url.match(/^(.*)\?(.*)$/); | ||
@@ -70,3 +70,3 @@ const params = searchMatch ? queryString.parse(searchMatch[2]) : {}; | ||
const createPathParser = ( | ||
export const createPathParser = ( | ||
childRouters, | ||
@@ -223,7 +223,1 @@ routeConfigs, | ||
}; | ||
export default { | ||
getParamsFromPath, | ||
createPathParser, | ||
urlToPathAndParams, | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
317161
9459