Skip to content

A base class defining common logic used by all @client-zone API clients

Notifications You must be signed in to change notification settings

client-zone/base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

view on npm npm module downloads Gihub repo dependents Gihub package dependents Node.js CI js-standard-style

@client-zone/base

An isomorphic base class defining common logic used by all @client-zone API clients. Requires Node.js v18 and above for built-in fetch.

Exception structure

Error: 404: Not Found
    at NpmDownloads.fetch (file:///Users/lloyd/Documents/client-zone/npm/node_modules/@client-zone/base/index.js:57:25)
    ...etc
  request: {
    url: 'https://api.npmjs.org/downloads/point/last-month/@akdfdsaf/jdshfauybsfuyabdflbasdfdksahjsdhksdf',
    fetchOptions: {}
  },
  response: {
    status: 404,
    statusText: 'Not Found',
    body: '{"error":"package @akdfdsaf/jdshfauybsfuyabdflbasdfdksahjsdhksdf not found"}',
    headers: Headers {
      date: 'Sun, 01 Sep 2024 18:29:37 GMT',
      'content-type': 'application/json; charset=utf-8',
      ...etc
    }
  }
}

© 2021-24 Lloyd Brookes <75pound@gmail.com>.

Tested by test-runner.

About

A base class defining common logic used by all @client-zone API clients

Resources

Stars

Watchers

Forks

Packages

No packages published