Skip to content

Commit

Permalink
v2.23.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrishnan8594 committed Aug 12, 2024
1 parent 0d61097 commit 0387a92
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 16 deletions.
14 changes: 9 additions & 5 deletions dist/player.es.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! @vimeo/player v2.23.0 | (c) 2024 Vimeo | MIT License | https://github.com/vimeo/player.js */
/*! @vimeo/player v2.23.1 | (c) 2024 Vimeo | MIT License | https://github.com/vimeo/player.js */
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
Expand Down Expand Up @@ -569,7 +569,7 @@ function isInteger(value) {
* @return {boolean}
*/
function isVimeoUrl(url) {
return /^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.videoji\.hk))(?=$|\/)/.test(url);
return /^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(url);
}

/**
Expand All @@ -579,14 +579,18 @@ function isVimeoUrl(url) {
* @return {boolean}
*/
function isVimeoEmbed(url) {
var expr = /^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.videoji\.hk))\/video\/\d+/;
var expr = /^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/;
return expr.test(url);
}
function getOembedDomain(url) {
var match = (url || '').match(/^(?:https?:)?(?:\/\/)?([^/?]+)/);
var domain = (match && match[1] || '').replace('player.', '');
if (domain.endsWith('.videoji.hk')) {
return domain;
var customDomains = ['.videoji.hk', '.vimeo.work', '.videoji.cn'];
for (var _i = 0, _customDomains = customDomains; _i < _customDomains.length; _i++) {
var customDomain = _customDomains[_i];
if (domain.endsWith(customDomain)) {
return domain;
}
}
return 'vimeo.com';
}
Expand Down
14 changes: 9 additions & 5 deletions dist/player.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/player.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/player.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/player.min.js.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vimeo/player",
"version": "2.23.0",
"version": "2.23.1",
"description": "Interact with and control an embedded Vimeo Player.",
"license": "MIT",
"author": "Vimeo <https://vimeo.com>",
Expand Down Expand Up @@ -131,5 +131,8 @@
"last 2 versions",
"Firefox ESR",
"not ie < 11"
]
],
"volta": {
"node": "16.16.0"
}
}

0 comments on commit 0387a92

Please sign in to comment.