@candlerip/shared3 0.0.155 → 0.0.156

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.155",
3
+ "version": "0.0.156",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/index.js",
@@ -1,5 +1,5 @@
1
1
  import { composeDictionary } from '../../../../dictionary/index.js';
2
- export const composeTermsAndConditionsPageApiResponse = async ({ excludedIdOptions, language }) => {
2
+ export const composeTermsAndConditionsPageApiResponse = async (language, { excludedIdOptions }) => {
3
3
  const resp = await composeDictionary('terms-and-conditions-page', language, excludedIdOptions);
4
4
  if ('customError' in resp) {
5
5
  return resp;
@@ -2,9 +2,8 @@ import { Language } from '../../../../../dictionary/index.js';
2
2
  import { CustomError } from '../../../../../error/index.js';
3
3
  import { ExcludedIdOptions } from '../../../../dictionary/index.js';
4
4
  import { TermsAndConditionsPageApiResponse } from '../type.js';
5
- export type ComposeTermsAndConditionsPageApiResponse = (props: {
6
- excludedIdOptions: ExcludedIdOptions;
7
- language: Language;
5
+ export type ComposeTermsAndConditionsPageApiResponse = (language: Language, options: {
6
+ excludedIdOptions?: ExcludedIdOptions;
8
7
  }) => Promise<{
9
8
  data: TermsAndConditionsPageApiResponse;
10
9
  } | {