Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-navigation/core

Package Overview
Dependencies
Maintainers
1
Versions
248
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-navigation/core - npm Package Compare versions

Comparing version 3.0.0-alpha.3 to 3.0.0-alpha.4

2

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(

@@ -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,
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc