solid-contrib / solid-node-client

a nodejs client for Solid
MIT License
20 stars 8 forks source link

Use solid-auth-fetcher@1.2.1 #4

Closed michielbdejong closed 3 years ago

michielbdejong commented 3 years ago

I added the obtain-auth-headers code to solid-auth-fetcher, so this PR is to remove it here and use it from there. The build is failing though, not sure why:


$ npm run build

> solid-node-client@1.0.0 build /Users/michiel/gh/solid/solid-node-client
> tsc --esModuleInterop src/index

src/index.ts:73:27 - error TS2339: Property 'fetch' does not exist on type 'ISolidSession'.
  Property 'fetch' does not exist on type 'ILoggedOutSolidSession'.

73     let originalFetch = s.fetch;
                             ~~~~~

src/index.ts:74:7 - error TS2339: Property 'fetch' does not exist on type 'ISolidSession'.
  Property 'fetch' does not exist on type 'ILoggedOutSolidSession'.

74     s.fetch = (url:string,opts:any) => {
         ~~~~~

Found 2 errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! solid-node-client@1.0.0 build: `tsc --esModuleInterop src/index`
npm ERR! Exit status 2