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

steersman

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

steersman - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

1

lib/Router.d.ts

@@ -21,4 +21,5 @@ import { IRouter, IRoute, IRouteTemplate, RouterContext, MappingFunction, IRouterOptions, IRouterNavigateOptions } from "./types";

navigate(path: string, options?: IRouterNavigateOptions): Promise<void>;
goBack(options?: IRouterNavigateOptions): any;
private processPath(path);
testPath(path: string): boolean;
}

@@ -100,2 +100,20 @@ "use strict";

};
Router.prototype.goBack = function (options) {
var _this = this;
if (options === void 0) { options = {}; }
this.history.goBack();
var oldPath = this.history.currentPath;
var result;
if (!options.silent) {
result = this.processPath(this.history.currentPath);
}
else {
result = Promise.resolve();
}
return result.then(function () {
if (_this.onNavigate) {
_this.onNavigate(oldPath, _this.history.currentPath);
}
});
};
Router.prototype.processPath = function (path) {

@@ -102,0 +120,0 @@ var _this = this;

2

package.json
{
"name": "steersman",
"version": "0.0.15",
"version": "0.0.16",
"description": "Lightweight JS router for browsers & node",

@@ -5,0 +5,0 @@ "main": "lib/Router.js",

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