@tonightpass/react 0.0.50 → 0.0.51
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/.turbo/turbo-build.log +18 -18
- package/CHANGELOG.md +7 -0
- package/dist/index.d.mts +4 -22
- package/dist/index.d.ts +4 -22
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
> @tonightpass/react@0.0.
|
|
2
|
+
> @tonightpass/react@0.0.51 build /home/runner/work/tonightpass/tonightpass/packages/react
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
5
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
6
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
+
[34mCLI[39m tsup v8.2.4
|
|
8
|
+
[34mCLI[39m Using tsup config: /home/runner/work/tonightpass/tonightpass/packages/react/tsup.config.ts
|
|
9
|
+
[34mCLI[39m Target: esnext
|
|
10
|
+
[34mCJS[39m Build start
|
|
11
|
+
[34mESM[39m Build start
|
|
12
|
+
[32mCJS[39m [1mdist/index.js [22m[32m440.00 B[39m
|
|
13
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m1014.00 B[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 85ms
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m261.00 B[39m
|
|
16
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m1006.00 B[39m
|
|
17
|
+
[32mESM[39m ⚡️ Build success in 85ms
|
|
18
|
+
[34mDTS[39m Build start
|
|
19
|
+
[32mDTS[39m ⚡️ Build success in 2855ms
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m6.78 KB[39m
|
|
21
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m6.78 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -105,28 +105,10 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
|
|
|
105
105
|
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug", tonightpass.OrganizationEvent, undefined>, {
|
|
106
106
|
path: Path;
|
|
107
107
|
method: "GET";
|
|
108
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/carts", tonightpass.ArrayResult<{
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
quantity: number;
|
|
113
|
-
}[];
|
|
114
|
-
}>, tonightpass.ArrayOptions<{
|
|
115
|
-
organizationEvent: tonightpass.OrganizationEvent;
|
|
116
|
-
tickets: {
|
|
117
|
-
ticket: tonightpass.OrganizationEventTicket;
|
|
118
|
-
quantity: number;
|
|
119
|
-
}[];
|
|
120
|
-
}>>, {
|
|
121
|
-
path: Path;
|
|
122
|
-
method: "GET";
|
|
123
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/carts/:cartId", {
|
|
124
|
-
organizationEvent: tonightpass.OrganizationEvent;
|
|
125
|
-
tickets: {
|
|
126
|
-
ticket: tonightpass.OrganizationEventTicket;
|
|
127
|
-
quantity: number;
|
|
128
|
-
}[];
|
|
129
|
-
}, undefined>, {
|
|
108
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/carts", tonightpass.ArrayResult<tonightpass.OrganizationEventCart>, tonightpass.ArrayOptions<tonightpass.OrganizationEventCart>>, {
|
|
109
|
+
path: Path;
|
|
110
|
+
method: "GET";
|
|
111
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/carts/:cartId", tonightpass.OrganizationEventCart, undefined>, {
|
|
130
112
|
path: Path;
|
|
131
113
|
method: "GET";
|
|
132
114
|
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/styles", tonightpass.OrganizationEventStyle[], undefined>, {
|
package/dist/index.d.ts
CHANGED
|
@@ -105,28 +105,10 @@ declare const useAPI: <Path extends PathsFor<"GET">>(path?: Path | null, query?:
|
|
|
105
105
|
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug", tonightpass.OrganizationEvent, undefined>, {
|
|
106
106
|
path: Path;
|
|
107
107
|
method: "GET";
|
|
108
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/carts", tonightpass.ArrayResult<{
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
quantity: number;
|
|
113
|
-
}[];
|
|
114
|
-
}>, tonightpass.ArrayOptions<{
|
|
115
|
-
organizationEvent: tonightpass.OrganizationEvent;
|
|
116
|
-
tickets: {
|
|
117
|
-
ticket: tonightpass.OrganizationEventTicket;
|
|
118
|
-
quantity: number;
|
|
119
|
-
}[];
|
|
120
|
-
}>>, {
|
|
121
|
-
path: Path;
|
|
122
|
-
method: "GET";
|
|
123
|
-
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/carts/:cartId", {
|
|
124
|
-
organizationEvent: tonightpass.OrganizationEvent;
|
|
125
|
-
tickets: {
|
|
126
|
-
ticket: tonightpass.OrganizationEventTicket;
|
|
127
|
-
quantity: number;
|
|
128
|
-
}[];
|
|
129
|
-
}, undefined>, {
|
|
108
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/carts", tonightpass.ArrayResult<tonightpass.OrganizationEventCart>, tonightpass.ArrayOptions<tonightpass.OrganizationEventCart>>, {
|
|
109
|
+
path: Path;
|
|
110
|
+
method: "GET";
|
|
111
|
+
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/:organizationSlug/events/:eventSlug/carts/:cartId", tonightpass.OrganizationEventCart, undefined>, {
|
|
130
112
|
path: Path;
|
|
131
113
|
method: "GET";
|
|
132
114
|
}> | Extract<tonightpass.Endpoint<"GET", "/organizations/events/styles", tonightpass.OrganizationEventStyle[], undefined>, {
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/hooks/useAPI.ts"],"names":["
|
|
1
|
+
{"version":3,"sources":["../src/hooks/useAPI.ts"],"names":["client","Client","DEFAULT_API_URL","useAPI","path","query","options","useSWR","key"],"mappings":";;;;;;;;;AAUaA,IAAAA,CAAAA,CAAS,IAAIC,kBAAAA,CAAO,CAAE,OAASC,CAAAA,2BAAgB,CAAC,CAAA,CAEhDC,CAAS,CAAA,CACpBC,CACAC,CAAAA,CAAAA,CACAC,CAIOC,GAAAA,kBAAAA,CACLH,CAH6BI,CAAAA,CAAAA,EAAcR,CAAO,CAAA,GAAA,CAAIQ,CAAKH,CAAAA,CAAAA,CAAOC,CAAO,CAK3E","file":"index.js","sourcesContent":["import useSWR, { Fetcher } from \"swr\";\nimport {\n Endpoints,\n APIRequestOptions,\n Client,\n PathsFor,\n Query,\n DEFAULT_API_URL,\n} from \"tonightpass\";\n\nexport const client = new Client({ baseURL: DEFAULT_API_URL });\n\nexport const useAPI = <Path extends PathsFor<\"GET\">>(\n path?: Path | null,\n query?: Query<Path>,\n options?: APIRequestOptions,\n) => {\n const fetcher: Fetcher<any> = (key: Path) => client.get(key, query, options);\n\n return useSWR<Extract<Endpoints, { path: Path; method: \"GET\" }>[\"res\"]>(\n path,\n fetcher,\n );\n};\n"]}
|
package/dist/index.mjs
CHANGED
|
@@ -4,5 +4,5 @@ import { Client, DEFAULT_API_URL } from 'tonightpass';
|
|
|
4
4
|
var a=new Client({baseURL:DEFAULT_API_URL}),E=(t,e,r)=>n(t,o=>a.get(o,e,r));
|
|
5
5
|
|
|
6
6
|
export { a as client, E as useAPI };
|
|
7
|
-
//# sourceMappingURL=
|
|
7
|
+
//# sourceMappingURL=index.mjs.map
|
|
8
8
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/hooks/useAPI.ts"],"names":["
|
|
1
|
+
{"version":3,"sources":["../src/hooks/useAPI.ts"],"names":["client","Client","DEFAULT_API_URL","useAPI","path","query","options","useSWR","key"],"mappings":";;;AAUaA,IAAAA,CAAAA,CAAS,IAAIC,MAAAA,CAAO,CAAE,OAASC,CAAAA,eAAgB,CAAC,CAAA,CAEhDC,CAAS,CAAA,CACpBC,CACAC,CAAAA,CAAAA,CACAC,CAIOC,GAAAA,CAAAA,CACLH,CAH6BI,CAAAA,CAAAA,EAAcR,CAAO,CAAA,GAAA,CAAIQ,CAAKH,CAAAA,CAAAA,CAAOC,CAAO,CAK3E","file":"index.mjs","sourcesContent":["import useSWR, { Fetcher } from \"swr\";\nimport {\n Endpoints,\n APIRequestOptions,\n Client,\n PathsFor,\n Query,\n DEFAULT_API_URL,\n} from \"tonightpass\";\n\nexport const client = new Client({ baseURL: DEFAULT_API_URL });\n\nexport const useAPI = <Path extends PathsFor<\"GET\">>(\n path?: Path | null,\n query?: Query<Path>,\n options?: APIRequestOptions,\n) => {\n const fetcher: Fetcher<any> = (key: Path) => client.get(key, query, options);\n\n return useSWR<Extract<Endpoints, { path: Path; method: \"GET\" }>[\"res\"]>(\n path,\n fetcher,\n );\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tonightpass/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.51",
|
|
4
4
|
"description": "@tonightpass react sdk.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"types": "dist/index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"swr": "^2.2.5",
|
|
18
|
-
"tonightpass": "^0.0.
|
|
18
|
+
"tonightpass": "^0.0.50"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": "*"
|