Skip to content

Commit

Permalink
feat: support vue@^3.4.22, see details at vuejs/core#10794
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau committed Apr 26, 2024
1 parent 6609603 commit f860e82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/conclude.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assignInWith, cloneDeep, isObject, isPlainObject, mapKeys, mergeWith } from 'lodash-es'
import { kebabToCamel } from './utils'
import { assignInWith, cloneDeep, isObject, mapKeys, mergeWith } from 'lodash-es'
import { isPlainObject, kebabToCamel } from './utils'

// isPlainObject: Vue and Vue instances return `false`
// cloneDeep does not fully support Vue instances
Expand Down
2 changes: 2 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { camelCase } from 'change-case'

export const kebabToCamel = (str: any) => /.+-.+/.test(str) ? camelCase(str) : str

export const isPlainObject = (value: any) => Object.prototype.toString.call(value).slice(8, -1) === 'Object'

0 comments on commit f860e82

Please sign in to comment.