cacache 12.0.2 → 13.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/locales/en.js DELETED
@@ -1,47 +0,0 @@
1
- 'use strict'
2
-
3
- const ls = require('../ls.js')
4
- const get = require('../get.js')
5
- const put = require('../put.js')
6
- const rm = require('../rm.js')
7
- const verify = require('../verify.js')
8
- const setLocale = require('../lib/util/y.js').setLocale
9
- const clearMemoized = require('../lib/memoization.js').clearMemoized
10
- const tmp = require('../lib/util/tmp.js')
11
-
12
- setLocale('en')
13
-
14
- const x = module.exports
15
-
16
- x.ls = cache => ls(cache)
17
- x.ls.stream = cache => ls.stream(cache)
18
-
19
- x.get = (cache, key, opts) => get(cache, key, opts)
20
- x.get.byDigest = (cache, hash, opts) => get.byDigest(cache, hash, opts)
21
- x.get.sync = (cache, key, opts) => get.sync(cache, key, opts)
22
- x.get.sync.byDigest = (cache, key, opts) => get.sync.byDigest(cache, key, opts)
23
- x.get.stream = (cache, key, opts) => get.stream(cache, key, opts)
24
- x.get.stream.byDigest = (cache, hash, opts) => get.stream.byDigest(cache, hash, opts)
25
- x.get.copy = (cache, key, dest, opts) => get.copy(cache, key, dest, opts)
26
- x.get.copy.byDigest = (cache, hash, dest, opts) => get.copy.byDigest(cache, hash, dest, opts)
27
- x.get.info = (cache, key) => get.info(cache, key)
28
- x.get.hasContent = (cache, hash) => get.hasContent(cache, hash)
29
- x.get.hasContent.sync = (cache, hash) => get.hasContent.sync(cache, hash)
30
-
31
- x.put = (cache, key, data, opts) => put(cache, key, data, opts)
32
- x.put.stream = (cache, key, opts) => put.stream(cache, key, opts)
33
-
34
- x.rm = (cache, key) => rm.entry(cache, key)
35
- x.rm.all = cache => rm.all(cache)
36
- x.rm.entry = x.rm
37
- x.rm.content = (cache, hash) => rm.content(cache, hash)
38
-
39
- x.setLocale = lang => setLocale(lang)
40
- x.clearMemoized = () => clearMemoized()
41
-
42
- x.tmp = {}
43
- x.tmp.mkdir = (cache, opts) => tmp.mkdir(cache, opts)
44
- x.tmp.withTmp = (cache, opts, cb) => tmp.withTmp(cache, opts, cb)
45
-
46
- x.verify = (cache, opts) => verify(cache, opts)
47
- x.verify.lastRun = cache => verify.lastRun(cache)
package/locales/en.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "No cache entry for `%s` found in `%s`": "No cache entry for %s found in %s",
3
- "Integrity verification failed for %s (%s)": "Integrity verification failed for %s (%s)",
4
- "Bad data size: expected inserted data to be %s bytes, but got %s instead": "Bad data size: expected inserted data to be %s bytes, but got %s instead",
5
- "Cache input stream was empty": "Cache input stream was empty",
6
- "Integrity check failed:\n Wanted: %s\n Found: %s": "Integrity check failed:\n Wanted: %s\n Found: %s"
7
- }
package/locales/es.js DELETED
@@ -1,49 +0,0 @@
1
- 'use strict'
2
-
3
- const ls = require('../ls.js')
4
- const get = require('../get.js')
5
- const put = require('../put.js')
6
- const rm = require('../rm.js')
7
- const verify = require('../verify.js')
8
- const setLocale = require('../lib/util/y.js').setLocale
9
- const clearMemoized = require('../lib/memoization.js').clearMemoized
10
- const tmp = require('../lib/util/tmp.js')
11
-
12
- setLocale('es')
13
-
14
- const x = module.exports
15
-
16
- x.ls = cache => ls(cache)
17
- x.ls.flujo = cache => ls.stream(cache)
18
-
19
- x.saca = (cache, clave, ops) => get(cache, clave, ops)
20
- x.saca.porHacheo = (cache, hacheo, ops) => get.byDigest(cache, hacheo, ops)
21
- x.saca.sinc = (cache, clave, ops) => get.sync(cache, clave, ops)
22
- x.saca.sinc.porHacheo = (cache, hacheo, ops) => get.sync.byDigest(cache, hacheo, ops)
23
- x.saca.flujo = (cache, clave, ops) => get.stream(cache, clave, ops)
24
- x.saca.flujo.porHacheo = (cache, hacheo, ops) => get.stream.byDigest(cache, hacheo, ops)
25
- x.sava.copia = (cache, clave, destino, opts) => get.copy(cache, clave, destino, opts)
26
- x.sava.copia.porHacheo = (cache, hacheo, destino, opts) => get.copy.byDigest(cache, hacheo, destino, opts)
27
- x.saca.info = (cache, clave) => get.info(cache, clave)
28
- x.saca.tieneDatos = (cache, hacheo) => get.hasContent(cache, hacheo)
29
- x.saca.tieneDatos.sinc = (cache, hacheo) => get.hasContent.sync(cache, hacheo)
30
-
31
- x.mete = (cache, clave, datos, ops) => put(cache, clave, datos, ops)
32
- x.mete.flujo = (cache, clave, ops) => put.stream(cache, clave, ops)
33
-
34
- x.rm = (cache, clave) => rm.entry(cache, clave)
35
- x.rm.todo = cache => rm.all(cache)
36
- x.rm.entrada = x.rm
37
- x.rm.datos = (cache, hacheo) => rm.content(cache, hacheo)
38
-
39
- x.ponLenguaje = lang => setLocale(lang)
40
- x.limpiaMemoizado = () => clearMemoized()
41
-
42
- x.tmp = {}
43
- x.tmp.mkdir = (cache, ops) => tmp.mkdir(cache, ops)
44
- x.tmp.hazdir = x.tmp.mkdir
45
- x.tmp.conTmp = (cache, ops, cb) => tmp.withTmp(cache, ops, cb)
46
-
47
- x.verifica = (cache, ops) => verify(cache, ops)
48
- x.verifica.ultimaVez = cache => verify.lastRun(cache)
49
- x.verifica.últimaVez = x.verifica.ultimaVez
package/locales/es.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "No cache entry for `%s` found in `%s`": "No existe ninguna entrada para «%s» en «%s»",
3
- "Integrity verification failed for %s (%s)": "Verificación de integridad falló para «%s» (%s)",
4
- "Bad data size: expected inserted data to be %s bytes, but got %s instead": "Tamaño incorrecto de datos: los datos insertados debieron haber sido %s octetos, pero fueron %s",
5
- "Cache input stream was empty": "El stream de entrada al caché estaba vacío"
6
- }