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.3.0-alpha.46 to 0.3.0-alpha.47

2

bld/library/route-match/route-match.d.ts

@@ -96,3 +96,3 @@ import { IAutorunOptions, IReactionDisposer, IReactionPublic } from 'mobx';

readonly $next: TNextRouteMatch;
get $metadata(): TMetadata;
readonly $metadata: TMetadata;
constructor(name: string, router: Router<TGroupName>, source: RouteSource, parent: RouteMatch | undefined, extension: object | undefined, history: IHistory, { exact, metadata, ...sharedOptions }: RouteMatchOptions);

@@ -99,0 +99,0 @@ $beforeEnter(callback: RouteBeforeEnterCallback<this>): RouteHookRemovalCallback;

@@ -40,9 +40,8 @@ "use strict";

}
this._metadata = metadata;
this.$metadata = {
...parent === null || parent === void 0 ? void 0 : parent.$metadata,
...metadata,
};
this._allowExact = exact;
}
get $metadata() {
var _a, _b;
return Object.assign((_b = (_a = this.$parent) === null || _a === void 0 ? void 0 : _a.$metadata) !== null && _b !== void 0 ? _b : {}, this._metadata);
}
$beforeEnter(callback) {

@@ -49,0 +48,0 @@ this._beforeEnterCallbackSet.add(callback);

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

@@ -41,3 +41,3 @@ "repository": {

},
"gitHead": "af5f8836b8cd7ff0e777a00c9f93eb229ab20912"
"gitHead": "76404b682a0a18e84ef9d07a9b09facf6987a663"
}

@@ -209,2 +209,4 @@ import {

readonly $metadata: TMetadata;
/** @internal */

@@ -248,14 +250,4 @@ private _beforeEnterCallbackSet = new Set<RouteBeforeEnterCallback>();

/** @internal */
private readonly _metadata: object | undefined;
/** @internal */
_parallel: RouteMatchParallelOptions<TGroupName> | undefined;
get $metadata(): TMetadata {
return Object.assign(
this.$parent?.$metadata ?? {},
this._metadata,
) as TMetadata;
}
constructor(

@@ -285,3 +277,6 @@ name: string,

this._metadata = metadata;
this.$metadata = {
...parent?.$metadata,
...metadata,
} as TMetadata;

@@ -288,0 +283,0 @@ this._allowExact = exact;

Sorry, the diff of this file is not supported yet

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