Comparing version 0.5.1 to 0.5.2
# Disklet | ||
## 0.5.2 (2022-02-02) | ||
- fix: Update the gradle build file to avoid JCenter. | ||
## 0.5.1 (2021-12-29) | ||
@@ -4,0 +8,0 @@ |
@@ -950,14 +950,7 @@ 'use strict'; | ||
var type = listing[path]; | ||
if (type === 'folder') { | ||
return dumpData(navigateDisklet(disklet, path)).then(function (folderData) { | ||
json[path] = folderData; | ||
}); | ||
} | ||
if (type === 'file') { | ||
return disklet.getText(path).then(function (data) { | ||
json[path] = JSON.parse(data); | ||
}); | ||
} | ||
return type === 'folder' ? dumpData(navigateDisklet(disklet, path)).then(function (folderData) { | ||
json[path] = folderData; | ||
}) : disklet.getText(path).then(function (data) { | ||
json[path] = JSON.parse(data); | ||
}); | ||
})).then(function () { | ||
@@ -964,0 +957,0 @@ return json; |
@@ -941,14 +941,7 @@ import { base64 } from 'rfc4648'; | ||
var type = listing[path]; | ||
if (type === 'folder') { | ||
return dumpData(navigateDisklet(disklet, path)).then(function (folderData) { | ||
json[path] = folderData; | ||
}); | ||
} | ||
if (type === 'file') { | ||
return disklet.getText(path).then(function (data) { | ||
json[path] = JSON.parse(data); | ||
}); | ||
} | ||
return type === 'folder' ? dumpData(navigateDisklet(disklet, path)).then(function (folderData) { | ||
json[path] = folderData; | ||
}) : disklet.getText(path).then(function (data) { | ||
json[path] = JSON.parse(data); | ||
}); | ||
})).then(function () { | ||
@@ -955,0 +948,0 @@ return json; |
@@ -752,14 +752,7 @@ 'use strict'; | ||
var type = listing[path]; | ||
if (type === 'folder') { | ||
return dumpData(navigateDisklet(disklet, path)).then(function (folderData) { | ||
json[path] = folderData; | ||
}); | ||
} | ||
if (type === 'file') { | ||
return disklet.getText(path).then(function (data) { | ||
json[path] = JSON.parse(data); | ||
}); | ||
} | ||
return type === 'folder' ? dumpData(navigateDisklet(disklet, path)).then(function (folderData) { | ||
json[path] = folderData; | ||
}) : disklet.getText(path).then(function (data) { | ||
json[path] = JSON.parse(data); | ||
}); | ||
})).then(function () { | ||
@@ -766,0 +759,0 @@ return json; |
@@ -720,14 +720,7 @@ 'use strict'; | ||
var type = listing[path]; | ||
if (type === 'folder') { | ||
return dumpData(navigateDisklet(disklet, path)).then(function (folderData) { | ||
json[path] = folderData; | ||
}); | ||
} | ||
if (type === 'file') { | ||
return disklet.getText(path).then(function (data) { | ||
json[path] = JSON.parse(data); | ||
}); | ||
} | ||
return type === 'folder' ? dumpData(navigateDisklet(disklet, path)).then(function (folderData) { | ||
json[path] = folderData; | ||
}) : disklet.getText(path).then(function (data) { | ||
json[path] = JSON.parse(data); | ||
}); | ||
})).then(function () { | ||
@@ -734,0 +727,0 @@ return json; |
{ | ||
"name": "disklet", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "A tiny, composable filesystem API", | ||
@@ -42,3 +42,3 @@ "homepage": "https://github.com/EdgeApp/disklet", | ||
"lint-staged": { | ||
"*.{js,ts}": "eslint" | ||
"*.{js,jsx,ts,tsx}": "eslint" | ||
}, | ||
@@ -71,2 +71,4 @@ "dependencies": { | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-react": "^7.21.5", | ||
"eslint-plugin-react-hooks": "^4.2.0", | ||
"eslint-plugin-simple-import-sort": "^6.0.1", | ||
@@ -73,0 +75,0 @@ "husky": "^7.0.0", |
@@ -14,12 +14,9 @@ import { Disklet } from '../types' | ||
const type = listing[path] | ||
if (type === 'folder') { | ||
return dumpData(navigateDisklet(disklet, path)).then(folderData => { | ||
json[path] = folderData | ||
}) | ||
} | ||
if (type === 'file') { | ||
return disklet.getText(path).then(data => { | ||
json[path] = JSON.parse(data) | ||
}) | ||
} | ||
return type === 'folder' | ||
? dumpData(navigateDisklet(disklet, path)).then(folderData => { | ||
json[path] = folderData | ||
}) | ||
: disklet.getText(path).then(data => { | ||
json[path] = JSON.parse(data) | ||
}) | ||
}) | ||
@@ -26,0 +23,0 @@ ).then(() => json) |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
410125
36
4764