@websdk/nap
Advanced tools
Comparing version 0.11.2-rhumb-0.3.9-upgrade.0 to 0.11.2
@@ -253,3 +253,3 @@ (function (global, factory) { | ||
return part.input === '/' ? uri : [uri, part.input].join("/"); | ||
}, ""); | ||
}, "") || '/'; | ||
}; | ||
@@ -256,0 +256,0 @@ |
{ | ||
"name": "@websdk/nap", | ||
"version": "0.11.2-rhumb-0.3.9-upgrade.0", | ||
"version": "0.11.2", | ||
"description": "Organizing applications into resources", | ||
@@ -5,0 +5,0 @@ "main": "lib/nap.js", |
@@ -248,3 +248,3 @@ var rhumb = require('@websdk/rhumb') | ||
, "" | ||
) | ||
) || '/' | ||
} | ||
@@ -251,0 +251,0 @@ |
@@ -5,3 +5,3 @@ var test = require('tape') | ||
test('Simple URI patterns', function(t) { | ||
t.plan(2) | ||
t.plan(4) | ||
var web = nap.web().resource('demo', '/my-demo', function() {}) | ||
@@ -11,2 +11,4 @@ | ||
t.equal(web.uri('/my-demo'), '/my-demo', 'should generate a URI based on resource path') | ||
t.equal(web.uri('/'), '/', 'should generate a URI based on root resource path') | ||
t.equal(web.uri(''), '/', 'should generate a URI based on empty resource path') | ||
}) | ||
@@ -13,0 +15,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40902
836