Socket
Socket
Sign inDemoInstall

@webex/http-core

Package Overview
Dependencies
Maintainers
21
Versions
1200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webex/http-core - npm Package Compare versions

Comparing version 1.80.29 to 1.80.30

4

dist/lib/interceptor.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc