@foxiko/client
Advanced tools
Comparing version 1.0.86 to 1.0.87
@@ -27,5 +27,5 @@ const {Employee} = require("../entities/Employee"); | ||
return data.map(e => { | ||
let vendor = new Employee(e); | ||
vendor._handler(this); | ||
return vendor; | ||
let employee = new Employee(e); | ||
employee._handler(this); | ||
return employee; | ||
}); | ||
@@ -56,3 +56,3 @@ } | ||
.contentType().json() | ||
.body(vendor.toArray()) | ||
.body(employee.toArray()) | ||
.header("x-finance-account-id", this.#accountId) | ||
@@ -59,0 +59,0 @@ .responseType().json() |
@@ -45,4 +45,4 @@ const schema = process.env['LOCAL'] === "true" ? "http" : "https"; | ||
EDIT: (id) => `${schema}://${domain}/${version}/finance/employee/${id}/edit`, | ||
CREATE: `${schema}://${domain}/${version}/finance/employee/create`, | ||
ALL: `${schema}://${domain}/${version}/finance/employee/all`, | ||
CREATE: `${schema}://${domain}/${version}/finance/employees/create`, | ||
ALL: `${schema}://${domain}/${version}/finance/employees/all`, | ||
}, | ||
@@ -49,0 +49,0 @@ ACCOUNT: { |
{ | ||
"name": "@foxiko/client", | ||
"version": "1.0.86", | ||
"version": "1.0.87", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,6 +5,6 @@ const {APIEntity} = require("../../APIEntity"); | ||
#handle; | ||
#handler; | ||
_handle(handler) { | ||
this.#handle = handler; | ||
_handler(handler) { | ||
this.#handler = handler; | ||
} | ||
@@ -11,0 +11,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
185182