@uppy/golden-retriever
Advanced tools
Comparing version 2.1.0 to 3.0.0-beta
@@ -1,6 +0,3 @@ | ||
"use strict"; | ||
const IndexedDBStore = require("./IndexedDBStore.js"); | ||
const MetaDataStore = require("./MetaDataStore.js"); | ||
import IndexedDBStore from './IndexedDBStore.js'; | ||
import MetaDataStore from './MetaDataStore.js'; | ||
/** | ||
@@ -10,8 +7,5 @@ * Clean old blobs without needing to import all of Uppy. | ||
function cleanup() { | ||
export default function cleanup() { | ||
MetaDataStore.cleanup(); | ||
IndexedDBStore.cleanup(); | ||
} | ||
module.exports = cleanup; | ||
} |
@@ -1,15 +0,8 @@ | ||
"use strict"; | ||
const throttle = require("lodash.throttle"); | ||
const BasePlugin = require("@uppy/core/lib/BasePlugin"); | ||
const ServiceWorkerStore = require("./ServiceWorkerStore.js"); | ||
const IndexedDBStore = require("./IndexedDBStore.js"); | ||
const MetaDataStore = require("./MetaDataStore.js"); | ||
import throttle from 'lodash.throttle'; | ||
import BasePlugin from '@uppy/core/lib/BasePlugin'; | ||
import ServiceWorkerStore from './ServiceWorkerStore.js'; | ||
import IndexedDBStore from './IndexedDBStore.js'; | ||
import MetaDataStore from './MetaDataStore.js'; | ||
const packageJson = { | ||
"version": "2.1.0" | ||
"version": "3.0.0-beta" | ||
}; | ||
@@ -24,3 +17,3 @@ /** | ||
class GoldenRetriever extends BasePlugin { | ||
export default class GoldenRetriever extends BasePlugin { | ||
constructor(uppy, opts) { | ||
@@ -400,4 +393,2 @@ super(uppy, opts); | ||
} | ||
GoldenRetriever.VERSION = packageJson.version; | ||
module.exports = GoldenRetriever; | ||
GoldenRetriever.VERSION = packageJson.version; |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
const indexedDB = typeof window !== 'undefined' && (window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.OIndexedDB || window.msIndexedDB); | ||
@@ -251,2 +249,2 @@ const isSupported = !!indexedDB; | ||
IndexedDBStore.isSupported = isSupported; | ||
module.exports = IndexedDBStore; | ||
export default IndexedDBStore; |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
/** | ||
@@ -33,4 +31,3 @@ * Get uppy instance IDs for which state is stored. | ||
let cleanedUp = false; | ||
class MetaDataStore { | ||
export default class MetaDataStore { | ||
constructor(opts) { | ||
@@ -102,4 +99,2 @@ this.opts = { | ||
} | ||
module.exports = MetaDataStore; | ||
} |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
/* globals clients */ | ||
@@ -4,0 +2,0 @@ const fileCache = Object.create(null); |
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
const isSupported = typeof navigator !== 'undefined' && 'serviceWorker' in navigator; | ||
@@ -82,2 +80,2 @@ | ||
ServiceWorkerStore.isSupported = isSupported; | ||
module.exports = ServiceWorkerStore; | ||
export default ServiceWorkerStore; |
{ | ||
"name": "@uppy/golden-retriever", | ||
"description": "The GoldenRetriever Uppy plugin saves selected files in browser cache to seamlessly resume uploding after browser crash or accidentally closed tab", | ||
"version": "2.1.0", | ||
"version": "3.0.0-beta", | ||
"license": "MIT", | ||
@@ -28,8 +28,9 @@ "main": "lib/index.js", | ||
"@transloadit/prettier-bytes": "0.0.7", | ||
"@uppy/utils": "^4.1.0", | ||
"@uppy/utils": "^5.0.0-beta", | ||
"lodash.throttle": "^4.1.1" | ||
}, | ||
"peerDependencies": { | ||
"@uppy/core": "^2.3.0" | ||
} | ||
"@uppy/core": "^3.0.0-beta" | ||
}, | ||
"stableVersion": "2.1.0" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
105285
24
1508
1
+ Added@transloadit/prettier-bytes@0.3.5(transitive)
+ Added@uppy/core@3.13.1(transitive)
+ Added@uppy/store-default@3.2.2(transitive)
+ Added@uppy/utils@5.9.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addednanoid@4.0.2(transitive)
- Removed@uppy/core@2.3.4(transitive)
- Removed@uppy/store-default@2.1.1(transitive)
- Removed@uppy/utils@4.1.3(transitive)
- Removednanoid@3.3.8(transitive)
Updated@uppy/utils@^5.0.0-beta