Socket
Socket
Sign inDemoInstall

@6degrees/f6snypi

Package Overview
Dependencies
2
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

6

api/jokes.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc