@layerfi/components 0.1.78 → 0.1.79
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/index.cjs +16 -15
- package/dist/esm/index.mjs +215 -214
- package/dist/index.d.ts +1 -5
- package/package.json +2 -2
- package/.nvmrc +0 -1
- package/.vscode/settings.json +0 -14
- /package/dist/{esm/styles → styles}/index.css +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ declare module '@layerfi/components/api/layer/authenticated_http' {
|
|
|
3
3
|
export const get: <Return extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
|
|
4
4
|
params?: Params;
|
|
5
5
|
}) => () => Promise<Return>;
|
|
6
|
-
export const request: (verb: HTTPVerb) => <Return extends Record<string, unknown> = Record<string, unknown>, Body extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
|
|
6
|
+
export const request: (verb: Exclude<HTTPVerb, "get">) => <Return extends Record<string, unknown> = Record<string, unknown>, Body extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
|
|
7
7
|
params?: Params;
|
|
8
8
|
body?: Body;
|
|
9
9
|
}) => Promise<Return>;
|
|
@@ -15,10 +15,6 @@ declare module '@layerfi/components/api/layer/authenticated_http' {
|
|
|
15
15
|
params?: Params;
|
|
16
16
|
body?: Body;
|
|
17
17
|
}) => Promise<Return>;
|
|
18
|
-
export const deleteRequest: <Return extends Record<string, unknown> = Record<string, unknown>, Body extends Record<string, unknown> = Record<string, unknown>, Params extends Record<string, string | undefined> = Record<string, string | undefined>>(url: (params: Params) => string) => (baseUrl: string, accessToken: string | undefined, options?: {
|
|
19
|
-
params?: Params;
|
|
20
|
-
body?: Body;
|
|
21
|
-
}) => Promise<Return>;
|
|
22
18
|
export const postWithFormData: <Return extends Record<string, unknown> = Record<string, unknown>>(url: string, formData: FormData, baseUrl: string, accessToken: string | undefined) => Promise<Return>;
|
|
23
19
|
|
|
24
20
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerfi/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.79",
|
|
4
4
|
"description": "Layer React Components",
|
|
5
5
|
"main": "dist/cjs/index.cjs",
|
|
6
6
|
"module": "dist/esm/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
-
"style": "dist/
|
|
8
|
+
"style": "dist/index.css",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"types": "./dist/index.d.ts",
|
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
20.2
|
package/.vscode/settings.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"files.exclude": {
|
|
3
|
-
"**/.git": true,
|
|
4
|
-
},
|
|
5
|
-
"files.watcherExclude": {
|
|
6
|
-
"**/dist/**": true,
|
|
7
|
-
"**/node_modules/**": true,
|
|
8
|
-
},
|
|
9
|
-
"editor.codeActionsOnSave": {
|
|
10
|
-
"source.fixAll": "explicit",
|
|
11
|
-
},
|
|
12
|
-
"typescript.preferences.quoteStyle": "single",
|
|
13
|
-
"typescript.tsdk": "node_modules/typescript/lib",
|
|
14
|
-
}
|
|
File without changes
|