@devkong/cli-nx 0.0.38 → 0.0.40

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": "@devkong/cli-nx",
3
- "version": "0.0.38",
3
+ "version": "0.0.40",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./src/index.d.ts",
@@ -4,26 +4,16 @@ kotlin.code.style=official
4
4
  javaVersion=21
5
5
 
6
6
  # https://mvnrepository.com/artifact/org.jlleitschuh.gradle/ktlint-gradle
7
- jlleitschuhGradlePluginVersion=12.1.1
8
- # Gradle properties
9
- org.gradle.jvmargs=-Xms4g -Xmx4g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
10
- kotlin.code.style=official
11
- javaVersion=21
12
-
13
- # https://mvnrepository.com/artifact/org.jlleitschuh.gradle/ktlint-gradle
14
- jlleitschuhGradlePluginVersion=12.1.1
15
-
16
- # https://mvnrepository.com/artifact/io.github.khalilou88.jnxplus/jnxplus-gradle-plugin
17
- jnxplusGradlePluginVersion=0.4.0
7
+ jlleitschuhGradlePluginVersion=12.3.0
18
8
 
19
9
  #https://mvnrepository.com/artifact/com.networknt/json-schema-validator
20
- jsonSchemaValidatorVersion=1.5.6
10
+ jsonSchemaValidatorVersion=1.5.8
21
11
 
22
12
  # https://mvnrepository.com/artifact/io.github.khalilou88.jnxplus/jnxplus-gradle-plugin
23
13
  jnxplusGradlePluginVersion=0.4.0
24
14
 
25
15
  #https://mvnrepository.com/artifact/com.networknt/json-schema-validator
26
- jsonSchemaValidatorVersion=1.5.6
16
+ jsonSchemaValidatorVersion=1.5.8
27
17
 
28
18
  # https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib
29
19
  kotlinVersion=2.1.10
@@ -2,5 +2,5 @@
2
2
  "id": "<%=id%>",
3
3
  "name": "<%=name%>",
4
4
  "sdk": "<%=platform%>",
5
- "alias": {}
6
- }
5
+ "category": "unknown"
6
+ }
@@ -4,8 +4,6 @@ quarkus.log.console.format=%d{yyyy-MM-dd'T'HH:mm:ss,SSS} | %-5p | %s thread=%t m
4
4
  quarkus.otel.enabled=true
5
5
  quarkus.otel.exporter.otlp.enabled=false
6
6
 
7
- kong.sdk.binding.http.enabled=true
8
- kong.sdk.binding.queue.enabled=true
9
7
 
10
8
  # non-prod profiles
11
9
 
@@ -6,11 +6,12 @@
6
6
  "type": "debugpy",
7
7
  "request": "launch",
8
8
  "module": "pytest",
9
+ "cwd": "${workspaceFolder}/src",
9
10
  "windows": {
10
- "python": ".venv\\Scripts\\python.exe"
11
+ "python": "${workspaceFolder}\\.venv\\Scripts\\python.exe"
11
12
  },
12
13
  "linux": {
13
- "python": ".venv/bin/python"
14
+ "python": "${workspaceFolder}/.venv/bin/python"
14
15
  },
15
16
  "justMyCode": true
16
17
  }
@@ -2,5 +2,5 @@
2
2
  "id": "<%=id%>",
3
3
  "name": "<%=name%>",
4
4
  "sdk": "<%=platform%>",
5
- "alias": {}
6
- }
5
+ "category": "unknown"
6
+ }
@@ -1,5 +1,6 @@
1
1
  from kong.sdk.conftest import ExtensionFixture
2
- from src.main import InputData, Main
2
+
3
+ from main import InputData, Main
3
4
 
4
5
 
5
6
  # The test function to validate the behavior of the extension
@@ -1,76 +0,0 @@
1
- ### Healthcheck
2
- GET http://localhost:8241/q/health
3
-
4
- ### Schema
5
- GET http://localhost:8241/v1/schema
6
-
7
- ### HTTP call template (please keep it up to date)
8
- POST http://localhost:8241/v1/handle
9
- Content-Type: application/cloudevents+json
10
-
11
- {
12
- "id": "6056346e-af43-49aa-b794-977aa716ddc7",
13
- "time": "2024-04-25T11:30:50.517Z",
14
- "type": "KongTaskCallEvent",
15
- "source": "/idea/http",
16
- "specversion": "1.0",
17
- "datacontenttype": "application/json",
18
- "sessionagent": "JOB",
19
- "sessionid": "1",
20
- "sessionrootid": null,
21
- "sessionparentid": null,
22
- "sessiontenant": "sanb",
23
- "sessionrootcreated": "2024-01-01T12:00:00Z",
24
- "sessioncreated": "2024-01-01T12:00:00Z",
25
- "sessionbusinesskey": "ABC123",
26
- "sessionsource": "/idea/http",
27
- "sessiontopic": "/sandbox/test-events",
28
- "sessionpriority": "MAIN",
29
- "sessionexecutionmode": "SYNC",
30
- "sessiondeadline": "2024-12-31T23:59:59Z",
31
- "data": {
32
- "input": {
33
- "name": "Person",
34
- "age": 10,
35
- "gender": "MALE",
36
- "hobbies": ["football"],
37
- "address": {
38
- "street": "testStreet",
39
- "city": "testCity",
40
- "postalCode": "testCode"
41
- }
42
- },
43
- "output": {
44
- "type": "kong-process-events",
45
- "filter": ".output",
46
- "returns": []
47
- },
48
- "invoke": {
49
- "prefix": "34370f477a4a48a8",
50
- "retry": {
51
- "maxAttempts": 1,
52
- "attemptDelay": "PT5S",
53
- "attemptTimeout": "PT30S"
54
- },
55
- "circuitBreaker": {
56
- "enabled": true,
57
- "delay": "PT5S",
58
- "requestVolumeThreshold": 20,
59
- "failureRatio": 0.5,
60
- "successThreshold": 1
61
- },
62
- "cache": {
63
- "enabled": false,
64
- "key": ".",
65
- "ttl": "P7D",
66
- "onFailure": "SKIP"
67
- },
68
- "rateLimiter": {
69
- "enabled": true,
70
- "value": 100,
71
- "window": "PT1S",
72
- "minSpacing": "PT0S"
73
- }
74
- }
75
- }
76
- }