@rockcarver/frodo-lib 0.11.1-2 → 0.11.1-3

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/CHANGELOG.md CHANGED
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.11.1-3] - 2022-08-18
11
+
10
12
  ## [0.11.1-2] - 2022-08-18
11
13
 
12
14
  ## [0.11.1-1] - 2022-08-18
@@ -417,7 +419,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
417
419
  - Fixed problem with adding connection profiles
418
420
  - Miscellaneous bug fixes
419
421
 
420
- [Unreleased]: https://github.com/rockcarver/frodo-lib/compare/v0.11.1-2...HEAD
422
+ [Unreleased]: https://github.com/rockcarver/frodo-lib/compare/v0.11.1-3...HEAD
423
+
424
+ [0.11.1-3]: https://github.com/rockcarver/frodo-lib/compare/v0.11.1-2...v0.11.1-3
421
425
 
422
426
  [0.11.1-2]: https://github.com/rockcarver/frodo-lib/compare/v0.11.1-1...v0.11.1-2
423
427
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rockcarver/frodo-lib",
3
- "version": "0.11.1-2",
3
+ "version": "0.11.1-3",
4
4
  "type": "module",
5
5
  "description": "ForgeROck DO Library, frodo-lib, a library to manage ForgeRock platform deployments supporting Identity Cloud tenants, ForgeOps deployments, and classic deployments.",
6
6
  "keywords": [
package/src/index.js CHANGED
@@ -27,7 +27,12 @@ export * as Secrets from './ops/SecretsOps.js';
27
27
  export * as Startup from './ops/StartupOps.js';
28
28
  export * as Theme from './ops/ThemeOps.js';
29
29
  export * as Variables from './ops/VariablesOps.js';
30
+ // TODO: revisit if there are better ways
31
+ export * as Utils from './ops/utils/OpsUtils.js';
30
32
  // TODO: reconsider the aproach to pass in state from client
31
33
  // lib should be stateless, an aplication should own its state
32
34
  export * as state from './storage/SessionStorage.js';
35
+ // TODO: need to figure out if this is the right approach or if we should even
36
+ // use a public oauth2/oidc library. might be ok for now since there is only
37
+ // one place where the cli needs to execute an oauth flow.
33
38
  export * as OAuth2OIDCApi from './api/OAuth2OIDCApi.js';
@@ -1,5 +1,6 @@
1
1
  import storage from '../../storage/SessionStorage.js';
2
2
  import * as global from '../../storage/StaticStorage.js';
3
+ import { getRealmName as _getRealmName } from '../../api/utils/ApiUtils.js';
3
4
 
4
5
  // TODO: do we really need this? if yes: document
5
6
  export function escapeRegExp(str) {
@@ -74,3 +75,12 @@ export function isEqualJson(obj1, obj2, ignoreKeys = []) {
74
75
 
75
76
  return true;
76
77
  }
78
+
79
+ /**
80
+ * Get current realm name
81
+ * @param {String} realm realm
82
+ * @returns {String} name of the realm. /alpha -> alpha
83
+ */
84
+ export function getRealmName(realm) {
85
+ return _getRealmName(realm);
86
+ }