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

boring-router

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boring-router - npm Package Compare versions

Comparing version 0.1.0-alpha.11 to 0.1.0

bld/library/schema.d.ts

1

bld/library/index.d.ts

@@ -0,1 +1,2 @@

export * from './schema';
export * from './router';

@@ -2,0 +3,0 @@ export * from './route-match';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./schema"), exports);
tslib_1.__exportStar(require("./router"), exports);

@@ -5,0 +6,0 @@ tslib_1.__exportStar(require("./route-match"), exports);

8

bld/library/router.d.ts
import { History } from 'history';
import { Dict } from 'tslang';
import { RouteMatch } from './route-match';
import { RouteSchemaDict } from './schema';
export declare type FragmentMatcherCallback = (key: string) => string;

@@ -14,8 +14,2 @@ declare type RouteQuerySchemaType<TRouteSchema> = TRouteSchema extends {

}
export interface RouteSchema {
$match?: string | RegExp;
$query?: Dict<boolean>;
$children?: RouteSchemaDict;
}
export declare type RouteSchemaDict = Dict<RouteSchema | boolean>;
export declare type RouteMatchFragmentType<TRouteSchemaDict, TFragmentKey extends string> = {

@@ -22,0 +16,0 @@ [K in Extract<keyof TRouteSchemaDict, string>]: RouteMatchType<TRouteSchemaDict[K], TFragmentKey | FilterRouteMatchNonStringFragment<TRouteSchemaDict[K], K>>;

{
"name": "boring-router",
"version": "0.1.0-alpha.11",
"version": "0.1.0",
"description": "A light-weight, type-safe, yet reactive router service using MobX.",

@@ -5,0 +5,0 @@ "repository": {

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