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

ez-api-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ez-api-wrapper - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

1

endpoints/posts.js

@@ -14,2 +14,1 @@ const apiClient = require('../apiClient');

};

14

endpoints/users.js

@@ -1,5 +0,13 @@

import { fetchData } from '../apiClient.js';
const apiClient = require('../apiClient');
export async function fetchUsers() {
return fetchData('/users');
async function fetchUsers() {
try {
return await apiClient.fetchData('/users');
} catch (error) {
throw new Error(`Error fetching users: ${error.message}`);
}
}
module.exports = {
fetchUsers
};
{
"name": "ez-api-wrapper",
"version": "1.0.4",
"version": "1.0.5",
"description": "Wrapper for an API: If there's an API you frequently use, you could create a wrapper for it that simplifies the process of making requests and handling responses. This could be for anything from weather data to social media APIs.",

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

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