New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pojo-router/core

Package Overview
Dependencies
Maintainers
4
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pojo-router/core - npm Package Compare versions

Comparing version

to
0.5.47

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

### [0.5.47](https://github.com/ntucker/anansi/compare/@pojo-router/core@0.5.46...@pojo-router/core@0.5.47) (2022-11-17)
### 📦 Package
* Update `webpack-cli` to v5 ([#1718](https://github.com/ntucker/anansi/issues/1718)) ([a1efb72](https://github.com/ntucker/anansi/commit/a1efb72683c3bc43da00502cca9f5a3591784065))
### [0.5.46](https://github.com/ntucker/anansi/compare/@pojo-router/core@0.5.45...@pojo-router/core@0.5.46) (2022-11-15)

@@ -8,0 +14,0 @@

2

lib/Controller.d.ts
import type { PathFunction } from 'path-to-regexp';
import type { History } from 'history';
import type { AnyIfEmpty, DefaultRoutePojo, NamedPath } from './types';
declare type Props<Route extends {
type Props<Route extends {
name: string;

@@ -6,0 +6,0 @@ } = {

import React from 'react';
declare type ComponentConstraint = keyof JSX.IntrinsicElements | React.JSXElementConstructor<Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick' | 'target' | 'href'>>;
export declare type LinkProps<C extends ComponentConstraint = 'a'> = React.ComponentProps<C> & {
type ComponentConstraint = keyof JSX.IntrinsicElements | React.JSXElementConstructor<Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick' | 'target' | 'href'>>;
export type LinkProps<C extends ComponentConstraint = 'a'> = React.ComponentProps<C> & {
component: C;

@@ -5,0 +5,0 @@ name: string;

import React from 'react';
import type { Update } from 'history';
import RouteController from './Controller';
declare type Props = {
type Props = {
children: React.ReactNode;

@@ -6,0 +6,0 @@ router: RouteController;

import type { ParseOptions, TokensToRegexpOptions, RegexpToFunctionOptions } from 'path-to-regexp';
export interface DefaultRoutePojo {
}
export declare type AnyIfEmpty<T extends object> = keyof T extends never ? any : T;
export declare type NamedPath = {
export type AnyIfEmpty<T extends object> = keyof T extends never ? any : T;
export type NamedPath = {
path: string;
} & ParseOptions & TokensToRegexpOptions & RegexpToFunctionOptions;
//# sourceMappingURL=types.d.ts.map
{
"name": "@pojo-router/core",
"version": "0.5.46",
"version": "0.5.47",
"description": "A react hooks library to associate metadata to a path",

@@ -51,3 +51,3 @@ "homepage": "https://github.com/ntucker/anansi/tree/master/packages/pojo-router#readme",

"@anansi/browserslist-config": "^1.4.1",
"@anansi/webpack-config": "^13.0.26",
"@anansi/webpack-config": "^13.0.27",
"@babel/cli": "7.19.3",

@@ -58,3 +58,3 @@ "@babel/core": "7.20.2",

"webpack": "5.75.0",
"webpack-cli": "4.10.0"
"webpack-cli": "5.0.0"
},

@@ -61,0 +61,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet