cache-busted
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -24,3 +24,3 @@ var cacheBust = module.exports = function cacheBust (options) { | ||
if (type === 'js') { | ||
return '<script type="text/js" src="' + ressource + '?v=' + querystring + '" />'; | ||
return '<script type="text/js" src="' + ressource + '?v=' + querystring + '"></script>'; | ||
} else if (type === 'css') { | ||
@@ -27,0 +27,0 @@ return '<link rel="stylesheet" href="' + ressource + '?v=' + querystring + '" />'; |
{ | ||
"name": "cache-busted", | ||
"version": "0.0.1", | ||
"description": "A simplistic cache buster that appends the current verison for production environments and the current time otherwise (great for development)", | ||
"version": "0.0.2", | ||
"description": "A simplistic cache buster that appends the current version for production environments and the current time otherwise (great for development)", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "repository": "git@github.com:davidlanger/cache-bust.git", |
@@ -37,3 +37,3 @@ var cacheBust = require('../'); | ||
var out = fn('/scripts/app.js'); | ||
assert.equal(out, '<script type="text/js" src="/scripts/app.js?v=1.0.0" />'); | ||
assert.equal(out, '<script type="text/js" src="/scripts/app.js?v=1.0.0"></script>'); | ||
}); | ||
@@ -45,3 +45,3 @@ }); | ||
var out = fn('/scripts/app.js'); | ||
assert.equal(out, '<script type="text/js" src="/scripts/app.js?v=1.0.0-12345" />'); | ||
assert.equal(out, '<script type="text/js" src="/scripts/app.js?v=1.0.0-12345"></script>'); | ||
}); | ||
@@ -58,4 +58,4 @@ | ||
var out = fn('/scripts/app', 'js'); | ||
assert.equal(out, '<script type="text/js" src="/scripts/app?v=1.0.0-12345" />'); | ||
assert.equal(out, '<script type="text/js" src="/scripts/app?v=1.0.0-12345"></script>'); | ||
}); | ||
}); |
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
4783
8