@webex/http-core
Advanced tools
Comparing version 1.80.29 to 1.80.30
@@ -66,4 +66,2 @@ 'use strict'; | ||
} | ||
this.verboseLoggingEnabled = !!process.env.ENABLE_VERBOSE_NETWORK_LOGGING; | ||
} | ||
@@ -87,3 +85,3 @@ | ||
if (!this.verboseLoggingEnabled || !logger) { | ||
if (!process.env.ENABLE_VERBOSE_NETWORK_LOGGING || !logger) { | ||
return; | ||
@@ -90,0 +88,0 @@ } |
{ | ||
"name": "@webex/http-core", | ||
"version": "1.80.29", | ||
"version": "1.80.30", | ||
"description": "Core HTTP library for the Cisco Webex", | ||
@@ -25,3 +25,3 @@ "license": "MIT", | ||
"lodash": "^4.17.15", | ||
"@webex/common": "1.80.29", | ||
"@webex/common": "1.80.30", | ||
"file-type": "^3.9.0", | ||
@@ -28,0 +28,0 @@ "request": "^2.88.0", |
@@ -27,4 +27,2 @@ /*! | ||
} | ||
this.verboseLoggingEnabled = !!process.env.ENABLE_VERBOSE_NETWORK_LOGGING; | ||
} | ||
@@ -42,3 +40,3 @@ | ||
if (!this.verboseLoggingEnabled || !logger) { | ||
if (!process.env.ENABLE_VERBOSE_NETWORK_LOGGING || !logger) { | ||
return; | ||
@@ -45,0 +43,0 @@ } |
@@ -5,2 +5,4 @@ /*! | ||
import '@webex/internal-plugin-wdm'; | ||
import {assert} from '@webex/test-helper-chai'; | ||
@@ -15,13 +17,32 @@ import sinon from 'sinon'; | ||
before('create users', () => Promise.all([ | ||
testUsers.create({count: 1}) | ||
]) | ||
before('create users', () => testUsers.create({count: 1}) | ||
.then(([user]) => new Promise((resolve) => { | ||
setTimeout(() => { | ||
webex = new WebexCore({credentials: {supertoken: user.token}}); | ||
resolve(); | ||
}, 3000); | ||
}))); | ||
setTimeout(() => resolve(user), 3000); | ||
})) | ||
.then((user) => { | ||
webex = new WebexCore({credentials: user.token}); | ||
}) | ||
.then(() => webex.internal.device.register()) | ||
.then(() => webex.internal.services.waitForCatalog('postauth', 10))); | ||
describe('logOptions', () => { | ||
let flagged; | ||
let toggleVNL; | ||
before('check for verbose network logging and enable if needed', () => { | ||
// flag used to restore state of verbose network logging env variable | ||
flagged = !process.env.ENABLE_VERBOSE_NETWORK_LOGGING; | ||
// reused toggle that toggles verbose network logging env variable | ||
toggleVNL = () => { | ||
if (flagged) { | ||
process.env.ENABLE_VERBOSE_NETWORK_LOGGING = | ||
!process.env.ENABLE_VERBOSE_NETWORK_LOGGING; | ||
} | ||
}; | ||
// toggle to enabled if disabled | ||
toggleVNL(); | ||
}); | ||
it('calls logger plugin', () => { | ||
@@ -33,10 +54,14 @@ const spy = sinon.spy(webex.logger, 'info'); | ||
resource: 'people/me' | ||
}).then(() => { | ||
assert.called(spy); | ||
}).catch(() => { | ||
assert.called(spy); | ||
}); | ||
}) | ||
.then(() => { | ||
assert.called(spy); | ||
}); | ||
}); | ||
after('disable verbose network logging if needed', () => { | ||
// toggle to disabled if originally disabled | ||
toggleVNL(); | ||
}); | ||
}); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176474
3374
11
+ Added@webex/common@1.80.30(transitive)
- Removed@webex/common@1.80.29(transitive)
Updated@webex/common@1.80.30