mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-28 17:55:06 +00:00
Update http4s to 0.21.0-RC3, fs2 to 2.2.2
This commit is contained in:
parent
ef2779a826
commit
f8aa5c28ac
@ -50,7 +50,7 @@ object Login {
|
||||
}
|
||||
|
||||
def apply[F[_]: Effect](store: Store[F]): Resource[F, Login[F]] =
|
||||
Resource.pure(new Login[F] {
|
||||
Resource.pure[F, Login[F]](new Login[F] {
|
||||
|
||||
def loginSession(config: Config)(sessionKey: String): F[Result] =
|
||||
AuthToken.fromString(sessionKey) match {
|
||||
|
@ -76,7 +76,7 @@ object OCollective {
|
||||
}
|
||||
|
||||
def apply[F[_]: Effect](store: Store[F]): Resource[F, OCollective[F]] =
|
||||
Resource.pure(new OCollective[F] {
|
||||
Resource.pure[F, OCollective[F]](new OCollective[F] {
|
||||
def find(name: Ident): F[Option[RCollective]] =
|
||||
store.transact(RCollective.findById(name))
|
||||
|
||||
|
@ -20,7 +20,7 @@ trait OEquipment[F[_]] {
|
||||
object OEquipment {
|
||||
|
||||
def apply[F[_]: Effect](store: Store[F]): Resource[F, OEquipment[F]] =
|
||||
Resource.pure(new OEquipment[F] {
|
||||
Resource.pure[F, OEquipment[F]](new OEquipment[F] {
|
||||
def findAll(account: AccountId, nameQuery: Option[String]): F[Vector[REquipment]] =
|
||||
store.transact(REquipment.findAll(account.collective, nameQuery, _.name))
|
||||
|
||||
|
@ -70,7 +70,7 @@ object OItem {
|
||||
case class AttachmentData[F[_]](ra: RAttachment, meta: FileMeta, data: Stream[F, Byte])
|
||||
|
||||
def apply[F[_]: Effect](store: Store[F]): Resource[F, OItem[F]] =
|
||||
Resource.pure(new OItem[F] {
|
||||
Resource.pure[F, OItem[F]](new OItem[F] {
|
||||
|
||||
def findItem(id: Ident, collective: Ident): F[Option[ItemData]] =
|
||||
store.transact(QItem.findItem(id)).map(opt => opt.flatMap(_.filterCollective(collective)))
|
||||
|
@ -40,7 +40,7 @@ object OJob {
|
||||
store: Store[F],
|
||||
clientEC: ExecutionContext
|
||||
): Resource[F, OJob[F]] =
|
||||
Resource.pure(new OJob[F] {
|
||||
Resource.pure[F, OJob[F]](new OJob[F] {
|
||||
|
||||
def queueState(collective: Ident, maxResults: Int): F[CollectiveQueueState] =
|
||||
store
|
||||
|
@ -104,7 +104,7 @@ object OMail {
|
||||
}
|
||||
|
||||
def apply[F[_]: Effect](store: Store[F], emil: Emil[F]): Resource[F, OMail[F]] =
|
||||
Resource.pure(new OMail[F] {
|
||||
Resource.pure[F, OMail[F]](new OMail[F] {
|
||||
def getSettings(accId: AccountId, nameQ: Option[String]): F[Vector[RUserEmail]] =
|
||||
store.transact(RUserEmail.findByAccount(accId, nameQ))
|
||||
|
||||
|
@ -37,7 +37,7 @@ object OOrganization {
|
||||
case class PersonAndContacts(person: RPerson, contacts: Seq[RContact])
|
||||
|
||||
def apply[F[_]: Effect](store: Store[F]): Resource[F, OOrganization[F]] =
|
||||
Resource.pure(new OOrganization[F] {
|
||||
Resource.pure[F, OOrganization[F]](new OOrganization[F] {
|
||||
|
||||
def findAllOrg(account: AccountId, query: Option[String]): F[Vector[OrgAndContacts]] =
|
||||
store
|
||||
|
@ -20,7 +20,7 @@ trait OSource[F[_]] {
|
||||
object OSource {
|
||||
|
||||
def apply[F[_]: Effect](store: Store[F]): Resource[F, OSource[F]] =
|
||||
Resource.pure(new OSource[F] {
|
||||
Resource.pure[F, OSource[F]](new OSource[F] {
|
||||
def findAll(account: AccountId): F[Vector[RSource]] =
|
||||
store.transact(RSource.findAll(account.collective, _.abbrev))
|
||||
|
||||
|
@ -20,7 +20,7 @@ trait OTag[F[_]] {
|
||||
object OTag {
|
||||
|
||||
def apply[F[_]: Effect](store: Store[F]): Resource[F, OTag[F]] =
|
||||
Resource.pure(new OTag[F] {
|
||||
Resource.pure[F, OTag[F]](new OTag[F] {
|
||||
def findAll(account: AccountId, nameQuery: Option[String]): F[Vector[RTag]] =
|
||||
store.transact(RTag.findAll(account.collective, nameQuery, _.name))
|
||||
|
||||
|
@ -57,7 +57,7 @@ object OUpload {
|
||||
cfg: Config,
|
||||
httpClientEC: ExecutionContext
|
||||
): Resource[F, OUpload[F]] =
|
||||
Resource.pure(new OUpload[F] {
|
||||
Resource.pure[F, OUpload[F]](new OUpload[F] {
|
||||
|
||||
def submit(data: OUpload.UploadData[F], account: AccountId): F[OUpload.UploadResult] =
|
||||
for {
|
||||
|
@ -22,7 +22,7 @@ object OSignup {
|
||||
private[this] val logger = getLogger
|
||||
|
||||
def apply[F[_]: Effect](store: Store[F]): Resource[F, OSignup[F]] =
|
||||
Resource.pure(new OSignup[F] {
|
||||
Resource.pure[F, OSignup[F]](new OSignup[F] {
|
||||
|
||||
def newInvite(cfg: Config)(password: Password): F[NewInviteResult] =
|
||||
if (cfg.mode == Config.Mode.Invite) {
|
||||
|
@ -12,9 +12,9 @@ object Dependencies {
|
||||
val EmilVersion = "0.2.0"
|
||||
val FastparseVersion = "2.1.3"
|
||||
val FlywayVersion = "6.2.1"
|
||||
val Fs2Version = "2.1.0"
|
||||
val Fs2Version = "2.2.2"
|
||||
val H2Version = "1.4.200"
|
||||
val Http4sVersion = "0.21.0-RC2"
|
||||
val Http4sVersion = "0.21.0-RC3"
|
||||
val KindProjectorVersion = "0.10.3"
|
||||
val Log4sVersion = "1.8.2"
|
||||
val LogbackVersion = "1.2.3"
|
||||
|
Loading…
x
Reference in New Issue
Block a user