Skip to content

Commit

Permalink
v0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
TahaSh committed Jul 23, 2024
1 parent 6df17d8 commit 4bf59ac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/swapy.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ declare type Config = {
animation: AnimationType;
};

export declare function createSwapy(root: Element, userConfig?: Config): SwapyApi;
export declare function createSwapy(root: Element | null, userConfig?: Config): SwapyApi;

declare type SwapCallback = (event: SwapEventData) => void;

Expand Down
6 changes: 5 additions & 1 deletion dist/swapy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2703,10 +2703,14 @@ function $e(n, t = {}) {
}), e;
}
function Oe(n, t = {}) {
if (!n)
throw new Error(
"Cannot create a Swapy instance because the element you provided does not exist on the page!"
);
const e = { ...Me, ...t }, i = n;
if (!ke(i))
throw new Error(
"Cannot create swapy instance because your HTML structure is invalid. Fix all above errors and then try!"
"Cannot create a Swapy instance because your HTML structure is invalid. Fix all above errors and then try!"
);
const s = $e(i, e), r = new ze(i, s);
return {
Expand Down
2 changes: 1 addition & 1 deletion dist/swapy.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "swapy",
"author": "Taha Shashtari (taha@tahazsh.com)",
"private": false,
"version": "0.0.5",
"version": "0.0.6",
"type": "module",
"main": "./dist/swapy.min.js",
"module": "./dist/swapy.js",
Expand Down

0 comments on commit 4bf59ac

Please sign in to comment.