@bibike/erp-sdk 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -346,6 +346,8 @@ var BibikeClient = class {
346
346
  */
347
347
  async login(credentials) {
348
348
  const response = await this.request("auth", "login", "POST", {
349
+ // Send both for backwards compatibility with older API versions
350
+ username: credentials.login,
349
351
  login: credentials.login,
350
352
  password: credentials.password,
351
353
  two_factor_code: credentials.two_factor_code
package/dist/index.mjs CHANGED
@@ -319,6 +319,8 @@ var BibikeClient = class {
319
319
  */
320
320
  async login(credentials) {
321
321
  const response = await this.request("auth", "login", "POST", {
322
+ // Send both for backwards compatibility with older API versions
323
+ username: credentials.login,
322
324
  login: credentials.login,
323
325
  password: credentials.password,
324
326
  two_factor_code: credentials.two_factor_code
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bibike/erp-sdk",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "TypeScript SDK for Bibike ERP API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",