-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audit failed, problems with node-static #431
Comments
Gives me this result:
|
These only affect dev dependencies; not dependencies that we use in the packaged version of this tool, see:
Neither of the vulnerabilities listed pose threats to building this tool as far as I can tell. |
But your
This is not contained here: https://www.npmjs.com/package/swipl-wasm It was described here: https://swi-prolog.discourse.group/t/whoa-what-is-swipl-js-is-it-what-it-appears-to-be/5051/4 I am looking for an easy way to obtain it, but you didn't bundle it, right? |
The |
Note that if your goal is to use swipl in javascript then I would just refer to https://github.com/SWI-Prolog/npm-swipl-wasm?tab=readme-ov-file#swipl-wasm for the best ways to use this package. |
Concerning batch testing, without building wasm, but with downloading https://www.npmjs.com/package/swipl-wasm But there is no Also the documentation doesn't reflect newest node, so its See also this other defect: It was closed in favor of an identical other defect #433 . Which broken with readme.MD. |
There is no If you need to be loading a full prolog file rather than using basic functions described in that section of the readme, then your input to that #433 is a PR to update the readme, not an issue. You can see the readme updates in https://github.com/SWI-Prolog/npm-swipl-wasm/pull/433/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5. |
As this is a community run project there is no resourcing for the readme to be completely comprehensive and fully up to date. If anything else is unclear, you're welcome to open up an issue specifying how you want to use the library and we can try and find solutions. |
Well you then don't understand my question and/or
https://github.com/SWI-Prolog/bench/blob/master/compare.pl What do you think I was refering to when I asked for
Can you confirm that you have nowhere a |
I'm not sure if the In this package we create
The reason I pointed to this link was to demonstrate how you could write a JS script to achieve what you're after using the abstractions exported by the import SWIPL from "swipl-wasm"
/**
* Executes a query
* @param Module The module to execute the query on
* @param name The name of the query function
* @param args The arguments of the query function
* @returns The result of the query
*/
export function query(Module: SWIPLModule, name: string, args: string[] | string) {
const queryString = `${name}(${
/* istanbul ignore next */
typeof args === 'string'
? `"${args}"`
: `[${args.map((arg) => `'${arg}'`).join(', ')}]`
}).`;
return Module.prolog.query(queryString);
}
export function queryOnce(Module: SWIPLModule, name: string, args: string[] | string) {
return query(Module, name, args).once();
}
async function main() {
const Module = await SWIPL();
Module.FS.writeFile('example.pl', strToBuffer(/* prolog string */ ));
queryOnce(Module, 'consult', 'example.pl');
queryOnce(Module, 'main', ['<Argument1>', ..., '<ArgumentN>']);
} I hope that clarifies any confusion in my above responses. |
I wonder what you mean by "archive". It surely doesn't "archive" a CLI. To use
CLI = command line interface. Mostlikely it will use Also traditionally the argv should land in the Prolog flag argv, which exists than what might meet the eye in the first place. |
The Note that, at least in theory, we also can embed the Prolog resources into the C (and thus WASM) code rather than using the virtual filesystem. I don't know whether that changes the equation. I guess it all depends on the use cases. Running in the browser is obviously something we want. Running under Node is less clear. On Discourse it was mentioned for including in some cloud infrastructure. WASM produces a nicely portable version of course. For Node, one can also consider embedding the native version, providing much better scaling (at the cost of more complicated installation and loosing portability). |
He was using:
Now it shows me after npm ci:
Can I ignore?
The text was updated successfully, but these errors were encountered: