diff --git a/project/plugins.sbt b/project/plugins.sbt index ec4445f..a300d51 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,7 +1,7 @@ -addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.13.0") +addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.13.2") addSbtPlugin( "ch.epfl.scala" % "sbt-scalajs-bundler" % "0.21.1" ) -addSbtPlugin("org.scalablytyped.converter" % "sbt-converter" % "1.0.0-beta41") +addSbtPlugin("org.scalablytyped.converter" % "sbt-converter" % "1.0.0-beta42") // dependencyUpdates addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.3") diff --git a/src/main/scala/databackend.scala b/src/main/scala/databackend.scala index 320c21f..0ea1379 100644 --- a/src/main/scala/databackend.scala +++ b/src/main/scala/databackend.scala @@ -8,7 +8,7 @@ import scala.scalajs.js.Promise import scala.scalajs.js.typedarray.Uint8Array import scala.scalajs.js.JSConverters._ import org.scalajs.dom.Blob -import typings.zipJsZipJs.mod.{BlobReader, Entry, TextWriter, ZipReader} +import typings.zipJsZipJs.mod.{BlobReader, TextWriter, ZipReader} import sttp.client3._ import fs2.{Fallible, Stream} import fs2.data.xml._ @@ -36,7 +36,7 @@ object DataBackend: val textWriter = new TextWriter() for entries <- zipReader.getEntries().toFuture - firstEntry = entries.shift().asInstanceOf[Entry] + firstEntry = entries.shift() // result <- firstEntry.getData_MEntry(helloWorldWriter).toFuture result <- firstEntry.getData // necessary fix because scalablytyped could not infer type