@candlerip/shared3 0.0.111 → 0.0.113

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.111",
3
+ "version": "0.0.113",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/index.js",
7
7
  "./aws": "./src/aws/index.js",
8
- "./backend": "./src/backend/index.js"
8
+ "./backend": "./src/backend/index.js",
9
+ "./backend/*": "./src/backend/*"
9
10
  },
10
11
  "bin": {
11
12
  "crs-cdk-deploy": "./_devops/cdk/cdk-deploy.sh",
@@ -1,6 +1,6 @@
1
1
  import { DICTIONARY_CONFIG } from '../../../dictionary/index.js';
2
2
  import { getTranslationsAsDictionary } from '../../database/mutation/translation/index.js';
3
- import { getExcludedTranslationIds } from '../get-excluded-translation-ids/index.js';
3
+ import { getExcludedTranslationIds } from '../../../dictionary/get-excluded-translation-ids/index.js';
4
4
  export const composeDictionary = async (page, language, options) => {
5
5
  let translationIds = [...DICTIONARY_CONFIG[page].translationIds];
6
6
  const excludedIds = getExcludedTranslationIds(page, options);
@@ -1,2 +1 @@
1
- export * from './get-excluded-translation-ids/index.js';
2
1
  export * from './compose-dictionary/index.js';
@@ -1,2 +1 @@
1
- export * from './get-excluded-translation-ids/index.js';
2
1
  export * from './compose-dictionary/index.js';
@@ -1 +1 @@
1
- export * from './start-express-app/util.js';
1
+ export * from './start-express-app/index.js';
@@ -1 +1 @@
1
- export * from './start-express-app/util.js';
1
+ export * from './start-express-app/index.js';
@@ -1 +1,2 @@
1
- export * from './util.js';
1
+ import { StartExpressApp } from './type.js';
2
+ export declare const startExpressApp: StartExpressApp;
@@ -1 +1,8 @@
1
- export * from './util.js';
1
+ import express from 'express';
2
+ export const startExpressApp = (port) => {
3
+ const app = express();
4
+ app.listen(port, () => {
5
+ console.error(`Server running on port ${port}`);
6
+ });
7
+ return app;
8
+ };
@@ -2,5 +2,4 @@ export * from './cache/index.js';
2
2
  export * from './database/index.js';
3
3
  export * from './dictionary/index.js';
4
4
  export * from './environment/index.js';
5
- export * from './express/index.js';
6
5
  export * from './message-broker/index.js';
@@ -2,5 +2,4 @@ export * from './cache/index.js';
2
2
  export * from './database/index.js';
3
3
  export * from './dictionary/index.js';
4
4
  export * from './environment/index.js';
5
- export * from './express/index.js';
6
5
  export * from './message-broker/index.js';
@@ -1,5 +1,5 @@
1
- import { TranslationId } from '../../../dictionary/index.js';
2
- import { Page } from '../../../page/index.js';
1
+ import { TranslationId } from '../index.js';
2
+ import { Page } from '../../page/index.js';
3
3
  export type GetExcludedTranslationIds = (page: Page, options?: {
4
4
  isAuthenticated?: boolean;
5
5
  }) => TranslationId[];
@@ -1,4 +1,4 @@
1
- import { isUndefined } from '../../../type/index.js';
1
+ import { isUndefined } from '../../type/index.js';
2
2
  export const getExcludedTranslationIds = (page, options) => {
3
3
  const excludedIds = [`pageMenu.${page}`];
4
4
  if (options) {
@@ -1,3 +1,4 @@
1
1
  export * from './dictionary/index.js';
2
2
  export * from './language/index.js';
3
3
  export * from './translation-id/index.js';
4
+ export * from './get-excluded-translation-ids/index.js';
@@ -1,3 +1,4 @@
1
1
  export * from './dictionary/index.js';
2
2
  export * from './language/index.js';
3
3
  export * from './translation-id/index.js';
4
+ export * from './get-excluded-translation-ids/index.js';
@@ -1,2 +0,0 @@
1
- import { StartExpressApp } from './type.js';
2
- export declare const startExpressApp: StartExpressApp;
@@ -1,8 +0,0 @@
1
- import express from 'express';
2
- export const startExpressApp = (port) => {
3
- const app = express();
4
- app.listen(port, () => {
5
- console.error(`Server running on port ${port}`);
6
- });
7
- return app;
8
- };