Skip to content

Commit f860e82

Browse files
committed
feat: support vue@^3.4.22, see details at vuejs/core#10794
1 parent 6609603 commit f860e82

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/conclude.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { assignInWith, cloneDeep, isObject, isPlainObject, mapKeys, mergeWith } from 'lodash-es'
2-
import { kebabToCamel } from './utils'
1+
import { assignInWith, cloneDeep, isObject, mapKeys, mergeWith } from 'lodash-es'
2+
import { isPlainObject, kebabToCamel } from './utils'
33

44
// isPlainObject: Vue and Vue instances return `false`
55
// cloneDeep does not fully support Vue instances

src/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
import { camelCase } from 'change-case'
22

33
export const kebabToCamel = (str: any) => /.+-.+/.test(str) ? camelCase(str) : str
4+
5+
export const isPlainObject = (value: any) => Object.prototype.toString.call(value).slice(8, -1) === 'Object'

0 commit comments

Comments
 (0)