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

@peable/services

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@peable/services - npm Package Compare versions

Comparing version 0.0.43 to 0.0.44

8

dist/hooks/getUserById.d.ts
interface User {
id: string;
username: string;
name: string;
email: string | null;
role: string | null;
avatar: string | null;
profile_image_url: string | null;
email: string;
role: string;
avatar: string;
}

@@ -10,0 +8,0 @@ declare const getUserById: (id?: string[], fields?: (keyof User)[]) => Promise<any>;

import axios from "axios";
const getUserById = async (id, fields) => {
try {
const response = await axios.get("https://auth.peable.co" + `/api/users/${id}`);
const response = await axios.get(`http://localhost:3001/api/users/${id}`);
const user = fields

@@ -6,0 +6,0 @@ ? fields.reduce((obj, key) => ({ ...obj, [key]: response.data[key] }), {})

{
"name": "@peable/services",
"version": "0.0.43",
"version": "0.0.44",
"description": "",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

Sorry, the diff of this file is not supported yet

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