@tnf-dev/core 1.0.1-9 → 1.0.1
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/dist/cjs/client/http.cjs +1 -1
- package/dist/cjs/client/http.d.cts +5 -5
- package/dist/cjs/client/index.cjs +1 -1
- package/dist/cjs/dto/index.d.cts +1 -1
- package/dist/cjs/dto/notifications/index.d.cts +1 -1
- package/dist/cjs/dto/notifications/notification.interface.cjs +1 -1
- package/dist/cjs/dto/notifications/notification.interface.d.cts +4 -10
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.d.cts +1 -1
- package/dist/esm/client/http.d.ts +5 -5
- package/dist/esm/client/http.js +1 -1
- package/dist/esm/client/index.js +1 -1
- package/dist/esm/dto/index.d.ts +1 -1
- package/dist/esm/dto/notifications/index.d.ts +1 -1
- package/dist/esm/dto/notifications/notification.interface.d.ts +4 -10
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
package/dist/cjs/client/http.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";var R=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var
|
1
|
+
"use strict";var R=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var B=Object.prototype.hasOwnProperty;var T=t=>{throw TypeError(t)};var $=(t,e)=>{for(var s in e)R(t,s,{get:e[s],enumerable:!0})},q=(t,e,s,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of x(e))!B.call(t,r)&&r!==s&&R(t,r,{get:()=>e[r],enumerable:!(n=l(e,r))||n.enumerable});return t};var w=t=>q(R({},"__esModule",{value:!0}),t);var c=(t,e,s)=>e.has(t)||T("Cannot "+s);var p=(t,e,s)=>(c(t,e,"read from private field"),s?s.call(t):e.get(t)),g=(t,e,s)=>e.has(t)?T("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),m=(t,e,s,n)=>(c(t,e,"write to private field"),n?n.call(t,s):e.set(t,s),s),d=(t,e,s)=>(c(t,e,"access private method"),s);var f={};$(f,{HttpClient:()=>h});module.exports=w(f);var y=t=>new URLSearchParams(Object.keys(t).reduce((e,s)=>(t[s]!==void 0&&(e[s]=`${t[s]}`),e),{})).toString();var o,i,O,u,h=class{constructor(e){g(this,i);g(this,o);m(this,o,e.baseUrl)}get baseUrl(){return p(this,o)}get(e,s){return d(this,i,u).call(this,`${p(this,o)}${e}`,s)}post(e,s,n){return d(this,i,u).call(this,`${p(this,o)}${e}`,{...n,method:"POST",body:s})}put(e,s,n){return d(this,i,u).call(this,`${p(this,o)}${e}`,{...n,method:"PUT",body:s})}patch(e,s,n={}){return d(this,i,u).call(this,`${p(this,o)}${e}`,{...n,method:"PATCH",body:s})}delete(e,s){return d(this,i,u).call(this,`${p(this,o)}${e}`,{...s,method:"DELETE"})}};o=new WeakMap,i=new WeakSet,O=async function(e,{body:s,params:n,...r}={}){let a=e;n&&(a=`${e}?${y(n||{})}`);let b={...r,...s?{body:JSON.stringify(s)}:{},headers:{"Content-Type":"application/json",...r.headers}};return[a,b]},u=async function(e,s){let[n,r]=await d(this,i,O).call(this,e,s),a=await fetch(n,r);if(!a.ok)throw{status:"error",error_message:await a.text()};if(a.headers.get("Content-Type")!=="application/json")throw{status:"error",error_message:await a.text()};return{...await a.json(),status:"success"}};0&&(module.exports={HttpClient});
|
@@ -11,11 +11,11 @@ declare class HttpClient {
|
|
11
11
|
#private;
|
12
12
|
constructor(options: HttpClientOptions);
|
13
13
|
get baseUrl(): string;
|
14
|
-
get<T = BaseResponse>(url: string, options?: Omit<RequestOptions, 'body'>): Promise<T>;
|
15
|
-
post<T = BaseResponse>(url: string, data?: Record<string, any>, options?: Omit<RequestOptions, 'body'>): Promise<T>;
|
16
|
-
put<T = BaseResponse>(url: string, data?: Record<string, any>, options?: Omit<RequestOptions, 'body'>): Promise<T>;
|
17
|
-
patch<T = BaseResponse>(url: string, data?: Record<string, any>, options?: RequestInit): Promise<T>;
|
18
|
-
delete<T = BaseResponse>(url: string, options?: Omit<RequestOptions, 'body'>): Promise<T>;
|
14
|
+
get<T extends BaseResponse = BaseResponse>(url: string, options?: Omit<RequestOptions, 'body'>): Promise<T>;
|
15
|
+
post<T extends BaseResponse = BaseResponse>(url: string, data?: Record<string, any>, options?: Omit<RequestOptions, 'body'>): Promise<T>;
|
16
|
+
put<T extends BaseResponse = BaseResponse>(url: string, data?: Record<string, any>, options?: Omit<RequestOptions, 'body'>): Promise<T>;
|
17
|
+
patch<T extends BaseResponse = BaseResponse>(url: string, data?: Record<string, any>, options?: RequestInit): Promise<T>;
|
18
|
+
delete<T extends BaseResponse = BaseResponse>(url: string, options?: Omit<RequestOptions, 'body'>): Promise<T>;
|
19
19
|
}
|
20
20
|
|
21
21
|
export { HttpClient, type HttpClientOptions, type RequestOptions };
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";var R=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var
|
1
|
+
"use strict";var R=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var B=Object.prototype.hasOwnProperty;var T=t=>{throw TypeError(t)};var $=(t,e)=>{for(var s in e)R(t,s,{get:e[s],enumerable:!0})},f=(t,e,s,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of x(e))!B.call(t,r)&&r!==s&&R(t,r,{get:()=>e[r],enumerable:!(n=l(e,r))||n.enumerable});return t};var q=t=>f(R({},"__esModule",{value:!0}),t);var c=(t,e,s)=>e.has(t)||T("Cannot "+s);var p=(t,e,s)=>(c(t,e,"read from private field"),s?s.call(t):e.get(t)),g=(t,e,s)=>e.has(t)?T("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),m=(t,e,s,n)=>(c(t,e,"write to private field"),n?n.call(t,s):e.set(t,s),s),d=(t,e,s)=>(c(t,e,"access private method"),s);var w={};$(w,{HttpClient:()=>h});module.exports=q(w);var y=t=>new URLSearchParams(Object.keys(t).reduce((e,s)=>(t[s]!==void 0&&(e[s]=`${t[s]}`),e),{})).toString();var o,i,O,u,h=class{constructor(e){g(this,i);g(this,o);m(this,o,e.baseUrl)}get baseUrl(){return p(this,o)}get(e,s){return d(this,i,u).call(this,`${p(this,o)}${e}`,s)}post(e,s,n){return d(this,i,u).call(this,`${p(this,o)}${e}`,{...n,method:"POST",body:s})}put(e,s,n){return d(this,i,u).call(this,`${p(this,o)}${e}`,{...n,method:"PUT",body:s})}patch(e,s,n={}){return d(this,i,u).call(this,`${p(this,o)}${e}`,{...n,method:"PATCH",body:s})}delete(e,s){return d(this,i,u).call(this,`${p(this,o)}${e}`,{...s,method:"DELETE"})}};o=new WeakMap,i=new WeakSet,O=async function(e,{body:s,params:n,...r}={}){let a=e;n&&(a=`${e}?${y(n||{})}`);let b={...r,...s?{body:JSON.stringify(s)}:{},headers:{"Content-Type":"application/json",...r.headers}};return[a,b]},u=async function(e,s){let[n,r]=await d(this,i,O).call(this,e,s),a=await fetch(n,r);if(!a.ok)throw{status:"error",error_message:await a.text()};if(a.headers.get("Content-Type")!=="application/json")throw{status:"error",error_message:await a.text()};return{...await a.json(),status:"success"}};0&&(module.exports={HttpClient});
|
package/dist/cjs/dto/index.d.cts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { Notification, NotificationAction, NotificationData, NotificationPayload
|
1
|
+
export { Notification, NotificationAction, NotificationData, NotificationPayload } from './notifications/notification.interface.cjs';
|
2
2
|
export { PaginationRequest } from './request/request.interface.cjs';
|
3
3
|
export { BaseResponse, ErrorResponse, PaginatedResponse, SingleResponse } from './response/response.interface.cjs';
|
4
4
|
import './base/record.interface.cjs';
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { Notification, NotificationAction, NotificationData, NotificationPayload
|
1
|
+
export { Notification, NotificationAction, NotificationData, NotificationPayload } from './notification.interface.cjs';
|
2
2
|
import '../base/record.interface.cjs';
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";var e=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var f=(i,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of c(t))!s.call(i,o)&&o!==n&&e(i,o,{get:()=>t[o],enumerable:!(a=r(t,o))||a.enumerable});return i};var d=i=>f(e({},"__esModule",{value:!0}),i);var
|
1
|
+
"use strict";var e=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var f=(i,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of c(t))!s.call(i,o)&&o!==n&&e(i,o,{get:()=>t[o],enumerable:!(a=r(t,o))||a.enumerable});return i};var d=i=>f(e({},"__esModule",{value:!0}),i);var g={};module.exports=d(g);
|
@@ -1,17 +1,12 @@
|
|
1
1
|
import { BaseRecord } from '../base/record.interface.cjs';
|
2
2
|
|
3
3
|
interface NotificationAction {
|
4
|
-
type: 'primary' | 'secondary';
|
5
4
|
label: string;
|
6
5
|
href: string;
|
7
6
|
target?: '_blank' | '_self';
|
8
7
|
rel?: string;
|
9
|
-
|
10
|
-
|
11
|
-
type: 'primary';
|
12
|
-
}
|
13
|
-
interface NotificationSecondaryAction extends NotificationAction {
|
14
|
-
type: 'secondary';
|
8
|
+
background_color?: string;
|
9
|
+
foreground_color?: string;
|
15
10
|
}
|
16
11
|
interface NotificationPayload extends Record<string, any> {
|
17
12
|
}
|
@@ -22,10 +17,9 @@ interface Notification extends BaseRecord {
|
|
22
17
|
message: string;
|
23
18
|
isRead: boolean;
|
24
19
|
icon?: string;
|
25
|
-
|
26
|
-
secondary_action?: NotificationSecondaryAction;
|
20
|
+
actionButtons?: Array<NotificationAction>;
|
27
21
|
payload?: NotificationPayload;
|
28
22
|
data?: NotificationData;
|
29
23
|
}
|
30
24
|
|
31
|
-
export type { Notification, NotificationAction, NotificationData, NotificationPayload
|
25
|
+
export type { Notification, NotificationAction, NotificationData, NotificationPayload };
|
package/dist/cjs/index.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";var R=Object.defineProperty;var
|
1
|
+
"use strict";var R=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var T=t=>{throw TypeError(t)};var B=(t,e)=>{for(var s in e)R(t,s,{get:e[s],enumerable:!0})},$=(t,e,s,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of l(e))!f.call(t,r)&&r!==s&&R(t,r,{get:()=>e[r],enumerable:!(n=x(e,r))||n.enumerable});return t};var q=t=>$(R({},"__esModule",{value:!0}),t);var c=(t,e,s)=>e.has(t)||T("Cannot "+s);var p=(t,e,s)=>(c(t,e,"read from private field"),s?s.call(t):e.get(t)),g=(t,e,s)=>e.has(t)?T("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),m=(t,e,s,n)=>(c(t,e,"write to private field"),n?n.call(t,s):e.set(t,s),s),d=(t,e,s)=>(c(t,e,"access private method"),s);var w={};B(w,{HttpClient:()=>h});module.exports=q(w);var y=t=>new URLSearchParams(Object.keys(t).reduce((e,s)=>(t[s]!==void 0&&(e[s]=`${t[s]}`),e),{})).toString();var o,i,O,u,h=class{constructor(e){g(this,i);g(this,o);m(this,o,e.baseUrl)}get baseUrl(){return p(this,o)}get(e,s){return d(this,i,u).call(this,`${p(this,o)}${e}`,s)}post(e,s,n){return d(this,i,u).call(this,`${p(this,o)}${e}`,{...n,method:"POST",body:s})}put(e,s,n){return d(this,i,u).call(this,`${p(this,o)}${e}`,{...n,method:"PUT",body:s})}patch(e,s,n={}){return d(this,i,u).call(this,`${p(this,o)}${e}`,{...n,method:"PATCH",body:s})}delete(e,s){return d(this,i,u).call(this,`${p(this,o)}${e}`,{...s,method:"DELETE"})}};o=new WeakMap,i=new WeakSet,O=async function(e,{body:s,params:n,...r}={}){let a=e;n&&(a=`${e}?${y(n||{})}`);let b={...r,...s?{body:JSON.stringify(s)}:{},headers:{"Content-Type":"application/json",...r.headers}};return[a,b]},u=async function(e,s){let[n,r]=await d(this,i,O).call(this,e,s),a=await fetch(n,r);if(!a.ok)throw{status:"error",error_message:await a.text()};if(a.headers.get("Content-Type")!=="application/json")throw{status:"error",error_message:await a.text()};return{...await a.json(),status:"success"}};0&&(module.exports={HttpClient});
|
package/dist/cjs/index.d.cts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export { HttpClient, HttpClientOptions, RequestOptions } from './client/http.cjs';
|
2
|
-
export { Notification, NotificationAction, NotificationData, NotificationPayload
|
2
|
+
export { Notification, NotificationAction, NotificationData, NotificationPayload } from './dto/notifications/notification.interface.cjs';
|
3
3
|
export { PaginationRequest } from './dto/request/request.interface.cjs';
|
4
4
|
export { BaseResponse, ErrorResponse, PaginatedResponse, SingleResponse } from './dto/response/response.interface.cjs';
|
5
5
|
import './dto/base/record.interface.cjs';
|
@@ -11,11 +11,11 @@ declare class HttpClient {
|
|
11
11
|
#private;
|
12
12
|
constructor(options: HttpClientOptions);
|
13
13
|
get baseUrl(): string;
|
14
|
-
get<T = BaseResponse>(url: string, options?: Omit<RequestOptions, 'body'>): Promise<T>;
|
15
|
-
post<T = BaseResponse>(url: string, data?: Record<string, any>, options?: Omit<RequestOptions, 'body'>): Promise<T>;
|
16
|
-
put<T = BaseResponse>(url: string, data?: Record<string, any>, options?: Omit<RequestOptions, 'body'>): Promise<T>;
|
17
|
-
patch<T = BaseResponse>(url: string, data?: Record<string, any>, options?: RequestInit): Promise<T>;
|
18
|
-
delete<T = BaseResponse>(url: string, options?: Omit<RequestOptions, 'body'>): Promise<T>;
|
14
|
+
get<T extends BaseResponse = BaseResponse>(url: string, options?: Omit<RequestOptions, 'body'>): Promise<T>;
|
15
|
+
post<T extends BaseResponse = BaseResponse>(url: string, data?: Record<string, any>, options?: Omit<RequestOptions, 'body'>): Promise<T>;
|
16
|
+
put<T extends BaseResponse = BaseResponse>(url: string, data?: Record<string, any>, options?: Omit<RequestOptions, 'body'>): Promise<T>;
|
17
|
+
patch<T extends BaseResponse = BaseResponse>(url: string, data?: Record<string, any>, options?: RequestInit): Promise<T>;
|
18
|
+
delete<T extends BaseResponse = BaseResponse>(url: string, options?: Omit<RequestOptions, 'body'>): Promise<T>;
|
19
19
|
}
|
20
20
|
|
21
21
|
export { HttpClient, type HttpClientOptions, type RequestOptions };
|
package/dist/esm/client/http.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var
|
1
|
+
var i=r=>new URLSearchParams(Object.keys(r).reduce((e,s)=>(r[s]!==void 0&&(e[s]=`${r[s]}`),e),{})).toString();var a=class{#e;constructor(e){this.#e=e.baseUrl}get baseUrl(){return this.#e}async#t(e,{body:s,params:t,...o}={}){let n=e;t&&(n=`${e}?${i(t||{})}`);let p={...o,...s?{body:JSON.stringify(s)}:{},headers:{"Content-Type":"application/json",...o.headers}};return[n,p]}async#s(e,s){let[t,o]=await this.#t(e,s),n=await fetch(t,o);if(!n.ok)throw{status:"error",error_message:await n.text()};if(n.headers.get("Content-Type")!=="application/json")throw{status:"error",error_message:await n.text()};return{...await n.json(),status:"success"}}get(e,s){return this.#s(`${this.#e}${e}`,s)}post(e,s,t){return this.#s(`${this.#e}${e}`,{...t,method:"POST",body:s})}put(e,s,t){return this.#s(`${this.#e}${e}`,{...t,method:"PUT",body:s})}patch(e,s,t={}){return this.#s(`${this.#e}${e}`,{...t,method:"PATCH",body:s})}delete(e,s){return this.#s(`${this.#e}${e}`,{...s,method:"DELETE"})}};export{a as HttpClient};
|
package/dist/esm/client/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var
|
1
|
+
var i=r=>new URLSearchParams(Object.keys(r).reduce((e,s)=>(r[s]!==void 0&&(e[s]=`${r[s]}`),e),{})).toString();var a=class{#e;constructor(e){this.#e=e.baseUrl}get baseUrl(){return this.#e}async#t(e,{body:s,params:t,...o}={}){let n=e;t&&(n=`${e}?${i(t||{})}`);let p={...o,...s?{body:JSON.stringify(s)}:{},headers:{"Content-Type":"application/json",...o.headers}};return[n,p]}async#s(e,s){let[t,o]=await this.#t(e,s),n=await fetch(t,o);if(!n.ok)throw{status:"error",error_message:await n.text()};if(n.headers.get("Content-Type")!=="application/json")throw{status:"error",error_message:await n.text()};return{...await n.json(),status:"success"}}get(e,s){return this.#s(`${this.#e}${e}`,s)}post(e,s,t){return this.#s(`${this.#e}${e}`,{...t,method:"POST",body:s})}put(e,s,t){return this.#s(`${this.#e}${e}`,{...t,method:"PUT",body:s})}patch(e,s,t={}){return this.#s(`${this.#e}${e}`,{...t,method:"PATCH",body:s})}delete(e,s){return this.#s(`${this.#e}${e}`,{...s,method:"DELETE"})}};export{a as HttpClient};
|
package/dist/esm/dto/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { Notification, NotificationAction, NotificationData, NotificationPayload
|
1
|
+
export { Notification, NotificationAction, NotificationData, NotificationPayload } from './notifications/notification.interface.js';
|
2
2
|
export { PaginationRequest } from './request/request.interface.js';
|
3
3
|
export { BaseResponse, ErrorResponse, PaginatedResponse, SingleResponse } from './response/response.interface.js';
|
4
4
|
import './base/record.interface.js';
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { Notification, NotificationAction, NotificationData, NotificationPayload
|
1
|
+
export { Notification, NotificationAction, NotificationData, NotificationPayload } from './notification.interface.js';
|
2
2
|
import '../base/record.interface.js';
|
@@ -1,17 +1,12 @@
|
|
1
1
|
import { BaseRecord } from '../base/record.interface.js';
|
2
2
|
|
3
3
|
interface NotificationAction {
|
4
|
-
type: 'primary' | 'secondary';
|
5
4
|
label: string;
|
6
5
|
href: string;
|
7
6
|
target?: '_blank' | '_self';
|
8
7
|
rel?: string;
|
9
|
-
|
10
|
-
|
11
|
-
type: 'primary';
|
12
|
-
}
|
13
|
-
interface NotificationSecondaryAction extends NotificationAction {
|
14
|
-
type: 'secondary';
|
8
|
+
background_color?: string;
|
9
|
+
foreground_color?: string;
|
15
10
|
}
|
16
11
|
interface NotificationPayload extends Record<string, any> {
|
17
12
|
}
|
@@ -22,10 +17,9 @@ interface Notification extends BaseRecord {
|
|
22
17
|
message: string;
|
23
18
|
isRead: boolean;
|
24
19
|
icon?: string;
|
25
|
-
|
26
|
-
secondary_action?: NotificationSecondaryAction;
|
20
|
+
actionButtons?: Array<NotificationAction>;
|
27
21
|
payload?: NotificationPayload;
|
28
22
|
data?: NotificationData;
|
29
23
|
}
|
30
24
|
|
31
|
-
export type { Notification, NotificationAction, NotificationData, NotificationPayload
|
25
|
+
export type { Notification, NotificationAction, NotificationData, NotificationPayload };
|
package/dist/esm/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export { HttpClient, HttpClientOptions, RequestOptions } from './client/http.js';
|
2
|
-
export { Notification, NotificationAction, NotificationData, NotificationPayload
|
2
|
+
export { Notification, NotificationAction, NotificationData, NotificationPayload } from './dto/notifications/notification.interface.js';
|
3
3
|
export { PaginationRequest } from './dto/request/request.interface.js';
|
4
4
|
export { BaseResponse, ErrorResponse, PaginatedResponse, SingleResponse } from './dto/response/response.interface.js';
|
5
5
|
import './dto/base/record.interface.js';
|
package/dist/esm/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var
|
1
|
+
var i=r=>new URLSearchParams(Object.keys(r).reduce((e,s)=>(r[s]!==void 0&&(e[s]=`${r[s]}`),e),{})).toString();var a=class{#e;constructor(e){this.#e=e.baseUrl}get baseUrl(){return this.#e}async#t(e,{body:s,params:t,...o}={}){let n=e;t&&(n=`${e}?${i(t||{})}`);let p={...o,...s?{body:JSON.stringify(s)}:{},headers:{"Content-Type":"application/json",...o.headers}};return[n,p]}async#s(e,s){let[t,o]=await this.#t(e,s),n=await fetch(t,o);if(!n.ok)throw{status:"error",error_message:await n.text()};if(n.headers.get("Content-Type")!=="application/json")throw{status:"error",error_message:await n.text()};return{...await n.json(),status:"success"}}get(e,s){return this.#s(`${this.#e}${e}`,s)}post(e,s,t){return this.#s(`${this.#e}${e}`,{...t,method:"POST",body:s})}put(e,s,t){return this.#s(`${this.#e}${e}`,{...t,method:"PUT",body:s})}patch(e,s,t={}){return this.#s(`${this.#e}${e}`,{...t,method:"PATCH",body:s})}delete(e,s){return this.#s(`${this.#e}${e}`,{...s,method:"DELETE"})}};export{a as HttpClient};
|
package/package.json
CHANGED