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

cordova-file-cache

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-file-cache - npm Package Compare versions

Comparing version 0.2.2 to 0.3.0

2

bower.json
{
"name": "cordova-file-cache",
"main": "dist/CordovaFileCache.js",
"version": "0.2.2",
"version": "0.3.0",
"homepage": "https://github.com/markmarijnissen/cordova-file-cache",

@@ -6,0 +6,0 @@ "authors": [

@@ -65,2 +65,3 @@ var CordovaFileCache =

this._retry = options.retry || [500,1500,8000];
this._cacheBuster = !!options.cacheBuster;

@@ -213,3 +214,4 @@ // normalize path

};
var downloadUrl = url;
if(self._cacheBuster) downloadUrl += "?"+Date.now();
var download = fs.download(url,path,{retry:self._retry},onSingleDownloadProgress);

@@ -216,0 +218,0 @@ download.then(onDone,onDone);

@@ -18,2 +18,3 @@ var hash = require('./murmerhash');

this._retry = options.retry || [500,1500,8000];
this._cacheBuster = !!options.cacheBuster;

@@ -166,3 +167,4 @@ // normalize path

};
var downloadUrl = url;
if(self._cacheBuster) downloadUrl += "?"+Date.now();
var download = fs.download(url,path,{retry:self._retry},onSingleDownloadProgress);

@@ -169,0 +171,0 @@ download.then(onDone,onDone);

{
"name": "cordova-file-cache",
"version": "0.2.2",
"version": "0.3.0",
"description": "Cordova File Cache",

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

@@ -35,2 +35,3 @@ cordova-file-cache

serverRoot: 'http://yourserver.com/files/' // optional, required on 'mirror' mode
cacheBuster: false
});

@@ -47,2 +48,3 @@

* **CordovaPromiseFS()** is an instance of [cordova-promise-fs](https://github.com/markmarijnissen/cordova-promise-fs).
* `cacheBuster` appends a timestamp to the url `?xxxxxx` to avoid the network cache.

@@ -120,2 +122,6 @@ ### Add files to the cache

### 0.3.0 (09/11/2014)
* Added `cacheBuster` option.
### 0.2.0 (07/11/2014)

@@ -122,0 +128,0 @@

Sorry, the diff of this file is not supported yet

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