arvo-core 1.0.29 → 1.0.30
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +19 -0
- package/dist/ArvoContract/helpers.d.ts +1 -1
- package/dist/ArvoContract/helpers.js +1 -1
- package/dist/ArvoEvent/index.d.ts +6 -6
- package/dist/ArvoEvent/index.js +6 -6
- package/dist/OpenTelemetry/index.d.ts +0 -2
- package/dist/OpenTelemetry/index.js +0 -2
- package/package.json +3 -2
package/README.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
[![SonarCloud](https://sonarcloud.io/images/project_badges/sonarcloud-white.svg)](https://sonarcloud.io/summary/new_code?id=SaadAhmad123_arvo-core)
|
2
|
+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=SaadAhmad123_arvo-core&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=SaadAhmad123_arvo-core)
|
3
|
+
|
4
|
+
|
1
5
|
# Arvo
|
2
6
|
|
3
7
|
## What is Arvo
|
@@ -86,3 +90,18 @@ This package is available under the MIT License. For more details, refer to the
|
|
86
90
|
## Change Logs
|
87
91
|
|
88
92
|
For a detailed list of changes and updates, please refer to the [document](CHANGELOG.md) file.
|
93
|
+
|
94
|
+
### SonarCloud Metrics
|
95
|
+
|
96
|
+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=SaadAhmad123_arvo-core&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=SaadAhmad123_arvo-core)
|
97
|
+
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=SaadAhmad123_arvo-core&metric=bugs)](https://sonarcloud.io/summary/new_code?id=SaadAhmad123_arvo-core)
|
98
|
+
[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=SaadAhmad123_arvo-core&metric=code_smells)](https://sonarcloud.io/summary/new_code?id=SaadAhmad123_arvo-core)
|
99
|
+
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=SaadAhmad123_arvo-core&metric=coverage)](https://sonarcloud.io/summary/new_code?id=SaadAhmad123_arvo-core)
|
100
|
+
[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=SaadAhmad123_arvo-core&metric=duplicated_lines_density)](https://sonarcloud.io/summary/new_code?id=SaadAhmad123_arvo-core)
|
101
|
+
[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=SaadAhmad123_arvo-core&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=SaadAhmad123_arvo-core)
|
102
|
+
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=SaadAhmad123_arvo-core&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=SaadAhmad123_arvo-core)
|
103
|
+
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=SaadAhmad123_arvo-core&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=SaadAhmad123_arvo-core)
|
104
|
+
[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=SaadAhmad123_arvo-core&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=SaadAhmad123_arvo-core)
|
105
|
+
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=SaadAhmad123_arvo-core&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=SaadAhmad123_arvo-core)
|
106
|
+
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=SaadAhmad123_arvo-core&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=SaadAhmad123_arvo-core)
|
107
|
+
|
@@ -12,7 +12,7 @@ export type InferArvoContract<T> = T extends IArvoContract<infer S, infer U, inf
|
|
12
12
|
*
|
13
13
|
* @template TContract - The type of the contract specification.
|
14
14
|
*
|
15
|
-
* @param
|
15
|
+
* @param contract - The contract specification object.
|
16
16
|
* This should include the URI, accepts, and emits properties as defined in IArvoContract.
|
17
17
|
*
|
18
18
|
* @returns The created ArvoContract instance.
|
@@ -13,7 +13,7 @@ var _1 = __importDefault(require("."));
|
|
13
13
|
*
|
14
14
|
* @template TContract - The type of the contract specification.
|
15
15
|
*
|
16
|
-
* @param
|
16
|
+
* @param contract - The contract specification object.
|
17
17
|
* This should include the URI, accepts, and emits properties as defined in IArvoContract.
|
18
18
|
*
|
19
19
|
* @returns The created ArvoContract instance.
|
@@ -91,7 +91,7 @@ export default class ArvoEvent<TData extends ArvoEventData = ArvoEventData, TExt
|
|
91
91
|
* This field represents the intended recipient or destination of the event.
|
92
92
|
* @returns The value of the 'to' field.
|
93
93
|
*
|
94
|
-
* @
|
94
|
+
* @remarks
|
95
95
|
* This is a convenience getter for the data in `this.extensions.to` as this
|
96
96
|
* is an ArvoEvent object which natively defines this extension on the CloudEvent
|
97
97
|
* spec.
|
@@ -102,7 +102,7 @@ export default class ArvoEvent<TData extends ArvoEventData = ArvoEventData, TExt
|
|
102
102
|
* This field contains access control information for the event.
|
103
103
|
* @returns The value of the 'accesscontrol' field.
|
104
104
|
*
|
105
|
-
* @
|
105
|
+
* @remarks
|
106
106
|
* This is a convenience getter for the data in `this.extensions.accesscontrol` as this
|
107
107
|
* is an ArvoEvent object which natively defines this extension on the CloudEvent
|
108
108
|
* spec.
|
@@ -113,7 +113,7 @@ export default class ArvoEvent<TData extends ArvoEventData = ArvoEventData, TExt
|
|
113
113
|
* This field indicate an alternative destination for the event.
|
114
114
|
* @returns The value of the 'redirectto' field.
|
115
115
|
*
|
116
|
-
* @
|
116
|
+
* @remarks
|
117
117
|
* This is a convenience getter for the data in `this.extensions.redirectto` as this
|
118
118
|
* is an ArvoEvent object which natively defines this extension on the CloudEvent
|
119
119
|
* spec.
|
@@ -124,7 +124,7 @@ export default class ArvoEvent<TData extends ArvoEventData = ArvoEventData, TExt
|
|
124
124
|
* This field contains information about the execution units associated with the event.
|
125
125
|
* @returns The value of the 'executionunits' field.
|
126
126
|
*
|
127
|
-
* @
|
127
|
+
* @remarks
|
128
128
|
* This is a convenience getter for the data in `this.extensions.executionunits` as this
|
129
129
|
* is an ArvoEvent object which natively defines this extension on the CloudEvent
|
130
130
|
* spec.
|
@@ -135,7 +135,7 @@ export default class ArvoEvent<TData extends ArvoEventData = ArvoEventData, TExt
|
|
135
135
|
* This field contains the W3C Trace Context traceparent header.
|
136
136
|
* @returns The value of the 'traceparent' field.
|
137
137
|
*
|
138
|
-
* @
|
138
|
+
* @remarks
|
139
139
|
* This is a convenience getter for the data in `this.extensions.traceparent` as this
|
140
140
|
* is an ArvoEvent object which natively defines this extension on the CloudEvent
|
141
141
|
* spec.
|
@@ -146,7 +146,7 @@ export default class ArvoEvent<TData extends ArvoEventData = ArvoEventData, TExt
|
|
146
146
|
* This field contains the W3C Trace Context tracestate header.
|
147
147
|
* @returns The value of the 'tracestate' field, or undefined if not set.
|
148
148
|
*
|
149
|
-
* @
|
149
|
+
* @remarks
|
150
150
|
* This is a convenience getter for the data in `this.extensions.tracestate` as this
|
151
151
|
* is an ArvoEvent object which natively defines this extension on the CloudEvent
|
152
152
|
* spec.
|
package/dist/ArvoEvent/index.js
CHANGED
@@ -129,7 +129,7 @@ var ArvoEvent = /** @class */ (function () {
|
|
129
129
|
* This field represents the intended recipient or destination of the event.
|
130
130
|
* @returns The value of the 'to' field.
|
131
131
|
*
|
132
|
-
* @
|
132
|
+
* @remarks
|
133
133
|
* This is a convenience getter for the data in `this.extensions.to` as this
|
134
134
|
* is an ArvoEvent object which natively defines this extension on the CloudEvent
|
135
135
|
* spec.
|
@@ -146,7 +146,7 @@ var ArvoEvent = /** @class */ (function () {
|
|
146
146
|
* This field contains access control information for the event.
|
147
147
|
* @returns The value of the 'accesscontrol' field.
|
148
148
|
*
|
149
|
-
* @
|
149
|
+
* @remarks
|
150
150
|
* This is a convenience getter for the data in `this.extensions.accesscontrol` as this
|
151
151
|
* is an ArvoEvent object which natively defines this extension on the CloudEvent
|
152
152
|
* spec.
|
@@ -163,7 +163,7 @@ var ArvoEvent = /** @class */ (function () {
|
|
163
163
|
* This field indicate an alternative destination for the event.
|
164
164
|
* @returns The value of the 'redirectto' field.
|
165
165
|
*
|
166
|
-
* @
|
166
|
+
* @remarks
|
167
167
|
* This is a convenience getter for the data in `this.extensions.redirectto` as this
|
168
168
|
* is an ArvoEvent object which natively defines this extension on the CloudEvent
|
169
169
|
* spec.
|
@@ -180,7 +180,7 @@ var ArvoEvent = /** @class */ (function () {
|
|
180
180
|
* This field contains information about the execution units associated with the event.
|
181
181
|
* @returns The value of the 'executionunits' field.
|
182
182
|
*
|
183
|
-
* @
|
183
|
+
* @remarks
|
184
184
|
* This is a convenience getter for the data in `this.extensions.executionunits` as this
|
185
185
|
* is an ArvoEvent object which natively defines this extension on the CloudEvent
|
186
186
|
* spec.
|
@@ -197,7 +197,7 @@ var ArvoEvent = /** @class */ (function () {
|
|
197
197
|
* This field contains the W3C Trace Context traceparent header.
|
198
198
|
* @returns The value of the 'traceparent' field.
|
199
199
|
*
|
200
|
-
* @
|
200
|
+
* @remarks
|
201
201
|
* This is a convenience getter for the data in `this.extensions.traceparent` as this
|
202
202
|
* is an ArvoEvent object which natively defines this extension on the CloudEvent
|
203
203
|
* spec.
|
@@ -214,7 +214,7 @@ var ArvoEvent = /** @class */ (function () {
|
|
214
214
|
* This field contains the W3C Trace Context tracestate header.
|
215
215
|
* @returns The value of the 'tracestate' field, or undefined if not set.
|
216
216
|
*
|
217
|
-
* @
|
217
|
+
* @remarks
|
218
218
|
* This is a convenience getter for the data in `this.extensions.tracestate` as this
|
219
219
|
* is an ArvoEvent object which natively defines this extension on the CloudEvent
|
220
220
|
* spec.
|
@@ -7,8 +7,6 @@ export declare const ArvoCoreTracer: import("@opentelemetry/api").Tracer;
|
|
7
7
|
/**
|
8
8
|
* Logs a message to a span with additional parameters.
|
9
9
|
* @param params - The parameters for the log message.
|
10
|
-
* @param params.level - The log level of the message.
|
11
|
-
* @param params.message - The main content of the log message.
|
12
10
|
* @param span - The span to log the message to. If not provided, the active span is used.
|
13
11
|
* If no active span is available, the message is logged to the console.
|
14
12
|
*/
|
@@ -24,8 +24,6 @@ exports.ArvoCoreTracer = api_1.trace.getTracer(pkg.name, pkg.version);
|
|
24
24
|
/**
|
25
25
|
* Logs a message to a span with additional parameters.
|
26
26
|
* @param params - The parameters for the log message.
|
27
|
-
* @param params.level - The log level of the message.
|
28
|
-
* @param params.message - The main content of the log message.
|
29
27
|
* @param span - The span to log the message to. If not provided, the active span is used.
|
30
28
|
* If no active span is available, the message is logged to the console.
|
31
29
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "arvo-core",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.30",
|
4
4
|
"description": "This core package contains all the core classes and components of the Arvo Event Driven System",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"scripts": {
|
@@ -42,7 +42,8 @@
|
|
42
42
|
"ts-node": "^10.9.2",
|
43
43
|
"typedoc": "^0.26.6",
|
44
44
|
"typedoc-plugin-zod": "^1.2.1",
|
45
|
-
"typescript": "^5.5.4"
|
45
|
+
"typescript": "^5.5.4",
|
46
|
+
"typedoc-github-theme": "^0.1.2"
|
46
47
|
},
|
47
48
|
"dependencies": {
|
48
49
|
"@opentelemetry/api": "^1.9.0",
|