@elastic/apm-rum-core
Advanced tools
Comparing version 4.5.1 to 4.5.2
@@ -6,2 +6,13 @@ # Change Log | ||
## [4.5.2](https://github.com/elastic/apm-agent-rum-js/compare/@elastic/apm-rum-core@4.5.1...@elastic/apm-rum-core@4.5.2) (2019-08-08) | ||
### Bug Fixes | ||
* **rum-core:** do not polyfill the global Promise variable ([#366](https://github.com/elastic/apm-agent-rum-js/issues/366)) ([f5dc95c](https://github.com/elastic/apm-agent-rum-js/commit/f5dc95c)) | ||
## [4.5.1](https://github.com/elastic/apm-agent-rum-js/compare/@elastic/apm-rum-core@4.5.0...@elastic/apm-rum-core@4.5.1) (2019-08-05) | ||
@@ -8,0 +19,0 @@ |
@@ -6,2 +6,4 @@ "use strict"; | ||
var _es6Promise = require("es6-promise"); | ||
var _queue = _interopRequireDefault(require("./queue")); | ||
@@ -94,3 +96,3 @@ | ||
_makeHttpRequest(method, url, payload, headers) { | ||
return new Promise(function (resolve, reject) { | ||
return new _es6Promise.Promise(function (resolve, reject) { | ||
var xhr = new window.XMLHttpRequest(); | ||
@@ -97,0 +99,0 @@ xhr[_patchUtils.XHR_IGNORE] = true; |
@@ -6,2 +6,4 @@ "use strict"; | ||
var _es6Promise = require("es6-promise"); | ||
var _patchUtils = require("./patch-utils"); | ||
@@ -56,3 +58,3 @@ | ||
}; | ||
return new Promise(function (resolve, reject) { | ||
return new _es6Promise.Promise(function (resolve, reject) { | ||
_patchUtils.globalState.fetchInProgress = true; | ||
@@ -74,3 +76,4 @@ scheduleTask(task); | ||
resolve(response); | ||
Promise.resolve().then(() => { | ||
_es6Promise.Promise.resolve().then(() => { | ||
task.data.response = response; | ||
@@ -81,3 +84,4 @@ invokeTask(task); | ||
reject(error); | ||
Promise.resolve().then(() => { | ||
_es6Promise.Promise.resolve().then(() => { | ||
task.data.error = error; | ||
@@ -84,0 +88,0 @@ invokeTask(task); |
@@ -6,2 +6,4 @@ "use strict"; | ||
var _es6Promise = require("es6-promise"); | ||
var _transaction = _interopRequireDefault(require("./transaction")); | ||
@@ -156,3 +158,3 @@ | ||
tr.onEnd = () => { | ||
return Promise.resolve().then(() => { | ||
return _es6Promise.Promise.resolve().then(() => { | ||
if (_env.__DEV__) { | ||
@@ -159,0 +161,0 @@ this._logger.debug('TransactionService transaction finished', tr); |
@@ -37,2 +37,27 @@ | ||
--- | ||
This product relies on es6-promise | ||
Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
of the Software, and to permit persons to whom the Software is furnished to do | ||
so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
--- | ||
This product relies on opentracing | ||
@@ -63,32 +88,2 @@ | ||
--- | ||
This product relies on stack-generator | ||
This is free and unencumbered software released into the public domain. | ||
Anyone is free to copy, modify, publish, use, compile, sell, or | ||
distribute this software, either in source code form or as a compiled | ||
binary, for any purpose, commercial or non-commercial, and by any | ||
means. | ||
In jurisdictions that recognize copyright laws, the author or authors | ||
of this software dedicate any and all copyright interest in the | ||
software to the public domain. We make this dedication for the benefit | ||
of the public at large and to the detriment of our heirs and | ||
successors. We intend this dedication to be an overt act of | ||
relinquishment in perpetuity of all present and future rights to this | ||
software under copyright law. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
OTHER DEALINGS IN THE SOFTWARE. | ||
For more information, please refer to <http://unlicense.org> | ||
--- | ||
This product relies on uuid | ||
@@ -95,0 +90,0 @@ |
{ | ||
"name": "@elastic/apm-rum-core", | ||
"version": "4.5.1", | ||
"version": "4.5.2", | ||
"description": "Elastic apm core", | ||
@@ -35,7 +35,7 @@ "license": "MIT", | ||
"error-stack-parser": "^1.3.5", | ||
"es6-promise": "^4.2.8", | ||
"opentracing": "^0.14.3", | ||
"stack-generator": "^1.0.7", | ||
"uuid": "^3.1.0" | ||
}, | ||
"gitHead": "c8e7fa110ce30578956906acaab6d23883531476" | ||
"gitHead": "ee46b7c48e5174505298d5c8014339b130e4d45d" | ||
} |
@@ -26,2 +26,3 @@ /** | ||
import { Promise } from 'es6-promise' | ||
import Queue from './queue' | ||
@@ -28,0 +29,0 @@ import throttle from './throttle' |
@@ -26,2 +26,3 @@ /** | ||
import { Promise } from 'es6-promise' | ||
import { globalState } from './patch-utils' | ||
@@ -28,0 +29,0 @@ import { SCHEDULE, INVOKE, FETCH } from '../constants' |
@@ -26,2 +26,3 @@ /** | ||
import { Promise } from 'es6-promise' | ||
import Transaction from './transaction' | ||
@@ -28,0 +29,0 @@ import { extend, getPageLoadMarks } from '../common/utils' |
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
239823
0
6906
+ Addedes6-promise@^4.2.8
+ Addedes6-promise@4.2.8(transitive)
- Removedstack-generator@^1.0.7
- Removedstack-generator@1.1.0(transitive)
- Removedstackframe@1.3.4(transitive)