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

url-mapper

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

url-mapper - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

travis_after_all.py

4

compileRoute.js

@@ -37,4 +37,4 @@ 'use strict'

var key = keys[i - 1]
var value = decodeURIComponent(match[i])
if (value[0] === ':') {
var value = match[i] && decodeURIComponent(match[i])
if (value && value[0] === ':') {
result[key] = URLON.parse(value)

@@ -41,0 +41,0 @@ } else {

{
"name": "url-mapper",
"version": "1.1.0",
"version": "1.1.1",
"description": "Two way `URL` <==> `route(params)` converter with mapper",

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

@@ -392,2 +392,13 @@ var Mapper = require('../mapper')

test.done()
},
'should parse optional paramters as undefined': function (test) {
var mapper = urlMapper()
test.deepEqual(mapper.parse('/:foo/:bar?', '/bar/'), {
foo: 'bar',
bar: undefined
})
test.done()
}

@@ -394,0 +405,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