Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createAuthMiddlewareForClientCredentialsFlow({
...this.apiConfig,
fetch,
}),
createUserAgentMiddleware({
libraryName: pkg.name,
libraryVersion: pkg.version,
}),
createHttpMiddleware({
host: this.apiConfig.apiUrl,
fetch,
}),
],
})
this.syncDiscountCodes = createSyncDiscountCodes()
this.logger = logger || {
error: npmlog.error.bind(this, ''),
warn: npmlog.warn.bind(this, ''),
info: npmlog.info.bind(this, ''),
verbose: npmlog.verbose.bind(this, ''),
}
this._resetSummary()
}