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

sheet-router

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sheet-router - npm Package Compare versions

Comparing version 4.1.4 to 4.2.0

4

index.js

@@ -6,3 +6,3 @@ const window = require('global/window')

const isElectron = (window.process && window.process.type)
const isElectron = (/file:\/\//.test(window.location.origin))

@@ -40,3 +40,3 @@ module.exports = sheetRouter

if (typeof tree[0] === 'string') {
var route = tree[0].replace(/^[#\/]/, '')
var route = tree[0].replace(/^[#/]/, '')
} else {

@@ -43,0 +43,0 @@ var rootArr = tree[0]

{
"name": "sheet-router",
"version": "4.1.4",
"version": "4.2.0",
"description": "Fast, modular client router",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -57,3 +57,5 @@ const tape = require('tape')

t.equal(cb.callCount, 1)
t.deepEqual(cb.lastCall.args[0], { hash: undefined, href: 'someUrl#', pathname: 'someUrl', search: undefined })
t.deepEqual(cb.lastCall.args[0], {
hash: undefined, href: 'someUrl#', pathname: 'someUrl', search: {}
})
})

@@ -60,0 +62,0 @@

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