Skip to content

Commit

Permalink
Update the version number.
Browse files Browse the repository at this point in the history
  • Loading branch information
NaotoshiFujita committed Sep 23, 2022
1 parent fe6b65c commit efa458d
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 17 deletions.
8 changes: 6 additions & 2 deletions dist/js/splide.cjs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Splide.js
* Version : 4.1.2
* Version : 4.1.3
* License : MIT
* Copyright: 2022 Naotoshi Fujita
*/
Expand Down Expand Up @@ -69,7 +69,11 @@ function isNull(subject) {
}

function isHTMLElement(subject) {
return subject instanceof HTMLElement;
try {
return subject instanceof (subject.ownerDocument.defaultView || window).HTMLElement;
} catch (e) {
return false;
}
}

function toArray(value) {
Expand Down
8 changes: 6 additions & 2 deletions dist/js/splide.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d

/*!
* Splide.js
* Version : 4.1.2
* Version : 4.1.3
* License : MIT
* Copyright: 2022 Naotoshi Fujita
*/
Expand Down Expand Up @@ -64,7 +64,11 @@ function isNull(subject) {
}

function isHTMLElement(subject) {
return subject instanceof HTMLElement;
try {
return subject instanceof (subject.ownerDocument.defaultView || window).HTMLElement;
} catch (e) {
return false;
}
}

function toArray(value) {
Expand Down
Binary file modified dist/js/splide.min.js.gz
Binary file not shown.
10 changes: 5 additions & 5 deletions dist/js/utils/splide-utils.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ function isNull(subject) {
return subject === null;
}
function isHTMLElement(subject) {
return subject instanceof HTMLElement;
}
function isHTMLButtonElement(subject) {
return subject instanceof HTMLButtonElement;
try {
return subject instanceof (subject.ownerDocument.defaultView || window).HTMLElement;
} catch (e) {
return false;
}
}

function toArray(value) {
Expand Down Expand Up @@ -335,7 +336,6 @@ exports.hasClass = hasClass;
exports.includes = includes;
exports.isArray = isArray;
exports.isFunction = isFunction;
exports.isHTMLButtonElement = isHTMLButtonElement;
exports.isHTMLElement = isHTMLElement;
exports.isNull = isNull;
exports.isObject = isObject;
Expand Down
11 changes: 6 additions & 5 deletions dist/js/utils/splide-utils.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ function isNull(subject) {
return subject === null;
}
function isHTMLElement(subject) {
return subject instanceof HTMLElement;
}
function isHTMLButtonElement(subject) {
return subject instanceof HTMLButtonElement;
try {
return subject instanceof (subject.ownerDocument.defaultView || window).HTMLElement;
} catch (e) {
return false;
}
}

function toArray(value) {
Expand Down Expand Up @@ -302,4 +303,4 @@ function uniqueId(prefix) {
return `${prefix}${pad(ids[prefix] = (ids[prefix] || 0) + 1)}`;
}

export { abs, addClass, append, apply, approximatelyEqual, assert, assign, before, between, camelToKebab, ceil, child, children, clamp, create, display, empty, error, find, floor, focus, forEach, forOwn, format, getAttribute, hasClass, includes, isArray, isFunction, isHTMLButtonElement, isHTMLElement, isNull, isObject, isString, isUndefined, matches, max, measure, merge, min, nextTick, noop, omit, ownKeys, pad, parseHtml, prevent, push, query, queryAll, raf, rect, remove, removeAttribute, removeClass, setAttribute, sign, slice, style, timeOf, toArray, toggleClass, uniqueId, unit };
export { abs, addClass, append, apply, approximatelyEqual, assert, assign, before, between, camelToKebab, ceil, child, children, clamp, create, display, empty, error, find, floor, focus, forEach, forOwn, format, getAttribute, hasClass, includes, isArray, isFunction, isHTMLElement, isNull, isObject, isString, isUndefined, matches, max, measure, merge, min, nextTick, noop, omit, ownKeys, pad, parseHtml, prevent, push, query, queryAll, raf, rect, remove, removeAttribute, removeClass, setAttribute, sign, slice, style, timeOf, toArray, toggleClass, uniqueId, unit };
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@splidejs/splide",
"version": "4.1.2",
"version": "4.1.3",
"description": "Splide is a lightweight, flexible and accessible slider/carousel. No dependencies, no Lighthouse errors.",
"author": "Naotoshi Fujita",
"license": "MIT",
Expand Down

0 comments on commit efa458d

Please sign in to comment.