@client-zone/base

0.7.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @client-zone/base

Weekly Downloads

5

Version

0.7.1

License

MIT

Unpacked Size

5.53 kB

Total Files

3

Last publish

Collaborators

  • 75lb