Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oasis-api

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oasis-api - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

seeds/seeds.js

2

auth/auth.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc