Comparing version 0.1.0 to 0.1.1
@@ -76,7 +76,5 @@ import axios from "axios"; | ||
} | ||
console.log(res.data) | ||
const sto = JSON.stringify(res.data.result); | ||
localStorage.setItem("user", sto); | ||
localStorage.setItem("login", data); | ||
console.log(sto); | ||
@@ -83,0 +81,0 @@ return { error: false, data: res.data }; |
@@ -20,3 +20,2 @@ import axios from "axios"; | ||
obj.token = { jwtToken: user.jwtToken, refresh: user.refreshToken }; | ||
console.log(obj); | ||
return obj.token; | ||
@@ -36,3 +35,3 @@ } else return -1; | ||
method: "get", | ||
url: "https://api.oasisplatform.world/api/avatar/GetAll", | ||
url: "https://api.oasisplatform.world/api/avatar/get-all-avatars", | ||
headers: { | ||
@@ -46,4 +45,4 @@ Authorization: `Bearer ${token.jwtToken}`, | ||
.then(function (response) { | ||
if (res.data.isError) { | ||
return { error: true, data: res.data }; | ||
if (response.data.isError) { | ||
return { error: true, data: response.data }; | ||
} | ||
@@ -68,3 +67,3 @@ return { error: false, data: response.data }; | ||
method: "get", | ||
url: `https://api.oasisplatform.world/api/avatar/GetById/${id}`, | ||
url: `https://api.oasisplatform.world/api/avatar/get-avatar-detail-by-id/${id}`, | ||
headers: { | ||
@@ -79,3 +78,3 @@ Authorization: `Bearer ${token.jwtToken}`, | ||
.then(function (response) { | ||
if (res.data.isError) { | ||
if (response.data.isError) { | ||
return { error: true, data: res.data }; | ||
@@ -100,3 +99,3 @@ } | ||
method: "post", | ||
url: `https://api.oasisplatform.world/api/avatar/Update/${id}`, | ||
url: `https://api.oasisplatform.world/api/avatar/update-by-id/${id}`, | ||
headers: { | ||
@@ -168,3 +167,3 @@ Authorization: `Bearer ${token.jwtToken}`, | ||
method: "post", | ||
url: `https://api.oasisplatform.world/api/avatar/AddKarmaToAvatar/${id}`, | ||
url: `https://api.oasisplatform.world/api/avatar/add-karma-to-avatar/${id}`, | ||
headers: { | ||
@@ -207,3 +206,3 @@ Authorization: `Bearer ${token.jwtToken}`, | ||
method: "post", | ||
url: `https://api.oasisplatform.world/api/avatar/RemoveKarmaFromAvatar/${id}`, | ||
url: `https://api.oasisplatform.world/api/avatar/remove-karma-from-avatar/${id}`, | ||
headers: { | ||
@@ -210,0 +209,0 @@ Authorization: `Bearer ${token.jwtToken}`, |
@@ -72,3 +72,3 @@ import axios from "axios"; | ||
method: "get", | ||
url: `https://api.oasisplatform.world/api/karma/getKarmaAkashicRecordsForAvatar/${id}`, | ||
url: `https://api.oasisplatform.world/api/karma/GetKarmaAkashicRecordsForAvatar/${id}`, | ||
headers: { | ||
@@ -75,0 +75,0 @@ Authorization: `Bearer ${this.token.jwtToken}`, |
{ | ||
"name": "oasis-api", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A JavaScript proxy for the Oasis API. To be used only in the browser.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
38817
13
998