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.17 to 0.0.18

2

dist/hooks/getUserById.d.ts

@@ -8,3 +8,3 @@ interface User {

}
declare const useGetUsersByIds: (ids: string[], fields: (keyof User)[]) => {
declare const useGetUsersByIds: (ids: string[], fields?: (keyof User)[]) => {
users: User[] | null;

@@ -11,0 +11,0 @@ status: "loading" | "loaded" | "error" | "idle";

@@ -16,3 +16,5 @@ import { useState, useEffect } from "react";

const user = response.data;
return fields.reduce((obj, key) => ({ ...obj, [key]: user[key] }), {});
return fields
? fields.reduce((obj, key) => ({ ...obj, [key]: user[key] }), {})
: user;
});

@@ -19,0 +21,0 @@ setUsers(users);

{
"name": "@peable/services",
"version": "0.0.17",
"version": "0.0.18",
"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