@candlerip/shared 0.0.40 → 0.0.42

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.
Files changed (82) hide show
  1. package/devops/cdk/cdk-deploy.sh +4 -4
  2. package/devops/docker/publish-to-docker-hub.sh +7 -7
  3. package/devops/environment/create-env-file.sh +0 -0
  4. package/devops/eslint/eslint.sh +4 -4
  5. package/devops/npm/publish-to-npm-registry.sh +5 -1
  6. package/devops/prettier/prettier.sh +4 -4
  7. package/package.json +36 -36
  8. package/src/devops/env-file/create-env-file/convert-environment-variable-name-to-ssm-parameter-name/index.d.ts +1 -1
  9. package/src/devops/env-file/create-env-file/convert-environment-variable-name-to-ssm-parameter-name/index.js +1 -1
  10. package/src/devops/env-file/create-env-file/convert-environment-variable-name-to-ssm-parameter-name/types.d.ts +1 -1
  11. package/src/devops/env-file/create-env-file/index.js +4 -4
  12. package/src/devops/env-file/create-env-file/validate-parameters/index.d.ts +1 -1
  13. package/src/devops/env-file/create-env-file/validate-parameters/index.js +4 -4
  14. package/src/devops/env-file/create-env-file/validate-parameters/types.d.ts +2 -2
  15. package/src/devops/env-file/index.d.ts +1 -1
  16. package/src/devops/env-file/index.js +1 -1
  17. package/src/devops/index.d.ts +1 -1
  18. package/src/devops/index.js +1 -1
  19. package/src/environment/environment-mode/domains.d.ts +1 -1
  20. package/src/environment/environment-mode/index.d.ts +3 -3
  21. package/src/environment/environment-mode/index.js +3 -3
  22. package/src/environment/environment-mode/type-guards/index.d.ts +3 -3
  23. package/src/environment/environment-mode/type-guards/index.js +3 -3
  24. package/src/environment/environment-mode/type-guards/is-environment-mode.d.ts +1 -1
  25. package/src/environment/environment-mode/type-guards/is-environment-mode.js +1 -1
  26. package/src/environment/environment-variable-name/domains.d.ts +1 -1
  27. package/src/environment/environment-variable-name/index.d.ts +3 -3
  28. package/src/environment/environment-variable-name/index.js +3 -3
  29. package/src/environment/environment-variable-name/type-guards.d.ts +1 -1
  30. package/src/environment/environment-variable-name/type-guards.js +1 -1
  31. package/src/environment/environment-variables/domains.d.ts +1 -1
  32. package/src/environment/environment-variables/index.d.ts +1 -1
  33. package/src/environment/environment-variables/index.js +1 -1
  34. package/src/environment/index.d.ts +3 -3
  35. package/src/environment/index.js +3 -3
  36. package/src/error/index.d.ts +3 -3
  37. package/src/error/index.js +3 -3
  38. package/src/error/utils/compose-error/index.d.ts +1 -1
  39. package/src/error/utils/compose-error/type.d.ts +1 -1
  40. package/src/error/utils/console-error/index.d.ts +1 -1
  41. package/src/error/utils/console-error/index.js +1 -1
  42. package/src/error/utils/console-error/type.d.ts +1 -1
  43. package/src/error/utils/index.d.ts +2 -2
  44. package/src/error/utils/index.js +2 -2
  45. package/src/error/workers/index.d.ts +1 -1
  46. package/src/error/workers/index.js +1 -1
  47. package/src/error/workers/type.d.ts +1 -1
  48. package/src/helpers/index.d.ts +2 -2
  49. package/src/helpers/index.js +2 -2
  50. package/src/helpers/reveal-all-object-props/index.d.ts +1 -1
  51. package/src/helpers/reveal-all-object-props/index.js +1 -1
  52. package/src/helpers/stringify/index.d.ts +1 -1
  53. package/src/helpers/stringify/index.js +2 -2
  54. package/src/index.d.ts +5 -5
  55. package/src/index.js +5 -5
  56. package/src/service/index.d.ts +2 -2
  57. package/src/service/index.js +2 -2
  58. package/src/service/service-environment-variable-names/constants.d.ts +1 -1
  59. package/src/service/service-environment-variable-names/constants.js +0 -1
  60. package/src/service/service-environment-variable-names/index.d.ts +1 -1
  61. package/src/service/service-environment-variable-names/index.js +1 -1
  62. package/src/service/service-environment-variable-names/type.d.ts +1 -1
  63. package/src/service/service-name/constants.d.ts +1 -1
  64. package/src/service/service-name/constants.js +1 -1
  65. package/src/service/service-name/domains.d.ts +1 -1
  66. package/src/service/service-name/index.d.ts +3 -3
  67. package/src/service/service-name/index.js +3 -3
  68. package/src/service/service-name/type-guards.d.ts +1 -1
  69. package/src/service/service-name/type-guards.js +1 -1
  70. package/src/type/array/index.d.ts +1 -1
  71. package/src/type/array/index.js +1 -1
  72. package/src/type/index.d.ts +4 -4
  73. package/src/type/index.js +4 -4
  74. package/src/type/null/index.d.ts +1 -1
  75. package/src/type/null/index.js +1 -1
  76. package/src/type/object/index.d.ts +1 -1
  77. package/src/type/object/index.js +1 -1
  78. package/src/type/object/type-guards.js +2 -2
  79. package/src/type/string/index.d.ts +1 -1
  80. package/src/type/string/index.js +1 -1
  81. package/src/devops/env-file/create-env-file/domains.d.ts +0 -6
  82. package/src/devops/env-file/create-env-file/domains.js +0 -1
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env sh
2
- set -e
3
-
4
- cdk deploy --require-approval never
1
+ #!/usr/bin/env sh
2
+ set -e
3
+
4
+ cdk deploy --require-approval never
@@ -1,7 +1,7 @@
1
- #!/usr/bin/env sh
2
-
3
- DOCKERFILE=${2:-"Dockerfile"}
4
-
5
- echo "$DOCKER_ACCESS_TOKEN" | docker login -u $DOCKER_USERNAME --password-stdin
6
- docker build -f $DOCKERFILE -t reveszimre/$1 .
7
- docker push reveszimre/$1
1
+ #!/usr/bin/env sh
2
+
3
+ DOCKERFILE=${2:-"Dockerfile"}
4
+
5
+ echo "$DOCKER_ACCESS_TOKEN" | docker login -u $DOCKER_USERNAME --password-stdin
6
+ docker build -f $DOCKERFILE -t reveszimre/$1 .
7
+ docker push reveszimre/$1
File without changes
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env sh
2
- set -e
3
-
4
- npx eslint .
1
+ #!/usr/bin/env sh
2
+ set -e
3
+
4
+ npx eslint .
@@ -3,9 +3,13 @@ set -e
3
3
 
4
4
  npm config set //registry.npmjs.org/:_authToken $NPM_ACCESS_TOKEN
5
5
 
6
+ ls -al
7
+ cat package.json
8
+ cat ~/.npmrc
9
+
6
10
  if [ -d "devops" ]; then
7
11
  cp -r devops dist
8
12
  fi
9
13
  cp package.json dist
10
14
 
11
- npm publish ./dist --access=public
15
+ npm publish ./dist --access public
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env sh
2
- set -e
3
-
4
- npx prettier . --write
1
+ #!/usr/bin/env sh
2
+ set -e
3
+
4
+ npx prettier . --write
package/package.json CHANGED
@@ -1,36 +1,36 @@
1
- {
2
- "name": "@candlerip/shared",
3
- "version": "0.0.40",
4
- "type": "module",
5
- "engines": {
6
- "node": "=22.19.0"
7
- },
8
- "main": "src/index.js",
9
- "bin": {
10
- "crs-cdk-deploy": "devops/cdk/cdk-deploy.sh",
11
- "crs-create-env-file": "src/devops/env-file/create-env-file/index.js",
12
- "crs-publish-to-docker-hub": "./devops/docker/publish-to-docker-hub.sh",
13
- "crs-eslint": "devops/eslint/eslint.sh",
14
- "crs-publish-to-npm-registry": "devops/npm/publish-to-npm-registry.sh",
15
- "crs-prettier": "devops/prettier/prettier.sh",
16
- "crs-tsc-build": "devops/typescript/tsc-build.sh",
17
- "crs-tsc-watch": "devops/typescript/tsc-watch.sh"
18
- },
19
- "scripts": {
20
- "dev": "sh ./devops/typescript/tsc-watch.sh"
21
- },
22
- "dependencies": {
23
- "@aws-sdk/client-ssm": "^3.917.0",
24
- "eslint": "^9.28.0",
25
- "globals": "^16.2.0",
26
- "prettier": "^3.5.3",
27
- "tsc-alias": "^1.8.16",
28
- "typescript": "^5.8.3",
29
- "typescript-eslint": "^8.33.1",
30
- "yargs": "^18.0.0"
31
- },
32
- "devDependencies": {
33
- "@types/node": "^24.9.1",
34
- "@types/yargs": "^17.0.34"
35
- }
36
- }
1
+ {
2
+ "name": "@candlerip/shared",
3
+ "version": "0.0.42",
4
+ "type": "module",
5
+ "engines": {
6
+ "node": "=22.19.0"
7
+ },
8
+ "main": "src/index.js",
9
+ "bin": {
10
+ "crs-cdk-deploy": "devops/cdk/cdk-deploy.sh",
11
+ "crs-create-env-file": "src/devops/env-file/create-env-file/index.js",
12
+ "crs-publish-to-docker-hub": "./devops/docker/publish-to-docker-hub.sh",
13
+ "crs-eslint": "devops/eslint/eslint.sh",
14
+ "crs-publish-to-npm-registry": "devops/npm/publish-to-npm-registry.sh",
15
+ "crs-prettier": "devops/prettier/prettier.sh",
16
+ "crs-tsc-build": "devops/typescript/tsc-build.sh",
17
+ "crs-tsc-watch": "devops/typescript/tsc-watch.sh"
18
+ },
19
+ "scripts": {
20
+ "dev": "sh ./devops/typescript/tsc-watch.sh"
21
+ },
22
+ "dependencies": {
23
+ "@aws-sdk/client-ssm": "^3.917.0",
24
+ "eslint": "^9.28.0",
25
+ "globals": "^16.2.0",
26
+ "prettier": "^3.5.3",
27
+ "tsc-alias": "^1.8.16",
28
+ "typescript": "^5.8.3",
29
+ "typescript-eslint": "^8.33.1",
30
+ "yargs": "^18.0.0"
31
+ },
32
+ "devDependencies": {
33
+ "@types/node": "^24.9.1",
34
+ "@types/yargs": "^17.0.34"
35
+ }
36
+ }
@@ -1,2 +1,2 @@
1
- import { ConvertEnvironmentVariableNameToSsmParameterName } from './types';
1
+ import { ConvertEnvironmentVariableNameToSsmParameterName } from './types.js';
2
2
  export declare const convertEnvironmentVariableNameToSsmParameterName: ConvertEnvironmentVariableNameToSsmParameterName;
@@ -1,4 +1,4 @@
1
- import { MODE_INDEPENDENT_ENVIRONMENT_VARIABLE_NAMES } from '../../../../environment';
1
+ import { MODE_INDEPENDENT_ENVIRONMENT_VARIABLE_NAMES } from '../../../../environment/index.js';
2
2
  export const convertEnvironmentVariableNameToSsmParameterName = (environmentVariableName, environmentMode) => {
3
3
  let parameterName = environmentVariableName;
4
4
  if (!MODE_INDEPENDENT_ENVIRONMENT_VARIABLE_NAMES.includes(environmentVariableName)) {
@@ -1,2 +1,2 @@
1
- import { EnvironmentMode, EnvironmentVariableName } from '../../../../environment';
1
+ import { EnvironmentMode, EnvironmentVariableName } from '../../../../environment/index.js';
2
2
  export type ConvertEnvironmentVariableNameToSsmParameterName = (environmentVariableName: EnvironmentVariableName, environmentMode: EnvironmentMode) => string;
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import { SERVICE_ENVIRONMENT_VARIABLE_NAMES } from '../../../service';
2
+ import { SERVICE_ENVIRONMENT_VARIABLE_NAMES } from '../../../service/index.js';
3
3
  import { SSMClient, GetParametersCommand } from '@aws-sdk/client-ssm';
4
4
  import * as fs from 'fs';
5
- import { isEnvironmentMode } from '../../../environment';
6
- import { validateParameters } from './validate-parameters';
7
- import { convertEnvironmentVariableNameToSsmParameterName } from './convert-environment-variable-name-to-ssm-parameter-name';
5
+ import { isEnvironmentMode } from '../../../environment/index.js';
6
+ import { validateParameters } from './validate-parameters/index.js';
7
+ import { convertEnvironmentVariableNameToSsmParameterName } from './convert-environment-variable-name-to-ssm-parameter-name/index.js';
8
8
  const parameters = validateParameters();
9
9
  if (parameters) {
10
10
  const { environmentMode, environmentVariableName, fileName, serviceName } = parameters;
@@ -1,2 +1,2 @@
1
- import { ValidateParameters } from './types';
1
+ import { ValidateParameters } from './types.js';
2
2
  export declare const validateParameters: ValidateParameters;
@@ -1,9 +1,9 @@
1
- import { isServiceName } from '../../../../service';
1
+ import { isServiceName } from '../../../../service/index.js';
2
2
  import yargs from 'yargs';
3
3
  import { hideBin } from 'yargs/helpers';
4
- import { isString } from '../../../../type';
5
- import { consoleError, ErrorWorker } from '../../../../error';
6
- import { isEnvironmentMode, isEnvironmentVariableName } from '../../../../environment';
4
+ import { isString } from '../../../../type/index.js';
5
+ import { consoleError, ErrorWorker } from '../../../../error/index.js';
6
+ import { isEnvironmentMode, isEnvironmentVariableName } from '../../../../environment/index.js';
7
7
  export const validateParameters = () => {
8
8
  const argv = yargs(hideBin(process.argv)).parse();
9
9
  const environmentMode = argv['environment-mode'];
@@ -1,5 +1,5 @@
1
- import { ServiceName } from '../../../../service';
2
- import { EnvironmentMode, EnvironmentVariableName } from '../../../../environment';
1
+ import { ServiceName } from '../../../../service/index.js';
2
+ import { EnvironmentMode, EnvironmentVariableName } from '../../../../environment/index.js';
3
3
  export type ValidateParameters = () => {
4
4
  environmentMode: EnvironmentMode;
5
5
  environmentVariableName?: EnvironmentVariableName;
@@ -1 +1 @@
1
- export * from './create-env-file';
1
+ export * from './create-env-file/index.js';
@@ -1 +1 @@
1
- export * from './create-env-file';
1
+ export * from './create-env-file/index.js';
@@ -1 +1 @@
1
- export * from './env-file';
1
+ export * from './env-file/index.js';
@@ -1 +1 @@
1
- export * from './env-file';
1
+ export * from './env-file/index.js';
@@ -1,2 +1,2 @@
1
- import { ENVIRONMENT_MODES } from './constants';
1
+ import { ENVIRONMENT_MODES } from './constants.js';
2
2
  export type EnvironmentMode = (typeof ENVIRONMENT_MODES)[number];
@@ -1,3 +1,3 @@
1
- export * from './constants';
2
- export * from './domains';
3
- export * from './type-guards';
1
+ export * from './constants.js';
2
+ export * from './domains.js';
3
+ export * from './type-guards/index.js';
@@ -1,3 +1,3 @@
1
- export * from './constants';
2
- export * from './domains';
3
- export * from './type-guards';
1
+ export * from './constants.js';
2
+ export * from './domains.js';
3
+ export * from './type-guards/index.js';
@@ -1,3 +1,3 @@
1
- export * from './is-development';
2
- export * from './is-environment-mode';
3
- export * from './is-production';
1
+ export * from './is-development.js';
2
+ export * from './is-environment-mode.js';
3
+ export * from './is-production.js';
@@ -1,3 +1,3 @@
1
- export * from './is-development';
2
- export * from './is-environment-mode';
3
- export * from './is-production';
1
+ export * from './is-development.js';
2
+ export * from './is-environment-mode.js';
3
+ export * from './is-production.js';
@@ -1,2 +1,2 @@
1
- import { EnvironmentMode } from '../domains';
1
+ import { EnvironmentMode } from '../domains.js';
2
2
  export declare const isEnvironmentMode: (data?: unknown) => data is EnvironmentMode;
@@ -1,2 +1,2 @@
1
- import { ENVIRONMENT_MODES } from '../constants';
1
+ import { ENVIRONMENT_MODES } from '../constants.js';
2
2
  export const isEnvironmentMode = (data) => ENVIRONMENT_MODES.some((it) => data === it);
@@ -1,2 +1,2 @@
1
- import { ENVIRONMENT_VARIABLE_NAMES } from './constants';
1
+ import { ENVIRONMENT_VARIABLE_NAMES } from './constants.js';
2
2
  export type EnvironmentVariableName = (typeof ENVIRONMENT_VARIABLE_NAMES)[number];
@@ -1,3 +1,3 @@
1
- export * from './constants';
2
- export * from './domains';
3
- export * from './type-guards';
1
+ export * from './constants.js';
2
+ export * from './domains.js';
3
+ export * from './type-guards.js';
@@ -1,3 +1,3 @@
1
- export * from './constants';
2
- export * from './domains';
3
- export * from './type-guards';
1
+ export * from './constants.js';
2
+ export * from './domains.js';
3
+ export * from './type-guards.js';
@@ -1,2 +1,2 @@
1
- import { EnvironmentVariableName } from './domains';
1
+ import { EnvironmentVariableName } from './domains.js';
2
2
  export declare const isEnvironmentVariableName: (data?: unknown) => data is EnvironmentVariableName;
@@ -1,2 +1,2 @@
1
- import { ENVIRONMENT_VARIABLE_NAMES } from './constants';
1
+ import { ENVIRONMENT_VARIABLE_NAMES } from './constants.js';
2
2
  export const isEnvironmentVariableName = (data) => ENVIRONMENT_VARIABLE_NAMES.some((it) => data === it);
@@ -1,4 +1,4 @@
1
- import { EnvironmentMode } from '../environment-mode';
1
+ import { EnvironmentMode } from '../environment-mode/index.js';
2
2
  export type EnvironmentVariables = {
3
3
  APP_NAME: string;
4
4
  APP_PORT: number;
@@ -1 +1 @@
1
- export * from './domains';
1
+ export * from './domains.js';
@@ -1 +1 @@
1
- export * from './domains';
1
+ export * from './domains.js';
@@ -1,3 +1,3 @@
1
- export * from './environment-mode';
2
- export * from './environment-variable-name';
3
- export * from './environment-variables';
1
+ export * from './environment-mode/index.js';
2
+ export * from './environment-variable-name/index.js';
3
+ export * from './environment-variables/index.js';
@@ -1,3 +1,3 @@
1
- export * from './environment-mode';
2
- export * from './environment-variable-name';
3
- export * from './environment-variables';
1
+ export * from './environment-mode/index.js';
2
+ export * from './environment-variable-name/index.js';
3
+ export * from './environment-variables/index.js';
@@ -1,3 +1,3 @@
1
- export * from './domains';
2
- export * from './utils';
3
- export * from './workers';
1
+ export * from './domains.js';
2
+ export * from './utils/index.js';
3
+ export * from './workers/index.js';
@@ -1,3 +1,3 @@
1
- export * from './domains';
2
- export * from './utils';
3
- export * from './workers';
1
+ export * from './domains.js';
2
+ export * from './utils/index.js';
3
+ export * from './workers/index.js';
@@ -1,2 +1,2 @@
1
- import { ComposeError } from './type';
1
+ import { ComposeError } from './type.js';
2
2
  export declare const composeError: ComposeError;
@@ -1,2 +1,2 @@
1
- import { Error, ErrorInfo, ErrorMessage } from '../../domains';
1
+ import { Error, ErrorInfo, ErrorMessage } from '../../domains.js';
2
2
  export type ComposeError = (message?: ErrorMessage, info?: ErrorInfo) => Error;
@@ -1,2 +1,2 @@
1
- import { ConsoleError } from './type';
1
+ import { ConsoleError } from './type.js';
2
2
  export declare const consoleError: ConsoleError;
@@ -1,4 +1,4 @@
1
- import { stringify } from '../../../helpers';
1
+ import { stringify } from '../../../helpers/index.js';
2
2
  export const consoleError = (error) => {
3
3
  const { id, info, message } = error;
4
4
  let msg = `ERROR: ${message} (ID) ${id}`;
@@ -1,2 +1,2 @@
1
- import { Error } from '../../domains';
1
+ import { Error } from '../../domains.js';
2
2
  export type ConsoleError = (error: Error) => void;
@@ -1,2 +1,2 @@
1
- export * from './compose-error';
2
- export * from './console-error';
1
+ export * from './compose-error/index.js';
2
+ export * from './console-error/index.js';
@@ -1,2 +1,2 @@
1
- export * from './compose-error';
2
- export * from './console-error';
1
+ export * from './compose-error/index.js';
2
+ export * from './console-error/index.js';
@@ -1,2 +1,2 @@
1
- import { ErrorWorkerType } from './type';
1
+ import { ErrorWorkerType } from './type.js';
2
2
  export declare const ErrorWorker: ErrorWorkerType;
@@ -1,4 +1,4 @@
1
- import { composeError as composeErrorFunc } from '../utils';
1
+ import { composeError as composeErrorFunc } from '../utils/index.js';
2
2
  export const ErrorWorker = (props) => {
3
3
  let _error = props ? composeErrorFunc(props.message, props.info) : undefined;
4
4
  const _composeInfo = (info) => {
@@ -1,4 +1,4 @@
1
- import { Error, ErrorInfo, ErrorMessage } from '../domains';
1
+ import { Error, ErrorInfo, ErrorMessage } from '../domains.js';
2
2
  export type ErrorWorkerType = (props?: {
3
3
  message?: ErrorMessage;
4
4
  info?: ErrorInfo;
@@ -1,2 +1,2 @@
1
- export * from './reveal-all-object-props';
2
- export * from './stringify';
1
+ export * from './reveal-all-object-props/index.js';
2
+ export * from './stringify/index.js';
@@ -1,2 +1,2 @@
1
- export * from './reveal-all-object-props';
2
- export * from './stringify';
1
+ export * from './reveal-all-object-props/index.js';
2
+ export * from './stringify/index.js';
@@ -1,2 +1,2 @@
1
- import { RevealAllObjectProps } from './type';
1
+ import { RevealAllObjectProps } from './type.js';
2
2
  export declare const revealAllObjectProps: RevealAllObjectProps;
@@ -1,4 +1,4 @@
1
- import { isObject } from '../../type';
1
+ import { isObject } from '../../type/index.js';
2
2
  export const revealAllObjectProps = (obj) => {
3
3
  const newObj = {};
4
4
  Object.getOwnPropertyNames(obj).forEach((key) => {
@@ -1,2 +1,2 @@
1
- import { Stringify } from './type';
1
+ import { Stringify } from './type.js';
2
2
  export declare const stringify: Stringify;
@@ -1,3 +1,3 @@
1
- import { isObject } from '../../type';
2
- import { revealAllObjectProps } from '../reveal-all-object-props';
1
+ import { isObject } from '../../type/index.js';
2
+ import { revealAllObjectProps } from '../reveal-all-object-props/index.js';
3
3
  export const stringify = (obj) => JSON.stringify(isObject(obj) ? revealAllObjectProps(obj) : obj);
package/src/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from './environment';
2
- export * from './error';
3
- export * from './helpers';
4
- export * from './service';
5
- export * from './type';
1
+ export * from './environment/index.js';
2
+ export * from './error/index.js';
3
+ export * from './helpers/index.js';
4
+ export * from './service/index.js';
5
+ export * from './type/index.js';
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export * from './environment';
2
- export * from './error';
3
- export * from './helpers';
4
- export * from './service';
5
- export * from './type';
1
+ export * from './environment/index.js';
2
+ export * from './error/index.js';
3
+ export * from './helpers/index.js';
4
+ export * from './service/index.js';
5
+ export * from './type/index.js';
@@ -1,2 +1,2 @@
1
- export * from './service-environment-variable-names';
2
- export * from './service-name';
1
+ export * from './service-environment-variable-names/index.js';
2
+ export * from './service-name/index.js';
@@ -1,2 +1,2 @@
1
- export * from './service-environment-variable-names';
2
- export * from './service-name';
1
+ export * from './service-environment-variable-names/index.js';
2
+ export * from './service-name/index.js';
@@ -1,2 +1,2 @@
1
- import { ServiceEnvironmentVariableNames } from './type';
1
+ import { ServiceEnvironmentVariableNames } from './type.js';
2
2
  export declare const SERVICE_ENVIRONMENT_VARIABLE_NAMES: ServiceEnvironmentVariableNames;
@@ -1,5 +1,4 @@
1
1
  export const SERVICE_ENVIRONMENT_VARIABLE_NAMES = {
2
- 'environment-service': ['APP_NAME'],
3
2
  'cache-service': ['APP_NAME', 'MOBILE_APP_URL'],
4
3
  nginx: ['APP_PORT', 'SSL_PRIVATE_KEY'],
5
4
  };
@@ -1 +1 @@
1
- export * from './constants';
1
+ export * from './constants.js';
@@ -1 +1 @@
1
- export * from './constants';
1
+ export * from './constants.js';
@@ -1,5 +1,5 @@
1
1
  import { EnvironmentVariableName } from 'src/environment';
2
- import { ServiceName } from '../service-name';
2
+ import { ServiceName } from '../service-name/index.js';
3
3
  export type ServiceEnvironmentVariableNames = {
4
4
  [key in ServiceName]: EnvironmentVariableName[];
5
5
  };
@@ -1 +1 @@
1
- export declare const SERVICE_NAMES: readonly ["cache-service", "nginx", "environment-service"];
1
+ export declare const SERVICE_NAMES: readonly ["cache-service", "nginx"];
@@ -1 +1 @@
1
- export const SERVICE_NAMES = ['cache-service', 'nginx', 'environment-service'];
1
+ export const SERVICE_NAMES = ['cache-service', 'nginx'];
@@ -1,2 +1,2 @@
1
- import { SERVICE_NAMES } from './constants';
1
+ import { SERVICE_NAMES } from './constants.js';
2
2
  export type ServiceName = (typeof SERVICE_NAMES)[number];
@@ -1,3 +1,3 @@
1
- export * from './constants';
2
- export * from './domains';
3
- export * from './type-guards';
1
+ export * from './constants.js';
2
+ export * from './domains.js';
3
+ export * from './type-guards.js';
@@ -1,3 +1,3 @@
1
- export * from './constants';
2
- export * from './domains';
3
- export * from './type-guards';
1
+ export * from './constants.js';
2
+ export * from './domains.js';
3
+ export * from './type-guards.js';
@@ -1,2 +1,2 @@
1
- import { ServiceName } from './domains';
1
+ import { ServiceName } from './domains.js';
2
2
  export declare const isServiceName: (data?: unknown) => data is ServiceName;
@@ -1,2 +1,2 @@
1
- import { SERVICE_NAMES } from './constants';
1
+ import { SERVICE_NAMES } from './constants.js';
2
2
  export const isServiceName = (data) => SERVICE_NAMES.some((it) => data === it);
@@ -1 +1 @@
1
- export * from './type-guards';
1
+ export * from './type-guards.js';
@@ -1 +1 @@
1
- export * from './type-guards';
1
+ export * from './type-guards.js';
@@ -1,4 +1,4 @@
1
- export * from './array';
2
- export * from './null';
3
- export * from './object';
4
- export * from './string';
1
+ export * from './array/index.js';
2
+ export * from './null/index.js';
3
+ export * from './object/index.js';
4
+ export * from './string/index.js';
package/src/type/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export * from './array';
2
- export * from './null';
3
- export * from './object';
4
- export * from './string';
1
+ export * from './array/index.js';
2
+ export * from './null/index.js';
3
+ export * from './object/index.js';
4
+ export * from './string/index.js';
@@ -1 +1 @@
1
- export * from './type-guards';
1
+ export * from './type-guards.js';
@@ -1 +1 @@
1
- export * from './type-guards';
1
+ export * from './type-guards.js';
@@ -1 +1 @@
1
- export * from './type-guards';
1
+ export * from './type-guards.js';
@@ -1 +1 @@
1
- export * from './type-guards';
1
+ export * from './type-guards.js';
@@ -1,5 +1,5 @@
1
- import { isArray } from '../array';
2
- import { isNull } from '../null';
1
+ import { isArray } from '../array/index.js';
2
+ import { isNull } from '../null/index.js';
3
3
  export const isObject = (data) => {
4
4
  if (typeof data !== 'object') {
5
5
  return false;
@@ -1 +1 @@
1
- export * from './type-guards';
1
+ export * from './type-guards.js';
@@ -1 +1 @@
1
- export * from './type-guards';
1
+ export * from './type-guards.js';
@@ -1,6 +0,0 @@
1
- export type Args = {
2
- 'environment-mode'?: string;
3
- 'environment-variable-name'?: string;
4
- 'file-name'?: string;
5
- 'service-name'?: string;
6
- };
@@ -1 +0,0 @@
1
- export {};