@dewib/xhr-cache
Advanced tools
Comparing version 4.1.0 to 4.2.0
@@ -5,3 +5,3 @@ /* eslint-disable no-undef */ | ||
import { URL } from 'url' | ||
import rimraf from 'rimraf' | ||
import { rimrafSync } from 'rimraf' | ||
import { match } from 'path-to-regexp' | ||
@@ -228,3 +228,5 @@ import uuid from 'uuid-apikey' | ||
// Clean directory cache | ||
if (!buildProcess && conf.clean) { rimraf.sync(conf.path) } | ||
if (!buildProcess && conf.clean) { | ||
rimrafSync(conf.path) | ||
} | ||
@@ -231,0 +233,0 @@ await Promise.all(conf.resources.map(async (resource) => { |
{ | ||
"name": "@dewib/xhr-cache", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"license": "MIT", | ||
@@ -41,7 +41,7 @@ "description": "Cache api resources and serve it as static resource", | ||
"dependencies": { | ||
"axios": "^0.19.1", | ||
"axios": "^0.21.1", | ||
"mkdirp": "^1.0.4", | ||
"path": "^0.12.7", | ||
"path-to-regexp": "^6.1.0", | ||
"rimraf": "^3.0.0", | ||
"rimraf": "^5.0.0", | ||
"uuid-apikey": "^1.4.6" | ||
@@ -48,0 +48,0 @@ }, |
21273
431
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Addedansi-regex@5.0.16.1.0(transitive)
+ Addedansi-styles@4.3.06.2.1(transitive)
+ Addedaxios@0.21.4(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcross-spawn@7.0.6(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@8.0.09.2.2(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
+ Addedforeground-child@3.3.1(transitive)
+ Addedglob@10.4.5(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedrimraf@5.0.10(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedstring-width@4.2.35.1.2(transitive)
+ Addedstrip-ansi@6.0.17.1.0(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwrap-ansi@7.0.08.1.0(transitive)
- Removedaxios@0.19.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfollow-redirects@1.5.10(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedrimraf@3.0.2(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedaxios@^0.21.1
Updatedrimraf@^5.0.0