GithubHelp home page GithubHelp logo

atomotic / archiviiify Goto Github PK

View Code? Open in Web Editor NEW
34.0 3.0 3.0 534 KB

Download digitized books from Internet Archive and view with IIIF, locally and offline.

Home Page: https://literarymachin.es/archiviiify/

License: MIT License

HTML 9.53% Go 90.47%
iiif internetarchive digital-libraries code4lib

archiviiify's Introduction

Hi there, I'm Raffaele (@atomotic).

What I do: digital libraries, metadata and search operations, IIIF, web archiving.
What I love: mountains, bikes, JG Ballard and Colin Wilson.

archiviiify's People

Contributors

atomotic avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

archiviiify's Issues

Parallel-ize Tesseract?

Thanks for creating this and documenting it publicly! I'm in the middle of getting it up and running to work with the Brooklyn City Directory data in IA, which is a long-running hobby of mine. Archiviiify may make my life vastly easier, so thanks again.

I'm wondering if you'd consider implementing parallels for the OCR section, which could be done like this (I think):

cat ocr/ITEM.list | parallel --eta "tesseract -l eng {} {.} hocr"

Or even in your OCR script the following, with one less step:
find data/$ITEM/*.jp2 | parallel --eta "tesseract -l eng {} {.} hocr"

(my version here is using the eng language flag, but could be whatever...)

For other projects, I've found that HOCR creation works quite well in parallel, since tesseract can just crunch through the pool of whatever discrete items you give it, and can make use of as many threads as you can throw at it.

I'd be happy to do a pull request with this tweak if you like, but thought I would ask since you may have already considered this

Can't install (Mac OSX Catalina 10.15.7)

Dear Raffaele,

I'm trying to install archiviiify to use in a TNA (The National Archives, UK) project.
I get a lot of Deno errors (but 'brew install deno' worked well)...
All the best,
jp

MBP-de-jp:archiviiify bnf$ docker-compose up
[+] Building 14.9s (13/20)
=> [archiviiify-iiif-search-api internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 31B 0.0s
=> [archiviiify-iipsrv internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 124B 0.0s
=> [archiviiify-iiif-search-api internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [archiviiify-iipsrv internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [archiviiify-iiif-search-api internal] load metadata for docker.io/hayd/alpine-deno:latest 1.5s
=> [archiviiify-iipsrv internal] load metadata for docker.io/library/debian:latest 1.4s
=> CACHED [archiviiify-iipsrv 1/9] FROM docker.io/library/debian@sha256:bfe6615d017d1eebe19f349669de58cda36c668ef916e618be78 0.0s
=> CANCELED [archiviiify-iipsrv 2/9] RUN apt update && apt install -y build-essential git libtiff-dev autoconf libtool pkg- 13.2s
=> [archiviiify-iiif-search-api 1/4] FROM docker.io/hayd/alpine-deno@sha256:01eafb80f4c32d977a78d1c57422f8ad3d19bab6805b148d 0.0s
=> [archiviiify-iiif-search-api internal] load build context 0.0s
=> => transferring context: 172B 0.0s
=> CACHED [archiviiify-iiif-search-api 2/4] WORKDIR /app 0.0s
=> CACHED [archiviiify-iiif-search-api 3/4] ADD . . 0.0s
=> ERROR [archiviiify-iiif-search-api 4/4] RUN deno cache main.js 13.1s

[archiviiify-iiif-search-api 4/4] RUN deno cache main.js:
#0 0.715 Download https://deno.land/x/oak/mod.ts
#0 0.716 Download https://deno.land/x/oak/helpers.ts
#0 0.717 Download https://deno.land/x/cors/mod.ts
#0 0.717 Download https://cdn.jsdelivr.net/npm/short-unique-id@latest/short_uuid/mod.ts
#0 0.868 Download https://cdn.jsdelivr.net/npm/short-unique-id@latest/short_uuid/version.ts
#0 1.157 Warning Implicitly using latest version (v11.1.0) for https://deno.land/x/oak/helpers.ts
#0 1.161 Download https://deno.land/x/[email protected]/helpers.ts
#0 1.161 Warning Implicitly using latest version (v11.1.0) for https://deno.land/x/oak/mod.ts
#0 1.162 Download https://deno.land/x/[email protected]/mod.ts
#0 1.194 Download https://deno.land/x/[email protected]/router.ts
#0 1.194 Download https://deno.land/x/[email protected]/util.ts
#0 1.194 Download https://deno.land/x/[email protected]/context.ts
#0 1.206 Download https://deno.land/x/[email protected]/range.ts
#0 1.206 Download https://deno.land/x/[email protected]/etag.ts
#0 1.207 Download https://deno.land/x/[email protected]/testing.ts
#0 1.209 Download https://deno.land/x/[email protected]/application.ts
#0 1.210 Download https://deno.land/x/[email protected]/send.ts
#0 1.211 Download https://deno.land/x/[email protected]/types.d.ts
#0 1.214 Download https://deno.land/x/[email protected]/server_sent_event.ts
#0 1.215 Download https://deno.land/x/[email protected]/deps.ts
#0 1.216 Download https://deno.land/x/[email protected]/middleware/proxy.ts
#0 1.217 Download https://deno.land/x/[email protected]/cookies.ts
#0 1.219 Download https://deno.land/x/[email protected]/middleware.ts
#0 1.222 Download https://deno.land/x/[email protected]/body.ts
#0 1.222 Download https://deno.land/x/[email protected]/multipart.ts
#0 1.222 Download https://deno.land/x/[email protected]/http_server_flash.ts
#0 1.222 Download https://deno.land/x/[email protected]/http_server_native.ts
#0 1.223 Download https://deno.land/x/[email protected]/http_request.ts
#0 1.223 Download https://deno.land/x/[email protected]/http_server_native_request.ts
#0 1.225 Download https://deno.land/x/[email protected]/response.ts
#0 1.226 Download https://deno.land/x/[email protected]/request.ts
#0 1.228 Warning Implicitly using latest version (v1.2.2) for https://deno.land/x/cors/mod.ts
#0 1.235 Download https://deno.land/x/[email protected]/mod.ts
#0 1.265 Download https://deno.land/x/[email protected]/keyStack.ts
#0 1.281 Download https://deno.land/[email protected]/io/readers.ts
#0 1.282 Download https://deno.land/[email protected]/bytes/mod.ts
#0 1.284 Download https://deno.land/[email protected]/encoding/base64.ts
#0 1.285 Download https://deno.land/[email protected]/http/http_errors.ts
#0 1.286 Download https://deno.land/[email protected]/http/http_status.ts
#0 1.287 Download https://deno.land/[email protected]/crypto/timing_safe_equal.ts
#0 1.288 Download https://deno.land/[email protected]/http/negotiation.ts
#0 1.290 Download https://deno.land/[email protected]/async/deferred.ts
#0 1.291 Download https://deno.land/[email protected]/media_types/mod.ts
#0 1.293 Download https://deno.land/[email protected]/streams/conversion.ts
#0 1.294 Download https://deno.land/[email protected]/path/mod.ts
#0 1.297 Download https://deno.land/x/[email protected]/index.ts
#0 1.319 Download https://deno.land/x/[email protected]/structured_clone.ts
#0 1.387 Download https://deno.land/x/[email protected]/isMediaType.ts
#0 1.388 Download https://deno.land/x/[email protected]/content_disposition.ts
#0 1.389 Download https://deno.land/x/[email protected]/buf_reader.ts
#0 1.389 Download https://deno.land/x/[email protected]/headers.ts
#0 1.390 Download https://deno.land/x/[email protected]/oakCors.ts
#0 1.390 Download https://deno.land/x/[email protected]/abcCors.ts
#0 1.391 Download https://deno.land/x/[email protected]/opineCors.ts
#0 1.392 Download https://deno.land/x/[email protected]/types.ts
#0 1.393 Download https://deno.land/x/[email protected]/attainCors.ts
#0 1.393 Download https://deno.land/x/[email protected]/mithCors.ts
#0 1.480 Download https://deno.land/[email protected]/io/buffer.ts
#0 1.481 Download https://deno.land/[email protected]/bytes/equals.ts
#0 1.482 Download https://deno.land/[email protected]/http/_negotiation/media_type.ts
#0 1.483 Download https://deno.land/[email protected]/http/_negotiation/encoding.ts
#0 1.484 Download https://deno.land/[email protected]/http/_negotiation/language.ts
#0 1.485 Download https://deno.land/[email protected]/testing/asserts.ts
#0 1.485 Download https://deno.land/[email protected]/path/separator.ts
#0 1.485 Download https://deno.land/[email protected]/path/_interface.ts
#0 1.486 Download https://deno.land/[email protected]/path/glob.ts
#0 1.487 Download https://deno.land/[email protected]/path/posix.ts
#0 1.487 Download https://deno.land/[email protected]/_util/os.ts
#0 1.487 Download https://deno.land/[email protected]/path/win32.ts
#0 1.488 Download https://deno.land/[email protected]/path/common.ts
#0 1.489 Download https://deno.land/[email protected]/media_types/vendor/mime-db.v1.52.0.ts
#0 1.489 Download https://deno.land/[email protected]/media_types/_util.ts
#0 1.537 Download https://deno.land/x/[email protected]/mediaTyper.ts
#0 1.537 Download https://deno.land/x/[email protected]/cors.ts
#0 1.555 Download https://deno.land/[email protected]/http/_negotiation/common.ts
#0 1.575 Download https://deno.land/[email protected]/_util/assert.ts
#0 1.576 Download https://deno.land/[email protected]/bytes/bytes_list.ts
#0 1.578 Download https://deno.land/[email protected]/io/types.d.ts
#0 1.655 Download https://deno.land/[email protected]/path/_constants.ts
#0 1.658 Download https://deno.land/[email protected]/path/_util.ts
#0 1.663 Download https://deno.land/[email protected]/testing/_format.ts
#0 1.663 Download https://deno.land/[email protected]/fmt/colors.ts
#0 1.663 Download https://deno.land/[email protected]/testing/_diff.ts
#0 1.801 Check file:///app/main.js
#0 12.91 error: TS1005 [ERROR]: ',' expected.
#0 12.91 type ErrorStatus,
#0 12.91 ~~~~~~~~~~~
#0 12.91 at https://deno.land/[email protected]/http/http_errors.ts:49:8
#0 12.91
#0 12.91 TS1005 [ERROR]: ';' expected.
#0 12.91 override get status() {
#0 12.91 ~~~
#0 12.91 at https://deno.land/[email protected]/http/http_errors.ts:155:14
#0 12.91
#0 12.91 TS1005 [ERROR]: ';' expected.
#0 12.91 override name = "BufferFullError";
#0 12.91 ~~~~
#0 12.91 at https://deno.land/[email protected]/io/buffer.ts:257:12
#0 12.91
#0 12.91 TS1005 [ERROR]: ';' expected.
#0 12.91 override name = "PartialReadError";
#0 12.91 ~~~~
#0 12.91 at https://deno.land/[email protected]/io/buffer.ts:264:12
#0 12.91
#0 12.91 TS1005 [ERROR]: ';' expected.
#0 12.91 override name = "AssertionError";
#0 12.91 ~~~~
#0 12.91 at https://deno.land/[email protected]/testing/asserts.ts:18:12
#0 12.91
#0 12.91 TS1005 [ERROR]: ',' expected.
#0 12.91 type Deferred,
#0 12.91 ~~~~~~~~
#0 12.91 at https://deno.land/x/[email protected]/deps.ts:8:8
#0 12.91
#0 12.91 TS1005 [ERROR]: ',' expected.
#0 12.91 type Key,
#0 12.91 ~~~
#0 12.91 at https://deno.land/x/[email protected]/deps.ts:58:8
#0 12.91
#0 12.91 TS1005 [ERROR]: ',' expected.
#0 12.91 type ParseOptions,
#0 12.91 ~~~~~~~~~~~~
#0 12.91 at https://deno.land/x/[email protected]/deps.ts:61:8
#0 12.91
#0 12.91 TS1005 [ERROR]: ',' expected.
#0 12.91 type TokensToRegexpOptions,
#0 12.91 ~~~~~~~~~~~~~~~~~~~~~
#0 12.91 at https://deno.land/x/[email protected]/deps.ts:63:8
#0 12.91
#0 12.91 TS1005 [ERROR]: ',' expected.
#0 12.91 import { type Deferred } from "./deps.ts";
#0 12.91 ~~~~~~~~
#0 12.91 at https://deno.land/x/[email protected]/http_request.ts:3:15
#0 12.91
#0 12.91 TS1005 [ERROR]: ',' expected.
#0 12.91 import { type Application } from "./application.ts";
#0 12.91 ~~~~~~~~~~~
#0 12.91 at https://deno.land/x/[email protected]/http_server_flash.ts:3:15
#0 12.91
#0 12.91 TS1005 [ERROR]: ',' expected.
#0 12.91 export { Context, type ContextSendOptions } from "./context.ts";
#0 12.91 ~~~~~~~~~~~~~~~~~~
#0 12.91 at https://deno.land/x/[email protected]/mod.ts:82:24
#0 12.91
#0 12.91 TS1005 [ERROR]: ',' expected.
#0 12.91 type CookiesGetOptions,
#0 12.91 ~~~~~~~~~~~~~~~~~
#0 12.91 at https://deno.land/x/[email protected]/mod.ts:86:8
#0 12.91
#0 12.91 TS1005 [ERROR]: ',' expected.
#0 12.91 type CookiesSetDeleteOptions,
#0 12.91 ~~~~~~~~~~~~~~~~~~~~~~~
#0 12.91 at https://deno.land/x/[email protected]/mod.ts:87:8
#0 12.91
#0 12.92 TS1005 [ERROR]: ',' expected.
#0 12.92 export { type NativeRequest } from "./http_server_native_request.ts";
#0 12.92 ~~~~~~~~~~~~~
#0 12.92 at https://deno.land/x/[email protected]/mod.ts:93:15
#0 12.92
#0 12.92 TS7008 [ERROR]: Member 'override' implicitly has an 'any' type.
#0 12.92 override name = "AssertionError";
#0 12.92 ~~~~~~~~
#0 12.92 at https://deno.land/[email protected]/testing/asserts.ts:18:3
#0 12.92
#0 12.92 TS2352 [ERROR]: Conversion of type 'T' to type 'string' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
#0 12.92 ? diffstr(actual as string, expected as string)
#0 12.92 ~~~~~~~~~~~~~~~~
#0 12.92 at https://deno.land/[email protected]/testing/asserts.ts:173:17
#0 12.92
#0 12.92 TS2352 [ERROR]: Conversion of type 'T' to type 'string' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
#0 12.92 ? diffstr(actual as string, expected as string)
#0 12.92 ~~~~~~~~~~~~~~~~~~
#0 12.92 at https://deno.land/[email protected]/testing/asserts.ts:173:35
#0 12.92
#0 12.92 TS2352 [ERROR]: Conversion of type 'T' to type 'string' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
#0 12.92 ? diffstr(actual as string, expected as string)
#0 12.92 ~~~~~~~~~~~~~~~~~~
#0 12.92 at https://deno.land/[email protected]/testing/asserts.ts:261:39
#0 12.92
#0 12.92 TS2531 [ERROR]: Object is possibly 'null'.
#0 12.92 actualTypeStr = actual.constructor?.name ?? "Object";
#0 12.92 ~~~~~~
#0 12.92 at https://deno.land/[email protected]/testing/asserts.ts:359:23
#0 12.92
#0 12.92 TS2305 [ERROR]: Module '"https://deno.land/[email protected]/http/http_status.ts"' has no exported member 'type'.
#0 12.92 type ErrorStatus,
#0 12.92 ~~~~
#0 12.92 at https://deno.land/[email protected]/http/http_errors.ts:49:3
#0 12.92
#0 12.92 TS2304 [ERROR]: Cannot find name 'ErrorOptions'.
#0 12.92 export interface HttpErrorOptions extends ErrorOptions {
#0 12.92 ~~~~~~~~~~~~
#0 12.92 at https://deno.land/[email protected]/http/http_errors.ts:99:43
#0 12.92
#0 12.92 TS2554 [ERROR]: Expected 0-1 arguments, but got 2.
#0 12.92 super(message, options);
#0 12.92 ~~~~~~~
#0 12.92 at https://deno.land/[email protected]/http/http_errors.ts:114:20
#0 12.92
#0 12.92 TS7008 [ERROR]: Member 'override' implicitly has an 'any' type.
#0 12.92 override get status() {
#0 12.92 ~~~~~~~~
#0 12.92 at https://deno.land/[email protected]/http/http_errors.ts:155:5
#0 12.92
#0 12.92 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.92 #tryGrowByReslice(n: number) {
#0 12.92 ~~~~~~~~~~~~~~~~~
#0 12.92 at https://deno.land/[email protected]/io/buffer.ts:86:3
#0 12.92
#0 12.92 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.92 #reslice(len: number) {
#0 12.92 ~~~~~~~~
#0 12.92 at https://deno.land/[email protected]/io/buffer.ts:95:3
#0 12.92
#0 12.92 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.92 #grow(n: number) {
#0 12.92 ~~~~~
#0 12.92 at https://deno.land/[email protected]/io/buffer.ts:142:3
#0 12.92
#0 12.92 TS7008 [ERROR]: Member 'override' implicitly has an 'any' type.
#0 12.92 override name = "BufferFullError";
#0 12.92 ~~~~~~~~
#0 12.92 at https://deno.land/[email protected]/io/buffer.ts:257:3
#0 12.92
#0 12.92 TS7008 [ERROR]: Member 'override' implicitly has an 'any' type.
#0 12.92 override name = "PartialReadError";
#0 12.92 ~~~~~~~~
#0 12.92 at https://deno.land/[email protected]/io/buffer.ts:264:3
#0 12.92
#0 12.92 TS2339 [ERROR]: Property 'cause' does not exist on type 'PartialReadError'.
#0 12.92 e.cause = err.cause;
#0 12.92 ~~~~~
#0 12.92 at https://deno.land/[email protected]/io/buffer.ts:432:13
#0 12.92
#0 12.92 TS2339 [ERROR]: Property 'cause' does not exist on type 'Error'.
#0 12.92 e.cause = err.cause;
#0 12.92 ~~~~~
#0 12.92 at https://deno.land/[email protected]/io/buffer.ts:432:25
#0 12.92
#0 12.92 TS2339 [ERROR]: Property 'cause' does not exist on type 'PartialReadError'.
#0 12.92 e.cause = err.cause;
#0 12.92 ~~~~~
#0 12.92 at https://deno.land/[email protected]/io/buffer.ts:618:13
#0 12.92
#0 12.92 TS2339 [ERROR]: Property 'cause' does not exist on type 'Error'.
#0 12.92 e.cause = err.cause;
#0 12.92 ~~~~~
#0 12.92 at https://deno.land/[email protected]/io/buffer.ts:618:25
#0 12.92
#0 12.92 TS2339 [ERROR]: Property 'cause' does not exist on type 'PartialReadError'.
#0 12.92 e.cause = err.cause;
#0 12.92 ~~~~~
#0 12.92 at https://deno.land/[email protected]/io/buffer.ts:663:13
#0 12.92
#0 12.92 TS2339 [ERROR]: Property 'cause' does not exist on type 'Error'.
#0 12.92 e.cause = err.cause;
#0 12.92 ~~~~~
#0 12.92 at https://deno.land/[email protected]/io/buffer.ts:663:25
#0 12.92
#0 12.92 TS2322 [ERROR]: Type 'string' is not assignable to type 'Lowercase extends KnownExtensionOrType ? string : string | undefined'.
#0 12.92 return formatMediaType(mediaType, params);
#0 12.92 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#0 12.92 at https://deno.land/[email protected]/media_types/mod.ts:126:5
#0 12.92
#0 12.92 TS2300 [ERROR]: Duplicate identifier 'type'.
#0 12.92 type Deferred,
#0 12.92 ~~~~
#0 12.92 at https://deno.land/x/[email protected]/deps.ts:8:3
#0 12.92
#0 12.92 TS2300 [ERROR]: Duplicate identifier 'type'.
#0 12.92 type Key,
#0 12.92 ~~~~
#0 12.92 at https://deno.land/x/[email protected]/deps.ts:58:3
#0 12.92
#0 12.92 TS2300 [ERROR]: Duplicate identifier 'type'.
#0 12.92 type Deferred,
#0 12.92 ~~~~
#0 12.92 at https://deno.land/x/[email protected]/deps.ts:8:3
#0 12.92
#0 12.92 TS2300 [ERROR]: Duplicate identifier 'type'.
#0 12.92 type ParseOptions,
#0 12.92 ~~~~
#0 12.92 at https://deno.land/x/[email protected]/deps.ts:61:3
#0 12.92
#0 12.92 TS2300 [ERROR]: Duplicate identifier 'type'.
#0 12.92 type Deferred,
#0 12.92 ~~~~
#0 12.92 at https://deno.land/x/[email protected]/deps.ts:8:3
#0 12.92
#0 12.92 TS2300 [ERROR]: Duplicate identifier 'type'.
#0 12.92 type TokensToRegexpOptions,
#0 12.92 ~~~~
#0 12.92 at https://deno.land/x/[email protected]/deps.ts:63:3
#0 12.92
#0 12.92 TS2305 [ERROR]: Module '"https://deno.land/[email protected]/async/deferred.ts"' has no exported member 'type'.
#0 12.92 type Deferred,
#0 12.92 ~~~~
#0 12.92 at https://deno.land/x/[email protected]/deps.ts:8:3
#0 12.92
#0 12.92 TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
#0 12.92 type Deferred,
#0 12.92 ~~~~~~~~
#0 12.92 at https://deno.land/x/[email protected]/deps.ts:8:8
#0 12.92
#0 12.92 TS2305 [ERROR]: Module '"https://deno.land/x/[email protected]/index.ts"' has no exported member 'type'.
#0 12.92 type Key,
#0 12.92 ~~~~
#0 12.92 at https://deno.land/x/[email protected]/deps.ts:58:3
#0 12.92
#0 12.92 TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
#0 12.92 type Key,
#0 12.92 ~~~
#0 12.92 at https://deno.land/x/[email protected]/deps.ts:58:8
#0 12.92
#0 12.92 TS2305 [ERROR]: Module '"https://deno.land/x/[email protected]/index.ts"' has no exported member 'type'.
#0 12.92 type ParseOptions,
#0 12.92 ~~~~
#0 12.92 at https://deno.land/x/[email protected]/deps.ts:61:3
#0 12.93
#0 12.93 TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
#0 12.93 type ParseOptions,
#0 12.93 ~~~~~~~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/deps.ts:61:8
#0 12.93
#0 12.93 TS2305 [ERROR]: Module '"https://deno.land/x/[email protected]/index.ts"' has no exported member 'type'.
#0 12.93 type TokensToRegexpOptions,
#0 12.93 ~~~~
#0 12.93 at https://deno.land/x/[email protected]/deps.ts:63:3
#0 12.93
#0 12.93 TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
#0 12.93 type TokensToRegexpOptions,
#0 12.93 ~~~~~~~~~~~~~~~~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/deps.ts:63:8
#0 12.93
#0 12.93 TS2304 [ERROR]: Cannot find name 'CryptoKey'.
#0 12.93 #cryptoKeys = new Map<Key, CryptoKey>();
#0 12.93 ~~~~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/keyStack.ts:31:30
#0 12.93
#0 12.93 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.93 async #toCryptoKey(key: Key): Promise {
#0 12.93 ~~~~~~~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/keyStack.ts:34:9
#0 12.93
#0 12.93 TS2304 [ERROR]: Cannot find name 'CryptoKey'.
#0 12.93 async #toCryptoKey(key: Key): Promise {
#0 12.93 ~~~~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/keyStack.ts:34:41
#0 12.93
#0 12.93 TS2724 [ERROR]: 'Deno' has no exported member named 'FsFile'. Did you mean 'File'?
#0 12.93 async function getFile(contentType: string): Promise<[string, Deno.FsFile]> {
#0 12.93 ~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/multipart.ts:185:70
#0 12.93
#0 12.93 TS2724 [ERROR]: 'Deno' has no exported member named 'FsFile'. Did you mean 'File'?
#0 12.93 let file: Deno.FsFile | undefined;
#0 12.93 ~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/multipart.ts:226:22
#0 12.93
#0 12.93 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.93 #exceedsLimit(limit: number): boolean {
#0 12.93 ~~~~~~~~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/body.ts:195:3
#0 12.93
#0 12.93 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.93 #parse(type: BodyType, limit: number): BodyValueGetter {
#0 12.93 ~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/body.ts:213:3
#0 12.93
#0 12.93 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.93 #validateGetArgs(
#0 12.93 ~~~~~~~~~~~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/body.ts:269:3
#0 12.93
#0 12.93 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.93 #valuePromise() {
#0 12.93 ~~~~~~~~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/body.ts:310:3
#0 12.93
#0 12.93 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.93 #getRemoteAddr(): string {
#0 12.93 ~~~~~~~~~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/request.ts:39:3
#0 12.93
#0 12.93 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.93 async #getBodyInit(): Promise<globalThis.BodyInit | undefined> {
#0 12.93 ~~~~~~~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/response.ts:116:9
#0 12.93
#0 12.93 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.93 #setContentType(): void {
#0 12.93 ~~~~~~~~~~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/response.ts:126:3
#0 12.93
#0 12.93 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.93 #requestKeys(): string[] {
#0 12.93 ~~~~~~~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/cookies.ts:182:3
#0 12.93
#0 12.93 TS2531 [ERROR]: Object is possibly 'null'.
#0 12.93 const hash = base64.encode(await crypto.subtle.digest("SHA-1", entity))
#0 12.93 ~~~~~~~~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/etag.ts:54:36
#0 12.93
#0 12.93 TS2724 [ERROR]: 'Deno' has no exported member named 'FsFile'. Did you mean 'File'?
#0 12.93 function fstat(file: Deno.FsFile): Promise<Deno.FileInfo | undefined> {
#0 12.93 ~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/etag.ts:60:27
#0 12.93
#0 12.93 TS2551 [ERROR]: Property 'FsFile' does not exist on type 'typeof Deno'. Did you mean 'File'?
#0 12.93 if (body instanceof Deno.FsFile) {
#0 12.93 ~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/etag.ts:75:28
#0 12.93
#0 12.93 'File' is declared here.
#0 12.93 export class File
#0 12.93 ~~~~
#0 12.93 at asset:///lib.deno.ns.d.ts:780:16
#0 12.93
#0 12.93 TS2724 [ERROR]: 'Deno' has no exported member named 'FsFile'. Did you mean 'File'?
#0 12.93 ): Promise<[Uint8Array | Deno.FsFile, Uint8Array | FileInfo]> {
#0 12.93 ~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/send.ts:124:31
#0 12.93
#0 12.93 TS2724 [ERROR]: 'Deno' has no exported member named 'FsFile'. Did you mean 'File'?
#0 12.93 let body: Uint8Array | Deno.FsFile;
#0 12.93 ~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/send.ts:125:31
#0 12.93
#0 12.93 TS2724 [ERROR]: 'Deno' has no exported member named 'FsFile'. Did you mean 'File'?
#0 12.93 body: Uint8Array | Deno.FsFile,
#0 12.93 ~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/send.ts:145:27
#0 12.93
#0 12.93 TS2724 [ERROR]: 'Deno' has no exported member named 'FsFile'. Did you mean 'File'?
#0 12.93 let body: Uint8Array | Deno.FsFile | null = null;
#0 12.93 ~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/send.ts:315:31
#0 12.93
#0 12.93 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.93 #error(error: any) {
#0 12.93 ~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/server_sent_event.ts:226:3
#0 12.93
#0 12.93 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.93 #push(payload: string) {
#0 12.93 ~~~~~
#0 12.93 at https://deno.land/x/[email protected]/server_sent_event.ts:234:3
#0 12.93
#0 12.93 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.93 #wrapReviverReplacer(
#0 12.93 ~~~~~~~~~~~~~~~~~~~~
#0 12.93 at https://deno.land/x/[email protected]/context.ts:88:3
#0 12.93
#0 12.94 TS2305 [ERROR]: Module '"https://deno.land/x/[email protected]/application.ts"' has no exported member 'type'.
#0 12.94 import { type Application } from "./application.ts";
#0 12.94 ~~~~
#0 12.94 at https://deno.land/x/[email protected]/http_server_flash.ts:3:10
#0 12.94
#0 12.94 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.94 #trackHttpConnection(httpConn: HttpConn): void {
#0 12.94 ~~~~~~~~~~~~~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/http_server_native.ts:92:3
#0 12.94
#0 12.94 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.94 #untrackHttpConnection(httpConn: HttpConn): void {
#0 12.94 ~~~~~~~~~~~~~~~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/http_server_native.ts:96:3
#0 12.94
#0 12.94 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.94 #getComposed(): (context: Context<AS, AS>) => Promise {
#0 12.94 ~~~~~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/application.ts:369:3
#0 12.94
#0 12.94 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.94 #getContextState(): AS {
#0 12.94 ~~~~~~~~~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/application.ts:376:3
#0 12.94
#0 12.94 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.94 #handleError(context: Context, error: any): void {
#0 12.94 ~~~~~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/application.ts:392:3
#0 12.94
#0 12.94 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.94 async #handleRequest(
#0 12.94 ~~~~~~~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/application.ts:420:9
#0 12.94
#0 12.94 TS2536 [ERROR]: Type 'number' cannot be used to index type 'RouteParams'.
#0 12.94 params[this.#paramNames[i].name] = c ? decodeComponent(c) : c;
#0 12.94 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/router.ts:307:9
#0 12.94
#0 12.94 TS2536 [ERROR]: Type 'string' cannot be used to index type 'RouteParams'.
#0 12.94 params[this.#paramNames[i].name] = c ? decodeComponent(c) : c;
#0 12.94 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/router.ts:307:9
#0 12.94
#0 12.94 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.94 #match(path: string, method: HTTPMethods): Matches {
#0 12.94 ~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/router.ts:461:3
#0 12.94
#0 12.94 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.94 #register(
#0 12.94 ~~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/router.ts:483:3
#0 12.94
#0 12.94 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.94 #addLayer(
#0 12.94 ~~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/router.ts:530:3
#0 12.94
#0 12.94 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.94 #route(name: string): Layer | undefined {
#0 12.94 ~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/router.ts:562:3
#0 12.94
#0 12.94 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.94 #useVerb(
#0 12.94 ~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/router.ts:570:3
#0 12.94
#0 12.94 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.94 #clone(): Router {
#0 12.94 ~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/router.ts:589:3
#0 12.94
#0 12.94 TS2531 [ERROR]: Object is possibly 'null'.
#0 12.94 const buffer = await crypto.subtle.digest(
#0 12.94 ~~~~~~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/util.ts:64:24
#0 12.94
#0 12.94 TS2531 [ERROR]: Object is possibly 'null'.
#0 12.94 const buffer = await crypto.subtle.digest(
#0 12.94 ~~~~~~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/util.ts:72:24
#0 12.94
#0 12.94 TS2304 [ERROR]: Cannot find name 'CryptoKey'.
#0 12.94 export function importKey(key: Key): Promise {
#0 12.94 ~~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/util.ts:447:46
#0 12.94
#0 12.94 TS2531 [ERROR]: Object is possibly 'null'.
#0 12.94 return crypto.subtle.importKey(
#0 12.94 ~~~~~~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/util.ts:453:10
#0 12.94
#0 12.94 TS2304 [ERROR]: Cannot find name 'CryptoKey'.
#0 12.94 export function sign(data: Data, key: CryptoKey): Promise {
#0 12.94 ~~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/util.ts:465:39
#0 12.94
#0 12.94 TS2531 [ERROR]: Object is possibly 'null'.
#0 12.94 return crypto.subtle.sign("HMAC", key, data);
#0 12.94 ~~~~~~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/util.ts:471:10
#0 12.94
#0 12.94 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.94 async #fill(): Promise {
#0 12.94 ~~~~~
#0 12.94 at https://deno.land/x/[email protected]/buf_reader.ts:32:9
#0 12.94
#0 12.94 TS18022 [ERROR]: A method cannot be named with a private identifier.
#0 12.94 #reset(buffer: Uint8Array, reader: Deno.Reader): void {
#0 12.94 ~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/buf_reader.ts:63:3
#0 12.94
#0 12.94 TS2300 [ERROR]: Duplicate identifier 'type'.
#0 12.94 export { Context, type ContextSendOptions } from "./context.ts";
#0 12.94 ~~~~
#0 12.94 at https://deno.land/x/[email protected]/mod.ts:82:19
#0 12.94
#0 12.94 TS2300 [ERROR]: Duplicate identifier 'type'.
#0 12.94 type CookiesGetOptions,
#0 12.94 ~~~~
#0 12.94 at https://deno.land/x/[email protected]/mod.ts:86:3
#0 12.94
#0 12.94 TS2300 [ERROR]: Duplicate identifier 'type'.
#0 12.94 export { Context, type ContextSendOptions } from "./context.ts";
#0 12.94 ~~~~
#0 12.94 at https://deno.land/x/[email protected]/mod.ts:82:19
#0 12.94
#0 12.94 TS2300 [ERROR]: Duplicate identifier 'type'.
#0 12.94 type CookiesSetDeleteOptions,
#0 12.94 ~~~~
#0 12.94 at https://deno.land/x/[email protected]/mod.ts:87:3
#0 12.94
#0 12.94 TS2300 [ERROR]: Duplicate identifier 'type'.
#0 12.94 export { Context, type ContextSendOptions } from "./context.ts";
#0 12.94 ~~~~
#0 12.94 at https://deno.land/x/[email protected]/mod.ts:82:19
#0 12.94
#0 12.94 TS2300 [ERROR]: Duplicate identifier 'type'.
#0 12.94 export { type NativeRequest } from "./http_server_native_request.ts";
#0 12.94 ~~~~
#0 12.94 at https://deno.land/x/[email protected]/mod.ts:93:10
#0 12.94
#0 12.94 TS2305 [ERROR]: Module '"https://deno.land/x/[email protected]/context.ts"' has no exported member 'type'.
#0 12.94 export { Context, type ContextSendOptions } from "./context.ts";
#0 12.94 ~~~~
#0 12.94 at https://deno.land/x/[email protected]/mod.ts:82:19
#0 12.94
#0 12.94 TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
#0 12.94 export { Context, type ContextSendOptions } from "./context.ts";
#0 12.94 ~~~~~~~~~~~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/mod.ts:82:24
#0 12.94
#0 12.94 TS2305 [ERROR]: Module '"https://deno.land/x/[email protected]/cookies.ts"' has no exported member 'type'.
#0 12.94 type CookiesGetOptions,
#0 12.94 ~~~~
#0 12.94 at https://deno.land/x/[email protected]/mod.ts:86:3
#0 12.94
#0 12.94 TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
#0 12.94 type CookiesGetOptions,
#0 12.94 ~~~~~~~~~~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/mod.ts:86:8
#0 12.94
#0 12.94 TS2305 [ERROR]: Module '"https://deno.land/x/[email protected]/cookies.ts"' has no exported member 'type'.
#0 12.94 type CookiesSetDeleteOptions,
#0 12.94 ~~~~
#0 12.94 at https://deno.land/x/[email protected]/mod.ts:87:3
#0 12.94
#0 12.94 TS1205 [ERROR]: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
#0 12.94 type CookiesSetDeleteOptions,
#0 12.94 ~~~~~~~~~~~~~~~~~~~~~~~
#0 12.94 at https://deno.land/x/[email protected]/mod.ts:87:8
#0 12.94
#0 12.94 TS2305 [ERROR]: Module '"https://deno.land/x/[email protected]/http_server_native_request.ts"' has no exported member 'type'.
#0 12.94 export { type NativeRequest } from "./http_server_native_request.ts";
#0 12.94 ~~~~
#0 12.94 at https://deno.land/x/[email protected]/mod.ts:93:10
#0 12.94
#0 12.94 Found 109 errors.


failed to solve: executor failed running [/bin/sh -c deno cache main.js]: exit code: 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.