Skip to content

Commit dd769d5

Browse files
isJsonObject
1 parent a3509c6 commit dd769d5

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tiny-dices",
33
"description": "Tiny Dices adds a sprinkle of fun and a touch of magic to your dice-rolling adventures — fully customizable with CSS and JavaScript to match your style, theme, or imagination! 🎲✨",
4-
"version": "1.0.6",
4+
"version": "1.0.7",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.mjs",
77
"types": "./dist/index.d.mts",
@@ -16,7 +16,7 @@
1616
"author": "Yasmin Seidel (JasminDreasond)",
1717
"license": "GPL-3.0-only",
1818
"dependencies": {
19-
"tiny-essentials": "^1.3.0",
19+
"tiny-essentials": "^1.11.0",
2020
"validate-color": "^2.2.4"
2121
},
2222
"keywords": [

src/index.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { objType } from 'tiny-essentials';
1+
import { isJsonObject } from 'tiny-essentials';
22
import validateColor from 'validate-color';
33

44
/**
@@ -184,7 +184,7 @@ class TinyDices {
184184
*/
185185
#addElement(item) {
186186
if (
187-
objType(item, 'object') &&
187+
isJsonObject(item) &&
188188
Array.isArray(item.faces) &&
189189
typeof HTMLElement !== 'undefined' &&
190190
item.container instanceof HTMLElement &&

0 commit comments

Comments
 (0)