@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.
@@ -1,21 +1,21 @@
1
1
 
2
- > @tonightpass/react@0.0.50 build /home/runner/work/tonightpass/tonightpass/packages/react
2
+ > @tonightpass/react@0.0.51 build /home/runner/work/tonightpass/tonightpass/packages/react
3
3
  > tsup
4
4
 
5
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.1.0
8
- CLI Using tsup config: /home/runner/work/tonightpass/tonightpass/packages/react/tsup.config.ts
9
- CLI Target: esnext
10
- CJS Build start
11
- ESM Build start
12
- CJS dist/index.js 438.00 B
13
- CJS dist/index.js.map 948.00 B
14
- CJS ⚡️ Build success in 88ms
15
- ESM dist/index.mjs 258.00 B
16
- ESM dist/index.mjs.map 948.00 B
17
- ESM ⚡️ Build success in 88ms
18
- DTS Build start
19
- DTS ⚡️ Build success in 2782ms
20
- DTS dist/index.d.ts 7.15 KB
21
- DTS dist/index.d.mts 7.15 KB
5
+ CLI Building entry: src/index.ts
6
+ CLI Using tsconfig: tsconfig.json
7
+ CLI tsup v8.2.4
8
+ CLI Using tsup config: /home/runner/work/tonightpass/tonightpass/packages/react/tsup.config.ts
9
+ CLI Target: esnext
10
+ CJS Build start
11
+ ESM Build start
12
+ CJS dist/index.js 440.00 B
13
+ CJS dist/index.js.map 1014.00 B
14
+ CJS ⚡️ Build success in 85ms
15
+ ESM dist/index.mjs 261.00 B
16
+ ESM dist/index.mjs.map 1006.00 B
17
+ ESM ⚡️ Build success in 85ms
18
+ DTS Build start
19
+ DTS ⚡️ Build success in 2855ms
20
+ DTS dist/index.d.ts 6.78 KB
21
+ DTS dist/index.d.mts 6.78 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @tonightpass/react
2
2
 
3
+ ## 0.0.51
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`f873bef`](https://github.com/tonightpass/tonightpass/commit/f873befebed537f3982d63d0436bc4eaaa186aa1)]:
8
+ - tonightpass@0.0.50
9
+
3
10
  ## 0.0.50
4
11
 
5
12
  ### Patch Changes
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
- organizationEvent: tonightpass.OrganizationEvent;
110
- tickets: {
111
- ticket: tonightpass.OrganizationEventTicket;
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
- organizationEvent: tonightpass.OrganizationEvent;
110
- tickets: {
111
- ticket: tonightpass.OrganizationEventTicket;
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
@@ -11,5 +11,5 @@ var a=new tonightpass.Client({baseURL:tonightpass.DEFAULT_API_URL}),E=(t,e,r)=>n
11
11
 
12
12
  exports.client = a;
13
13
  exports.useAPI = E;
14
- //# sourceMappingURL=out.js.map
14
+ //# sourceMappingURL=index.js.map
15
15
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/hooks/useAPI.ts"],"names":["useSWR","Client","DEFAULT_API_URL","client","useAPI","path","query","options","key"],"mappings":"AAAA,OAAOA,MAAyB,MAChC,OAGE,UAAAC,EAGA,mBAAAC,MACK,cAEA,IAAMC,EAAS,IAAIF,EAAO,CAAE,QAASC,CAAgB,CAAC,EAEhDE,EAAS,CACpBC,EACAC,EACAC,IAIOP,EACLK,EAH6BG,GAAcL,EAAO,IAAIK,EAAKF,EAAOC,CAAO,CAK3E","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"]}
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=out.js.map
7
+ //# sourceMappingURL=index.mjs.map
8
8
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/hooks/useAPI.ts"],"names":["useSWR","Client","DEFAULT_API_URL","client","useAPI","path","query","options","key"],"mappings":"AAAA,OAAOA,MAAyB,MAChC,OAGE,UAAAC,EAGA,mBAAAC,MACK,cAEA,IAAMC,EAAS,IAAIF,EAAO,CAAE,QAASC,CAAgB,CAAC,EAEhDE,EAAS,CACpBC,EACAC,EACAC,IAIOP,EACLK,EAH6BG,GAAcL,EAAO,IAAIK,EAAKF,EAAOC,CAAO,CAK3E","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"]}
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.50",
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.49"
18
+ "tonightpass": "^0.0.50"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "react": "*"