webex 1.155.0 → 1.156.2

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/dist/webex.js CHANGED
@@ -60,7 +60,7 @@ var config = require('./config'); // documentation.js puts hashes in relative ur
60
60
 
61
61
  var Webex = WebexCore.extend({
62
62
  webex: true,
63
- version: "1.155.0"
63
+ version: "1.156.2"
64
64
  });
65
65
  /**
66
66
  * Create a new {@link Webex} instance
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webex",
3
- "version": "1.155.0",
3
+ "version": "1.156.2",
4
4
  "description": "SDK for Cisco Webex",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -30,26 +30,26 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@babel/polyfill": "^7.12.1",
33
- "@webex/plugin-authorization": "1.155.0",
34
- "@webex/internal-plugin-calendar": "1.155.0",
35
- "@webex/internal-plugin-device": "1.155.0",
36
- "@webex/internal-plugin-presence": "1.155.0",
37
- "@webex/internal-plugin-support": "1.155.0",
38
- "@webex/plugin-attachment-actions": "1.155.0",
39
- "@webex/plugin-device-manager": "1.155.0",
40
- "@webex/plugin-logger": "1.155.0",
41
- "@webex/plugin-meetings": "1.155.0",
42
- "@webex/plugin-messages": "1.155.0",
43
- "@webex/plugin-memberships": "1.155.0",
44
- "@webex/plugin-people": "1.155.0",
45
- "@webex/plugin-rooms": "1.155.0",
46
- "@webex/plugin-teams": "1.155.0",
47
- "@webex/plugin-team-memberships": "1.155.0",
48
- "@webex/plugin-webhooks": "1.155.0",
33
+ "@webex/plugin-authorization": "1.156.2",
34
+ "@webex/internal-plugin-calendar": "1.156.2",
35
+ "@webex/internal-plugin-device": "1.156.2",
36
+ "@webex/internal-plugin-presence": "1.156.2",
37
+ "@webex/internal-plugin-support": "1.156.2",
38
+ "@webex/plugin-attachment-actions": "1.156.2",
39
+ "@webex/plugin-device-manager": "1.156.2",
40
+ "@webex/plugin-logger": "1.156.2",
41
+ "@webex/plugin-meetings": "1.156.2",
42
+ "@webex/plugin-messages": "1.156.2",
43
+ "@webex/plugin-memberships": "1.156.2",
44
+ "@webex/plugin-people": "1.156.2",
45
+ "@webex/plugin-rooms": "1.156.2",
46
+ "@webex/plugin-teams": "1.156.2",
47
+ "@webex/plugin-team-memberships": "1.156.2",
48
+ "@webex/plugin-webhooks": "1.156.2",
49
49
  "lodash": "^4.17.21",
50
- "@webex/webex-core": "1.155.0",
50
+ "@webex/webex-core": "1.156.2",
51
51
  "@babel/runtime-corejs2": "^7.14.8",
52
- "@webex/storage-adapter-local-storage": "1.155.0",
52
+ "@webex/storage-adapter-local-storage": "1.156.2",
53
53
  "envify": "^4.1.0"
54
54
  }
55
55
  }
@@ -23,5 +23,36 @@ describe('webex', () => {
23
23
  assert.equal(webex.version, version);
24
24
  });
25
25
  });
26
+
27
+ describe('fedramp', () => {
28
+ let webex;
29
+
30
+ const fedramp = {
31
+ hydra: 'https://api-usgov.webex.com/v1',
32
+ u2c: 'https://u2c.gov.ciscospark.com/u2c/api/v1'
33
+ };
34
+
35
+ it('is set false by default', () => {
36
+ webex = new Webex();
37
+ assert.equal(webex.config.fedramp, false);
38
+ });
39
+
40
+ it('sets correct services when fedramp is true', () => {
41
+ webex = Webex.init({
42
+ config: {
43
+ fedramp: true
44
+ },
45
+ credentials: {
46
+ access_token: 'Bearer 1234'
47
+ }
48
+ });
49
+
50
+ assert.property(webex.config, 'fedramp');
51
+ assert.equal(webex.config.fedramp, true);
52
+ assert.property(webex.config.services, 'discovery');
53
+ assert.equal(webex.config.services.discovery.hydra, fedramp.hydra);
54
+ assert.equal(webex.config.services.discovery.u2c, fedramp.u2c);
55
+ });
56
+ });
26
57
  });
27
58
  });