KaKi87
KaKi87
DDeno
Created by KaKi87 on 9/9/2023 in #help
Read permission & NPM imports
@leighmcculloch 🙏
12 replies
DDeno
Created by KaKi87 on 9/9/2023 in #help
Read permission & NPM imports
if one of your deps is opening a file dynamically, then I'm not sure what the behavior should be
I see. How could I know where exactly does the permission request comes from ?
12 replies
DDeno
Created by KaKi87 on 9/9/2023 in #help
Read permission & NPM imports
1.36.4
12 replies
DDeno
Created by KaKi87 on 9/9/2023 in #help
Read permission & NPM imports
@leighmcculloch 🙏
12 replies
DDeno
Created by KaKi87 on 9/9/2023 in #help
Read permission & NPM imports
Nope, here are my imports :
import { join as joinPath } from 'https://deno.land/std@0.201.0/path/mod.ts';

import createFastify from 'npm:fastify@4.22.2';
import fastifyStatic from 'npm:@fastify/static@6.11.0';
import fastifyView from 'npm:@fastify/view@8.0.0';
import Handlebars from 'npm:handlebars@4.7.8';
import { join as joinPath } from 'https://deno.land/std@0.201.0/path/mod.ts';

import createFastify from 'npm:fastify@4.22.2';
import fastifyStatic from 'npm:@fastify/static@6.11.0';
import fastifyView from 'npm:@fastify/view@8.0.0';
import Handlebars from 'npm:handlebars@4.7.8';
Here's my command :
deno run --allow-read=. --allow-env --allow-sys=hostname --allow-net ./main.js
deno run --allow-read=. --allow-env --allow-sys=hostname --allow-net ./main.js
And here's the output :
┌ :warning: Deno requests read access to "/home/kaki/.cache/deno/npm/node_modules".
├ Run again with --allow-read to bypass this prompt.
└ Allow? [y/n/A] (y = yes, allow; n = no, deny; A = allow all read permissions) >
┌ :warning: Deno requests read access to "/home/kaki/.cache/deno/npm/node_modules".
├ Run again with --allow-read to bypass this prompt.
└ Allow? [y/n/A] (y = yes, allow; n = no, deny; A = allow all read permissions) >
12 replies
DDeno
Created by KaKi87 on 7/19/2023 in #help
How to solve "cannot be invoked without 'new'" thrown from an NPM module ?
Hello ?
5 replies
DDeno
Created by KaKi87 on 7/19/2023 in #help
How to solve "cannot be invoked without 'new'" thrown from an NPM module ?
Oh, so it's package-specific ? The package is light-my-request. Here's the suspected location of the error : https://github.com/fastify/light-my-request/blob/1877c89d339636b2766f9321f96016aba4fa376c/lib/response.js#L10 Thanks
5 replies
DDeno
Created by KaKi87 on 4/4/2023 in #help
Restart Deno process on crash
Thanks but I want the script to be able to restart itself, not depend on another script to do so.
4 replies
DDeno
Created by KaKi87 on 11/3/2022 in #help
File line operations
Of course, but it still requires looping through all lines when it comes to inserting and deleting.
16 replies
DDeno
Created by KaKi87 on 11/3/2022 in #help
File line operations
I mean yes I can choose not to read it the whole file at once but I will still need to read the whole file in the end, even if in chunks.
16 replies
DDeno
Created by KaKi87 on 11/3/2022 in #help
File line operations
I see, so there's no other way but to process the whole file anyway. Thanks
16 replies