Skip to content

Commit

Permalink
HAWNG-666: jolokia search function not included in imports
Browse files Browse the repository at this point in the history
* When using Jolokia class, need to import the simple API functions from
  jolokia.js/simple as well as the core jolokia.js
  • Loading branch information
phantomjinx committed May 13, 2024
1 parent df4eea4 commit 60a9b3e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/management-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@hawtio/online-kubernetes-api": "workspace:*",
"@hawtio/react": "^1.2.4",
"eventemitter3": "^5.0.1",
"jolokia.js": "^2.0.0",
"jolokia.js": "^2.0.1",
"jquery": "^3.7.0",
"jsonpath": "^1.1.1",
"superstruct": "^1.0.4",
Expand Down
1 change: 1 addition & 0 deletions packages/management-api/src/managed-pod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Jolokia, {
Response as JolokiaResponse,
VersionResponse as JolokiaVersionResponse,
} from 'jolokia.js'
import 'jolokia.js/simple'
import $ from 'jquery'
import { log } from './globals'
import jsonpath from 'jsonpath'
Expand Down
19 changes: 18 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2075,7 +2075,7 @@ __metadata:
jest-extended: "npm:^4.0.0"
jest-fetch-mock: "npm:^3.0.3"
jest-watch-typeahead: "npm:^2.2.2"
jolokia.js: "npm:^2.0.0"
jolokia.js: "npm:^2.0.1"
jquery: "npm:^3.7.0"
jsonpath: "npm:^1.1.1"
replace: "npm:^1.2.2"
Expand Down Expand Up @@ -9756,6 +9756,23 @@ __metadata:
languageName: node
linkType: hard

"jolokia.js@npm:^2.0.1":
version: 2.0.1
resolution: "jolokia.js@npm:2.0.1"
dependencies:
jquery: "npm:^3.7.1"
peerDependencies:
cubism: ^1.6.0
jsdom: ^22.1.0
peerDependenciesMeta:
cubism:
optional: true
jsdom:
optional: true
checksum: 10/2286502549a51a0df6e6151d4d117ccdc4cd5c26965121ac58a954de64ff43437083c05aa1b1769581d7840d07c67f0f27152e77355d27e30fac4a6e13f89903
languageName: node
linkType: hard

"joycon@npm:^3.0.1":
version: 3.1.1
resolution: "joycon@npm:3.1.1"
Expand Down

0 comments on commit 60a9b3e

Please sign in to comment.