webex 1.154.1 → 1.156.0
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 +1 -1
- package/package.json +19 -19
- package/test/unit/spec/webex.js +31 -0
- package/umd/webex.min.js +2 -2
- package/umd/webex.min.js.map +1 -1
package/dist/webex.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webex",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.156.0",
|
|
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.
|
|
34
|
-
"@webex/internal-plugin-calendar": "1.
|
|
35
|
-
"@webex/internal-plugin-device": "1.
|
|
36
|
-
"@webex/internal-plugin-presence": "1.
|
|
37
|
-
"@webex/internal-plugin-support": "1.
|
|
38
|
-
"@webex/plugin-attachment-actions": "1.
|
|
39
|
-
"@webex/plugin-device-manager": "1.
|
|
40
|
-
"@webex/plugin-logger": "1.
|
|
41
|
-
"@webex/plugin-meetings": "1.
|
|
42
|
-
"@webex/plugin-messages": "1.
|
|
43
|
-
"@webex/plugin-memberships": "1.
|
|
44
|
-
"@webex/plugin-people": "1.
|
|
45
|
-
"@webex/plugin-rooms": "1.
|
|
46
|
-
"@webex/plugin-teams": "1.
|
|
47
|
-
"@webex/plugin-team-memberships": "1.
|
|
48
|
-
"@webex/plugin-webhooks": "1.
|
|
33
|
+
"@webex/plugin-authorization": "1.156.0",
|
|
34
|
+
"@webex/internal-plugin-calendar": "1.156.0",
|
|
35
|
+
"@webex/internal-plugin-device": "1.156.0",
|
|
36
|
+
"@webex/internal-plugin-presence": "1.156.0",
|
|
37
|
+
"@webex/internal-plugin-support": "1.156.0",
|
|
38
|
+
"@webex/plugin-attachment-actions": "1.156.0",
|
|
39
|
+
"@webex/plugin-device-manager": "1.156.0",
|
|
40
|
+
"@webex/plugin-logger": "1.156.0",
|
|
41
|
+
"@webex/plugin-meetings": "1.156.0",
|
|
42
|
+
"@webex/plugin-messages": "1.156.0",
|
|
43
|
+
"@webex/plugin-memberships": "1.156.0",
|
|
44
|
+
"@webex/plugin-people": "1.156.0",
|
|
45
|
+
"@webex/plugin-rooms": "1.156.0",
|
|
46
|
+
"@webex/plugin-teams": "1.156.0",
|
|
47
|
+
"@webex/plugin-team-memberships": "1.156.0",
|
|
48
|
+
"@webex/plugin-webhooks": "1.156.0",
|
|
49
49
|
"lodash": "^4.17.21",
|
|
50
|
-
"@webex/webex-core": "1.
|
|
50
|
+
"@webex/webex-core": "1.156.0",
|
|
51
51
|
"@babel/runtime-corejs2": "^7.14.8",
|
|
52
|
-
"@webex/storage-adapter-local-storage": "1.
|
|
52
|
+
"@webex/storage-adapter-local-storage": "1.156.0",
|
|
53
53
|
"envify": "^4.1.0"
|
|
54
54
|
}
|
|
55
55
|
}
|
package/test/unit/spec/webex.js
CHANGED
|
@@ -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
|
});
|