nestjs-backend-common 0.3.0 → 0.4.0
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/.github/workflows/docs.yml +61 -0
- package/.github/workflows/publish.yml +20 -3
- package/.prettierignore +1 -0
- package/README.md +2 -10
- package/dist/src/decorators/any-of/any-of.decorator.d.ts +1 -1
- package/dist/src/decorators/any-of/any-of.decorator.js +1 -1
- package/dist/src/decorators/get-ip/get-ip.decorator.d.ts +4 -0
- package/dist/src/decorators/get-ip/get-ip.decorator.d.ts.map +1 -1
- package/dist/src/decorators/get-ip/get-ip.decorator.js +4 -0
- package/dist/src/decorators/get-ip/get-ip.decorator.js.map +1 -1
- package/dist/src/decorators/index.d.ts +3 -2
- package/dist/src/decorators/index.d.ts.map +1 -1
- package/dist/src/decorators/index.js +7 -16
- package/dist/src/decorators/index.js.map +1 -1
- package/dist/src/decorators/one-of/one-of.decorator.d.ts +1 -1
- package/dist/src/decorators/one-of/one-of.decorator.d.ts.map +1 -1
- package/dist/src/decorators/one-of/one-of.decorator.js +3 -5
- package/dist/src/decorators/one-of/one-of.decorator.js.map +1 -1
- package/dist/src/graphql-types/relay-pagination.type.d.ts +4 -0
- package/dist/src/graphql-types/relay-pagination.type.d.ts.map +1 -1
- package/dist/src/graphql-types/relay-pagination.type.js.map +1 -1
- package/dist/src/interfaces/index.d.ts +3 -0
- package/dist/src/interfaces/index.d.ts.map +1 -1
- package/dist/src/modules/correlation-id/correlation-id.interface.d.ts +2 -7
- package/dist/src/modules/correlation-id/correlation-id.interface.d.ts.map +1 -1
- package/dist/src/modules/correlation-id/correlation-id.module.d.ts +11 -0
- package/dist/src/modules/correlation-id/correlation-id.module.d.ts.map +1 -1
- package/dist/src/modules/correlation-id/correlation-id.module.js +12 -1
- package/dist/src/modules/correlation-id/correlation-id.module.js.map +1 -1
- package/dist/src/modules/logger/logger.module-definition.d.ts +3 -4
- package/dist/src/modules/logger/logger.module-definition.d.ts.map +1 -1
- package/dist/src/modules/logger/logger.module-definition.js.map +1 -1
- package/docs/.nojekyll +1 -0
- package/docs/assets/hierarchy.js +1 -0
- package/docs/assets/highlight.css +78 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +60 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1633 -0
- package/docs/classes/CorrelationIdModule.html +3 -0
- package/docs/classes/CorrelationIdService.html +3 -0
- package/docs/classes/CustomLoggerService.html +13 -0
- package/docs/classes/LoggerModule.html +8 -0
- package/docs/classes/PageInfo.html +6 -0
- package/docs/functions/AnyOf.html +2 -0
- package/docs/functions/ConnectionType.html +1 -0
- package/docs/functions/EdgeType.html +1 -0
- package/docs/functions/OneOf.html +2 -0
- package/docs/functions/isNil.html +1 -0
- package/docs/functions/urlBuilder.html +1 -0
- package/docs/functions/validateEnvs.html +1 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +10 -0
- package/docs/interfaces/Class.html +2 -0
- package/docs/interfaces/Connection.html +3 -0
- package/docs/interfaces/CorrelationIdModuleOptions.html +6 -0
- package/docs/interfaces/Edge.html +3 -0
- package/docs/interfaces/LogMetadata.html +3 -0
- package/docs/modules.html +1 -0
- package/docs/types/CommonExecutionContext.html +1 -0
- package/docs/types/LogLevel.html +1 -0
- package/docs/types/LogMode.html +1 -0
- package/docs/types/NodeEnv.html +1 -0
- package/docs/types/RecursivePartial.html +1 -0
- package/docs/variables/CORRELATION_ID_CLS_KEY.html +1 -0
- package/docs/variables/CORRELATION_ID_HEADER_NAME.html +1 -0
- package/docs/variables/jsonFormat.html +3 -0
- package/package.json +10 -5
- package/src/decorators/any-of/any-of.decorator.ts +1 -1
- package/src/decorators/get-ip/get-ip.decorator.ts +4 -0
- package/src/decorators/index.ts +3 -2
- package/src/decorators/one-of/one-of.decorator.ts +3 -5
- package/src/graphql-types/relay-pagination.type.ts +4 -0
- package/src/interfaces/index.ts +3 -0
- package/src/modules/correlation-id/correlation-id.interface.ts +3 -7
- package/src/modules/correlation-id/correlation-id.module.ts +12 -1
- package/src/modules/logger/logger.module-definition.ts +2 -3
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
name: Generate Documentation
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_run:
|
|
5
|
+
workflows: ["Publish The Library"]
|
|
6
|
+
types:
|
|
7
|
+
- completed
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: write
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
docs:
|
|
16
|
+
runs-on: ubuntu-24.04
|
|
17
|
+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
18
|
+
steps:
|
|
19
|
+
- name: Checkout
|
|
20
|
+
uses: actions/checkout@v4
|
|
21
|
+
|
|
22
|
+
- uses: pnpm/action-setup@v4
|
|
23
|
+
name: Install pnpm
|
|
24
|
+
with:
|
|
25
|
+
version: 10
|
|
26
|
+
run_install: false
|
|
27
|
+
|
|
28
|
+
- name: Install NodeJS
|
|
29
|
+
uses: actions/setup-node@v4
|
|
30
|
+
with:
|
|
31
|
+
node-version: 24
|
|
32
|
+
cache: "pnpm"
|
|
33
|
+
|
|
34
|
+
- name: Install Dependencies
|
|
35
|
+
run: pnpm install --frozen-lockfile
|
|
36
|
+
|
|
37
|
+
- name: Generate Documentation
|
|
38
|
+
run: pnpm exec typedoc src/index.ts
|
|
39
|
+
|
|
40
|
+
- name: Commit Documentation
|
|
41
|
+
id: commit_docs
|
|
42
|
+
run: |
|
|
43
|
+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
|
44
|
+
git config --local user.name "github-actions[bot]"
|
|
45
|
+
git add docs/
|
|
46
|
+
|
|
47
|
+
if [[ -n $(git status --porcelain docs/) ]]; then
|
|
48
|
+
echo "Documentation changes detected, committing..."
|
|
49
|
+
git commit -m "chore: update documentation"
|
|
50
|
+
echo "has_changes=true" >> $GITHUB_OUTPUT
|
|
51
|
+
else
|
|
52
|
+
echo "No documentation changes detected, skipping commit"
|
|
53
|
+
echo "has_changes=false" >> $GITHUB_OUTPUT
|
|
54
|
+
fi
|
|
55
|
+
|
|
56
|
+
- name: Push Changes
|
|
57
|
+
if: steps.commit_docs.outputs.has_changes == 'true'
|
|
58
|
+
uses: ad-m/github-push-action@master
|
|
59
|
+
with:
|
|
60
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
61
|
+
branch: ${{ github.ref }}
|
|
@@ -17,34 +17,51 @@ jobs:
|
|
|
17
17
|
uses: actions/checkout@v4
|
|
18
18
|
|
|
19
19
|
- name: Check the current published version
|
|
20
|
+
id: version_check
|
|
20
21
|
run: |
|
|
21
22
|
LAST_PUBLISHED_VERSION=$(npm view nestjs-backend-common version 2> /dev/null || echo "")
|
|
22
|
-
PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g')
|
|
23
|
-
|
|
23
|
+
PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d ' ')
|
|
24
|
+
|
|
25
|
+
echo "last_published=$LAST_PUBLISHED_VERSION" >> $GITHUB_OUTPUT
|
|
26
|
+
echo "package_version=$PACKAGE_VERSION" >> $GITHUB_OUTPUT
|
|
27
|
+
|
|
28
|
+
if [[ "$LAST_PUBLISHED_VERSION" == "$PACKAGE_VERSION" ]]; then
|
|
29
|
+
echo "should_publish=false" >> $GITHUB_OUTPUT
|
|
30
|
+
echo "::warning::Skipping publish - version $PACKAGE_VERSION is already published on npm"
|
|
31
|
+
else
|
|
32
|
+
echo "should_publish=true" >> $GITHUB_OUTPUT
|
|
33
|
+
echo "Will publish new version: $PACKAGE_VERSION (current: $LAST_PUBLISHED_VERSION)"
|
|
34
|
+
fi
|
|
24
35
|
|
|
25
36
|
- uses: pnpm/action-setup@v4
|
|
37
|
+
if: steps.version_check.outputs.should_publish == 'true'
|
|
26
38
|
name: Install pnpm
|
|
27
39
|
with:
|
|
28
40
|
version: 10
|
|
29
41
|
run_install: false
|
|
30
42
|
|
|
31
43
|
- name: Install NodeJS
|
|
44
|
+
if: steps.version_check.outputs.should_publish == 'true'
|
|
32
45
|
uses: actions/setup-node@v4
|
|
33
46
|
with:
|
|
34
|
-
node-version:
|
|
47
|
+
node-version: 24
|
|
35
48
|
cache: "pnpm"
|
|
36
49
|
registry-url: "https://registry.npmjs.org/"
|
|
37
50
|
|
|
38
51
|
- name: Install Dependencies
|
|
52
|
+
if: steps.version_check.outputs.should_publish == 'true'
|
|
39
53
|
run: pnpm install --frozen-lockfile
|
|
40
54
|
|
|
41
55
|
- name: Apply Eslint
|
|
56
|
+
if: steps.version_check.outputs.should_publish == 'true'
|
|
42
57
|
run: pnpm lint
|
|
43
58
|
|
|
44
59
|
- name: Run Unit Tests
|
|
60
|
+
if: steps.version_check.outputs.should_publish == 'true'
|
|
45
61
|
run: pnpm test:unit
|
|
46
62
|
|
|
47
63
|
- name: Publish Package on npm 📦
|
|
64
|
+
if: steps.version_check.outputs.should_publish == 'true'
|
|
48
65
|
run: pnpm publish --provenance --access public --no-git-checks
|
|
49
66
|
env:
|
|
50
67
|
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/.prettierignore
CHANGED
package/README.md
CHANGED
|
@@ -2,17 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
All the utility functions and common modules I usually use in my NestJS applications will be published and maintained here.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
| --------------------- | ---------------------------------------------------------------- |
|
|
7
|
-
| `CorrelationIdModule` | Adds a correlation ID to each request (`RPC`, `GraphQL`, `HTTP`) |
|
|
5
|
+
📚 **[View Full API Documentation](https://kasir-barati.github.io/nestjs-backend-common/)**.
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
| Decorator | Description |
|
|
12
|
-
| --------- | ----------------------------------------------------------------------------------------------- |
|
|
13
|
-
| `AnyOf` | Client has to at least send of the two fields, they can of course provide both. |
|
|
14
|
-
| `GetIp` | Returns the IP. |
|
|
15
|
-
| `OneOf` | Throws an error if more than one of the properties are present in the request body/querystring. |
|
|
7
|
+
📦 **[View the package on NPM](https://www.npmjs.com/package/nestjs-backend-common)**.
|
|
16
8
|
|
|
17
9
|
## Why `nestjs-cls` Is Peer Dependency?
|
|
18
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @description
|
|
3
|
-
* Do not annotate the fields with `@IsOptional` since it will not validate them at all.
|
|
3
|
+
* Do not annotate the fields with `@IsOptional` since it will not validate them at all. Learn how to use it by reading the unit tests.
|
|
4
4
|
*/
|
|
5
5
|
export declare function AnyOf(properties: string[]): (target: any) => void;
|
|
6
6
|
//# sourceMappingURL=any-of.decorator.d.ts.map
|
|
@@ -5,7 +5,7 @@ const common_1 = require("@nestjs/common");
|
|
|
5
5
|
const class_validator_1 = require("class-validator");
|
|
6
6
|
/**
|
|
7
7
|
* @description
|
|
8
|
-
* Do not annotate the fields with `@IsOptional` since it will not validate them at all.
|
|
8
|
+
* Do not annotate the fields with `@IsOptional` since it will not validate them at all. Learn how to use it by reading the unit tests.
|
|
9
9
|
*/
|
|
10
10
|
function AnyOf(properties) {
|
|
11
11
|
return function (target) {
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { ExecutionContext } from '@nestjs/common';
|
|
2
2
|
export declare function getIpFactory(data: unknown, ctx: ExecutionContext): string | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* @description
|
|
5
|
+
* Returns the IP address of the client making the request. Learn how to use it by reading the unit tests.
|
|
6
|
+
*/
|
|
3
7
|
export declare const GetIp: (...dataOrPipes: unknown[]) => ParameterDecorator;
|
|
4
8
|
//# sourceMappingURL=get-ip.decorator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-ip.decorator.d.ts","sourceRoot":"","sources":["../../../../src/decorators/get-ip/get-ip.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAGxB,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,EACb,GAAG,EAAE,gBAAgB,GACpB,MAAM,GAAG,SAAS,CAUpB;AAED,eAAO,MAAM,KAAK,mDAAqC,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-ip.decorator.d.ts","sourceRoot":"","sources":["../../../../src/decorators/get-ip/get-ip.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAGxB,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,EACb,GAAG,EAAE,gBAAgB,GACpB,MAAM,GAAG,SAAS,CAUpB;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,mDAAqC,CAAC"}
|
|
@@ -13,5 +13,9 @@ function getIpFactory(data, ctx) {
|
|
|
13
13
|
return ip;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* @description
|
|
18
|
+
* Returns the IP address of the client making the request. Learn how to use it by reading the unit tests.
|
|
19
|
+
*/
|
|
16
20
|
exports.GetIp = (0, common_1.createParamDecorator)(getIpFactory);
|
|
17
21
|
//# sourceMappingURL=get-ip.decorator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-ip.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/get-ip/get-ip.decorator.ts"],"names":[],"mappings":";;;AAMA,oCAaC;AAnBD,2CAGwB;AACxB,qDAAuC;AAEvC,SAAgB,YAAY,CAC1B,IAAa,EACb,GAAqB;IAErB,MAAM,OAAO,GAAG,GAAG,CAAC,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC;IAChD,MAAM,EAAE,GACN,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC;QAClC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAE/B,IAAI,IAAA,sBAAI,EAAC,EAAE,CAAC,EAAE,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;
|
|
1
|
+
{"version":3,"file":"get-ip.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/get-ip/get-ip.decorator.ts"],"names":[],"mappings":";;;AAMA,oCAaC;AAnBD,2CAGwB;AACxB,qDAAuC;AAEvC,SAAgB,YAAY,CAC1B,IAAa,EACb,GAAqB;IAErB,MAAM,OAAO,GAAG,GAAG,CAAC,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC;IAChD,MAAM,EAAE,GACN,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC;QAClC,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAE/B,IAAI,IAAA,sBAAI,EAAC,EAAE,CAAC,EAAE,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAED;;;GAGG;AACU,QAAA,KAAK,GAAG,IAAA,6BAAoB,EAAC,YAAY,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { AnyOf } from './any-of/any-of.decorator';
|
|
2
|
+
export { GetIp } from './get-ip/get-ip.decorator';
|
|
3
|
+
export { OneOf } from './one-of/one-of.decorator';
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
|
|
3
|
+
exports.OneOf = exports.GetIp = exports.AnyOf = void 0;
|
|
4
|
+
var any_of_decorator_1 = require("./any-of/any-of.decorator");
|
|
5
|
+
Object.defineProperty(exports, "AnyOf", { enumerable: true, get: function () { return any_of_decorator_1.AnyOf; } });
|
|
6
|
+
var get_ip_decorator_1 = require("./get-ip/get-ip.decorator");
|
|
7
|
+
Object.defineProperty(exports, "GetIp", { enumerable: true, get: function () { return get_ip_decorator_1.GetIp; } });
|
|
8
|
+
var one_of_decorator_1 = require("./one-of/one-of.decorator");
|
|
9
|
+
Object.defineProperty(exports, "OneOf", { enumerable: true, get: function () { return one_of_decorator_1.OneOf; } });
|
|
19
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":";;;AAAA,8DAAkD;AAAzC,yGAAA,KAAK,OAAA;AACd,8DAAkD;AAAzC,yGAAA,KAAK,OAAA;AACd,8DAAkD;AAAzC,yGAAA,KAAK,OAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @description
|
|
3
|
-
* Throws an error if more than one of the properties are present in the request body/querystring.
|
|
3
|
+
* Throws an error if more than one of the properties are present in the request body/querystring. Learn how to use it by reading the unit tests.
|
|
4
4
|
*/
|
|
5
5
|
export declare function OneOf(properties: string[]): (target: any) => void;
|
|
6
6
|
//# sourceMappingURL=one-of.decorator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-of.decorator.d.ts","sourceRoot":"","sources":["../../../../src/decorators/one-of/one-of.decorator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"one-of.decorator.d.ts","sourceRoot":"","sources":["../../../../src/decorators/one-of/one-of.decorator.ts"],"names":[],"mappings":"AAWA;;;GAGG;AACH,wBAAgB,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,IACvB,QAAQ,GAAG,UAoB7B"}
|
|
@@ -9,9 +9,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.OneOf = OneOf;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
11
|
const class_validator_1 = require("class-validator");
|
|
12
|
+
const utils_1 = require("../../utils");
|
|
12
13
|
/**
|
|
13
14
|
* @description
|
|
14
|
-
* Throws an error if more than one of the properties are present in the request body/querystring.
|
|
15
|
+
* Throws an error if more than one of the properties are present in the request body/querystring. Learn how to use it by reading the unit tests.
|
|
15
16
|
*/
|
|
16
17
|
function OneOf(properties) {
|
|
17
18
|
return function (target) {
|
|
@@ -43,7 +44,7 @@ let OneOfCheckerConstraint = class OneOfCheckerConstraint {
|
|
|
43
44
|
const data = validationArguments.object;
|
|
44
45
|
for (const property of properties) {
|
|
45
46
|
const propertyValue = data[property];
|
|
46
|
-
if (!isNil(value) && !isNil(propertyValue)) {
|
|
47
|
+
if (!(0, utils_1.isNil)(value) && !(0, utils_1.isNil)(propertyValue)) {
|
|
47
48
|
return false;
|
|
48
49
|
}
|
|
49
50
|
}
|
|
@@ -69,7 +70,4 @@ let OneOfCheckerConstraint = class OneOfCheckerConstraint {
|
|
|
69
70
|
OneOfCheckerConstraint = __decorate([
|
|
70
71
|
(0, class_validator_1.ValidatorConstraint)({ name: 'OneOfChecker' })
|
|
71
72
|
], OneOfCheckerConstraint);
|
|
72
|
-
function isNil(value) {
|
|
73
|
-
return value === null || value === undefined;
|
|
74
|
-
}
|
|
75
73
|
//# sourceMappingURL=one-of.decorator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-of.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/one-of/one-of.decorator.ts"],"names":[],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"one-of.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/one-of/one-of.decorator.ts"],"names":[],"mappings":";;;;;;;;AAeA,sBAqBC;AApCD,2CAAiD;AACjD,qDAMyB;AAEzB,uCAAoC;AAEpC;;;GAGG;AACH,SAAgB,KAAK,CAAC,UAAoB;IACxC,OAAO,UAAU,MAAW;QAC1B,KAAK,MAAM,QAAQ,IAAI,UAAU,EAAE,CAAC;YAClC,MAAM,UAAU,GAAG,UAAU,CAAC,MAAM,CAClC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,QAAQ,CAC5B,CAAC;YAEF,IAAA,wBAAe,EACb,IAAA,4BAAU,EAAC,CAAC,GAA4B,EAAE,EAAE;gBAC1C,MAAM,sBAAsB,GAAG,UAAU,CAAC,MAAM,CAC9C,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,SAAS,EAC7C,IAAI,CACL,CAAC;gBACF,MAAM,o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ExC,CAAC;QACF,MAAM,KAAK,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;YAC9D,IAAI,KAAK,KAAK,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACpC,WAAW,IAAI,OAAO,GAAG,QAAQ,CAAC;YACpC,CAAC;iBAAM,IAAI,KAAK,KAAK,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC3C,WAAW,IAAI,OAAO,CAAC;YACzB,CAAC;iBAAM,CAAC;gBACN,WAAW,IAAI,OAAO,GAAG,IAAI,CAAC;YAChC,CAAC;YAED,OAAO,WAAW,CAAC;QACrB,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,OAAO,eAAe,KAAK,oBAAoB,CAAC;IAClD,CAAC;CACF,CAAA;AA1CK,sBAAsB;IAD3B,IAAA,qCAAmB,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;GACxC,sBAAsB,CA0C3B"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { Type } from '@nestjs/common';
|
|
2
2
|
type ClassRef<T> = Type<T>;
|
|
3
3
|
export interface Edge<TNode> {
|
|
4
|
+
/** @description An opaque cursor for pagination */
|
|
4
5
|
cursor: string;
|
|
6
|
+
/** @description The item at the end of the edge */
|
|
5
7
|
node: TNode;
|
|
6
8
|
}
|
|
7
9
|
export interface Connection<TEdge> {
|
|
10
|
+
/** @description A list of edges in the connection */
|
|
8
11
|
edges: TEdge[];
|
|
12
|
+
/** @description Information about the current page of results */
|
|
9
13
|
pageInfo: PageInfo;
|
|
10
14
|
}
|
|
11
15
|
export declare class PageInfo {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relay-pagination.type.d.ts","sourceRoot":"","sources":["../../../src/graphql-types/relay-pagination.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAGtC,KAAK,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AAC;IACf,iEAAiE;IACjE,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,qBACa,QAAQ;IAMnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAMzB,WAAW,EAAE,OAAO,CAAC;IAMrB,eAAe,EAAE,OAAO,CAAC;IAOzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAC5B,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,GACxB,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAevB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,SAAS,IAAI,CAAC,KAAK,CAAC,EAC7D,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,EACzB,OAAO,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC,GACxB,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAkB7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relay-pagination.type.js","sourceRoot":"","sources":["../../../src/graphql-types/relay-pagination.type.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"relay-pagination.type.js","sourceRoot":"","sources":["../../../src/graphql-types/relay-pagination.type.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgDA,4BAiBC;AAED,wCAqBC;AAvFD,6CAAoD;AAmB7C,IAAM,QAAQ,GAAd,MAAM,QAAQ;IAMnB,SAAS,CAAgB;IAMzB,WAAW,CAAU;IAMrB,eAAe,CAAU;IAOzB,WAAW,CAAgB;CAC5B,CAAA;AA1BY,4BAAQ;AAMnB;IALC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE;QACnB,QAAQ,EAAE,IAAI;QACd,WAAW,EACT,4DAA4D;KAC/D,CAAC;;2CACuB;AAMzB;IAJC,IAAA,eAAK,EAAC;QACL,WAAW,EACT,0DAA0D;KAC7D,CAAC;;6CACm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AU,EAAE,IAAI,EAAE,CAAC;OAC3B,mBAAmB,CAUxB;IAED,OAAO,mBAAmB,CAAC;AAC7B,CAAC"}
|
|
@@ -7,4 +7,7 @@ export interface Class<T> {
|
|
|
7
7
|
export type RecursivePartial<T> = Partial<{
|
|
8
8
|
[key in keyof T]: T[key] extends (...a: Array<infer U>) => unknown ? (...a: Array<U>) => RecursivePartial<ReturnType<T[key]>> | ReturnType<T[key]> : T[key] extends Array<unknown> ? Array<RecursivePartial<T[key][number]>> : RecursivePartial<T[key]> | T[key];
|
|
9
9
|
}>;
|
|
10
|
+
export interface CommonModuleOptions {
|
|
11
|
+
global?: boolean;
|
|
12
|
+
}
|
|
10
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,WAAW,CAAC;AAC7D,MAAM,MAAM,OAAO,GAAG,aAAa,GAAG,YAAY,GAAG,MAAM,CAAC;AAC5D,MAAM,WAAW,KAAK,CAAC,CAAC;IACtB,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;CACzB;AACD,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,OAAO,CAAC;KACvC,GAAG,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,OAAO,GAC9D,CACE,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,KACX,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAC9D,CAAC,CAAC,GAAG,CAAC,SAAS,KAA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AC;CAClB"}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* @default false
|
|
4
|
-
* @description Register the module globally
|
|
5
|
-
*/
|
|
6
|
-
isGlobal?: boolean;
|
|
7
|
-
}
|
|
1
|
+
import { CommonModuleOptions } from '../../interfaces';
|
|
2
|
+
export type CorrelationIdModuleOptions = CommonModuleOptions;
|
|
8
3
|
//# sourceMappingURL=correlation-id.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"correlation-id.interface.d.ts","sourceRoot":"","sources":["../../../../src/modules/correlation-id/correlation-id.interface.ts"],"names":[],"mappings":"AAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"correlation-id.interface.d.ts","sourceRoot":"","sources":["../../../../src/modules/correlation-id/correlation-id.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,MAAM,0BAA0B,GAAG,mBAAmB,CAAC"}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { DynamicModule } from '@nestjs/common';
|
|
2
2
|
import { CorrelationIdModuleOptions } from './correlation-id.interface';
|
|
3
|
+
/**
|
|
4
|
+
* @description
|
|
5
|
+
* To use the `CorrelationIdModule` in your application you need to have the [nestjs-cls](https://www.npmjs.com/package/nestjs-cls) and [@nestjs/graphql](https://www.npmjs.com/package/@nestjs/graphql) packages installed.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* CorrelationIdModule.forRoot({
|
|
10
|
+
* global: true,
|
|
11
|
+
* })
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
3
14
|
export declare class CorrelationIdModule {
|
|
4
15
|
static forRoot(options?: CorrelationIdModuleOptions): DynamicModule;
|
|
5
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"correlation-id.module.d.ts","sourceRoot":"","sources":["../../../../src/modules/correlation-id/correlation-id.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,MAAM,gBAAgB,CAAC;AAKvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAGxE,qBACa,mBAAmB;IAC9B,MAAM,CAAC,OAAO,CACZ,OAAO,CAAC,EAAE,0BAA0B,GACnC,aAAa;CAejB"}
|
|
1
|
+
{"version":3,"file":"correlation-id.module.d.ts","sourceRoot":"","sources":["../../../../src/modules/correlation-id/correlation-id.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,MAAM,gBAAgB,CAAC;AAKvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAGxE;;;;;;;;;;GAUG;AACH,qBACa,mBAAmB;IAC9B,MAAM,CAAC,OAAO,CACZ,OAAO,CAAC,EAAE,0BAA0B,GACnC,aAAa;CAejB"}
|
|
@@ -13,10 +13,21 @@ const core_1 = require("@nestjs/core");
|
|
|
13
13
|
const nestjs_cls_1 = require("nestjs-cls");
|
|
14
14
|
const correlation_id_interceptor_1 = require("./correlation-id.interceptor");
|
|
15
15
|
const correlation_id_service_1 = require("./correlation-id.service");
|
|
16
|
+
/**
|
|
17
|
+
* @description
|
|
18
|
+
* To use the `CorrelationIdModule` in your application you need to have the [nestjs-cls](https://www.npmjs.com/package/nestjs-cls) and [@nestjs/graphql](https://www.npmjs.com/package/@nestjs/graphql) packages installed.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* CorrelationIdModule.forRoot({
|
|
23
|
+
* global: true,
|
|
24
|
+
* })
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
16
27
|
let CorrelationIdModule = CorrelationIdModule_1 = class CorrelationIdModule {
|
|
17
28
|
static forRoot(options) {
|
|
18
29
|
return {
|
|
19
|
-
global: options?.
|
|
30
|
+
global: options?.global ?? false,
|
|
20
31
|
module: CorrelationIdModule_1,
|
|
21
32
|
imports: [nestjs_cls_1.ClsModule],
|
|
22
33
|
providers: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"correlation-id.module.js","sourceRoot":"","sources":["../../../../src/modules/correlation-id/correlation-id.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,uCAA+C;AAC/C,2CAAuC;AAEvC,6EAAwE;AAExE,qEAAgE;
|
|
1
|
+
{"version":3,"file":"correlation-id.module.js","sourceRoot":"","sources":["../../../../src/modules/correlation-id/correlation-id.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,uCAA+C;AAC/C,2CAAuC;AAEvC,6EAAwE;AAExE,qEAAgE;AAEhE;;;;;;;;;;GAUG;AAEI,IAAM,mBAAmB,2BAAzB,MAAM,mBAAmB;IAC9B,MAAM,CAAC,OAAO,CACZ,OAAoC;QAEpC,OAAO;YACL,MAAM,EAAE,OAAO,EAAE,MAAM,IAAI,KAAK;YAChC,MAAM,EAAE,qBAAmB;YAC3B,OAAO,EAAE,CAAC,sBAAS,CAAC;YACpB,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,sBAAe;oBACxB,QAAQ,EAAE,qDAAwB;iBACnC;gBACD,6CAAoB;aACrB;YACD,OAAO,EAAE,CAAC,6CAAoB,CAAC;SAChC,CAAC;IACJ,CAAC;CACF,CAAA;AAlBY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,mBAAmB,CAkB/B"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ConfigurableModuleOptionsFactory, LogLevel } from '@nestjs/common';
|
|
2
|
+
import { CommonModuleOptions } from '../../interfaces';
|
|
2
3
|
import { LogMode } from './logger.interface';
|
|
3
|
-
export
|
|
4
|
-
global?: boolean;
|
|
5
|
-
}
|
|
4
|
+
export type ExtraLoggerModuleOptions = CommonModuleOptions;
|
|
6
5
|
export interface LoggerModuleOptions {
|
|
7
6
|
logMode: LogMode;
|
|
8
7
|
logLevel: LogLevel;
|
|
9
8
|
}
|
|
10
9
|
export type RegisterLoggerModuleOptions = LoggerModuleOptions & ExtraLoggerModuleOptions;
|
|
11
|
-
export declare const ConfigurableModuleClass: import("@nestjs/common").ConfigurableModuleCls<LoggerModuleOptions, "register", "create",
|
|
10
|
+
export declare const ConfigurableModuleClass: import("@nestjs/common").ConfigurableModuleCls<LoggerModuleOptions, "register", "create", CommonModuleOptions>, MODULE_OPTIONS_TOKEN: string | symbol, ASYNC_OPTIONS_TYPE: import("@nestjs/common").ConfigurableModuleAsyncOptions<LoggerModuleOptions, "create"> & Partial<CommonModuleOptions>;
|
|
12
11
|
export type LoggerModuleOptionsFactory = ConfigurableModuleOptionsFactory<LoggerModuleOptions, 'create'>;
|
|
13
12
|
//# sourceMappingURL=logger.module-definition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.module-definition.d.ts","sourceRoot":"","sources":["../../../../src/modules/logger/logger.module-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gCAAgC,EAChC,QAAQ,EACT,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,
|
|
1
|
+
{"version":3,"file":"logger.module-definition.d.ts","sourceRoot":"","sources":["../../../../src/modules/logger/logger.module-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gCAAgC,EAChC,QAAQ,EACT,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,MAAM,wBAAwB,GAAG,mBAAmB,CAAC;AAC3D,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AACD,MAAM,MAAM,2BAA2B,GAAG,mBAAmB,GAC3D,wBAAwB,CAAC;AAE3B,eAAO,MACL,uBAAuB,kHACvB,oBAAoB,mBACpB,kBAAkB,uHAWV,CAAC;AACX,MAAM,MAAM,0BAA0B,GACpC,gCAAgC,CAAC,mBAAmB,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.module-definition.js","sourceRoot":"","sources":["../../../../src/modules/logger/logger.module-definition.ts"],"names":[],"mappings":";;;;AAAA,2CAIwB;
|
|
1
|
+
{"version":3,"file":"logger.module-definition.js","sourceRoot":"","sources":["../../../../src/modules/logger/logger.module-definition.ts"],"names":[],"mappings":";;;;AAAA,2CAIwB;AAaX,KAIT,IAAI,kCAAyB,EAAuB;KACrD,kBAAkB,CAAC,UAAU,CAAC;KAC9B,SAAS,CACR,EAAE,MAAM,EAAE,KAAK,EAAE,EACjB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;IACvB,GAAG,UAAU;IACb,MAAM,EAAE,MAAM,CAAC,MAAM;CACtB,CAAC,CACH;KACA,oBAAoB,CAAC,QAAQ,CAAC;KAC9B,KAAK,EAAE,EAbR,+BAAuB,+BACvB,4BAAoB,4BACpB,0BAAkB,yBAWT"}
|
package/docs/.nojekyll
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
window.hierarchyData = "eJyrVirKzy8pVrKKjtVRKkpNy0lNLsnMzytWsqqurQUAmx4Kpg=="
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--light-hl-0: #0000FF;
|
|
3
|
+
--dark-hl-0: #569CD6;
|
|
4
|
+
--light-hl-1: #000000;
|
|
5
|
+
--dark-hl-1: #D4D4D4;
|
|
6
|
+
--light-hl-2: #267F99;
|
|
7
|
+
--dark-hl-2: #4EC9B0;
|
|
8
|
+
--light-hl-3: #001080;
|
|
9
|
+
--dark-hl-3: #9CDCFE;
|
|
10
|
+
--light-hl-4: #795E26;
|
|
11
|
+
--dark-hl-4: #DCDCAA;
|
|
12
|
+
--light-hl-5: #AF00DB;
|
|
13
|
+
--dark-hl-5: #C586C0;
|
|
14
|
+
--light-hl-6: #A31515;
|
|
15
|
+
--dark-hl-6: #CE9178;
|
|
16
|
+
--light-hl-7: #008000;
|
|
17
|
+
--dark-hl-7: #6A9955;
|
|
18
|
+
--light-code-background: #FFFFFF;
|
|
19
|
+
--dark-code-background: #1E1E1E;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@media (prefers-color-scheme: light) { :root {
|
|
23
|
+
--hl-0: var(--light-hl-0);
|
|
24
|
+
--hl-1: var(--light-hl-1);
|
|
25
|
+
--hl-2: var(--light-hl-2);
|
|
26
|
+
--hl-3: var(--light-hl-3);
|
|
27
|
+
--hl-4: var(--light-hl-4);
|
|
28
|
+
--hl-5: var(--light-hl-5);
|
|
29
|
+
--hl-6: var(--light-hl-6);
|
|
30
|
+
--hl-7: var(--light-hl-7);
|
|
31
|
+
--code-background: var(--light-code-background);
|
|
32
|
+
} }
|
|
33
|
+
|
|
34
|
+
@media (prefers-color-scheme: dark) { :root {
|
|
35
|
+
--hl-0: var(--dark-hl-0);
|
|
36
|
+
--hl-1: var(--dark-hl-1);
|
|
37
|
+
--hl-2: var(--dark-hl-2);
|
|
38
|
+
--hl-3: var(--dark-hl-3);
|
|
39
|
+
--hl-4: var(--dark-hl-4);
|
|
40
|
+
--hl-5: var(--dark-hl-5);
|
|
41
|
+
--hl-6: var(--dark-hl-6);
|
|
42
|
+
--hl-7: var(--dark-hl-7);
|
|
43
|
+
--code-background: var(--dark-code-background);
|
|
44
|
+
} }
|
|
45
|
+
|
|
46
|
+
:root[data-theme='light'] {
|
|
47
|
+
--hl-0: var(--light-hl-0);
|
|
48
|
+
--hl-1: var(--light-hl-1);
|
|
49
|
+
--hl-2: var(--light-hl-2);
|
|
50
|
+
--hl-3: var(--light-hl-3);
|
|
51
|
+
--hl-4: var(--light-hl-4);
|
|
52
|
+
--hl-5: var(--light-hl-5);
|
|
53
|
+
--hl-6: var(--light-hl-6);
|
|
54
|
+
--hl-7: var(--light-hl-7);
|
|
55
|
+
--code-background: var(--light-code-background);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:root[data-theme='dark'] {
|
|
59
|
+
--hl-0: var(--dark-hl-0);
|
|
60
|
+
--hl-1: var(--dark-hl-1);
|
|
61
|
+
--hl-2: var(--dark-hl-2);
|
|
62
|
+
--hl-3: var(--dark-hl-3);
|
|
63
|
+
--hl-4: var(--dark-hl-4);
|
|
64
|
+
--hl-5: var(--dark-hl-5);
|
|
65
|
+
--hl-6: var(--dark-hl-6);
|
|
66
|
+
--hl-7: var(--dark-hl-7);
|
|
67
|
+
--code-background: var(--dark-code-background);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.hl-0 { color: var(--hl-0); }
|
|
71
|
+
.hl-1 { color: var(--hl-1); }
|
|
72
|
+
.hl-2 { color: var(--hl-2); }
|
|
73
|
+
.hl-3 { color: var(--hl-3); }
|
|
74
|
+
.hl-4 { color: var(--hl-4); }
|
|
75
|
+
.hl-5 { color: var(--hl-5); }
|
|
76
|
+
.hl-6 { color: var(--hl-6); }
|
|
77
|
+
.hl-7 { color: var(--hl-7); }
|
|
78
|
+
pre, code { background: var(--code-background); }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
addIcons();
|
|
3
|
+
function addIcons() {
|
|
4
|
+
if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons);
|
|
5
|
+
const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg"));
|
|
6
|
+
svg.innerHTML = `<g id="icon-1" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">M</text></g><g id="icon-2" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-module)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">M</text></g><g id="icon-4" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">N</text></g><g id="icon-8" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-enum)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">E</text></g><g id="icon-16" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">P</text></g><g id="icon-32" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">V</text></g><g id="icon-64" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">F</text></g><g id="icon-128" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">C</text></g><g id="icon-256" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">I</text></g><g id="icon-512" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">C</text></g><g id="icon-1024" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">P</text></g><g id="icon-2048" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-method)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">M</text></g><g id="icon-4096" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">F</text></g><g id="icon-8192" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">P</text></g><g id="icon-16384" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-constructor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">C</text></g><g id="icon-32768" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-property)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">P</text></g><g id="icon-65536" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">T</text></g><g id="icon-131072" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">T</text></g><g id="icon-262144" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">A</text></g><g id="icon-524288" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">A</text></g><g id="icon-1048576" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-accessor)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">A</text></g><g id="icon-2097152" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">T</text></g><g id="icon-4194304" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-reference)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><text fill="var(--color-icon-text)" x="50%" y="50%" dy="0.35em" text-anchor="middle">R</text></g><g id="icon-8388608" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="6,5 6,19 18,19, 18,10 13,5"></polygon><line x1="9" y1="9" x2="13" y2="9"></line><line x1="9" y1="12" x2="15" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></g></g><g id="icon-folder" class="tsd-no-select"><rect fill="var(--color-icon-background)" stroke="var(--color-document)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><g stroke="var(--color-icon-text)" fill="none" stroke-width="1.5"><polygon points="5,5 10,5 12,8 19,8 19,18 5,18"></polygon></g></g><g id="icon-chevronDown" class="tsd-no-select"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-icon-text)"></path></g><g id="icon-chevronSmall" class="tsd-no-select"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-icon-text)"></path></g><g id="icon-checkbox" class="tsd-no-select"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></g><g id="icon-menu" class="tsd-no-select"><rect x="1" y="3" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-icon-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-icon-text)"></rect></g><g id="icon-search" class="tsd-no-select"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-icon-text)"></path></g><g id="icon-anchor" class="tsd-no-select"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></g><g id="icon-alertNote" class="tsd-no-select"><path fill="var(--color-alert-note)" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g><g id="icon-alertTip" class="tsd-no-select"><path fill="var(--color-alert-tip)" d="M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z"></path></g><g id="icon-alertImportant" class="tsd-no-select"><path fill="var(--color-alert-important)" d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertWarning" class="tsd-no-select"><path fill="var(--color-alert-warning)" d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path></g><g id="icon-alertCaution" class="tsd-no-select"><path fill="var(--color-alert-caution)" d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></g>`;
|
|
7
|
+
svg.style.display = "none";
|
|
8
|
+
if (location.protocol === "file:") updateUseElements();
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function updateUseElements() {
|
|
12
|
+
document.querySelectorAll("use").forEach(el => {
|
|
13
|
+
if (el.getAttribute("href").includes("#icon-")) {
|
|
14
|
+
el.setAttribute("href", el.getAttribute("href").replace(/.*#/, "#"));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
})()
|