@webex/http-core
Advanced tools
Comparing version 1.75.1 to 1.76.0
@@ -13,2 +13,4 @@ 'use strict'; | ||
var _events = require('events'); | ||
var _request2 = require('./request'); | ||
@@ -18,6 +20,2 @@ | ||
var _common = require('@webex/common'); | ||
var _events = require('events'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -29,2 +27,6 @@ | ||
*/ | ||
/*! | ||
* Copyright (c) 2015-2019 Cisco Systems, Inc. See LICENSE file. | ||
*/ | ||
function request(options) { | ||
@@ -37,5 +39,2 @@ if (options.url) { | ||
options.headers = options.headers || {}; | ||
if (!_common.inBrowser && !options.headers['user-agent']) { | ||
options.headers['user-agent'] = '@webex/http-core'; | ||
} | ||
@@ -86,5 +85,3 @@ options.download = new _events.EventEmitter(); | ||
} | ||
} /*! | ||
* Copyright (c) 2015-2019 Cisco Systems, Inc. See LICENSE file. | ||
*/ | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@webex/http-core", | ||
"version": "1.75.1", | ||
"version": "1.76.0", | ||
"description": "Core HTTP library for the Cisco Webex", | ||
@@ -25,3 +25,3 @@ "license": "MIT", | ||
"lodash": "^4.17.14", | ||
"@webex/common": "1.75.1", | ||
"@webex/common": "1.76.0", | ||
"file-type": "^3.9.0", | ||
@@ -28,0 +28,0 @@ "request": "^2.81.0", |
@@ -5,6 +5,6 @@ /*! | ||
import _request from './request'; | ||
import {inBrowser} from '@webex/common'; | ||
import {EventEmitter} from 'events'; | ||
import _request from './request'; | ||
/** | ||
@@ -21,7 +21,3 @@ * @param {Object} options | ||
options.headers = options.headers || {}; | ||
if (!inBrowser && !options.headers['user-agent']) { | ||
options.headers['user-agent'] = '@webex/http-core'; | ||
} | ||
options.download = new EventEmitter(); | ||
@@ -28,0 +24,0 @@ options.upload = new EventEmitter(); |
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
171410
3275
+ Added@webex/common@1.76.0(transitive)
- Removed@webex/common@1.75.1(transitive)
Updated@webex/common@1.76.0