You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey!
I was trying to build a wrapper for @openpassport/sdk using Deno to be able to make it work in a rust project.
But I got this issue:
deno run --unstable --allow-read=node_modules --allow-net openPassportVerifier.ts ✔ 18.16.1
⚠️ The `--unstable` flag is deprecated and will be removed in Deno 2.0. Use granular `--unstable-*` flags instead.
Learn more at: https://docs.deno.com/runtime/manual/tools/unstable_flags
error: Error in @openpassport/sdk@0.1.7 parsing version requirement for dependency: node-forge@git+https://github.com/remicolin/forge.git
Invalid npm version requirement. Unexpected character.
git+https://github.com/remicolin/forge.git
~
at file:///home/isk/projects/pse/hackathon_2024/snark-verifier-server-rs/deno/src/openPassportVerifier.ts:1:96
// openPassportVerifier.tsimport{OpenPassport1StepInputs,OpenPassportVerifierReport,OpenPassport1StepVerifier}from'npm:@openpassport/sdk@^0.1.7';letverifier: OpenPassport1StepVerifier|null=null;exportfunctioninitializeVerifier(options: {scope: string;attestationId?: string;requirements?: string[][];rpcUrl?: string;dev_mode?: boolean;}): void{verifier=newOpenPassport1StepVerifier(options);}exportasyncfunctionverifyPassport(openPassport1StepInputs: OpenPassport1StepInputs): Promise<OpenPassportVerifierReport>{if(!verifier){thrownewError("Verifier has not been initialized. Please call initializeVerifier first.");}returnawaitverifier.verify(openPassport1StepInputs);}
looks like deno doesn't like this github link as a package identifier. Not familiar with deno, does it support anything different from npm as sources? @0xisk
looks like deno doesn't like this github link as a package identifier. Not familiar with deno, does it support anything different from npm as sources? @0xisk
Thanks @0xturboblitz for your fast reply. I am not experienced with Deno, but I guess if you could publish your forked version in NPM that would be the easiest.
Hey!
I was trying to build a wrapper for
@openpassport/sdk
using Deno to be able to make it work in a rust project.But I got this issue:
Related Project: https://github.com/dog-18/openpassport-rs
The text was updated successfully, but these errors were encountered: