@indra211/httpease 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  A lightweight, powerful HTTP client for JavaScript & TypeScript — Built on native fetch with automatic retry, interceptors, progress tracking, and more.
4
4
 
5
- [![npm version](https://img.shields.io/npm/v/http-ease.svg)](https://www.npmjs.com/package/http-ease)
5
+ [![npm version](https://img.shields.io/npm/v/@indra211/httpease.svg)](https://www.npmjs.com/package/@indra211/httpease)
6
6
 
7
7
  ## ✨ Why HTTP Ease?
8
8
 
@@ -31,7 +31,7 @@ npm install @indra211/httpease
31
31
  ### JavaScript
32
32
 
33
33
  ```javascript
34
- const httpEase = require('httpease');
34
+ const httpEase = require('@indra211/httpease');
35
35
 
36
36
  // Simple GET request
37
37
  const response = await httpEase.get('https://api.example.com/users');
@@ -47,7 +47,7 @@ const newUser = await httpEase.post('https://api.example.com/users', {
47
47
  ### TypeScript
48
48
 
49
49
  ```typescript
50
- import httpEase, { create, HttpEaseResponse } from 'httpease';
50
+ import httpEase, { create, HttpEaseResponse } from '@indra211/httpease';
51
51
 
52
52
  interface User {
53
53
  id: number;
@@ -71,7 +71,7 @@ console.log(user.data.name); // ✅ IntelliSense works
71
71
  ### Creating an Instance
72
72
 
73
73
  ```typescript
74
- import { create } from 'httpease';
74
+ import { create } from '@indra211/httpease';
75
75
 
76
76
  const api = create({
77
77
  baseURL: 'https://api.example.com',
@@ -301,7 +301,7 @@ await api.get('/critical-endpoint', {
301
301
  ### Error Handling
302
302
 
303
303
  ```typescript
304
- import { HttpEaseError } from 'httpease';
304
+ import { HttpEaseError } from '@indra211/httpease';
305
305
 
306
306
  try {
307
307
  const response = await api.get('/users/999');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra211/httpease",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Lightweight HTTP client built on native fetch — zero dependencies, TypeScript support, retry, interceptors & progress tracking.",
5
5
  "main": "src/index.js",
6
6
  "types": "src/types/index.d.ts",
package/src/HttpEase.js CHANGED
@@ -19,7 +19,7 @@ class HttpEase {
19
19
  // Default configuration
20
20
  this.defaults = {
21
21
  baseURL: '',
22
- timeout: 30000,
22
+ timeout: 150000,
23
23
  headers: {
24
24
  'Content-Type': 'application/json',
25
25
  },