profile
viewpoint

denjucks/dex 30

Dex: An SQL query builder port of Knex for Deno

denjucks/denjucks 23

Deno templating engine

denjucks/dexecutor 15

Deno SQL Executor

denjucks/dinja 15

Deno web framework

denjucks/yolk 12

Yolk CLI - An Oak-based, batteries included CLI tool for the Oak framework, used to quickly create, structure, and run Oak applications.

denjucks/deno-cef 9

The Chromium Embedded Framework for Deno.

denjucks/session 8

Sessions for deno web frameworks

denjucks/snelm 7

Snelm: improved security middleware for deno web frameworks, derived from helmet for Node.

denjucks/bb64 2

Easy to use Deno Base64 Encoder and Decoder for JavaScript and TypeScript

denjucks/organ 2

Organ - Logging middleware for the Oak framework based on the Morgan library for ExpressJS from Node.

push eventdenjucks/snelm

AliceGG

commit sha da2606f63b29fd44c06527c2748330abf94eb0c1

Fixed bowser typing

view details

Deno Tutorials

commit sha 55d846c14cc0c0e3ca8b0a972321773c15b0cff7

Merge pull request #1 from zer0tonin/master Fixed bowser typing

view details

push time in 6 days

PR merged denjucks/snelm

Fixed bowser typing

deno bundle mod.ts had this error:

Bundling file:///home/alicegg/Personal/contrib/snelm/mod.ts
error: TS2694 [ERROR]: Namespace '"file:///home/alicegg/Personal/contrib/snelm/deps/csp/lib/bowser/src/bowser"' has no exported member 'Parser'.
  [browserName: string]: (browser: Bowser.Parser.Parser, options: CspOptions) => string[];
                                          ~~~~~~
    at file:///home/alicegg/Personal/contrib/snelm/deps/csp/lib/get-header-keys-for-browser.ts:10:43

TS2694 [ERROR]: Namespace '"file:///home/alicegg/Personal/contrib/snelm/deps/csp/lib/bowser/src/bowser"' has no exported member 'Parser'.
export default function getHeaderKeysForBrowser (browser: Bowser.Parser.Parser | undefined, options: CspOptions) {
                                                                 ~~~~~~
    at file:///home/alicegg/Personal/contrib/snelm/deps/csp/lib/get-header-keys-for-browser.ts:101:66

TS2694 [ERROR]: Namespace '"file:///home/alicegg/Personal/contrib/snelm/deps/csp/lib/bowser/src/bowser"' has no exported member 'Parser'.
  browser: Bowser.Parser.Parser | undefined,
                  ~~~~~~
    at file:///home/alicegg/Personal/contrib/snelm/deps/csp/lib/transform-directives-for-browser.ts:47:19

Found 3 errors.

This PR should fix it by properly indicating to deno the typing file in the bowser dep.

+1 -0

0 comment

1 changed file

zer0tonin

pr closed time in 6 days

pull request commentdenjucks/denjucks

Fixed std/path module import error

Apologies on the delayed response. Some of this should be fixed from this pull request: https://github.com/denjucks/denjucks/pull/12. However, I am not understanding what causing this error. I am getting error: Failed to get compiled source code of https://deno.land/std@0.59.0/path/mod.ts. after the pull requests when using the type declaration file, but works fine without it. Any ideas?

gjuoun

comment created time in 6 days

pull request commentdenjucks/denjucks

Add @deno-types comments to README.md

Good point, thanks! Merging this now

cj81499

comment created time in 6 days

push eventdenjucks/denjucks

Cal Jacobson

commit sha 37e8517edeed05c9f44a9271aa38198f76836015

Add @deno-types comments to README.md If you try to import denjucks into a typescript file, it will not run unless you provide the type declarations. This might be fixed by translating denjucks to typescript.

view details

Deno Tutorials

commit sha 97f58f752c0f0c50e5655119e3c2064cb6821b13

Merge pull request #11 from cj81499/patch-1 Add @deno-types comments to README.md

view details

push time in 6 days

PR merged denjucks/denjucks

Add @deno-types comments to README.md

If you try to import denjucks into a typescript file, it will not run unless you provide the type declarations. This might be fixed by translating denjucks to typescript.

+3 -0

0 comment

1 changed file

cj81499

pr closed time in 6 days

pull request commentdenjucks/denjucks

Fix dependencies

Thanks for the fixes, much appreciated! Merging these now

cj81499

comment created time in 6 days

push eventdenjucks/denjucks

cj81499

commit sha 63ceb394bfaa1162988d3f53105ddcc64bd5f9ed

remove local copy of std/path

view details

cj81499

commit sha bd5ff0d10e9583e76071c79094ff58b077fa0899

add src/deps.ts

view details

cj81499

commit sha 587358ad9f88610ebd5ce45bb27575c650800da9

update files that reference std/path

view details

cj81499

commit sha f78834746d16521b1543d28d3abd95c8c318cc24

remove local copy of asap

view details

Cal Jacobson

commit sha e04407980321c926dce024bc40737ef4c99a5a46

fix?

view details

Cal Jacobson

commit sha 2130587bfaf69b2ba47be3268bc17ed438e5efc5

try to fix a-sync-waterfall

view details

Cal Jacobson

commit sha b7b7fd6fb97a091a860b885b4d42367f2231a12b

Merge pull request #1 from cj81499/fix-a-sync-waterfall Fix a-sync-waterfall

view details

Cal Jacobson

commit sha 6b58b67202c4e96fe5bc4cb5f2e9d7f3455464aa

clean repetitive import

view details

Deno Tutorials

commit sha a2768d750687816e4608aa67ca7eefaf6d94415a

Merge pull request #12 from cj81499/fix-deps Fix dependencies

view details

push time in 6 days

PR merged denjucks/denjucks

Fix dependencies

Remove local copies of Deno/std/path, asap, and a-sync-waterfall dependencies.

+41 -110071

0 comment

454 changed files

cj81499

pr closed time in 6 days

PR opened denoland/deno_website2

Adding deno_cef to database.json

Adding deno_cef to database.json

+7 -0

0 comment

1 changed file

pr created time in 14 days

push eventdenjucks/deno_website2

denjucks

commit sha fbd895783facaf1901ed92a44c734aef8b72ed9d

Adding deno_cef to database.sjon

view details

push time in 14 days

pull request commentdenoland/deno_website2

Added DenoCEF to database.json

my apologies, thought it was in alphabetical order. it should be right before denock right?

denjucks

comment created time in 18 days

PR opened denoland/deno_website2

Added DenoCEF to database.json

Added DenoCEF to database.json

+6 -0

0 comment

1 changed file

pr created time in 18 days

push eventdenjucks/deno_website2

denjucks

commit sha bcb1932ee22e6e81892e3f42c32cde95595194f8

Added DenoCEF to database.json

view details

push time in 18 days

starteddenoland/deno_website2

started time in 19 days

issue closeddenjucks/session

Error from Example

I ran the example made for oak framework from the README.md an got the errors

thread 'main' panicked at 'already borrowed: BorrowMutError', /rustc/4fb7144ed159f94491249e86d5bbd033b5d60550/src/libcore/cell.rs:878:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
Aborted

closed time in 21 days

devYusuf

issue commentdenjucks/session

Error from Example

Should be fixed in Deno v1.1.0

devYusuf

comment created time in 21 days

PR merged denjucks/session

Correction to Redis store details

From the top of the file, to use Redis database, the store configuration option should be "redis" not "memory". Since the example is talking explicitly about Redis store configuration, the value should be "redis"

+1 -1

0 comment

1 changed file

orangegrove1955

pr closed time in 21 days

pull request commentdenjucks/session

Correction to Redis store details

good catch! updating this now

orangegrove1955

comment created time in 21 days

push eventdenjucks/session

orangegrove1955

commit sha 5d32c19bce5eb9e4a7d9cf7c1608f067c6dbbe3a

Correction to Redis store details From the top of the file, to use Redis database, the store configuration option should be "redis" not "memory". Since the example is talking explicitly about Redis store configuration, the value should be "redis"

view details

Deno Tutorials

commit sha 9b520fa3dad104cac439d9fd11e650f3ab794936

Merge pull request #6 from orangegrove1955/patch-1 Correction to Redis store details

view details

push time in 21 days

issue closeddenjucks/dexecutor

dexecutor crashes on db.connect(), Deno 1.0.4 & Postgres

I was using deno 1.0.2 with dexecutor just fine for a few days now. I performed all CRUD operations with ease thanks to dexecutor. However, I just updated deno to 1.0.4 and my app now crashes when I call await db.connect() exactly as advised in the project's README

error

% denon run --allow-net --unstable server.ts
[denon] v2.0.2
[denon] watching path(s): *.*
[denon] watching extensions: ts,js,json
[denon] starting `deno run --allow-net --unstable server.ts`
Compile file:///Users/ryanhaig/Documents/Programming/calorie-counter/calorie-counter-deno/server.ts
thread 'main' panicked at 'already borrowed: BorrowMutError', /private/tmp/rust-20200509-70766-vc2112/rustc-1.43.1-src/src/libcore/cell.rs:878:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
[denon] app crashed - waiting for file changes before starting ...

server.ts

import { Application } from 'https://deno.land/x/oak/mod.ts'
import db from './db/config.ts'
import router from './routes.ts'
import querySanitizer from './utils/querySanitizer.ts'
const app = new Application()
await db.connect() // <- this is the error
app.use(querySanitizer)
app.use(router.routes())
app.use(router.allowedMethods())
const port = 4000
console.log(`🦕 Deno 🦕 Server running on port 🦖 ${ port } 🦖`)
await app.listen({ port })

./db/config.ts

import Dexecutor from "https://deno.land/x/dexecutor/mod.ts"
const client = "postgres"
// Creating the query executor
let db = new Dexecutor({
    client: client,
    connection: {
        // correct connection data
    }
})
export default db

closed time in 21 days

Ryan-Haig12

issue commentdenjucks/dexecutor

dexecutor crashes on db.connect(), Deno 1.0.4 & Postgres

Should be fixed now for Deno v1.1.0

Ryan-Haig12

comment created time in 21 days

issue closeddenjucks/dinja

dinja.js fails with os error 2

Hi I thought I should report this issue in case you are not aware of it I copied and pasted the curl command from the README.md to download dinja.js into an empty directory. It worked fine. I ran the command "deno run -A dinja.js createproject" and received an error message: error: No such file or directory (os error 2) I tried running "deno -L debug run -A dinja.js createproject" but got a long output ending with:

fetch_source_file specifier: https://deno.land/x/dinja/lib/std/path/_globrex.ts ⚠️️ Granted network access to "https://deno.land/x/dinja/lib/std/path/_globrex.ts" fetch_source_file specifier: https://deno.land/x/dinja/lib/std/fmt/colors.ts ⚠️️ Granted network access to "https://deno.land/x/dinja/lib/std/fmt/colors.ts" fetch_source_file specifier: https://deno.land/x/dinja/lib/std/testing/diff.ts ⚠️️ Granted network access to "https://deno.land/x/dinja/lib/std/testing/diff.ts" register_complete file:///home/ianma/www/Deno2020/dinja0/dinja.js error: No such file or directory (os error 2)

I was unable to try out dinja because the command line script fails. I am running on deno 1.0.3 on Linux (Debian Testing). My copy of deno is the Linux binary downloaded by the "deno upgrade" command.

The full debug message was:

Deno isolate init with snapshots. rust:shared_queue:reset DEBUG JS - cwd /home/ianma/www/Deno2020/dinja0 DEBUG JS - args [] main_module file:///home/ianma/www/Deno2020/dinja0/dinja.js fetch_source_file specifier: file:///home/ianma/www/Deno2020/dinja0/dinja.js ⚠️️ Granted read access to "/home/ianma/www/Deno2020/dinja0/dinja.js" byte pos BytePos(0) is on the line at byte pos BytePos(0) char pos CharPos(0) is on the line at char pos CharPos(0) byte is on line: 1 byte pos BytePos(71) is on the line at byte pos BytePos(71) char pos CharPos(71) is on the line at char pos CharPos(71) byte is on line: 2 fetch_source_file specifier: https://deno.land/x/dinja/lib/std/path/mod.ts ⚠️️ Granted network access to "https://deno.land/x/dinja/lib/std/path/mod.ts" byte pos BytePos(120) is on the line at byte pos BytePos(120) char pos CharPos(120) is on the line at char pos CharPos(120) byte is on line: 4 byte pos BytePos(158) is on the line at byte pos BytePos(158) char pos CharPos(158) is on the line at char pos CharPos(158) byte is on line: 5 byte pos BytePos(537) is on the line at byte pos BytePos(537) char pos CharPos(537) is on the line at char pos CharPos(537) byte is on line: 30 byte pos BytePos(566) is on the line at byte pos BytePos(566) char pos CharPos(566) is on the line at char pos CharPos(566) byte is on line: 31 byte pos BytePos(617) is on the line at byte pos BytePos(617) char pos CharPos(617) is on the line at char pos CharPos(617) byte is on line: 32 byte pos BytePos(649) is on the line at byte pos BytePos(649) char pos CharPos(649) is on the line at char pos CharPos(649) byte is on line: 33 fetch_source_file specifier: https://deno.land/x/dinja/lib/dexecutor/mod.ts ⚠️️ Granted network access to "https://deno.land/x/dinja/lib/dexecutor/mod.ts" fetch_source_file specifier: https://deno.land/x/dinja/lib/std/path/win32.ts ⚠️️ Granted network access to "https://deno.land/x/dinja/lib/std/path/win32.ts" byte pos BytePos(140) is on the line at byte pos BytePos(140) char pos CharPos(140) is on the line at char pos CharPos(140) byte is on line: 5 byte pos BytePos(208) is on the line at byte pos BytePos(208) char pos CharPos(208) is on the line at char pos CharPos(208) byte is on line: 6 byte pos BytePos(315) is on the line at byte pos BytePos(315) char pos CharPos(315) is on the line at char pos CharPos(315) byte is on line: 13 byte pos BytePos(431) is on the line at byte pos BytePos(431) char pos CharPos(431) is on the line at char pos CharPos(431) byte is on line: 20 fetch_source_file specifier: https://deno.land/x/dinja/lib/std/path/posix.ts ⚠️️ Granted network access to "https://deno.land/x/dinja/lib/std/path/posix.ts" byte pos BytePos(135) is on the line at byte pos BytePos(135) char pos CharPos(135) is on the line at char pos CharPos(135) byte is on line: 5 byte pos BytePos(203) is on the line at byte pos BytePos(203) char pos CharPos(203) is on the line at char pos CharPos(203) byte is on line: 6 byte pos BytePos(268) is on the line at byte pos BytePos(268) char pos CharPos(268) is on the line at char pos CharPos(268) byte is on line: 8 fetch_source_file specifier: https://deno.land/x/dinja/lib/std/path/common.ts ⚠️️ Granted network access to "https://deno.land/x/dinja/lib/std/path/common.ts" byte pos BytePos(76) is on the line at byte pos BytePos(76) char pos CharPos(76) is on the line at char pos CharPos(76) byte is on line: 3 fetch_source_file specifier: https://deno.land/x/dinja/lib/std/path/separator.ts ⚠️️ Granted network access to "https://deno.land/x/dinja/lib/std/path/separator.ts" fetch_source_file specifier: https://deno.land/x/dinja/lib/std/path/interface.ts ⚠️️ Granted network access to "https://deno.land/x/dinja/lib/std/path/interface.ts" fetch_source_file specifier: https://deno.land/x/dinja/lib/std/path/glob.ts ⚠️️ Granted network access to "https://deno.land/x/dinja/lib/std/path/glob.ts" byte pos BytePos(0) is on the line at byte pos BytePos(0) char pos CharPos(0) is on the line at char pos CharPos(0) byte is on line: 1 byte pos BytePos(51) is on the line at byte pos BytePos(51) char pos CharPos(51) is on the line at char pos CharPos(51) byte is on line: 2 byte pos BytePos(92) is on the line at byte pos BytePos(92) char pos CharPos(92) is on the line at char pos CharPos(92) byte is on line: 3 byte pos BytePos(136) is on the line at byte pos BytePos(136) char pos CharPos(136) is on the line at char pos CharPos(136) byte is on line: 4 fetch_source_file specifier: https://deno.land/x/dinja/lib/std/path/_constants.ts ⚠️️ Granted network access to "https://deno.land/x/dinja/lib/std/path/_constants.ts" fetch_source_file specifier: https://deno.land/x/dinja/lib/std/path/_util.ts ⚠️️ Granted network access to "https://deno.land/x/dinja/lib/std/path/_util.ts" byte pos BytePos(113) is on the line at byte pos BytePos(113) char pos CharPos(113) is on the line at char pos CharPos(113) byte is on line: 4 byte pos BytePos(169) is on the line at byte pos BytePos(169) char pos CharPos(169) is on the line at char pos CharPos(169) byte is on line: 5 fetch_source_file specifier: https://deno.land/x/dinja/lib/std/testing/asserts.ts ⚠️️ Granted network access to "https://deno.land/x/dinja/lib/std/testing/asserts.ts" byte pos BytePos(75) is on the line at byte pos BytePos(75) char pos CharPos(75) is on the line at char pos CharPos(75) byte is on line: 2 byte pos BytePos(141) is on the line at byte pos BytePos(141) char pos CharPos(141) is on the line at char pos CharPos(141) byte is on line: 3 fetch_source_file specifier: https://deno.land/x/dinja/lib/std/path/_globrex.ts ⚠️️ Granted network access to "https://deno.land/x/dinja/lib/std/path/_globrex.ts" fetch_source_file specifier: https://deno.land/x/dinja/lib/std/fmt/colors.ts ⚠️️ Granted network access to "https://deno.land/x/dinja/lib/std/fmt/colors.ts" fetch_source_file specifier: https://deno.land/x/dinja/lib/std/testing/diff.ts ⚠️️ Granted network access to "https://deno.land/x/dinja/lib/std/testing/diff.ts" register_complete file:///home/ianma/www/Deno2020/dinja0/dinja.js error: No such file or directory (os error 2)

closed time in 21 days

imacki

issue commentdenjucks/dinja

dinja.js fails with os error 2

Should be fixed now for Deno v1.1.0

imacki

comment created time in 21 days

issue commentdenjucks/dex

error: No such file or directory (os error 2)

Should be fixed now with Deno v1.1.0 release. Gonna close this issue

ShawnStewart

comment created time in 21 days

issue closeddenjucks/dex

error: No such file or directory (os error 2)

// dbConfig.ts

import Dex from "https://deno.land/x/dex@1.0.2/mod.ts";
// Also tried:
// import Dex from "https://deno.land/x/dex@1.0.2/mod-dyn.ts";
// import Dex from "https://raw.githubusercontent.com/denjucks/dex/master/mod.ts";

const dex = await Dex({
  client: "sqlite3",
  connection: {
    filename: "./database/database.db3",
  },
  useNullAsDefault: true,
});

export default dex;

When I run deno cache dbConfig.ts, download succeeds but compiling results in error: No such file or directory (os error 2). Has anyone else ran into this problem?

closed time in 21 days

ShawnStewart

issue closeddenjucks/yolk

No such file or directory (os error 2)

When I try the install command deno install -A -f --unstable https://raw.githubusercontent.com/denjucks/yolk/master/yolk.js I get the following error:

Download https://raw.githubusercontent.com/denjucks/yolk/master/yolk.js
Download https://raw.githubusercontent.com/denjucks/yolk/master/functions/createproject.js
Download https://raw.githubusercontent.com/denjucks/yolk/master/functions/createapplet.js
Download https://raw.githubusercontent.com/denjucks/yolk/master/functions/migrate.js
Download https://raw.githubusercontent.com/denjucks/yolk/master/functions/denon.js
Download https://raw.githubusercontent.com/denjucks/yolk/master/utils/dedent.js
Download https://raw.githubusercontent.com/denjucks/yolk/master/utils/existsSync.js
Download https://deno.land/std/path/mod.ts
Download https://raw.githubusercontent.com/denjucks/yolk/master/utils/crossPlatformPathConversion.js
Warning Implicitly using master branch https://deno.land/std/path/mod.ts
Download https://deno.land/std/path/_constants.ts
Download https://deno.land/std/path/win32.ts
Download https://deno.land/std/path/posix.ts
Download https://deno.land/std/path/common.ts
Download https://deno.land/std/path/separator.ts
Download https://deno.land/std/path/_interface.ts
Download https://deno.land/std/path/glob.ts
Warning Implicitly using master branch https://deno.land/std/path/win32.ts
Download https://deno.land/std/path/_util.ts
Download https://deno.land/std/testing/asserts.ts
Warning Implicitly using master branch https://deno.land/std/path/_interface.ts
Warning Implicitly using master branch https://deno.land/std/path/_constants.ts
Warning Implicitly using master branch https://deno.land/std/path/posix.ts
Warning Implicitly using master branch https://deno.land/std/path/common.ts
Warning Implicitly using master branch https://deno.land/std/path/separator.ts
Warning Implicitly using master branch https://deno.land/std/path/glob.ts
Download https://deno.land/std/path/_globrex.ts
Warning Implicitly using master branch https://deno.land/std/path/_util.ts
Warning Implicitly using master branch https://deno.land/std/testing/asserts.ts
Download https://deno.land/std/fmt/colors.ts
Download https://deno.land/std/testing/diff.ts
Warning Implicitly using master branch https://deno.land/std/path/_globrex.ts
Warning Implicitly using master branch https://deno.land/std/testing/diff.ts
Warning Implicitly using master branch https://deno.land/std/fmt/colors.ts
Compile https://raw.githubusercontent.com/denjucks/yolk/master/yolk.js
error: No such file or directory (os error 2)

I'm sure it's on my end but just curious if you can make anything of it...

closed time in 21 days

davidrhoderick

issue commentdenjucks/yolk

No such file or directory (os error 2)

I updated yolk for Deno v1.1.0. This error should be corrected now

davidrhoderick

comment created time in 21 days

push eventdenjucks/yolk

denjucks

commit sha 4e829765e47729dfe58e4f591c1aac40a4fb2fe7

1.1.2 - Updated Yolk for Deno version 1.1.0, modified the deps, and slightly modified project structure

view details

push time in 21 days

created tagdenjucks/organ

tag1.1.1

Organ - Logging middleware for the Oak framework based on the Morgan library for ExpressJS from Node.

created time in 21 days

release denjucks/organ

1.1.1

released time in 21 days

push eventdenjucks/organ

denjucks

commit sha f9fc45cd86615cdb47f12d8b9eb7ffb28e9c172f

1.1.1 - Updating remote user function

view details

push time in 21 days

created tagdenjucks/snelm

tag1.3.0

Snelm: improved security middleware for deno web frameworks, derived from helmet for Node.

created time in 21 days

release denjucks/snelm

1.3.0

released time in 21 days

push eventdenjucks/snelm

denjucks

commit sha e7e67eb6242f608d9e955ccc9c443851b8d5e34e

1.3.0 - Removed dynamic imports and made changes to the dependencies

view details

push time in 21 days

issue closediodide-project/pyodide

ESM Syntax and usage of Pyodide on the server side

I am interested in this project, and interested in understanding it a bit further to see if it is possible to use it on the server side. I want to see if this project can be used with the Deno runtime, which is similar to node with some additional features and APIs, and built in WASM support. Before trying to port it over, I am wonder what the viability is of a port:

  • Speed: What is the speed differential roughly between executing python natively versus wasm?
  • ESM Syntax: Is it possible to import pyodide and the underlying js modules using ESM syntax, as this is the syntax used in Deno.

If its possible to run on the server side with good speed, I am wondering what the process would be to convert everything over at a high level. Would I need to recompiler the binaries, or just update the JS code?

closed time in 22 days

denjucks

issue commentiodide-project/pyodide

ESM Syntax and usage of Pyodide on the server side

Apologies for the late response! Thanks for the info. So it looks like it is possible, and for some libraries this can be pretty fast. I'm most interested in seeing if pandas can be ported over, as there is a similar library for node called DataForge but in some of my tests its about 10x slower than Pandas, so if the pyodide Pandas is even 2-3x slower then it would still be a substantial gain in speed. I'll play around with the code a bit and check out what others have done for Node to see the viability of a port and how difficult it would be to port. Thanks for all the help!

denjucks

comment created time in 22 days

issue commenteveningkid/denodb

Adding release versions

No worries! Thanks for adding the releases!

denjucks

comment created time in 22 days

pull request commentdenoland/deno_website2

Added DenoCEF to the database.json file

good catch, thanks!

denjucks

comment created time in 22 days

issue closeddenjucks/denjucks

unable to link css file in denjucks template file

I am using deno and denjucks as templating engine. in template .html file header section, I am linking my external css file but failed. the code-

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> <!-- custom css --> <link rel="stylesheet" href='../static/style.css'> ` the file format is -

main static style.css templates index.html Bootstrap link is working but custom css link is not working. Please suggest what is wrong.

closed time in 23 days

ashokbuxar

issue commentdenjucks/denjucks

unable to link css file in denjucks template file

Here is a link to serving static content with Oak: link. Hope this helps! Gonna close this issue

ashokbuxar

comment created time in 23 days

push eventdenjucks/denjucks

Alexey

commit sha ba8ababe4f1eee8c02cd0b4115107787f5b565b8

Add `select`/`reject` filters

view details

Deno Tutorials

commit sha 5992f7c6ad7d9a4a4791a7a24d2d4adb4ded7011

Merge pull request #6 from ogonkov/add_select_reject Add `select`/`reject` filters

view details

push time in 23 days

PR merged denjucks/denjucks

Add `select`/`reject` filters

Backport mozilla/nunjucks#1278 and mozilla/nunjucks#1279

+23 -0

1 comment

1 changed file

ogonkov

pr closed time in 23 days

pull request commentdenjucks/denjucks

Add `select`/`reject` filters

Merging this one as well, thanks for the help!

ogonkov

comment created time in 23 days

push eventdenjucks/denjucks

Alexey

commit sha 0e9ea81d14ff3a34bde11b9a411627ae79582fd1

Add nested attributes to `groupBy`

view details

Deno Tutorials

commit sha 07b4f0e1a7e4ae1999fc15bd7130d59060207cd8

Merge pull request #7 from ogonkov/groupby_nested_attributes Add nested attributes support to `groupBy` filter

view details

push time in 23 days

PR merged denjucks/denjucks

Add nested attributes support to `groupBy` filter

Backport mozilla/nunjucks#1276

+66 -1

1 comment

1 changed file

ogonkov

pr closed time in 23 days

pull request commentdenjucks/denjucks

Add nested attributes support to `groupBy` filter

Thanks for the pull request! I'm going to merge it

ogonkov

comment created time in 23 days

PR opened denoland/deno_website2

Added DenoCEF to the database.json file

Added DenoCEF to the database.json file

+6 -0

0 comment

1 changed file

pr created time in 24 days

push eventdenjucks/deno_website2

denjucks

commit sha f6dfd2312f839a5ed3703af53ddc8914329363e5

Added DenoCEF to the database.json filr

view details

push time in 24 days

push eventdenjucks/deno-cef

denjucks

commit sha ef23055714a32f290f9d7f5825a843413b2699ea

Updated Electric to fix a big with packaging on windows and the method for starting the webview

view details

push time in 25 days

push eventdenjucks/deno-cef

denjucks

commit sha 6fe5c95ff25de504f14e222c47cc00cf15b89e88

Updated the Electric CLI to fix a command name

view details

push time in 25 days

push eventdenjucks/deno-cef

denjucks

commit sha b655029776972464e67ec9a352f2cffce57ea4bc

Updated Electric CLI to fix bugs on Windows

view details

push time in 25 days

push eventdenjucks/deno-cef

denjucks

commit sha 3ccc2aebf2a6c226e811eff1a65600f0bdfb1db8

Updated the Electric CLI and the binaries

view details

push time in 25 days

push eventdenjucks/deno-cef

denjucks

commit sha 6924455805b2d74e3bfce3bb7b8472df557e0507

0.0.1 - Initial release of DenoCEF

view details

push time in 25 days

created tagdenjucks/deno-cef

tag0.0.1

The Chromium Embedded Framework for Deno.

created time in 25 days

release denjucks/deno-cef

0.0.1

released time in 25 days

create barnchdenjucks/deno-cef

branch : master

created branch time in 25 days

created repositorydenjucks/deno-cef

The Chromium Embedded Framework for Deno.

created time in 25 days

push eventdenjucks/yolk

denjucks

commit sha bf9e08ce57dd0ce7b311dbf4bf2c622246447542

Updated yolk.js file

view details

push time in a month

push eventdenjucks/yolk

denjucks

commit sha b5b834d72d624d14e2c8b6ffc0e18045c6d0ddb8

1.1.1 - Updated dependencies to link to a specific commit of DenoDB, and updated the CLI help command

view details

push time in a month

issue openedeveningkid/denodb

Adding release versions

Can you add release versions for various releases of denodb? It will allow users to link to various releases of the library instead of always being on the master branch (such as linking to "https://deno.land/x/denodb@1.0.0/mod.ts" when wanting to use version 1.0.0)

created time in a month

create barnchdenjucks/test

branch : master

created branch time in a month

created repositorydenjucks/test

created time in a month

created tagdenjucks/yolk

tag1.1.0

Yolk CLI - An Oak-based, batteries included CLI tool for the Oak framework, used to quickly create, structure, and run Oak applications.

created time in a month

release denjucks/yolk

1.1.0

released time in a month

created tagdenjucks/yolk

tag1.0.0

Yolk CLI - An Oak-based, batteries included CLI tool for the Oak framework, used to quickly create, structure, and run Oak applications.

created time in a month

release denjucks/yolk

1.0.0

released time in a month

push eventdenjucks/yolk

denjucks

commit sha 0a2249f490005870a83e28565369fda8ed627a41

Updated README

view details

push time in a month

push eventdenjucks/yolk

denjucks

commit sha c44c42ae4e9b39d45b4df311a27d56a55b0b1d86

1.1.0 - Updated the structure of projects created by Yolk to make it easier to manually update the dependencies, as well as adding a command that lets you use dynamic versions of each dependency by linking to their master branches (the default applications created now link to specific, tested branches of each dependency). Also updated the CLI to make it more readable. Finally, updated the README with the changes, as well as which versions of deno it works with and which it doesn't

view details

push time in a month

issue commentdenjucks/session

Oak example doesnt Compile

Added support for TS in v1.1.0. See new example in the readme

StraightUpCode

comment created time in a month

issue commentdenjucks/session

Support for TypeScript

Added support for TS in v1.1.0. See new example in the readme

DiFronzo

comment created time in a month

issue closeddenjucks/session

Your oak example does not compile

PS C:\work\js\de_no> deno run -A oak.ts Compile file:///C:/work/js/de_no/oak.ts error: TS2339 [ERROR]: Property 'session' does not exist on type 'RouterContext<Record<string | number, string | undefined>, Record<string, any>>'. if (await context.session.get("pageCount") === undefined) { ~~~~~~~ at file:///C:/work/js/de_no/oak.ts:17:23

TS2339 [ERROR]: Property 'session' does not exist on type 'RouterContext<Record<string | number, string | undefined>, Record<string, any>>'. await context.session.set("pageCount", 0); ~~~~~~~ at file:///C:/work/js/de_no/oak.ts:18:23

TS2339 [ERROR]: Property 'session' does not exist on type 'RouterContext<Record<string | number, string | undefined>, Record<string, any>>'. await context.session.set("pageCount", await context.session.get("pageCount") + 1); ~~~~~~~ at file:///C:/work/js/de_no/oak.ts:20:23

TS2339 [ERROR]: Property 'session' does not exist on type 'RouterContext<Record<string | number, string | undefined>, Record<string, any>>'. await context.session.set("pageCount", await context.session.get("pageCount") + 1); ~~~~~~~ at file:///C:/work/js/de_no/oak.ts:20:62

TS2339 [ERROR]: Property 'session' does not exist on type 'RouterContext<Record<string | number, string | undefined>, Record<string, any>>'. context.response.body = Visited page ${await context.session.get("pageCount")} times; ~~~~~~~ at file:///C:/work/js/de_no/oak.ts:22:59

Found 5 errors.

closed time in a month

alvasnet

issue commentdenjucks/session

Your oak example does not compile

I updated the lib so that it should now compile for TS files. Note that for Oak the session is now stored on context.state instead of just on context. See the new example on the readme.

Also the error: Uncaught AssertionError: Unexpected skip of the emit. is not an error due to Session but rather with current versions of deno. Deno v1.0.2 currently should work. Hoping everything is back in order in v1.0.6. Gonna close this issue for now

alvasnet

comment created time in a month

created tagdenjucks/session

tag1.1.0

Sessions for deno web frameworks

created time in a month

release denjucks/session

1.1.0

released time in a month

push eventdenjucks/session

denjucks

commit sha 317debdd5d1fe3088d397a2555aad69774a38e0a

1.1.0 - Modified location of sessions in the Oak framework so that they are stored on the state property of the context, allowing compilation of TS files

view details

push time in a month

issue openediodide-project/pyodide

ESM Syntax and usage of Pyodide on the server side

I am interested in this project, and interested in understanding it a bit further to see if it is possible to use it on the server side. I want to see if this project can be used with the Deno runtime, which is similar to node with some additional features and APIs, and built in WASM support. Before trying to port it over, I am wonder what the viability is of a port:

  • Speed: What is the speed differential roughly between executing python natively versus wasm?
  • ESM Syntax: Is it possible to import pyodide and the underlying js modules using ESM syntax, as this is the syntax used in Deno.

If its possible to run on the server side with good speed, I am wondering what the process would be to convert everything over at a high level. Would I need to recompiler the binaries, or just update the JS code?

created time in a month

issue commentdenjucks/session

Your oak example does not compile

You need to use the .js file extension, as RouterContext does not allow arbitrary properties to be assigned to it.

alvasnet

comment created time in a month

issue commentdenjucks/dinja

dinja.js fails with os error 2

Try downgrading to deno 1.0.2. There appears to be an issue with deno 1.0.4-1.0.5 on some machines that is causing this error

imacki

comment created time in a month

issue commentdenjucks/denjucks

unable to link css file in denjucks template file

Is it giving you an error message? This shouldn't be an issue with denjucks, as no template is being used in the above here from my understanding.

ashokbuxar

comment created time in a month

issue commentdenjucks/dex

error: No such file or directory (os error 2)

Try downgrading to deno v1.0.2 for now, as there appears to be an error in v1.0.5 on linux machines from what I understand. I'll keep this issue open for now, and update it as newer versions of deno are released.

ShawnStewart

comment created time in a month

issue commentdenjucks/session

Error from Example

Looks like its an issue with newer versions of deno. Try running deno upgrade and let me know if it persists.

devYusuf

comment created time in a month

issue commentdenjucks/snelm

Getting "'main' panicked at 'already borrowed: BorrowMutError'"

Looks like it is an issue with newer versions of Deno. Try running deno upgrade and let me know if the issue persists

gage117

comment created time in a month

issue commentdenjucks/dinja

dinja.js fails with os error 2

What deno version are you using? I received a similar error with newer versions of deno, and think it might just be an issue with the current deno version.

imacki

comment created time in a month

issue commentdenjucks/dexecutor

dexecutor crashes on db.connect(), Deno 1.0.4 & Postgres

There seems to be an issue in 1.0.4 that the deno team is working on that was causing the issue. For now you'll have to downgrade to an earlier version. Gonna keep this open for now.

Ryan-Haig12

comment created time in a month

issue closeddenjucks/denjucks

"Property 'render' does not exist on type '{}'"

I tried out denjucks after seeing that all deno template engine dont work well and I'm getting the errors Selection_006 Selection_007

closed time in a month

devYusuf

issue commentdenjucks/denjucks

"Property 'render' does not exist on type '{}'"

Gonna close this for now. Let me know if its still an issue, and I can reopen

devYusuf

comment created time in a month

issue commentdenoland/deno

error: Uncaught AssertionError: Unexpected skip of the emit.

Here's a more isolated example. I took a module I wrote about a month ago that performs base64 encoding, removed any external modules from it (was only using the path module prior), and then tried to import it and run it, and it throw the above error:

mod.ts

/**
 * Encodes a Uint8Array into a base64 string
 *
 * @private
 *
 * @param {any} uint8arr a Uint8Array
 * @returns {string} a base64 encoded string 
 */
function _encodeU8intToBase64String(uint8arr: any) : string {
	const CHUNK_SIZE = 0x8000;
	
	const charArray: string[] = [];
	
	for (let i = 0; i < uint8arr.length; i += CHUNK_SIZE) {
		charArray.push(String.fromCharCode.apply(null, uint8arr.subarray(i, i + CHUNK_SIZE)));
	}
	
	return btoa(charArray.join(""));
}


/**
 * Converts a string to a Uint8Array
 *
 * @private
 *
 * @param {string} str a string
 * @returns {Uint8Array} a Uint8Array from the string 
 */
function _convertStringToUint8(str: string) : Uint8Array {
	return new Uint8Array(new TextEncoder().encode(str))
}


/**
 * Decodes a UInt8Array that contains base64 data into a base64 decoded string
 *
 * @private
 *
 * @param {Uint8Array} bytes a Uint8Array that contains base64 encoded data
 * @returns {string} an base64 unencoded string 
 */
function _decodeBase64Bytes(bytes: Uint8Array) : string {
	return new TextDecoder().decode(Uint8Array.from(atob(new TextDecoder().decode(bytes)), c => c.charCodeAt(0)))
}


/**
 * Decodes a Uint8Array that contains base64 data into a base64 decoded Uint8Array
 *
 * @private
 *
 * @param {Uint8Array} bytes a Uint8Array that contains base64 encoded data
 * @returns {Uint8Array} an base64 unencoded Uint8Array 
 */
function _decodeBase64BytesToUint8(bytes: Uint8Array) : Uint8Array {
	return Uint8Array.from(atob(new TextDecoder().decode(bytes)), c => c.charCodeAt(0));
}



/**
 * This class provides an easy interface to perform base64 encoding on strings
 * and files.
 */
export class Base64 {
	
	private bytes: Uint8Array;
	private mime: string;
	private isBase64Encoded: boolean;
	
	public constructor(data: any) {
		this.bytes = data.bytes;
		this.mime = data.mime;
		this.isBase64Encoded = data.isBase64Encoded;
	}
	
	
	/**
	 * Creates a Base64 object from a string
	 *
	 * @public
	 * @static
	 *
	 * @param {string} unencodedString a string that will be base64 encoded
	 * @returns {Base64} a Base64 object
	 */
	public static fromString(unencodedString: string) : Base64 {
		return new Base64({
			bytes: _convertStringToUint8(unencodedString),
			mime: null,
			isBase64Encoded: false,
		});
	}
	
	
	/**
	 * Creates a Base64 object from an already base64 encoded string
	 *
	 * @public
	 * @static
	 *
	 * @param {string} encodedString a string that is already base64 encoded
	 * @returns {Base64} a Base64 object
	 */
	public static fromBase64String(encodedString: string) : Base64 {
		return new Base64({
			bytes: _convertStringToUint8(encodedString),
			mime: null,
			isBase64Encoded: true,
		});
	}
	
	
	/**
	 * Creates a Base64 object from a Uint8Array
	 *
	 * @public
	 * @static
	 *
	 * @param {Uint8Array} uint8arr a Uint8Array that will be base64 encoded
	 * @returns {Base64} a Base64 object
	 */
	public static fromUint8Array(uint8arr: Uint8Array) : Base64 {
		return new Base64({
			bytes: uint8arr,
			mime: null,
			isBase64Encoded: false,
		});
	}
	

	/**
	 * Creates a Base64 object from a base64 encoded Uint8Array
	 *
	 * @public
	 * @static
	 *
	 * @param {Uint8Array} uint8arr a Uint8Array that contains base64 encoded data
	 * @returns {Base64} a Base64 object
	 */
	public static fromBase64Uint8Array(uint8arr: Uint8Array) : Base64 {
		return new Base64({
			bytes: uint8arr,
			mime: null,
			isBase64Encoded: true,
		});
	}
	
	
	

	
	
	/**
	 * Returns the base64 encoded string from the Base64 object
	 *
	 * @public
	 *
	 * @returns {Base64} a base64 encoded string
	 */
	public toString() : string {
		if (this.isBase64Encoded) {
			return _decodeBase64Bytes(this.bytes);
		} else {
			return _encodeU8intToBase64String(this.bytes);
		}
	}
	
	
	/**
	 * Returns the base64 encoded string from the Base64 object, with the
	 * inclusion of the MIME type if the Base64 object was created from a file
	 * (and if not created from a file, works the same as the .toString() method)
	 *
	 * @public
	 *
	 * @returns {string} a base64 encoded string with MIME type included when from a file
	 */
	public toStringWithMime() : string {
		if (this.mime) {
			if (this.isBase64Encoded) {
				return _decodeBase64Bytes(this.bytes);
			} else {
				return this.mime + _encodeU8intToBase64String(this.bytes);
			}
			
		} else {
			if (this.isBase64Encoded) {
				return _decodeBase64Bytes(this.bytes);
			} else {
				return _encodeU8intToBase64String(this.bytes);
			}
		}
	}
}

test.js

import { Base64 } from "./mod.ts";

console.log(Base64.fromString("hello world").toString());
denjucks

comment created time in a month

issue openeddenoland/deno

error: Uncaught AssertionError: Unexpected skip of the emit.

Receiving this error when importing a file. It looks like the issue is isolated to Linux

error: Uncaught AssertionError: Unexpected skip of the emit.
    at Object.assert ($deno$/util.ts:33:11)
    at compile ($deno$/compiler.ts:1170:7)
    at tsCompilerOnMessage ($deno$/compiler.ts:1338:22)
    at workerMessageRecvCallback ($deno$/runtime_worker.ts:72:33)
    at file:///mydir/__anonymous__:1:1

Code to reproduce this error on Linux:

import Dex from "https://deno.land/x/dex/mod.ts";

Will look into it further and see if I can isolate the bug a bit.

created time in a month

issue commentdenjucks/yolk

No such file or directory (os error 2)

There were some issues with deno v1.0.3 and v1.0.4 that were causing some problems. Try using deno 1.0.2 for now (you can run deno upgrade --version 1.0.2). Currently working on making sure there is compatibility with version 1.0.5+

davidrhoderick

comment created time in a month

issue openeddenoland/deno

thread 'main' panicked at 'already borrowed: BorrowMutError'

Received this error. For some additional info, I am only using the std/path module and some function from the Deno global.

thread 'main' panicked at 'already borrowed: BorrowMutError', /rustc/4fb7144ed159f94491249e86d5bbd033b5d60550/src/libcore/cell.rs:878:9
stack backtrace:
   0: backtrace::backtrace::libunwind::trace
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.44/src/backtrace/libunwind.rs:86
   1: backtrace::backtrace::trace_unsynchronized
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.44/src/backtrace/mod.rs:66
   2: std::sys_common::backtrace::_print_fmt
             at src/libstd/sys_common/backtrace.rs:78
   3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
             at src/libstd/sys_common/backtrace.rs:59
   4: core::fmt::write
             at src/libcore/fmt/mod.rs:1063
   5: std::io::Write::write_fmt
             at src/libstd/io/mod.rs:1426
   6: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:62
   7: std::sys_common::backtrace::print
             at src/libstd/sys_common/backtrace.rs:49
   8: std::panicking::default_hook::{{closure}}
             at src/libstd/panicking.rs:204
   9: std::panicking::default_hook
             at src/libstd/panicking.rs:224
  10: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:470
  11: rust_begin_unwind
             at src/libstd/panicking.rs:378
  12: core::panicking::panic_fmt
             at src/libcore/panicking.rs:85
  13: core::option::expect_none_failed
             at src/libcore/option.rs:1211
  14: deno_core::bindings::send
  15: <extern "C" fn(A0) .> R as rusty_v8::support::CFnFrom<F>>::mapping::c_fn
  16: _ZN2v88internal25FunctionCallbackArguments4CallENS0_15CallHandlerInfoE
  17: _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEESA_NS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EENS0_16BuiltinArgumentsE
  18: _ZN2v88internalL26Builtin_Impl_HandleApiCallENS0_16BuiltinArgumentsEPNS0_7IsolateE
  19: Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
fatal runtime error: failed to initiate panic, error 5
Aborted

created time in a month

issue commentoakserver/oak

What is the best way to handle state for each request?

looks like this has already been answered in #113. Gonna close this issue

denjucks

comment created time in a month

issue closedoakserver/oak

What is the best way to handle state for each request?

Hello all, I wanted to see what the best way to handle state is in each request. One approach is to add new properties to the context object, but this will fail to compile with .ts files. Another approach is to extend the context object to add in a property for arbitrary data storage, but it adds a bit of complexity if the context object is being extended many times.

What is the best approach for this?

closed time in a month

denjucks

issue openedoakserver/oak

What's the best way to handle for each request?

Hello all, I wanted to see what the best way to handle state is in each request. One approach is to add new properties to the context object, but this will fail to compile with .ts files. Another approach is to extend the context object to add in a property for arbitrary data storage, but it adds a bit of complexity if the context object is being extended many times.

What is the best approach for this?

created time in a month

push eventdenjucks/deno_website2

denjucks

commit sha b989460b5200e0e3954cc7ab3c5f91b64d5167ca

Added yolk to the database.json file

view details

push time in a month

PR opened denoland/deno_website2

Added yolk to the database.json file
+6 -0

0 comment

1 changed file

pr created time in a month

more