fix main file location. fix parse json

This commit is contained in:
Kesha Antonov
2023-02-19 06:26:40 +03:00
parent e431e4c471
commit 57403440a2
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -100,8 +100,9 @@ export default class DownloadTask {
tryParseJson (element) {
try {
if (element)
if (typeof element === 'string')
element = JSON.parse(element)
return element
} catch (e) {
console.warn('DownloadTask tryParseJson', e)
+1 -1
View File
@@ -24,7 +24,7 @@
"name": "Elad Gil"
}
],
"main": "index.js",
"main": "index.ts",
"types": "index.d.ts",
"files": [
"README.md",