@nomalism-com/api 0.13.11 → 0.13.13

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
@@ -313,8 +313,8 @@ var API = (function () {
313
313
  var baseUrl = services[service];
314
314
  var serviceAuthPath = processEnvironment === 'localhost'
315
315
  ? '/'
316
- : "".concat(service, "/").concat(apikey ? 'apikey' : 'auth');
317
- var servicePublicPath = processEnvironment === 'localhost' ? '/' : "".concat(service, "/public");
316
+ : "".concat(service, "/").concat(apikey ? 'apikey/' : 'auth/');
317
+ var servicePublicPath = processEnvironment === 'localhost' ? '/' : "".concat(service, "/public/");
318
318
  return {
319
319
  authPath: "".concat(baseUrl).concat(serviceAuthPath),
320
320
  publicPath: "".concat(baseUrl).concat(servicePublicPath),
@@ -47,7 +47,7 @@ var Repository = (function () {
47
47
  return __awaiter(this, void 0, void 0, function () {
48
48
  return __generator(this, function (_a) {
49
49
  switch (_a.label) {
50
- case 0: return [4, this.api.post("".concat(this.route, "forgot"), body)];
50
+ case 0: return [4, this.api.post("".concat(this.publicRoute, "forgot"), body)];
51
51
  case 1:
52
52
  _a.sent();
53
53
  return [2];
@@ -59,7 +59,7 @@ var Repository = (function () {
59
59
  return __awaiter(this, void 0, void 0, function () {
60
60
  return __generator(this, function (_a) {
61
61
  switch (_a.label) {
62
- case 0: return [4, this.api.post("".concat(this.route, "reset"), body)];
62
+ case 0: return [4, this.api.post("".concat(this.publicRoute, "reset"), body)];
63
63
  case 1:
64
64
  _a.sent();
65
65
  return [2];
@@ -48,7 +48,7 @@ var Repository = (function () {
48
48
  var response;
49
49
  return __generator(this, function (_a) {
50
50
  switch (_a.label) {
51
- case 0: return [4, this.api.post("".concat(this.route), body)];
51
+ case 0: return [4, this.api.post("".concat(this.publicRoute), body)];
52
52
  case 1:
53
53
  response = _a.sent();
54
54
  return [2, response.data];
@@ -48,7 +48,7 @@ var Repository = (function () {
48
48
  var response;
49
49
  return __generator(this, function (_a) {
50
50
  switch (_a.label) {
51
- case 0: return [4, this.api.post("".concat(this.route), body)];
51
+ case 0: return [4, this.api.post("".concat(this.publicRoute), body)];
52
52
  case 1:
53
53
  response = _a.sent();
54
54
  return [2, response.data];
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.13.11",
12
+ "version": "0.13.13",
13
13
  "main": "dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [