v3.3.11
This commit is contained in:
parent
1e1874d86b
commit
efe70ab48e
816
changelog.md
816
changelog.md
File diff suppressed because it is too large
Load Diff
110
demo/dist/demo.js
vendored
110
demo/dist/demo.js
vendored
@ -767,11 +767,12 @@ function getLocationOrigin() {
|
||||
|
||||
// Oh dear IE10...
|
||||
if (!document.location.origin) {
|
||||
document.location.origin =
|
||||
return (
|
||||
document.location.protocol +
|
||||
'//' +
|
||||
document.location.hostname +
|
||||
(document.location.port ? ':' + document.location.port : '');
|
||||
(document.location.port ? ':' + document.location.port : '')
|
||||
);
|
||||
}
|
||||
|
||||
return document.location.origin;
|
||||
@ -1866,7 +1867,7 @@ Raven.prototype = {
|
||||
// webpack (using a build step causes webpack #1617). Grunt verifies that
|
||||
// this value matches package.json during build.
|
||||
// See: https://github.com/getsentry/raven-js/issues/465
|
||||
VERSION: '3.25.2',
|
||||
VERSION: '3.26.1',
|
||||
|
||||
debug: false,
|
||||
|
||||
@ -2032,7 +2033,7 @@ Raven.prototype = {
|
||||
if (isFunction$1(options)) {
|
||||
args = func || [];
|
||||
func = options;
|
||||
options = undefined;
|
||||
options = {};
|
||||
}
|
||||
|
||||
return this.wrap(options, func).apply(this, args);
|
||||
@ -2043,7 +2044,7 @@ Raven.prototype = {
|
||||
*
|
||||
* @param {object} options A specific set of options for this context [optional]
|
||||
* @param {function} func The function to be wrapped in a new context
|
||||
* @param {function} func A function to call before the try/catch wrapper [optional, private]
|
||||
* @param {function} _before A function to call before the try/catch wrapper [optional, private]
|
||||
* @return {function} The newly wrapped functions with a context
|
||||
*/
|
||||
wrap: function(options, func, _before) {
|
||||
@ -2156,8 +2157,9 @@ Raven.prototype = {
|
||||
_promiseRejectionHandler: function(event) {
|
||||
this._logDebug('debug', 'Raven caught unhandled promise rejection:', event);
|
||||
this.captureException(event.reason, {
|
||||
extra: {
|
||||
unhandledPromiseRejection: true
|
||||
mechanism: {
|
||||
type: 'onunhandledrejection',
|
||||
handled: false
|
||||
}
|
||||
});
|
||||
},
|
||||
@ -2834,7 +2836,15 @@ Raven.prototype = {
|
||||
}
|
||||
var originalCallback = args[0];
|
||||
if (isFunction$1(originalCallback)) {
|
||||
args[0] = self.wrap(originalCallback);
|
||||
args[0] = self.wrap(
|
||||
{
|
||||
mechanism: {
|
||||
type: 'instrument',
|
||||
data: {function: orig.name}
|
||||
}
|
||||
},
|
||||
originalCallback
|
||||
);
|
||||
}
|
||||
|
||||
// IE < 9 doesn't support .call/.apply on setInterval/setTimeout, but it
|
||||
@ -2861,7 +2871,15 @@ Raven.prototype = {
|
||||
// preserve arity
|
||||
try {
|
||||
if (fn && fn.handleEvent) {
|
||||
fn.handleEvent = self.wrap(fn.handleEvent);
|
||||
fn.handleEvent = self.wrap(
|
||||
{
|
||||
mechanism: {
|
||||
type: 'instrument',
|
||||
data: {target: global, function: 'handleEvent', handler: fn.name}
|
||||
}
|
||||
},
|
||||
fn.handleEvent
|
||||
);
|
||||
}
|
||||
} catch (err) {
|
||||
// can sometimes get 'Permission denied to access property "handle Event'
|
||||
@ -2901,7 +2919,20 @@ Raven.prototype = {
|
||||
return orig.call(
|
||||
this,
|
||||
evtName,
|
||||
self.wrap(fn, undefined, before),
|
||||
self.wrap(
|
||||
{
|
||||
mechanism: {
|
||||
type: 'instrument',
|
||||
data: {
|
||||
target: global,
|
||||
function: 'addEventListener',
|
||||
handler: fn.name
|
||||
}
|
||||
}
|
||||
},
|
||||
fn,
|
||||
before
|
||||
),
|
||||
capture,
|
||||
secure
|
||||
);
|
||||
@ -2935,7 +2966,17 @@ Raven.prototype = {
|
||||
'requestAnimationFrame',
|
||||
function(orig) {
|
||||
return function(cb) {
|
||||
return orig(self.wrap(cb));
|
||||
return orig(
|
||||
self.wrap(
|
||||
{
|
||||
mechanism: {
|
||||
type: 'instrument',
|
||||
data: {function: 'requestAnimationFrame', handler: orig.name}
|
||||
}
|
||||
},
|
||||
cb
|
||||
)
|
||||
);
|
||||
};
|
||||
},
|
||||
wrappedBuiltIns
|
||||
@ -2998,7 +3039,15 @@ Raven.prototype = {
|
||||
function wrapProp(prop, xhr) {
|
||||
if (prop in xhr && isFunction$1(xhr[prop])) {
|
||||
fill$1(xhr, prop, function(orig) {
|
||||
return self.wrap(orig);
|
||||
return self.wrap(
|
||||
{
|
||||
mechanism: {
|
||||
type: 'instrument',
|
||||
data: {function: prop, handler: orig.name}
|
||||
}
|
||||
},
|
||||
orig
|
||||
);
|
||||
}); // intentionally don't track filled methods on XHR instances
|
||||
}
|
||||
}
|
||||
@ -3063,7 +3112,19 @@ Raven.prototype = {
|
||||
xhr,
|
||||
'onreadystatechange',
|
||||
function(orig) {
|
||||
return self.wrap(orig, undefined, onreadystatechangeHandler);
|
||||
return self.wrap(
|
||||
{
|
||||
mechanism: {
|
||||
type: 'instrument',
|
||||
data: {
|
||||
function: 'onreadystatechange',
|
||||
handler: orig.name
|
||||
}
|
||||
}
|
||||
},
|
||||
orig,
|
||||
onreadystatechangeHandler
|
||||
);
|
||||
} /* intentionally don't track this instrumentation */
|
||||
);
|
||||
} else {
|
||||
@ -3287,10 +3348,16 @@ Raven.prototype = {
|
||||
return globalServer;
|
||||
},
|
||||
|
||||
_handleOnErrorStackInfo: function() {
|
||||
_handleOnErrorStackInfo: function(stackInfo, options) {
|
||||
options = options || {};
|
||||
options.mechanism = options.mechanism || {
|
||||
type: 'onerror',
|
||||
handled: false
|
||||
};
|
||||
|
||||
// if we are intentionally ignoring errors via onerror, bail out
|
||||
if (!this._ignoreOnError) {
|
||||
this._handleStackInfo.apply(this, arguments);
|
||||
this._handleStackInfo(stackInfo, options);
|
||||
}
|
||||
},
|
||||
|
||||
@ -3427,6 +3494,19 @@ Raven.prototype = {
|
||||
options
|
||||
);
|
||||
|
||||
// Move mechanism from options to exception interface
|
||||
// We do this, as requiring user to pass `{exception:{mechanism:{ ... }}}` would be
|
||||
// too much
|
||||
if (!data.exception.mechanism && data.mechanism) {
|
||||
data.exception.mechanism = data.mechanism;
|
||||
delete data.mechanism;
|
||||
}
|
||||
|
||||
data.exception.mechanism = objectMerge$1(data.exception.mechanism || {}, {
|
||||
type: 'generic',
|
||||
handled: true
|
||||
});
|
||||
|
||||
// Fire away!
|
||||
this._send(data);
|
||||
},
|
||||
|
2
demo/dist/demo.js.map
vendored
2
demo/dist/demo.js.map
vendored
File diff suppressed because one or more lines are too long
2
demo/dist/demo.min.js
vendored
2
demo/dist/demo.min.js
vendored
File diff suppressed because one or more lines are too long
2
demo/dist/demo.min.js.map
vendored
2
demo/dist/demo.min.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/plyr.js
vendored
2
dist/plyr.js
vendored
@ -3610,7 +3610,7 @@ var defaults$1 = {
|
||||
// Sprite (for icons)
|
||||
loadSprite: true,
|
||||
iconPrefix: 'plyr',
|
||||
iconUrl: 'https://cdn.plyr.io/3.3.10/plyr.svg',
|
||||
iconUrl: 'https://cdn.plyr.io/3.3.11/plyr.svg',
|
||||
|
||||
// Blank video (used to prevent errors on source change)
|
||||
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
|
||||
|
2
dist/plyr.js.map
vendored
2
dist/plyr.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/plyr.min.js
vendored
2
dist/plyr.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/plyr.min.js.map
vendored
2
dist/plyr.min.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/plyr.polyfilled.js
vendored
2
dist/plyr.polyfilled.js
vendored
@ -8993,7 +8993,7 @@ var defaults$1 = {
|
||||
// Sprite (for icons)
|
||||
loadSprite: true,
|
||||
iconPrefix: 'plyr',
|
||||
iconUrl: 'https://cdn.plyr.io/3.3.10/plyr.svg',
|
||||
iconUrl: 'https://cdn.plyr.io/3.3.11/plyr.svg',
|
||||
|
||||
// Blank video (used to prevent errors on source change)
|
||||
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
|
||||
|
2
dist/plyr.polyfilled.js.map
vendored
2
dist/plyr.polyfilled.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/plyr.polyfilled.min.js
vendored
2
dist/plyr.polyfilled.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/plyr.polyfilled.min.js.map
vendored
2
dist/plyr.polyfilled.min.js.map
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "plyr",
|
||||
"version": "3.3.10",
|
||||
"version": "3.3.11",
|
||||
"description": "A simple, accessible and customizable HTML5, YouTube and Vimeo media player",
|
||||
"homepage": "https://plyr.io",
|
||||
"main": "./dist/plyr.js",
|
||||
@ -74,7 +74,7 @@
|
||||
"babel-polyfill": "^6.26.0",
|
||||
"custom-event-polyfill": "^0.3.0",
|
||||
"loadjs": "^3.5.4",
|
||||
"raven-js": "^3.25.2",
|
||||
"raven-js": "^3.26.1",
|
||||
"url-polyfill": "^1.0.13"
|
||||
}
|
||||
}
|
||||
|
@ -132,13 +132,13 @@ See [initialising](#initialising) for more information on advanced setups.
|
||||
You can use our CDN (provided by [Fastly](https://www.fastly.com/)) for the JavaScript. There's 2 versions; one with and one without [polyfills](#polyfills). My recommendation would be to manage polyfills seperately as part of your application but to make life easier you can use the polyfilled build.
|
||||
|
||||
```html
|
||||
<script src="https://cdn.plyr.io/3.3.10/plyr.js"></script>
|
||||
<script src="https://cdn.plyr.io/3.3.11/plyr.js"></script>
|
||||
```
|
||||
|
||||
...or...
|
||||
|
||||
```html
|
||||
<script src="https://cdn.plyr.io/3.3.10/plyr.polyfilled.js"></script>
|
||||
<script src="https://cdn.plyr.io/3.3.11/plyr.polyfilled.js"></script>
|
||||
```
|
||||
|
||||
### CSS
|
||||
@ -152,13 +152,13 @@ Include the `plyr.css` stylsheet into your `<head>`
|
||||
If you want to use our CDN (provided by [Fastly](https://www.fastly.com/)) for the default CSS, you can use the following:
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" href="https://cdn.plyr.io/3.3.10/plyr.css">
|
||||
<link rel="stylesheet" href="https://cdn.plyr.io/3.3.11/plyr.css">
|
||||
```
|
||||
|
||||
### SVG Sprite
|
||||
|
||||
The SVG sprite is loaded automatically from our CDN (provided by [Fastly](https://www.fastly.com/)). To change this, see the [options](#options) below. For
|
||||
reference, the CDN hosted SVG sprite can be found at `https://cdn.plyr.io/3.3.10/plyr.svg`.
|
||||
reference, the CDN hosted SVG sprite can be found at `https://cdn.plyr.io/3.3.11/plyr.svg`.
|
||||
|
||||
## Ads
|
||||
|
||||
|
@ -56,7 +56,7 @@ const defaults = {
|
||||
// Sprite (for icons)
|
||||
loadSprite: true,
|
||||
iconPrefix: 'plyr',
|
||||
iconUrl: 'https://cdn.plyr.io/3.3.10/plyr.svg',
|
||||
iconUrl: 'https://cdn.plyr.io/3.3.11/plyr.svg',
|
||||
|
||||
// Blank video (used to prevent errors on source change)
|
||||
blankVideo: 'https://cdn.plyr.io/static/blank.mp4',
|
||||
|
@ -1,6 +1,6 @@
|
||||
// ==========================================================================
|
||||
// Plyr
|
||||
// plyr.js v3.3.10
|
||||
// plyr.js v3.3.11
|
||||
// https://github.com/sampotts/plyr
|
||||
// License: The MIT License (MIT)
|
||||
// ==========================================================================
|
||||
|
@ -1,6 +1,6 @@
|
||||
// ==========================================================================
|
||||
// Plyr Polyfilled Build
|
||||
// plyr.js v3.3.10
|
||||
// plyr.js v3.3.11
|
||||
// https://github.com/sampotts/plyr
|
||||
// License: The MIT License (MIT)
|
||||
// ==========================================================================
|
||||
|
@ -4988,9 +4988,9 @@ randomatic@^1.1.3:
|
||||
is-number "^3.0.0"
|
||||
kind-of "^4.0.0"
|
||||
|
||||
raven-js@^3.25.2:
|
||||
version "3.25.2"
|
||||
resolved "https://registry.yarnpkg.com/raven-js/-/raven-js-3.25.2.tgz#d3ad1c694f70855dda6f705204ee6ab76ba62884"
|
||||
raven-js@^3.26.1:
|
||||
version "3.26.1"
|
||||
resolved "https://registry.yarnpkg.com/raven-js/-/raven-js-3.26.1.tgz#13f78804f2bed524a7283382e1bca7ab423950a3"
|
||||
|
||||
rc@^1.0.1, rc@^1.1.6:
|
||||
version "1.2.6"
|
||||
|
Loading…
x
Reference in New Issue
Block a user