Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cache-busted

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-busted - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

.tern-port

2

index.js

@@ -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>');
});
});
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