@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.
- package/devops/cdk/cdk-deploy.sh +4 -4
- package/devops/docker/publish-to-docker-hub.sh +7 -7
- package/devops/environment/create-env-file.sh +0 -0
- package/devops/eslint/eslint.sh +4 -4
- package/devops/npm/publish-to-npm-registry.sh +5 -1
- package/devops/prettier/prettier.sh +4 -4
- package/package.json +36 -36
- package/src/devops/env-file/create-env-file/convert-environment-variable-name-to-ssm-parameter-name/index.d.ts +1 -1
- package/src/devops/env-file/create-env-file/convert-environment-variable-name-to-ssm-parameter-name/index.js +1 -1
- package/src/devops/env-file/create-env-file/convert-environment-variable-name-to-ssm-parameter-name/types.d.ts +1 -1
- package/src/devops/env-file/create-env-file/index.js +4 -4
- package/src/devops/env-file/create-env-file/validate-parameters/index.d.ts +1 -1
- package/src/devops/env-file/create-env-file/validate-parameters/index.js +4 -4
- package/src/devops/env-file/create-env-file/validate-parameters/types.d.ts +2 -2
- package/src/devops/env-file/index.d.ts +1 -1
- package/src/devops/env-file/index.js +1 -1
- package/src/devops/index.d.ts +1 -1
- package/src/devops/index.js +1 -1
- package/src/environment/environment-mode/domains.d.ts +1 -1
- package/src/environment/environment-mode/index.d.ts +3 -3
- package/src/environment/environment-mode/index.js +3 -3
- package/src/environment/environment-mode/type-guards/index.d.ts +3 -3
- package/src/environment/environment-mode/type-guards/index.js +3 -3
- package/src/environment/environment-mode/type-guards/is-environment-mode.d.ts +1 -1
- package/src/environment/environment-mode/type-guards/is-environment-mode.js +1 -1
- package/src/environment/environment-variable-name/domains.d.ts +1 -1
- package/src/environment/environment-variable-name/index.d.ts +3 -3
- package/src/environment/environment-variable-name/index.js +3 -3
- package/src/environment/environment-variable-name/type-guards.d.ts +1 -1
- package/src/environment/environment-variable-name/type-guards.js +1 -1
- package/src/environment/environment-variables/domains.d.ts +1 -1
- package/src/environment/environment-variables/index.d.ts +1 -1
- package/src/environment/environment-variables/index.js +1 -1
- package/src/environment/index.d.ts +3 -3
- package/src/environment/index.js +3 -3
- package/src/error/index.d.ts +3 -3
- package/src/error/index.js +3 -3
- package/src/error/utils/compose-error/index.d.ts +1 -1
- package/src/error/utils/compose-error/type.d.ts +1 -1
- package/src/error/utils/console-error/index.d.ts +1 -1
- package/src/error/utils/console-error/index.js +1 -1
- package/src/error/utils/console-error/type.d.ts +1 -1
- package/src/error/utils/index.d.ts +2 -2
- package/src/error/utils/index.js +2 -2
- package/src/error/workers/index.d.ts +1 -1
- package/src/error/workers/index.js +1 -1
- package/src/error/workers/type.d.ts +1 -1
- package/src/helpers/index.d.ts +2 -2
- package/src/helpers/index.js +2 -2
- package/src/helpers/reveal-all-object-props/index.d.ts +1 -1
- package/src/helpers/reveal-all-object-props/index.js +1 -1
- package/src/helpers/stringify/index.d.ts +1 -1
- package/src/helpers/stringify/index.js +2 -2
- package/src/index.d.ts +5 -5
- package/src/index.js +5 -5
- package/src/service/index.d.ts +2 -2
- package/src/service/index.js +2 -2
- package/src/service/service-environment-variable-names/constants.d.ts +1 -1
- package/src/service/service-environment-variable-names/constants.js +0 -1
- package/src/service/service-environment-variable-names/index.d.ts +1 -1
- package/src/service/service-environment-variable-names/index.js +1 -1
- package/src/service/service-environment-variable-names/type.d.ts +1 -1
- package/src/service/service-name/constants.d.ts +1 -1
- package/src/service/service-name/constants.js +1 -1
- package/src/service/service-name/domains.d.ts +1 -1
- package/src/service/service-name/index.d.ts +3 -3
- package/src/service/service-name/index.js +3 -3
- package/src/service/service-name/type-guards.d.ts +1 -1
- package/src/service/service-name/type-guards.js +1 -1
- package/src/type/array/index.d.ts +1 -1
- package/src/type/array/index.js +1 -1
- package/src/type/index.d.ts +4 -4
- package/src/type/index.js +4 -4
- package/src/type/null/index.d.ts +1 -1
- package/src/type/null/index.js +1 -1
- package/src/type/object/index.d.ts +1 -1
- package/src/type/object/index.js +1 -1
- package/src/type/object/type-guards.js +2 -2
- package/src/type/string/index.d.ts +1 -1
- package/src/type/string/index.js +1 -1
- package/src/devops/env-file/create-env-file/domains.d.ts +0 -6
- package/src/devops/env-file/create-env-file/domains.js +0 -1
package/devops/cdk/cdk-deploy.sh
CHANGED
|
@@ -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
|
package/devops/eslint/eslint.sh
CHANGED
|
@@ -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
|
|
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.
|
|
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';
|
package/src/devops/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './env-file';
|
|
1
|
+
export * from './env-file/index.js';
|
package/src/devops/index.js
CHANGED
|
@@ -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 +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';
|
package/src/environment/index.js
CHANGED
|
@@ -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';
|
package/src/error/index.d.ts
CHANGED
|
@@ -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';
|
package/src/error/index.js
CHANGED
|
@@ -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,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';
|
package/src/error/utils/index.js
CHANGED
|
@@ -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) => {
|
package/src/helpers/index.d.ts
CHANGED
|
@@ -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';
|
package/src/helpers/index.js
CHANGED
|
@@ -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,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';
|
package/src/service/index.d.ts
CHANGED
|
@@ -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';
|
package/src/service/index.js
CHANGED
|
@@ -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 +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"
|
|
1
|
+
export declare const SERVICE_NAMES: readonly ["cache-service", "nginx"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SERVICE_NAMES = ['cache-service', 'nginx'
|
|
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';
|
package/src/type/array/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './type-guards';
|
|
1
|
+
export * from './type-guards.js';
|
package/src/type/index.d.ts
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';
|
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';
|
package/src/type/null/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './type-guards';
|
|
1
|
+
export * from './type-guards.js';
|
package/src/type/null/index.js
CHANGED
|
@@ -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';
|
package/src/type/object/index.js
CHANGED
|
@@ -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';
|
package/src/type/string/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './type-guards';
|
|
1
|
+
export * from './type-guards.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|