How to use the @seagull/seed.SeedError function in @seagull/seed

To help you get started, we’ve selected a few @seagull/seed examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github seagull-js / seagull / packages / services-soap / src / mode / pure.ts View on Github external
async getClient(opts: ClientOptions): Promise {
    const endpoint = getEndpoint(opts)
    const wsdlPath = `seed/${endpoint}.wsdl`.replace('://', '/')
    const options = { endpoint, wsdlPath, credentials: opts.credentials }
    try {
      const client = await getClientInternal(options)
      const pureClient = await this.purifyClient(client, endpoint)
      return pureClient
    } catch (e) {
      if (e.code === 'ENOENT') {
        throw new SeedError(`Fixture (seed) WSDL is missing: ${wsdlPath}`, e)
      }
      throw new SoapError(`Unable to create pure mode client: ${e.message}`, e)
    }
  }

@seagull/seed

Seed implementation for the seagull framework

LGPL-3.0
Latest version published 1 year ago

Package Health Score

49 / 100
Full package analysis