Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Oct 10, 2024
1 parent c6b3e4f commit 1d4764d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@
"karma-jquery": "^0.2.4",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^5.0.0",
"licia": "^1.42.0",
"licia": "^1.43.0",
"luna-box-model": "^1.0.0",
"luna-console": "^1.3.4",
"luna-console": "^1.3.5",
"luna-data-grid": "^1.0.0",
"luna-dom-viewer": "^1.4.0",
"luna-modal": "^1.2.3",
Expand Down
3 changes: 2 additions & 1 deletion src/Elements/Elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ import isEmpty from 'licia/isEmpty'
import toNum from 'licia/toNum'
import copy from 'licia/copy'
import isMobile from 'licia/isMobile'
import isShadowRoot from 'licia/isShadowRoot'
import LunaDomViewer from 'luna-dom-viewer'
import { isErudaEl, classPrefix as c, isChobitsuEl } from '../lib/util'
import evalCss from '../lib/evalCss'
import Detail from './Detail'
import chobitsu from '../lib/chobitsu'
import emitter from '../lib/emitter'
import { formatNodeName, isShadowRoot } from './util'
import { formatNodeName } from './util'

export default class Elements extends Tool {
constructor() {
Expand Down
9 changes: 1 addition & 8 deletions src/Elements/util.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import each from 'licia/each'
import isStr from 'licia/isStr'
import isShadowRoot from 'licia/isShadowRoot'
import { classPrefix as c } from '../lib/util'

export function formatNodeName(node, { noAttr = false } = {}) {
Expand Down Expand Up @@ -36,11 +37,3 @@ export function formatNodeName(node, { noAttr = false } = {}) {

return ret
}

export function isShadowRoot(node) {
if (window.ShadowRoot) {
return node instanceof ShadowRoot
}

return false
}

0 comments on commit 1d4764d

Please sign in to comment.