@6degrees/f6snypi
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -26,3 +26,3 @@ module.exports = axios => () => ({ | ||
async searchJokesByKeywords(keywords, start) { | ||
async searchJokesByKeywords(keywords, start = 0) { | ||
try { | ||
@@ -53,3 +53,3 @@ return await axios.get( | ||
async getTagJokesBySlug(slug, start) { | ||
async getTagJokesBySlug(slug, start = 0) { | ||
try { | ||
@@ -70,3 +70,3 @@ return await axios.get(encodeURI(`/jokes?tags.slug=${slug}&_start=${start}`)).then(response => response.data); | ||
async getUserJokesByID(user_id, start) { | ||
async getUserJokesByID(user_id, start = 0) { | ||
try { | ||
@@ -73,0 +73,0 @@ return await axios.get(encodeURI(`/jokes?author=${user_id}&_sort=id:desc&_start=${start}`)).then(response => response.data); |
@@ -1,6 +0,5 @@ | ||
const axios = require('axios') | ||
const instance = axios.create({ | ||
baseURL: 'https://api.f6sny.com' | ||
}); | ||
const instance = require('axios').default; | ||
instance.defaults.baseURL = 'https://api.f6sny.com'; | ||
const globalAPI = require('./api/global') | ||
@@ -7,0 +6,0 @@ const jokesAPI = require('./api/jokes') |
{ | ||
"name": "@6degrees/f6snypi", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "An API wrapper for https://api.f6sny.com for NPM", | ||
@@ -34,4 +34,4 @@ "main": "main.js", | ||
"dependencies": { | ||
"axios": "^1.3.4" | ||
"axios": "^0.25.0" | ||
} | ||
} |
10461
12
198
+ Addedaxios@0.25.0(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaxios@1.6.8(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removedform-data@4.0.0(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removedproxy-from-env@1.1.0(transitive)
Updatedaxios@^0.25.0