genesys-cloud-service-discovery-web 3.0.494 → 3.0.497

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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const ENVS: readonly ["dev", "test", "prod", "fedramp"];
1
+ export declare const ENVS: readonly ["dev", "test", "prod", "fedramp", "eusc"];
2
2
  export declare const STATUSES: readonly ["alpha", "beta", "stable", "archived"];
3
3
  export interface Environment {
4
4
  env: typeof ENVS[number];
@@ -37,13 +37,13 @@ export declare type EnvironmentFilters = {
37
37
  };
38
38
  /**
39
39
  * Retrieves the list of Genesys Cloud environment/region deployments.
40
- * Defaults to only returning stable, publically available deployments (e.g. prod, fedramp)
40
+ * Defaults to only returning stable, publically available deployments (e.g. prod, fedramp, and eusc)
41
41
  */
42
42
  export declare const getEnvironments: (filters?: EnvironmentFilters) => Environment[];
43
43
  /**
44
44
  * Whether or not the given url is a known Genesys Cloud deployment. If no filters
45
- * are provided, the default behavior is to only check stable, publically available deployments
46
- * (e.g. prod, fedramp).
45
+ * are provided, the default behavior is to only check stable, publicly available deployments
46
+ * (e.g. prod, fedramp, eusc).
47
47
  *
48
48
  * - throws an error if passed an invalid url
49
49
  * - returns false for localhost
@@ -51,8 +51,8 @@ export declare const getEnvironments: (filters?: EnvironmentFilters) => Environm
51
51
  export declare const isKnown: (url: string, filters?: EnvironmentFilters | undefined) => boolean;
52
52
  /**
53
53
  * Retrieve the Genesys Cloud `Environment` for a given url. If no filters
54
- * are provided, the default behavior is to only check stable, publically available deployments
55
- * (e.g. prod, fedramp).
54
+ * are provided, the default behavior is to only check stable, publicly available deployments
55
+ * (e.g. prod, fedramp, eusc).
56
56
  *
57
57
  * - throws an error if passed an invalid url
58
58
  * - returns undefined if no match is found
package/index.js CHANGED
@@ -234,10 +234,10 @@ var _environments = [
234
234
  ];
235
235
 
236
236
  var environments = _environments;
237
- var ENVS = ["dev", "test", "prod", "fedramp"];
237
+ var ENVS = ["dev", "test", "prod", "fedramp", "eusc"];
238
238
  var STATUSES = ["alpha", "beta", "stable", "archived"];
239
239
  var DEFAULT_LOCAL_HOSTNAMES = ["localhost", "127.0.0.1"];
240
- var STABLE_PUBLIC_ENVS_FILTERS = { env: ["prod", "fedramp"], status: ["stable"] };
240
+ var STABLE_PUBLIC_ENVS_FILTERS = { env: ["prod", "fedramp", "eusc"], status: ["stable"] };
241
241
  var NO_FILTERS = {};
242
242
  var endsWith = function (s1, s2) {
243
243
  return s1.slice(s1.length - s2.length) === s2;
@@ -247,7 +247,7 @@ var matchesHostname = function (hostname) { return function (domain) {
247
247
  }; };
248
248
  /**
249
249
  * Retrieves the list of Genesys Cloud environment/region deployments.
250
- * Defaults to only returning stable, publically available deployments (e.g. prod, fedramp)
250
+ * Defaults to only returning stable, publically available deployments (e.g. prod, fedramp, and eusc)
251
251
  */
252
252
  var getEnvironments = function (filters) {
253
253
  if (filters === void 0) { filters = STABLE_PUBLIC_ENVS_FILTERS; }
@@ -259,8 +259,8 @@ var getEnvironments = function (filters) {
259
259
  };
260
260
  /**
261
261
  * Whether or not the given url is a known Genesys Cloud deployment. If no filters
262
- * are provided, the default behavior is to only check stable, publically available deployments
263
- * (e.g. prod, fedramp).
262
+ * are provided, the default behavior is to only check stable, publicly available deployments
263
+ * (e.g. prod, fedramp, eusc).
264
264
  *
265
265
  * - throws an error if passed an invalid url
266
266
  * - returns false for localhost
@@ -268,8 +268,8 @@ var getEnvironments = function (filters) {
268
268
  var isKnown = function (url, filters) { return !!parse(url, filters); };
269
269
  /**
270
270
  * Retrieve the Genesys Cloud `Environment` for a given url. If no filters
271
- * are provided, the default behavior is to only check stable, publically available deployments
272
- * (e.g. prod, fedramp).
271
+ * are provided, the default behavior is to only check stable, publicly available deployments
272
+ * (e.g. prod, fedramp, eusc).
273
273
  *
274
274
  * - throws an error if passed an invalid url
275
275
  * - returns undefined if no match is found
package/index.umd.js CHANGED
@@ -977,10 +977,10 @@
977
977
  ];
978
978
 
979
979
  var environments = _environments;
980
- var ENVS = ["dev", "test", "prod", "fedramp"];
980
+ var ENVS = ["dev", "test", "prod", "fedramp", "eusc"];
981
981
  var STATUSES = ["alpha", "beta", "stable", "archived"];
982
982
  var DEFAULT_LOCAL_HOSTNAMES = ["localhost", "127.0.0.1"];
983
- var STABLE_PUBLIC_ENVS_FILTERS = { env: ["prod", "fedramp"], status: ["stable"] };
983
+ var STABLE_PUBLIC_ENVS_FILTERS = { env: ["prod", "fedramp", "eusc"], status: ["stable"] };
984
984
  var NO_FILTERS = {};
985
985
  var endsWith = function (s1, s2) {
986
986
  return s1.slice(s1.length - s2.length) === s2;
@@ -990,7 +990,7 @@
990
990
  }; };
991
991
  /**
992
992
  * Retrieves the list of Genesys Cloud environment/region deployments.
993
- * Defaults to only returning stable, publically available deployments (e.g. prod, fedramp)
993
+ * Defaults to only returning stable, publically available deployments (e.g. prod, fedramp, and eusc)
994
994
  */
995
995
  var getEnvironments = function (filters) {
996
996
  if (filters === void 0) { filters = STABLE_PUBLIC_ENVS_FILTERS; }
@@ -1002,8 +1002,8 @@
1002
1002
  };
1003
1003
  /**
1004
1004
  * Whether or not the given url is a known Genesys Cloud deployment. If no filters
1005
- * are provided, the default behavior is to only check stable, publically available deployments
1006
- * (e.g. prod, fedramp).
1005
+ * are provided, the default behavior is to only check stable, publicly available deployments
1006
+ * (e.g. prod, fedramp, eusc).
1007
1007
  *
1008
1008
  * - throws an error if passed an invalid url
1009
1009
  * - returns false for localhost
@@ -1011,8 +1011,8 @@
1011
1011
  var isKnown = function (url, filters) { return !!parse$1(url, filters); };
1012
1012
  /**
1013
1013
  * Retrieve the Genesys Cloud `Environment` for a given url. If no filters
1014
- * are provided, the default behavior is to only check stable, publically available deployments
1015
- * (e.g. prod, fedramp).
1014
+ * are provided, the default behavior is to only check stable, publicly available deployments
1015
+ * (e.g. prod, fedramp, eusc).
1016
1016
  *
1017
1017
  * - throws an error if passed an invalid url
1018
1018
  * - returns undefined if no match is found
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genesys-cloud-service-discovery-web",
3
- "version": "3.0.494",
3
+ "version": "3.0.497",
4
4
  "description": "Javascript library for discovering region deployments in Genesys Cloud",
5
5
  "main": "index.js",
6
6
  "browser": "index.umd.js",