@molopos/shared 2.0.16 → 2.0.17

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/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@molopos/shared","publishConfig":{"access":"public"},"version":"2.0.16","description":"Shared between backend and frontend repos","license":"ISC","repository":{"type":"git","url":"https://github.com/unicubate/molopos-shared.git"},"dependencies":{"date-fns":"^4.1.0","luxon":"^3.7.2"}}
1
+ {"name":"@molopos/shared","publishConfig":{"access":"public"},"version":"2.0.17","description":"Shared between backend and frontend repos","license":"ISC","repository":{"type":"git","url":"https://github.com/unicubate/molopos-shared.git"},"dependencies":{"date-fns":"^4.1.0","luxon":"^3.7.2"}}
@@ -1,4 +1,4 @@
1
- export type PathWithTrailingSlash<T extends string> = `/${T}`;
1
+ export type EndpointLike<T extends string> = `/${T}`;
2
2
  /**
3
3
  * Create a URL with query parameters
4
4
  * @param baseUrl - The base URL
@@ -21,5 +21,5 @@ export declare const URLEndpoint: ({ query, params, baseUrl, endpoint, }: {
21
21
  query?: Object;
22
22
  baseUrl: string;
23
23
  params?: Object;
24
- endpoint: PathWithTrailingSlash<string>;
24
+ endpoint: EndpointLike<string>;
25
25
  }) => string;