go-mokapi 0.39.0 → 0.40.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "go-mokapi",
3
- "version": "0.39.0",
3
+ "version": "0.40.0",
4
4
  "description": "Easy and flexible API mocking",
5
5
  "homepage": "https://mokapi.io",
6
6
  "repository": {
package/types/index.d.ts CHANGED
@@ -267,7 +267,7 @@ export type KafkaEventHandler = (message: KafkaEventMessage) => void | Promise<v
267
267
  * https://mokapi.io/docs/javascript-api/mokapi/eventhandler/KafkaEventMessage
268
268
  */
269
269
  export interface KafkaEventMessage {
270
- /** Kafka partition where the message was written to (read-only). */
270
+ /** Kafka offset of the kafka message */
271
271
  readonly offset: number;
272
272
 
273
273
  /** Kafka message key */
package/types/types.go ADDED
@@ -0,0 +1,28 @@
1
+ package types
2
+
3
+ import (
4
+ _ "embed"
5
+ )
6
+
7
+ //go:embed index.d.ts
8
+ var index string
9
+
10
+ //go:embed global.d.ts
11
+ var global string
12
+
13
+ var Mokapi = global + "\n" + index
14
+
15
+ //go:embed faker.d.ts
16
+ var Faker string
17
+
18
+ //go:embed http.d.ts
19
+ var Http string
20
+
21
+ //go:embed kafka.d.ts
22
+ var Kafka string
23
+
24
+ //go:embed mustache.d.ts
25
+ var Mustache string
26
+
27
+ //go:embed yaml.d.ts
28
+ var Yaml string