Socket
Socket
Sign inDemoInstall

alga-news-sdk

Package Overview
Dependencies
2
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.9.3 to 1.9.4

2

dist/hooks/useUsers.d.ts

@@ -92,3 +92,3 @@ import { User } from "../interfaces";

createNewUser: (userInput: User.Input) => Promise<any>;
updateExistingUser: (userId: number, userInput: User.Detailed) => Promise<{
updateExistingUser: (userId: number, userInput: User.Input) => Promise<{
id: number;

@@ -95,0 +95,0 @@ name: string;

@@ -71,3 +71,3 @@ import { User } from '../interfaces';

export declare const createNewUser: (user: User.Input) => Promise<any>;
export declare const updateExistingUser: (userId: number, newUserProps: User.Detailed) => Promise<{
export declare const updateExistingUser: (userId: number, newUserProps: User.Input) => Promise<{
id: number;

@@ -74,0 +74,0 @@ name: string;

{
"name": "alga-news-sdk",
"version": "1.9.3",
"version": "1.9.4",
"description": "SDK para aplicações que envolvem API da AlgaNews em React",

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

@@ -38,3 +38,3 @@ import { useState } from "react";

async function updateExistingUser (userId: number, userInput: User.Detailed) {
async function updateExistingUser (userId: number, userInput: User.Input) {
try {

@@ -41,0 +41,0 @@ addLoadingState('updateExistingUser');

@@ -17,3 +17,3 @@ import { AlgaNews, User } from '../interfaces';

export const updateExistingUser = async (userId: number, newUserProps: User.Detailed) =>
export const updateExistingUser = async (userId: number, newUserProps: User.Input) =>
Http.put<User.Detailed>(`/users/${userId}`, { ...newUserProps })

@@ -20,0 +20,0 @@ .then(res => res.data);

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