mirror of https://github.com/vuejs/core.git
Merge remote-tracking branch 'upstream/main'
This commit is contained in:
commit
717aad275d
|
@ -30,4 +30,4 @@ jobs:
|
||||||
- name: Run prettier
|
- name: Run prettier
|
||||||
run: pnpm run format
|
run: pnpm run format
|
||||||
|
|
||||||
- uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc
|
- uses: autofix-ci/action@bee19d72e71787c12ca0f29de72f2833e437e4c9
|
||||||
|
|
|
@ -9,7 +9,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository == 'vuejs/core' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/ecosystem-ci run')
|
if: github.repository == 'vuejs/core' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/ecosystem-ci run')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/github-script@v6
|
- uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const user = context.payload.sender.login
|
const user = context.payload.sender.login
|
||||||
|
@ -43,7 +43,7 @@ jobs:
|
||||||
})
|
})
|
||||||
throw new Error('not allowed')
|
throw new Error('not allowed')
|
||||||
}
|
}
|
||||||
- uses: actions/github-script@v6
|
- uses: actions/github-script@v7
|
||||||
id: get-pr-data
|
id: get-pr-data
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
|
@ -58,7 +58,7 @@ jobs:
|
||||||
branchName: pr.head.ref,
|
branchName: pr.head.ref,
|
||||||
repo: pr.head.repo.full_name
|
repo: pr.head.repo.full_name
|
||||||
}
|
}
|
||||||
- uses: actions/github-script@v6
|
- uses: actions/github-script@v7
|
||||||
id: trigger
|
id: trigger
|
||||||
env:
|
env:
|
||||||
COMMENT: ${{ github.event.comment.body }}
|
COMMENT: ${{ github.event.comment.body }}
|
||||||
|
|
|
@ -12,7 +12,7 @@ jobs:
|
||||||
if: github.repository == 'vuejs/core'
|
if: github.repository == 'vuejs/core'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: dessant/lock-threads@v4
|
- uses: dessant/lock-threads@v5
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
issue-inactive-days: '14'
|
issue-inactive-days: '14'
|
||||||
|
|
12
package.json
12
package.json
|
@ -67,19 +67,19 @@
|
||||||
"@rollup/plugin-terser": "^0.4.4",
|
"@rollup/plugin-terser": "^0.4.4",
|
||||||
"@types/hash-sum": "^1.0.2",
|
"@types/hash-sum": "^1.0.2",
|
||||||
"@types/node": "^20.9.0",
|
"@types/node": "^20.9.0",
|
||||||
"@typescript-eslint/parser": "^6.10.0",
|
"@typescript-eslint/parser": "^6.11.0",
|
||||||
"@vitest/coverage-istanbul": "^0.34.6",
|
"@vitest/coverage-istanbul": "^0.34.6",
|
||||||
"@vue/consolidate": "0.17.3",
|
"@vue/consolidate": "0.17.3",
|
||||||
"conventional-changelog-cli": "^4.1.0",
|
"conventional-changelog-cli": "^4.1.0",
|
||||||
"enquirer": "^2.4.1",
|
"enquirer": "^2.4.1",
|
||||||
"esbuild": "^0.19.5",
|
"esbuild": "^0.19.5",
|
||||||
"esbuild-plugin-polyfill-node": "^0.3.0",
|
"esbuild-plugin-polyfill-node": "^0.3.0",
|
||||||
"eslint": "^8.53.0",
|
"eslint": "^8.54.0",
|
||||||
"eslint-plugin-jest": "^27.6.0",
|
"eslint-plugin-jest": "^27.6.0",
|
||||||
"estree-walker": "^2.0.2",
|
"estree-walker": "^2.0.2",
|
||||||
"execa": "^8.0.1",
|
"execa": "^8.0.1",
|
||||||
"jsdom": "^22.1.0",
|
"jsdom": "^22.1.0",
|
||||||
"lint-staged": "^15.0.2",
|
"lint-staged": "^15.1.0",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"magic-string": "^0.30.5",
|
"magic-string": "^0.30.5",
|
||||||
"markdown-table": "^3.0.3",
|
"markdown-table": "^3.0.3",
|
||||||
|
@ -87,7 +87,7 @@
|
||||||
"minimist": "^1.2.8",
|
"minimist": "^1.2.8",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"picocolors": "^1.0.0",
|
"picocolors": "^1.0.0",
|
||||||
"prettier": "^3.0.3",
|
"prettier": "^3.1.0",
|
||||||
"pretty-bytes": "^6.1.1",
|
"pretty-bytes": "^6.1.1",
|
||||||
"pug": "^3.0.2",
|
"pug": "^3.0.2",
|
||||||
"puppeteer": "~21.5.1",
|
"puppeteer": "~21.5.1",
|
||||||
|
@ -102,9 +102,9 @@
|
||||||
"terser": "^5.22.0",
|
"terser": "^5.22.0",
|
||||||
"todomvc-app-css": "^2.4.3",
|
"todomvc-app-css": "^2.4.3",
|
||||||
"tslib": "^2.6.2",
|
"tslib": "^2.6.2",
|
||||||
"tsx": "^3.14.0",
|
"tsx": "^4.1.3",
|
||||||
"typescript": "^5.2.2",
|
"typescript": "^5.2.2",
|
||||||
"vite": "^4.5.0",
|
"vite": "^5.0.0",
|
||||||
"vitest": "^0.34.6"
|
"vitest": "^0.34.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -674,8 +674,8 @@ describe('compiler: v-for', () => {
|
||||||
patchFlag: !disableTracking
|
patchFlag: !disableTracking
|
||||||
? genFlagText(PatchFlags.STABLE_FRAGMENT)
|
? genFlagText(PatchFlags.STABLE_FRAGMENT)
|
||||||
: keyed
|
: keyed
|
||||||
? genFlagText(PatchFlags.KEYED_FRAGMENT)
|
? genFlagText(PatchFlags.KEYED_FRAGMENT)
|
||||||
: genFlagText(PatchFlags.UNKEYED_FRAGMENT),
|
: genFlagText(PatchFlags.UNKEYED_FRAGMENT),
|
||||||
children: {
|
children: {
|
||||||
type: NodeTypes.JS_CALL_EXPRESSION,
|
type: NodeTypes.JS_CALL_EXPRESSION,
|
||||||
callee: RENDER_LIST,
|
callee: RENDER_LIST,
|
||||||
|
|
|
@ -448,8 +448,8 @@ function genAssets(
|
||||||
__COMPAT__ && type === 'filter'
|
__COMPAT__ && type === 'filter'
|
||||||
? RESOLVE_FILTER
|
? RESOLVE_FILTER
|
||||||
: type === 'component'
|
: type === 'component'
|
||||||
? RESOLVE_COMPONENT
|
? RESOLVE_COMPONENT
|
||||||
: RESOLVE_DIRECTIVE
|
: RESOLVE_DIRECTIVE
|
||||||
)
|
)
|
||||||
for (let i = 0; i < assets.length; i++) {
|
for (let i = 0; i < assets.length; i++) {
|
||||||
let id = assets[i]
|
let id = assets[i]
|
||||||
|
|
|
@ -41,8 +41,8 @@ export function getBaseTransformPreset(
|
||||||
transformExpression
|
transformExpression
|
||||||
]
|
]
|
||||||
: __BROWSER__ && __DEV__
|
: __BROWSER__ && __DEV__
|
||||||
? [transformExpression]
|
? [transformExpression]
|
||||||
: []),
|
: []),
|
||||||
transformSlotOutlet,
|
transformSlotOutlet,
|
||||||
transformElement,
|
transformElement,
|
||||||
trackSlotScopes,
|
trackSlotScopes,
|
||||||
|
|
|
@ -811,8 +811,8 @@ function parseAttribute(
|
||||||
(isPropShorthand || startsWith(name, ':')
|
(isPropShorthand || startsWith(name, ':')
|
||||||
? 'bind'
|
? 'bind'
|
||||||
: startsWith(name, '@')
|
: startsWith(name, '@')
|
||||||
? 'on'
|
? 'on'
|
||||||
: 'slot')
|
: 'slot')
|
||||||
let arg: ExpressionNode | undefined
|
let arg: ExpressionNode | undefined
|
||||||
|
|
||||||
if (match[2]) {
|
if (match[2]) {
|
||||||
|
|
|
@ -238,8 +238,8 @@ export function createTransformContext(
|
||||||
const removalIndex = node
|
const removalIndex = node
|
||||||
? list.indexOf(node)
|
? list.indexOf(node)
|
||||||
: context.currentNode
|
: context.currentNode
|
||||||
? context.childIndex
|
? context.childIndex
|
||||||
: -1
|
: -1
|
||||||
/* istanbul ignore if */
|
/* istanbul ignore if */
|
||||||
if (__DEV__ && removalIndex < 0) {
|
if (__DEV__ && removalIndex < 0) {
|
||||||
throw new Error(`node being removed is not a child of current parent`)
|
throw new Error(`node being removed is not a child of current parent`)
|
||||||
|
|
|
@ -95,8 +95,8 @@ export const transformFor = createStructuralDirectiveTransform(
|
||||||
const fragmentFlag = isStableFragment
|
const fragmentFlag = isStableFragment
|
||||||
? PatchFlags.STABLE_FRAGMENT
|
? PatchFlags.STABLE_FRAGMENT
|
||||||
: keyProp
|
: keyProp
|
||||||
? PatchFlags.KEYED_FRAGMENT
|
? PatchFlags.KEYED_FRAGMENT
|
||||||
: PatchFlags.UNKEYED_FRAGMENT
|
: PatchFlags.UNKEYED_FRAGMENT
|
||||||
|
|
||||||
forNode.codegenNode = createVNodeCall(
|
forNode.codegenNode = createVNodeCall(
|
||||||
context,
|
context,
|
||||||
|
@ -141,10 +141,10 @@ export const transformFor = createStructuralDirectiveTransform(
|
||||||
const slotOutlet = isSlotOutlet(node)
|
const slotOutlet = isSlotOutlet(node)
|
||||||
? node
|
? node
|
||||||
: isTemplate &&
|
: isTemplate &&
|
||||||
node.children.length === 1 &&
|
node.children.length === 1 &&
|
||||||
isSlotOutlet(node.children[0])
|
isSlotOutlet(node.children[0])
|
||||||
? (node.children[0] as SlotOutletNode) // api-extractor somehow fails to infer this
|
? (node.children[0] as SlotOutletNode) // api-extractor somehow fails to infer this
|
||||||
: null
|
: null
|
||||||
|
|
||||||
if (slotOutlet) {
|
if (slotOutlet) {
|
||||||
// <slot v-for="..."> or <template v-for="..."><slot/></template>
|
// <slot v-for="..."> or <template v-for="..."><slot/></template>
|
||||||
|
|
|
@ -349,8 +349,8 @@ export function buildSlots(
|
||||||
const slotFlag = hasDynamicSlots
|
const slotFlag = hasDynamicSlots
|
||||||
? SlotFlags.DYNAMIC
|
? SlotFlags.DYNAMIC
|
||||||
: hasForwardedSlots(node.children)
|
: hasForwardedSlots(node.children)
|
||||||
? SlotFlags.FORWARDED
|
? SlotFlags.FORWARDED
|
||||||
: SlotFlags.STABLE
|
: SlotFlags.STABLE
|
||||||
|
|
||||||
let slots = createObjectExpression(
|
let slots = createObjectExpression(
|
||||||
slotsProperties.concat(
|
slotsProperties.concat(
|
||||||
|
|
|
@ -153,8 +153,8 @@ const isStringifiableAttr = (name: string, ns: DOMNamespaces) => {
|
||||||
(ns === DOMNamespaces.HTML
|
(ns === DOMNamespaces.HTML
|
||||||
? isKnownHtmlAttr(name)
|
? isKnownHtmlAttr(name)
|
||||||
: ns === DOMNamespaces.SVG
|
: ns === DOMNamespaces.SVG
|
||||||
? isKnownSvgAttr(name)
|
? isKnownSvgAttr(name)
|
||||||
: false) || dataAriaRE.test(name)
|
: false) || dataAriaRE.test(name)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -96,14 +96,14 @@ const transformClick = (key: ExpressionNode, event: string) => {
|
||||||
return isStaticClick
|
return isStaticClick
|
||||||
? createSimpleExpression(event, true)
|
? createSimpleExpression(event, true)
|
||||||
: key.type !== NodeTypes.SIMPLE_EXPRESSION
|
: key.type !== NodeTypes.SIMPLE_EXPRESSION
|
||||||
? createCompoundExpression([
|
? createCompoundExpression([
|
||||||
`(`,
|
`(`,
|
||||||
key,
|
key,
|
||||||
`) === "onClick" ? "${event}" : (`,
|
`) === "onClick" ? "${event}" : (`,
|
||||||
key,
|
key,
|
||||||
`)`
|
`)`
|
||||||
])
|
])
|
||||||
: key
|
: key
|
||||||
}
|
}
|
||||||
|
|
||||||
export const transformOn: DirectiveTransform = (dir, node, context) => {
|
export const transformOn: DirectiveTransform = (dir, node, context) => {
|
||||||
|
|
|
@ -1172,8 +1172,8 @@ function walkObjectPattern(
|
||||||
const type = isDefineCall
|
const type = isDefineCall
|
||||||
? BindingTypes.SETUP_CONST
|
? BindingTypes.SETUP_CONST
|
||||||
: isConst
|
: isConst
|
||||||
? BindingTypes.SETUP_MAYBE_REF
|
? BindingTypes.SETUP_MAYBE_REF
|
||||||
: BindingTypes.SETUP_LET
|
: BindingTypes.SETUP_LET
|
||||||
registerBinding(bindings, p.key, type)
|
registerBinding(bindings, p.key, type)
|
||||||
} else {
|
} else {
|
||||||
walkPattern(p.value, bindings, isConst, isDefineCall)
|
walkPattern(p.value, bindings, isConst, isDefineCall)
|
||||||
|
@ -1208,8 +1208,8 @@ function walkPattern(
|
||||||
const type = isDefineCall
|
const type = isDefineCall
|
||||||
? BindingTypes.SETUP_CONST
|
? BindingTypes.SETUP_CONST
|
||||||
: isConst
|
: isConst
|
||||||
? BindingTypes.SETUP_MAYBE_REF
|
? BindingTypes.SETUP_MAYBE_REF
|
||||||
: BindingTypes.SETUP_LET
|
: BindingTypes.SETUP_LET
|
||||||
registerBinding(bindings, node, type)
|
registerBinding(bindings, node, type)
|
||||||
} else if (node.type === 'RestElement') {
|
} else if (node.type === 'RestElement') {
|
||||||
// argument can only be identifier when destructuring
|
// argument can only be identifier when destructuring
|
||||||
|
@ -1224,8 +1224,8 @@ function walkPattern(
|
||||||
const type = isDefineCall
|
const type = isDefineCall
|
||||||
? BindingTypes.SETUP_CONST
|
? BindingTypes.SETUP_CONST
|
||||||
: isConst
|
: isConst
|
||||||
? BindingTypes.SETUP_MAYBE_REF
|
? BindingTypes.SETUP_MAYBE_REF
|
||||||
: BindingTypes.SETUP_LET
|
: BindingTypes.SETUP_LET
|
||||||
registerBinding(bindings, node.left, type)
|
registerBinding(bindings, node.left, type)
|
||||||
} else {
|
} else {
|
||||||
walkPattern(node.left, bindings, isConst)
|
walkPattern(node.left, bindings, isConst)
|
||||||
|
|
|
@ -124,8 +124,8 @@ export function compileTemplate(
|
||||||
? preprocessCustomRequire
|
? preprocessCustomRequire
|
||||||
? preprocessCustomRequire(preprocessLang)
|
? preprocessCustomRequire(preprocessLang)
|
||||||
: __ESM_BROWSER__
|
: __ESM_BROWSER__
|
||||||
? undefined
|
? undefined
|
||||||
: consolidate[preprocessLang as keyof typeof consolidate]
|
: consolidate[preprocessLang as keyof typeof consolidate]
|
||||||
: false
|
: false
|
||||||
if (preprocessor) {
|
if (preprocessor) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -635,8 +635,8 @@ function innerResolveTypeReference(
|
||||||
? scope.exportedDeclares
|
? scope.exportedDeclares
|
||||||
: scope.declares
|
: scope.declares
|
||||||
: onlyExported
|
: onlyExported
|
||||||
? scope.exportedTypes
|
? scope.exportedTypes
|
||||||
: scope.types
|
: scope.types
|
||||||
if (lookupSource[name]) {
|
if (lookupSource[name]) {
|
||||||
return lookupSource[name]
|
return lookupSource[name]
|
||||||
} else {
|
} else {
|
||||||
|
@ -679,10 +679,10 @@ function getReferenceName(node: ReferenceTypes): string | string[] {
|
||||||
node.type === 'TSTypeReference'
|
node.type === 'TSTypeReference'
|
||||||
? node.typeName
|
? node.typeName
|
||||||
: node.type === 'TSExpressionWithTypeArguments'
|
: node.type === 'TSExpressionWithTypeArguments'
|
||||||
? node.expression
|
? node.expression
|
||||||
: node.type === 'TSImportType'
|
: node.type === 'TSImportType'
|
||||||
? node.qualifier
|
? node.qualifier
|
||||||
: node.exprName
|
: node.exprName
|
||||||
if (ref?.type === 'Identifier') {
|
if (ref?.type === 'Identifier') {
|
||||||
return ref.name
|
return ref.name
|
||||||
} else if (ref?.type === 'TSQualifiedName') {
|
} else if (ref?.type === 'TSQualifiedName') {
|
||||||
|
@ -1056,8 +1056,8 @@ function ctxToScope(ctx: TypeResolveContext): TypeScope {
|
||||||
'ast' in ctx
|
'ast' in ctx
|
||||||
? ctx.ast
|
? ctx.ast
|
||||||
: ctx.scriptAst
|
: ctx.scriptAst
|
||||||
? [...ctx.scriptAst.body, ...ctx.scriptSetupAst!.body]
|
? [...ctx.scriptAst.body, ...ctx.scriptSetupAst!.body]
|
||||||
: ctx.scriptSetupAst!.body
|
: ctx.scriptSetupAst!.body
|
||||||
|
|
||||||
const scope = new TypeScope(
|
const scope = new TypeScope(
|
||||||
ctx.filename,
|
ctx.filename,
|
||||||
|
|
|
@ -76,8 +76,8 @@ export function getId(node: Expression) {
|
||||||
return node.type === 'Identifier'
|
return node.type === 'Identifier'
|
||||||
? node.name
|
? node.name
|
||||||
: node.type === 'StringLiteral'
|
: node.type === 'StringLiteral'
|
||||||
? node.value
|
? node.value
|
||||||
: null
|
: null
|
||||||
}
|
}
|
||||||
|
|
||||||
const identity = (str: string) => str
|
const identity = (str: string) => str
|
||||||
|
|
|
@ -448,8 +448,8 @@ export function transformAST(
|
||||||
const keyStr = isString(key)
|
const keyStr = isString(key)
|
||||||
? `'${key}'`
|
? `'${key}'`
|
||||||
: key
|
: key
|
||||||
? snip(key)
|
? snip(key)
|
||||||
: `'${nameId.name}'`
|
: `'${nameId.name}'`
|
||||||
const defaultStr = defaultValue ? `, ${snip(defaultValue)}` : ``
|
const defaultStr = defaultValue ? `, ${snip(defaultValue)}` : ``
|
||||||
s.appendLeft(
|
s.appendLeft(
|
||||||
call.end! + offset,
|
call.end! + offset,
|
||||||
|
|
|
@ -108,8 +108,8 @@ class BaseReactiveHandler implements ProxyHandler<Target> {
|
||||||
? shallowReadonlyMap
|
? shallowReadonlyMap
|
||||||
: readonlyMap
|
: readonlyMap
|
||||||
: shallow
|
: shallow
|
||||||
? shallowReactiveMap
|
? shallowReactiveMap
|
||||||
: reactiveMap
|
: reactiveMap
|
||||||
).get(target)
|
).get(target)
|
||||||
) {
|
) {
|
||||||
return target
|
return target
|
||||||
|
|
|
@ -226,8 +226,8 @@ function createReadonlyMethod(type: TriggerOpTypes): Function {
|
||||||
return type === TriggerOpTypes.DELETE
|
return type === TriggerOpTypes.DELETE
|
||||||
? false
|
? false
|
||||||
: type === TriggerOpTypes.CLEAR
|
: type === TriggerOpTypes.CLEAR
|
||||||
? undefined
|
? undefined
|
||||||
: this
|
: this
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -341,8 +341,8 @@ function createInstrumentationGetter(isReadonly: boolean, shallow: boolean) {
|
||||||
? shallowReadonlyInstrumentations
|
? shallowReadonlyInstrumentations
|
||||||
: shallowInstrumentations
|
: shallowInstrumentations
|
||||||
: isReadonly
|
: isReadonly
|
||||||
? readonlyInstrumentations
|
? readonlyInstrumentations
|
||||||
: mutableInstrumentations
|
: mutableInstrumentations
|
||||||
|
|
||||||
return (
|
return (
|
||||||
target: CollectionTypes,
|
target: CollectionTypes,
|
||||||
|
|
|
@ -145,24 +145,24 @@ type Builtin = Primitive | Function | Date | Error | RegExp
|
||||||
export type DeepReadonly<T> = T extends Builtin
|
export type DeepReadonly<T> = T extends Builtin
|
||||||
? T
|
? T
|
||||||
: T extends Map<infer K, infer V>
|
: T extends Map<infer K, infer V>
|
||||||
? ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>>
|
? ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>>
|
||||||
: T extends ReadonlyMap<infer K, infer V>
|
: T extends ReadonlyMap<infer K, infer V>
|
||||||
? ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>>
|
? ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>>
|
||||||
: T extends WeakMap<infer K, infer V>
|
: T extends WeakMap<infer K, infer V>
|
||||||
? WeakMap<DeepReadonly<K>, DeepReadonly<V>>
|
? WeakMap<DeepReadonly<K>, DeepReadonly<V>>
|
||||||
: T extends Set<infer U>
|
: T extends Set<infer U>
|
||||||
? ReadonlySet<DeepReadonly<U>>
|
? ReadonlySet<DeepReadonly<U>>
|
||||||
: T extends ReadonlySet<infer U>
|
: T extends ReadonlySet<infer U>
|
||||||
? ReadonlySet<DeepReadonly<U>>
|
? ReadonlySet<DeepReadonly<U>>
|
||||||
: T extends WeakSet<infer U>
|
: T extends WeakSet<infer U>
|
||||||
? WeakSet<DeepReadonly<U>>
|
? WeakSet<DeepReadonly<U>>
|
||||||
: T extends Promise<infer U>
|
: T extends Promise<infer U>
|
||||||
? Promise<DeepReadonly<U>>
|
? Promise<DeepReadonly<U>>
|
||||||
: T extends Ref<infer U>
|
: T extends Ref<infer U>
|
||||||
? Readonly<Ref<DeepReadonly<U>>>
|
? Readonly<Ref<DeepReadonly<U>>>
|
||||||
: T extends {}
|
: T extends {}
|
||||||
? { readonly [K in keyof T]: DeepReadonly<T[K]> }
|
? { readonly [K in keyof T]: DeepReadonly<T[K]> }
|
||||||
: Readonly<T>
|
: Readonly<T>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Takes an object (reactive or plain) or a ref and returns a readonly proxy to
|
* Takes an object (reactive or plain) or a ref and returns a readonly proxy to
|
||||||
|
|
|
@ -416,8 +416,8 @@ export function toRef<T>(
|
||||||
): T extends () => infer R
|
): T extends () => infer R
|
||||||
? Readonly<Ref<R>>
|
? Readonly<Ref<R>>
|
||||||
: T extends Ref
|
: T extends Ref
|
||||||
? T
|
? T
|
||||||
: Ref<UnwrapRef<T>>
|
: Ref<UnwrapRef<T>>
|
||||||
export function toRef<T extends object, K extends keyof T>(
|
export function toRef<T extends object, K extends keyof T>(
|
||||||
object: T,
|
object: T,
|
||||||
key: K
|
key: K
|
||||||
|
@ -478,17 +478,17 @@ export type ShallowUnwrapRef<T> = {
|
||||||
[K in keyof T]: T[K] extends Ref<infer V>
|
[K in keyof T]: T[K] extends Ref<infer V>
|
||||||
? V // if `V` is `unknown` that means it does not extend `Ref` and is undefined
|
? V // if `V` is `unknown` that means it does not extend `Ref` and is undefined
|
||||||
: T[K] extends Ref<infer V> | undefined
|
: T[K] extends Ref<infer V> | undefined
|
||||||
? unknown extends V
|
? unknown extends V
|
||||||
? undefined
|
? undefined
|
||||||
: V | undefined
|
: V | undefined
|
||||||
: T[K]
|
: T[K]
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UnwrapRef<T> = T extends ShallowRef<infer V>
|
export type UnwrapRef<T> = T extends ShallowRef<infer V>
|
||||||
? V
|
? V
|
||||||
: T extends Ref<infer V>
|
: T extends Ref<infer V>
|
||||||
? UnwrapRefSimple<V>
|
? UnwrapRefSimple<V>
|
||||||
: UnwrapRefSimple<T>
|
: UnwrapRefSimple<T>
|
||||||
|
|
||||||
export type UnwrapRefSimple<T> = T extends
|
export type UnwrapRefSimple<T> = T extends
|
||||||
| Function
|
| Function
|
||||||
|
@ -499,9 +499,9 @@ export type UnwrapRefSimple<T> = T extends
|
||||||
| { [RawSymbol]?: true }
|
| { [RawSymbol]?: true }
|
||||||
? T
|
? T
|
||||||
: T extends ReadonlyArray<any>
|
: T extends ReadonlyArray<any>
|
||||||
? { [K in keyof T]: UnwrapRefSimple<T[K]> }
|
? { [K in keyof T]: UnwrapRefSimple<T[K]> }
|
||||||
: T extends object & { [ShallowReactiveMarker]?: never }
|
: T extends object & { [ShallowReactiveMarker]?: never }
|
||||||
? {
|
? {
|
||||||
[P in keyof T]: P extends symbol ? T[P] : UnwrapRef<T[P]>
|
[P in keyof T]: P extends symbol ? T[P] : UnwrapRef<T[P]>
|
||||||
}
|
}
|
||||||
: T
|
: T
|
||||||
|
|
|
@ -60,10 +60,10 @@ type MapSources<T, Immediate> = {
|
||||||
? V | undefined
|
? V | undefined
|
||||||
: V
|
: V
|
||||||
: T[K] extends object
|
: T[K] extends object
|
||||||
? Immediate extends true
|
? Immediate extends true
|
||||||
? T[K] | undefined
|
? T[K] | undefined
|
||||||
: T[K]
|
: T[K]
|
||||||
: never
|
: never
|
||||||
}
|
}
|
||||||
|
|
||||||
type OnCleanup = (cleanupFn: () => void) => void
|
type OnCleanup = (cleanupFn: () => void) => void
|
||||||
|
@ -334,8 +334,8 @@ function doWatch(
|
||||||
oldValue === INITIAL_WATCHER_VALUE
|
oldValue === INITIAL_WATCHER_VALUE
|
||||||
? undefined
|
? undefined
|
||||||
: isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE
|
: isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE
|
||||||
? []
|
? []
|
||||||
: oldValue,
|
: oldValue,
|
||||||
onCleanup
|
onCleanup
|
||||||
])
|
])
|
||||||
oldValue = newValue
|
oldValue = newValue
|
||||||
|
|
|
@ -251,8 +251,8 @@ export function createCompatVue(
|
||||||
mergeBase[key] = isArray(superValue)
|
mergeBase[key] = isArray(superValue)
|
||||||
? superValue.slice()
|
? superValue.slice()
|
||||||
: isObject(superValue)
|
: isObject(superValue)
|
||||||
? extend(Object.create(null), superValue)
|
? extend(Object.create(null), superValue)
|
||||||
: superValue
|
: superValue
|
||||||
}
|
}
|
||||||
|
|
||||||
SubVue.options = mergeOptions(
|
SubVue.options = mergeOptions(
|
||||||
|
|
|
@ -922,10 +922,10 @@ export function finishComponentSetup(
|
||||||
(__ESM_BUNDLER__
|
(__ESM_BUNDLER__
|
||||||
? ` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".`
|
? ` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".`
|
||||||
: __ESM_BROWSER__
|
: __ESM_BROWSER__
|
||||||
? ` Use "vue.esm-browser.js" instead.`
|
? ` Use "vue.esm-browser.js" instead.`
|
||||||
: __GLOBAL__
|
: __GLOBAL__
|
||||||
? ` Use "vue.global.js" instead.`
|
? ` Use "vue.global.js" instead.`
|
||||||
: ``) /* should not happen */
|
: ``) /* should not happen */
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
warn(`Component is missing template or render function.`)
|
warn(`Component is missing template or render function.`)
|
||||||
|
|
|
@ -41,19 +41,19 @@ export type EmitsToProps<T extends EmitsOptions> = T extends string[]
|
||||||
[K in string & `on${Capitalize<T[number]>}`]?: (...args: any[]) => any
|
[K in string & `on${Capitalize<T[number]>}`]?: (...args: any[]) => any
|
||||||
}
|
}
|
||||||
: T extends ObjectEmitsOptions
|
: T extends ObjectEmitsOptions
|
||||||
? {
|
? {
|
||||||
[K in string &
|
[K in string &
|
||||||
`on${Capitalize<string & keyof T>}`]?: K extends `on${infer C}`
|
`on${Capitalize<string & keyof T>}`]?: K extends `on${infer C}`
|
||||||
? T[Uncapitalize<C>] extends null
|
? T[Uncapitalize<C>] extends null
|
||||||
? (...args: any[]) => any
|
? (...args: any[]) => any
|
||||||
: (
|
: (
|
||||||
...args: T[Uncapitalize<C>] extends (...args: infer P) => any
|
...args: T[Uncapitalize<C>] extends (...args: infer P) => any
|
||||||
? P
|
? P
|
||||||
: never
|
: never
|
||||||
) => any
|
) => any
|
||||||
: never
|
: never
|
||||||
}
|
}
|
||||||
: {}
|
: {}
|
||||||
|
|
||||||
export type EmitFn<
|
export type EmitFn<
|
||||||
Options = ObjectEmitsOptions,
|
Options = ObjectEmitsOptions,
|
||||||
|
@ -61,14 +61,14 @@ export type EmitFn<
|
||||||
> = Options extends Array<infer V>
|
> = Options extends Array<infer V>
|
||||||
? (event: V, ...args: any[]) => void
|
? (event: V, ...args: any[]) => void
|
||||||
: {} extends Options // if the emit is empty object (usually the default value for emit) should be converted to function
|
: {} extends Options // if the emit is empty object (usually the default value for emit) should be converted to function
|
||||||
? (event: string, ...args: any[]) => void
|
? (event: string, ...args: any[]) => void
|
||||||
: UnionToIntersection<
|
: UnionToIntersection<
|
||||||
{
|
{
|
||||||
[key in Event]: Options[key] extends (...args: infer Args) => any
|
[key in Event]: Options[key] extends (...args: infer Args) => any
|
||||||
? (event: key, ...args: Args) => void
|
? (event: key, ...args: Args) => void
|
||||||
: (event: key, ...args: any[]) => void
|
: (event: key, ...args: any[]) => void
|
||||||
}[Event]
|
}[Event]
|
||||||
>
|
>
|
||||||
|
|
||||||
export function emit(
|
export function emit(
|
||||||
instance: ComponentInternalInstance,
|
instance: ComponentInternalInstance,
|
||||||
|
|
|
@ -419,8 +419,8 @@ export type ExtractComputedReturns<T extends any> = {
|
||||||
[key in keyof T]: T[key] extends { get: (...args: any[]) => infer TReturn }
|
[key in keyof T]: T[key] extends { get: (...args: any[]) => infer TReturn }
|
||||||
? TReturn
|
? TReturn
|
||||||
: T[key] extends (...args: any[]) => infer TReturn
|
: T[key] extends (...args: any[]) => infer TReturn
|
||||||
? TReturn
|
? TReturn
|
||||||
: never
|
: never
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ObjectWatchOptionItem = {
|
export type ObjectWatchOptionItem = {
|
||||||
|
@ -450,10 +450,10 @@ export type InjectToObject<T extends ComponentInjectOptions> =
|
||||||
[K in T[number]]?: unknown
|
[K in T[number]]?: unknown
|
||||||
}
|
}
|
||||||
: T extends ObjectInjectOptions
|
: T extends ObjectInjectOptions
|
||||||
? {
|
? {
|
||||||
[K in keyof T]?: unknown
|
[K in keyof T]?: unknown
|
||||||
}
|
}
|
||||||
: never
|
: never
|
||||||
|
|
||||||
interface LegacyOptions<
|
interface LegacyOptions<
|
||||||
Props,
|
Props,
|
||||||
|
@ -752,8 +752,8 @@ export function applyOptions(instance: ComponentInternalInstance) {
|
||||||
const get = isFunction(opt)
|
const get = isFunction(opt)
|
||||||
? opt.bind(publicThis, publicThis)
|
? opt.bind(publicThis, publicThis)
|
||||||
: isFunction(opt.get)
|
: isFunction(opt.get)
|
||||||
? opt.get.bind(publicThis, publicThis)
|
? opt.get.bind(publicThis, publicThis)
|
||||||
: NOOP
|
: NOOP
|
||||||
if (__DEV__ && get === NOOP) {
|
if (__DEV__ && get === NOOP) {
|
||||||
warn(`Computed property "${key}" has no getter.`)
|
warn(`Computed property "${key}" has no getter.`)
|
||||||
}
|
}
|
||||||
|
@ -761,12 +761,12 @@ export function applyOptions(instance: ComponentInternalInstance) {
|
||||||
!isFunction(opt) && isFunction(opt.set)
|
!isFunction(opt) && isFunction(opt.set)
|
||||||
? opt.set.bind(publicThis)
|
? opt.set.bind(publicThis)
|
||||||
: __DEV__
|
: __DEV__
|
||||||
? () => {
|
? () => {
|
||||||
warn(
|
warn(
|
||||||
`Write operation failed: computed property "${key}" is readonly.`
|
`Write operation failed: computed property "${key}" is readonly.`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
: NOOP
|
: NOOP
|
||||||
const c = computed({
|
const c = computed({
|
||||||
get,
|
get,
|
||||||
set
|
set
|
||||||
|
|
|
@ -111,22 +111,22 @@ type DefaultKeys<T> = {
|
||||||
type InferPropType<T> = [T] extends [null]
|
type InferPropType<T> = [T] extends [null]
|
||||||
? any // null & true would fail to infer
|
? any // null & true would fail to infer
|
||||||
: [T] extends [{ type: null | true }]
|
: [T] extends [{ type: null | true }]
|
||||||
? any // As TS issue https://github.com/Microsoft/TypeScript/issues/14829 // somehow `ObjectConstructor` when inferred from { (): T } becomes `any` // `BooleanConstructor` when inferred from PropConstructor(with PropMethod) becomes `Boolean`
|
? any // As TS issue https://github.com/Microsoft/TypeScript/issues/14829 // somehow `ObjectConstructor` when inferred from { (): T } becomes `any` // `BooleanConstructor` when inferred from PropConstructor(with PropMethod) becomes `Boolean`
|
||||||
: [T] extends [ObjectConstructor | { type: ObjectConstructor }]
|
: [T] extends [ObjectConstructor | { type: ObjectConstructor }]
|
||||||
? Record<string, any>
|
? Record<string, any>
|
||||||
: [T] extends [BooleanConstructor | { type: BooleanConstructor }]
|
: [T] extends [BooleanConstructor | { type: BooleanConstructor }]
|
||||||
? boolean
|
? boolean
|
||||||
: [T] extends [DateConstructor | { type: DateConstructor }]
|
: [T] extends [DateConstructor | { type: DateConstructor }]
|
||||||
? Date
|
? Date
|
||||||
: [T] extends [(infer U)[] | { type: (infer U)[] }]
|
: [T] extends [(infer U)[] | { type: (infer U)[] }]
|
||||||
? U extends DateConstructor
|
? U extends DateConstructor
|
||||||
? Date | InferPropType<U>
|
? Date | InferPropType<U>
|
||||||
: InferPropType<U>
|
: InferPropType<U>
|
||||||
: [T] extends [Prop<infer V, infer D>]
|
: [T] extends [Prop<infer V, infer D>]
|
||||||
? unknown extends V
|
? unknown extends V
|
||||||
? IfAny<V, V, D>
|
? IfAny<V, V, D>
|
||||||
: V
|
: V
|
||||||
: T
|
: T
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extract prop types from a runtime props options object.
|
* Extract prop types from a runtime props options object.
|
||||||
|
|
|
@ -478,8 +478,8 @@ function getKeepAliveChild(vnode: VNode): VNode | undefined {
|
||||||
__DEV__ && vnode.component
|
__DEV__ && vnode.component
|
||||||
? vnode.component.subTree
|
? vnode.component.subTree
|
||||||
: vnode.children
|
: vnode.children
|
||||||
? ((vnode.children as VNodeArrayChildren)[0] as VNode)
|
? ((vnode.children as VNodeArrayChildren)[0] as VNode)
|
||||||
: undefined
|
: undefined
|
||||||
: vnode
|
: vnode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -582,8 +582,8 @@ export function createHydrationFunctions(
|
||||||
node.nodeType === DOMNodeTypes.TEXT
|
node.nodeType === DOMNodeTypes.TEXT
|
||||||
? `(text)`
|
? `(text)`
|
||||||
: isComment(node) && node.data === '['
|
: isComment(node) && node.data === '['
|
||||||
? `(start of fragment)`
|
? `(start of fragment)`
|
||||||
: ``
|
: ``
|
||||||
)
|
)
|
||||||
vnode.el = null
|
vnode.el = null
|
||||||
|
|
||||||
|
|
|
@ -573,14 +573,14 @@ function _createVNode(
|
||||||
const shapeFlag = isString(type)
|
const shapeFlag = isString(type)
|
||||||
? ShapeFlags.ELEMENT
|
? ShapeFlags.ELEMENT
|
||||||
: __FEATURE_SUSPENSE__ && isSuspense(type)
|
: __FEATURE_SUSPENSE__ && isSuspense(type)
|
||||||
? ShapeFlags.SUSPENSE
|
? ShapeFlags.SUSPENSE
|
||||||
: isTeleport(type)
|
: isTeleport(type)
|
||||||
? ShapeFlags.TELEPORT
|
? ShapeFlags.TELEPORT
|
||||||
: isObject(type)
|
: isObject(type)
|
||||||
? ShapeFlags.STATEFUL_COMPONENT
|
? ShapeFlags.STATEFUL_COMPONENT
|
||||||
: isFunction(type)
|
: isFunction(type)
|
||||||
? ShapeFlags.FUNCTIONAL_COMPONENT
|
? ShapeFlags.FUNCTIONAL_COMPONENT
|
||||||
: 0
|
: 0
|
||||||
|
|
||||||
if (__DEV__ && shapeFlag & ShapeFlags.STATEFUL_COMPONENT && isProxy(type)) {
|
if (__DEV__ && shapeFlag & ShapeFlags.STATEFUL_COMPONENT && isProxy(type)) {
|
||||||
type = toRaw(type)
|
type = toRaw(type)
|
||||||
|
|
|
@ -57,8 +57,8 @@ export function compatCoerceAttr(
|
||||||
value === null
|
value === null
|
||||||
? 'false'
|
? 'false'
|
||||||
: typeof value !== 'boolean' && value !== undefined
|
: typeof value !== 'boolean' && value !== undefined
|
||||||
? 'true'
|
? 'true'
|
||||||
: null
|
: null
|
||||||
if (
|
if (
|
||||||
v2CoercedValue &&
|
v2CoercedValue &&
|
||||||
compatUtils.softAssertCompatEnabled(
|
compatUtils.softAssertCompatEnabled(
|
||||||
|
|
|
@ -34,8 +34,8 @@ export const patchProp: DOMRendererOptions['patchProp'] = (
|
||||||
key[0] === '.'
|
key[0] === '.'
|
||||||
? ((key = key.slice(1)), true)
|
? ((key = key.slice(1)), true)
|
||||||
: key[0] === '^'
|
: key[0] === '^'
|
||||||
? ((key = key.slice(1)), false)
|
? ((key = key.slice(1)), false)
|
||||||
: shouldSetAsProp(el, key, nextValue, isSVG)
|
: shouldSetAsProp(el, key, nextValue, isSVG)
|
||||||
) {
|
) {
|
||||||
patchDOMProp(
|
patchDOMProp(
|
||||||
el,
|
el,
|
||||||
|
|
|
@ -43,8 +43,8 @@ function serializeElement(
|
||||||
return isOn(key) || value == null
|
return isOn(key) || value == null
|
||||||
? ``
|
? ``
|
||||||
: value === ``
|
: value === ``
|
||||||
? key
|
? key
|
||||||
: `${key}=${JSON.stringify(value)}`
|
: `${key}=${JSON.stringify(value)}`
|
||||||
})
|
})
|
||||||
.filter(Boolean)
|
.filter(Boolean)
|
||||||
.join(' ')
|
.join(' ')
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vitejs/plugin-vue": "^4.4.0",
|
"@vitejs/plugin-vue": "^4.4.0",
|
||||||
"vite": "^4.5.0"
|
"vite": "^5.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue/repl": "^2.7.0",
|
"@vue/repl": "^2.7.0",
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "vite-vue-starter",
|
"name": "vite-vue-starter",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
|
@ -11,6 +12,6 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vitejs/plugin-vue": "^4.4.0",
|
"@vitejs/plugin-vue": "^4.4.0",
|
||||||
"vite": "^4.5.0"
|
"vite": "^5.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,12 +170,12 @@ export const getGlobalThis = (): any => {
|
||||||
typeof globalThis !== 'undefined'
|
typeof globalThis !== 'undefined'
|
||||||
? globalThis
|
? globalThis
|
||||||
: typeof self !== 'undefined'
|
: typeof self !== 'undefined'
|
||||||
? self
|
? self
|
||||||
: typeof window !== 'undefined'
|
: typeof window !== 'undefined'
|
||||||
? window
|
? window
|
||||||
: typeof global !== 'undefined'
|
: typeof global !== 'undefined'
|
||||||
? global
|
? global
|
||||||
: {})
|
: {})
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,12 +17,12 @@ export const toDisplayString = (val: unknown): string => {
|
||||||
return isString(val)
|
return isString(val)
|
||||||
? val
|
? val
|
||||||
: val == null
|
: val == null
|
||||||
? ''
|
? ''
|
||||||
: isArray(val) ||
|
: isArray(val) ||
|
||||||
(isObject(val) &&
|
(isObject(val) &&
|
||||||
(val.toString === objectToString || !isFunction(val.toString)))
|
(val.toString === objectToString || !isFunction(val.toString)))
|
||||||
? JSON.stringify(val, replacer, 2)
|
? JSON.stringify(val, replacer, 2)
|
||||||
: String(val)
|
: String(val)
|
||||||
}
|
}
|
||||||
|
|
||||||
const replacer = (_key: string, val: any): any => {
|
const replacer = (_key: string, val: any): any => {
|
||||||
|
|
|
@ -17,7 +17,7 @@ export type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N
|
||||||
export type Awaited<T> = T extends null | undefined
|
export type Awaited<T> = T extends null | undefined
|
||||||
? T // special case for `null | undefined` when not in `--strictNullChecks` mode
|
? T // special case for `null | undefined` when not in `--strictNullChecks` mode
|
||||||
: T extends object & { then(onfulfilled: infer F, ...args: infer _): any } // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped
|
: T extends object & { then(onfulfilled: infer F, ...args: infer _): any } // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped
|
||||||
? F extends (value: infer V, ...args: infer _) => any // if the argument to `then` is callable, extracts the first argument
|
? F extends (value: infer V, ...args: infer _) => any // if the argument to `then` is callable, extracts the first argument
|
||||||
? Awaited<V> // recursively unwrap the value
|
? Awaited<V> // recursively unwrap the value
|
||||||
: never // the argument to `then` was not callable
|
: never // the argument to `then` was not callable
|
||||||
: T // non-object or non-thenable
|
: T // non-object or non-thenable
|
||||||
|
|
|
@ -12,10 +12,10 @@ Vue.compile = (() => {
|
||||||
(__ESM_BUNDLER__
|
(__ESM_BUNDLER__
|
||||||
? ` Configure your bundler to alias "vue" to "@vue/compat/dist/vue.esm-bundler.js".`
|
? ` Configure your bundler to alias "vue" to "@vue/compat/dist/vue.esm-bundler.js".`
|
||||||
: __ESM_BROWSER__
|
: __ESM_BROWSER__
|
||||||
? ` Use "vue.esm-browser.js" instead.`
|
? ` Use "vue.esm-browser.js" instead.`
|
||||||
: __GLOBAL__
|
: __GLOBAL__
|
||||||
? ` Use "vue.global.js" instead.`
|
? ` Use "vue.global.js" instead.`
|
||||||
: ``) /* should not happen */
|
: ``) /* should not happen */
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}) as any
|
}) as any
|
||||||
|
|
|
@ -48,10 +48,10 @@ type DestructureRefs<T extends object> = {
|
||||||
[K in keyof T]: T[K] extends ComputedRef<infer V>
|
[K in keyof T]: T[K] extends ComputedRef<infer V>
|
||||||
? ComputedRefValue<V>
|
? ComputedRefValue<V>
|
||||||
: T[K] extends WritableComputedRef<infer V>
|
: T[K] extends WritableComputedRef<infer V>
|
||||||
? WritableComputedRefValue<V>
|
? WritableComputedRefValue<V>
|
||||||
: T[K] extends Ref<infer V>
|
: T[K] extends Ref<infer V>
|
||||||
? RefValue<V>
|
? RefValue<V>
|
||||||
: T[K]
|
: T[K]
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -68,19 +68,19 @@ type ToRawRefs<T extends object> = {
|
||||||
[K in keyof T]: T[K] extends RefValue<infer V>
|
[K in keyof T]: T[K] extends RefValue<infer V>
|
||||||
? Ref<V>
|
? Ref<V>
|
||||||
: T[K] extends ComputedRefValue<infer V>
|
: T[K] extends ComputedRefValue<infer V>
|
||||||
? ComputedRef<V>
|
? ComputedRef<V>
|
||||||
: T[K] extends WritableComputedRefValue<infer V>
|
: T[K] extends WritableComputedRefValue<infer V>
|
||||||
? WritableComputedRef<V>
|
? WritableComputedRef<V>
|
||||||
: T[K] extends object
|
: T[K] extends object
|
||||||
? T[K] extends
|
? T[K] extends
|
||||||
| Function
|
| Function
|
||||||
| Map<any, any>
|
| Map<any, any>
|
||||||
| Set<any>
|
| Set<any>
|
||||||
| WeakMap<any, any>
|
| WeakMap<any, any>
|
||||||
| WeakSet<any>
|
| WeakSet<any>
|
||||||
? T[K]
|
? T[K]
|
||||||
: ToRawRefs<T[K]>
|
: ToRawRefs<T[K]>
|
||||||
: T[K]
|
: T[K]
|
||||||
}
|
}
|
||||||
|
|
||||||
export declare function $ref<T>(): RefValue<T | undefined>
|
export declare function $ref<T>(): RefValue<T | undefined>
|
||||||
|
|
|
@ -16,10 +16,10 @@ export const compile = () => {
|
||||||
(__ESM_BUNDLER__
|
(__ESM_BUNDLER__
|
||||||
? ` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".`
|
? ` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".`
|
||||||
: __ESM_BROWSER__
|
: __ESM_BROWSER__
|
||||||
? ` Use "vue.esm-browser.js" instead.`
|
? ` Use "vue.esm-browser.js" instead.`
|
||||||
: __GLOBAL__
|
: __GLOBAL__
|
||||||
? ` Use "vue.global.js" instead.`
|
? ` Use "vue.global.js" instead.`
|
||||||
: ``) /* should not happen */
|
: ``) /* should not happen */
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
287
pnpm-lock.yaml
287
pnpm-lock.yaml
|
@ -39,8 +39,8 @@ importers:
|
||||||
specifier: ^20.9.0
|
specifier: ^20.9.0
|
||||||
version: 20.9.0
|
version: 20.9.0
|
||||||
'@typescript-eslint/parser':
|
'@typescript-eslint/parser':
|
||||||
specifier: ^6.10.0
|
specifier: ^6.11.0
|
||||||
version: 6.10.0(eslint@8.53.0)(typescript@5.2.2)
|
version: 6.11.0(eslint@8.54.0)(typescript@5.2.2)
|
||||||
'@vitest/coverage-istanbul':
|
'@vitest/coverage-istanbul':
|
||||||
specifier: ^0.34.6
|
specifier: ^0.34.6
|
||||||
version: 0.34.6(vitest@0.34.6)
|
version: 0.34.6(vitest@0.34.6)
|
||||||
|
@ -60,11 +60,11 @@ importers:
|
||||||
specifier: ^0.3.0
|
specifier: ^0.3.0
|
||||||
version: 0.3.0(esbuild@0.19.5)
|
version: 0.3.0(esbuild@0.19.5)
|
||||||
eslint:
|
eslint:
|
||||||
specifier: ^8.53.0
|
specifier: ^8.54.0
|
||||||
version: 8.53.0
|
version: 8.54.0
|
||||||
eslint-plugin-jest:
|
eslint-plugin-jest:
|
||||||
specifier: ^27.6.0
|
specifier: ^27.6.0
|
||||||
version: 27.6.0(eslint@8.53.0)(typescript@5.2.2)
|
version: 27.6.0(eslint@8.54.0)(typescript@5.2.2)
|
||||||
estree-walker:
|
estree-walker:
|
||||||
specifier: ^2.0.2
|
specifier: ^2.0.2
|
||||||
version: 2.0.2
|
version: 2.0.2
|
||||||
|
@ -75,8 +75,8 @@ importers:
|
||||||
specifier: ^22.1.0
|
specifier: ^22.1.0
|
||||||
version: 22.1.0
|
version: 22.1.0
|
||||||
lint-staged:
|
lint-staged:
|
||||||
specifier: ^15.0.2
|
specifier: ^15.1.0
|
||||||
version: 15.0.2
|
version: 15.1.0
|
||||||
lodash:
|
lodash:
|
||||||
specifier: ^4.17.21
|
specifier: ^4.17.21
|
||||||
version: 4.17.21
|
version: 4.17.21
|
||||||
|
@ -99,8 +99,8 @@ importers:
|
||||||
specifier: ^1.0.0
|
specifier: ^1.0.0
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
prettier:
|
prettier:
|
||||||
specifier: ^3.0.3
|
specifier: ^3.1.0
|
||||||
version: 3.0.3
|
version: 3.1.0
|
||||||
pretty-bytes:
|
pretty-bytes:
|
||||||
specifier: ^6.1.1
|
specifier: ^6.1.1
|
||||||
version: 6.1.1
|
version: 6.1.1
|
||||||
|
@ -144,14 +144,14 @@ importers:
|
||||||
specifier: ^2.6.2
|
specifier: ^2.6.2
|
||||||
version: 2.6.2
|
version: 2.6.2
|
||||||
tsx:
|
tsx:
|
||||||
specifier: ^3.14.0
|
specifier: ^4.1.3
|
||||||
version: 3.14.0
|
version: 4.1.3
|
||||||
typescript:
|
typescript:
|
||||||
specifier: ^5.2.2
|
specifier: ^5.2.2
|
||||||
version: 5.2.2
|
version: 5.2.2
|
||||||
vite:
|
vite:
|
||||||
specifier: ^4.5.0
|
specifier: ^5.0.0
|
||||||
version: 4.5.0(@types/node@20.9.0)(terser@5.22.0)
|
version: 5.0.0(@types/node@20.9.0)(terser@5.22.0)
|
||||||
vitest:
|
vitest:
|
||||||
specifier: ^0.34.6
|
specifier: ^0.34.6
|
||||||
version: 0.34.6(jsdom@22.1.0)(terser@5.22.0)
|
version: 0.34.6(jsdom@22.1.0)(terser@5.22.0)
|
||||||
|
@ -386,10 +386,10 @@ importers:
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@vitejs/plugin-vue':
|
'@vitejs/plugin-vue':
|
||||||
specifier: ^4.4.0
|
specifier: ^4.4.0
|
||||||
version: 4.4.0(vite@4.5.0)(vue@packages+vue)
|
version: 4.4.0(vite@5.0.0)(vue@packages+vue)
|
||||||
vite:
|
vite:
|
||||||
specifier: ^4.5.0
|
specifier: ^5.0.0
|
||||||
version: 4.5.0(@types/node@20.9.0)(terser@5.22.0)
|
version: 5.0.0(@types/node@20.9.0)(terser@5.22.0)
|
||||||
|
|
||||||
packages/shared: {}
|
packages/shared: {}
|
||||||
|
|
||||||
|
@ -1065,13 +1065,13 @@ packages:
|
||||||
dev: true
|
dev: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@eslint-community/eslint-utils@4.4.0(eslint@8.53.0):
|
/@eslint-community/eslint-utils@4.4.0(eslint@8.54.0):
|
||||||
resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==}
|
resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==}
|
||||||
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^6.0.0 || ^7.0.0 || >=8.0.0
|
eslint: ^6.0.0 || ^7.0.0 || >=8.0.0
|
||||||
dependencies:
|
dependencies:
|
||||||
eslint: 8.53.0
|
eslint: 8.54.0
|
||||||
eslint-visitor-keys: 3.4.3
|
eslint-visitor-keys: 3.4.3
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
@ -1097,8 +1097,8 @@ packages:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@eslint/js@8.53.0:
|
/@eslint/js@8.54.0:
|
||||||
resolution: {integrity: sha512-Kn7K8dx/5U6+cT1yEhpX1w4PCSg0M+XyRILPgvwcEBjerFWCwQj5sbr3/VmxqV0JGHCBCzyd6LxypEuehypY1w==}
|
resolution: {integrity: sha512-ut5V+D+fOoWPgGGNj83GGjnntO39xDy6DWxO0wb7Jp3DcMX0TfIqdzHF85VTQkerdyGmuuMD9AKAo5KiNlf/AQ==}
|
||||||
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
@ -1366,6 +1366,14 @@ packages:
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
/@rollup/rollup-android-arm-eabi@4.4.1:
|
||||||
|
resolution: {integrity: sha512-Ss4suS/sd+6xLRu+MLCkED2mUrAyqHmmvZB+zpzZ9Znn9S8wCkTQCJaQ8P8aHofnvG5L16u9MVnJjCqioPErwQ==}
|
||||||
|
cpu: [arm]
|
||||||
|
os: [android]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
/@rollup/rollup-android-arm64@4.1.4:
|
/@rollup/rollup-android-arm64@4.1.4:
|
||||||
resolution: {integrity: sha512-D1e+ABe56T9Pq2fD+R3ybe1ylCDzu3tY4Qm2Mj24R9wXNCq35+JbFbOpc2yrroO2/tGhTobmEl2Bm5xfE/n8RA==}
|
resolution: {integrity: sha512-D1e+ABe56T9Pq2fD+R3ybe1ylCDzu3tY4Qm2Mj24R9wXNCq35+JbFbOpc2yrroO2/tGhTobmEl2Bm5xfE/n8RA==}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
|
@ -1373,6 +1381,14 @@ packages:
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
/@rollup/rollup-android-arm64@4.4.1:
|
||||||
|
resolution: {integrity: sha512-sRSkGTvGsARwWd7TzC8LKRf8FiPn7257vd/edzmvG4RIr9x68KBN0/Ek48CkuUJ5Pj/Dp9vKWv6PEupjKWjTYA==}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [android]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
/@rollup/rollup-darwin-arm64@4.1.4:
|
/@rollup/rollup-darwin-arm64@4.1.4:
|
||||||
resolution: {integrity: sha512-7vTYrgEiOrjxnjsgdPB+4i7EMxbVp7XXtS+50GJYj695xYTTEMn3HZVEvgtwjOUkAP/Q4HDejm4fIAjLeAfhtg==}
|
resolution: {integrity: sha512-7vTYrgEiOrjxnjsgdPB+4i7EMxbVp7XXtS+50GJYj695xYTTEMn3HZVEvgtwjOUkAP/Q4HDejm4fIAjLeAfhtg==}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
|
@ -1380,6 +1396,14 @@ packages:
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
/@rollup/rollup-darwin-arm64@4.4.1:
|
||||||
|
resolution: {integrity: sha512-nz0AiGrrXyaWpsmBXUGOBiRDU0wyfSXbFuF98pPvIO8O6auQsPG6riWsfQqmCCC5FNd8zKQ4JhgugRNAkBJ8mQ==}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [darwin]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
/@rollup/rollup-darwin-x64@4.1.4:
|
/@rollup/rollup-darwin-x64@4.1.4:
|
||||||
resolution: {integrity: sha512-eGJVZScKSLZkYjhTAESCtbyTBq9SXeW9+TX36ki5gVhDqJtnQ5k0f9F44jNK5RhAMgIj0Ht9+n6HAgH0gUUyWQ==}
|
resolution: {integrity: sha512-eGJVZScKSLZkYjhTAESCtbyTBq9SXeW9+TX36ki5gVhDqJtnQ5k0f9F44jNK5RhAMgIj0Ht9+n6HAgH0gUUyWQ==}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
|
@ -1387,6 +1411,14 @@ packages:
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
/@rollup/rollup-darwin-x64@4.4.1:
|
||||||
|
resolution: {integrity: sha512-Ogqvf4/Ve/faMaiPRvzsJEqajbqs00LO+8vtrPBVvLgdw4wBg6ZDXdkDAZO+4MLnrc8mhGV6VJAzYScZdPLtJg==}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [darwin]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
/@rollup/rollup-linux-arm-gnueabihf@4.1.4:
|
/@rollup/rollup-linux-arm-gnueabihf@4.1.4:
|
||||||
resolution: {integrity: sha512-HnigYSEg2hOdX1meROecbk++z1nVJDpEofw9V2oWKqOWzTJlJf1UXVbDE6Hg30CapJxZu5ga4fdAQc/gODDkKg==}
|
resolution: {integrity: sha512-HnigYSEg2hOdX1meROecbk++z1nVJDpEofw9V2oWKqOWzTJlJf1UXVbDE6Hg30CapJxZu5ga4fdAQc/gODDkKg==}
|
||||||
cpu: [arm]
|
cpu: [arm]
|
||||||
|
@ -1394,6 +1426,14 @@ packages:
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
/@rollup/rollup-linux-arm-gnueabihf@4.4.1:
|
||||||
|
resolution: {integrity: sha512-9zc2tqlr6HfO+hx9+wktUlWTRdje7Ub15iJqKcqg5uJZ+iKqmd2CMxlgPpXi7+bU7bjfDIuvCvnGk7wewFEhCg==}
|
||||||
|
cpu: [arm]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
/@rollup/rollup-linux-arm64-gnu@4.1.4:
|
/@rollup/rollup-linux-arm64-gnu@4.1.4:
|
||||||
resolution: {integrity: sha512-TzJ+N2EoTLWkaClV2CUhBlj6ljXofaYzF/R9HXqQ3JCMnCHQZmQnbnZllw7yTDp0OG5whP4gIPozR4QiX+00MQ==}
|
resolution: {integrity: sha512-TzJ+N2EoTLWkaClV2CUhBlj6ljXofaYzF/R9HXqQ3JCMnCHQZmQnbnZllw7yTDp0OG5whP4gIPozR4QiX+00MQ==}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
|
@ -1401,6 +1441,14 @@ packages:
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
/@rollup/rollup-linux-arm64-gnu@4.4.1:
|
||||||
|
resolution: {integrity: sha512-phLb1fN3rq2o1j1v+nKxXUTSJnAhzhU0hLrl7Qzb0fLpwkGMHDem+o6d+ZI8+/BlTXfMU4kVWGvy6g9k/B8L6Q==}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
/@rollup/rollup-linux-arm64-musl@4.1.4:
|
/@rollup/rollup-linux-arm64-musl@4.1.4:
|
||||||
resolution: {integrity: sha512-aVPmNMdp6Dlo2tWkAduAD/5TL/NT5uor290YvjvFvCv0Q3L7tVdlD8MOGDL+oRSw5XKXKAsDzHhUOPUNPRHVTQ==}
|
resolution: {integrity: sha512-aVPmNMdp6Dlo2tWkAduAD/5TL/NT5uor290YvjvFvCv0Q3L7tVdlD8MOGDL+oRSw5XKXKAsDzHhUOPUNPRHVTQ==}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
|
@ -1408,6 +1456,14 @@ packages:
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
/@rollup/rollup-linux-arm64-musl@4.4.1:
|
||||||
|
resolution: {integrity: sha512-M2sDtw4tf57VPSjbTAN/lz1doWUqO2CbQuX3L9K6GWIR5uw9j+ROKCvvUNBY8WUbMxwaoc8mH9HmmBKsLht7+w==}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
/@rollup/rollup-linux-x64-gnu@4.1.4:
|
/@rollup/rollup-linux-x64-gnu@4.1.4:
|
||||||
resolution: {integrity: sha512-77Fb79ayiDad0grvVsz4/OB55wJRyw9Ao+GdOBA9XywtHpuq5iRbVyHToGxWquYWlEf6WHFQQnFEttsAzboyKg==}
|
resolution: {integrity: sha512-77Fb79ayiDad0grvVsz4/OB55wJRyw9Ao+GdOBA9XywtHpuq5iRbVyHToGxWquYWlEf6WHFQQnFEttsAzboyKg==}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
|
@ -1415,6 +1471,14 @@ packages:
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
/@rollup/rollup-linux-x64-gnu@4.4.1:
|
||||||
|
resolution: {integrity: sha512-mHIlRLX+hx+30cD6c4BaBOsSqdnCE4ok7/KDvjHYAHoSuveoMMxIisZFvcLhUnyZcPBXDGZTuBoalcuh43UfQQ==}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
/@rollup/rollup-linux-x64-musl@4.1.4:
|
/@rollup/rollup-linux-x64-musl@4.1.4:
|
||||||
resolution: {integrity: sha512-/t6C6niEQTqmQTVTD9TDwUzxG91Mlk69/v0qodIPUnjjB3wR4UA3klg+orR2SU3Ux2Cgf2pWPL9utK80/1ek8g==}
|
resolution: {integrity: sha512-/t6C6niEQTqmQTVTD9TDwUzxG91Mlk69/v0qodIPUnjjB3wR4UA3klg+orR2SU3Ux2Cgf2pWPL9utK80/1ek8g==}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
|
@ -1422,6 +1486,14 @@ packages:
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
/@rollup/rollup-linux-x64-musl@4.4.1:
|
||||||
|
resolution: {integrity: sha512-tB+RZuDi3zxFx7vDrjTNGVLu2KNyzYv+UY8jz7e4TMEoAj7iEt8Qk6xVu6mo3pgjnsHj6jnq3uuRsHp97DLwOA==}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [linux]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
/@rollup/rollup-win32-arm64-msvc@4.1.4:
|
/@rollup/rollup-win32-arm64-msvc@4.1.4:
|
||||||
resolution: {integrity: sha512-ZY5BHHrOPkMbCuGWFNpJH0t18D2LU6GMYKGaqaWTQ3CQOL57Fem4zE941/Ek5pIsVt70HyDXssVEFQXlITI5Gg==}
|
resolution: {integrity: sha512-ZY5BHHrOPkMbCuGWFNpJH0t18D2LU6GMYKGaqaWTQ3CQOL57Fem4zE941/Ek5pIsVt70HyDXssVEFQXlITI5Gg==}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
|
@ -1429,6 +1501,14 @@ packages:
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
/@rollup/rollup-win32-arm64-msvc@4.4.1:
|
||||||
|
resolution: {integrity: sha512-Hdn39PzOQowK/HZzYpCuZdJC91PE6EaGbTe2VCA9oq2u18evkisQfws0Smh9QQGNNRa/T7MOuGNQoLeXhhE3PQ==}
|
||||||
|
cpu: [arm64]
|
||||||
|
os: [win32]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
/@rollup/rollup-win32-ia32-msvc@4.1.4:
|
/@rollup/rollup-win32-ia32-msvc@4.1.4:
|
||||||
resolution: {integrity: sha512-XG2mcRfFrJvYyYaQmvCIvgfkaGinfXrpkBuIbJrTl9SaIQ8HumheWTIwkNz2mktCKwZfXHQNpO7RgXLIGQ7HXA==}
|
resolution: {integrity: sha512-XG2mcRfFrJvYyYaQmvCIvgfkaGinfXrpkBuIbJrTl9SaIQ8HumheWTIwkNz2mktCKwZfXHQNpO7RgXLIGQ7HXA==}
|
||||||
cpu: [ia32]
|
cpu: [ia32]
|
||||||
|
@ -1436,6 +1516,14 @@ packages:
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
/@rollup/rollup-win32-ia32-msvc@4.4.1:
|
||||||
|
resolution: {integrity: sha512-tLpKb1Elm9fM8c5w3nl4N1eLTP4bCqTYw9tqUBxX8/hsxqHO3dxc2qPbZ9PNkdK4tg4iLEYn0pOUnVByRd2CbA==}
|
||||||
|
cpu: [ia32]
|
||||||
|
os: [win32]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
/@rollup/rollup-win32-x64-msvc@4.1.4:
|
/@rollup/rollup-win32-x64-msvc@4.1.4:
|
||||||
resolution: {integrity: sha512-ANFqWYPwkhIqPmXw8vm0GpBEHiPpqcm99jiiAp71DbCSqLDhrtr019C5vhD0Bw4My+LmMvciZq6IsWHqQpl2ZQ==}
|
resolution: {integrity: sha512-ANFqWYPwkhIqPmXw8vm0GpBEHiPpqcm99jiiAp71DbCSqLDhrtr019C5vhD0Bw4My+LmMvciZq6IsWHqQpl2ZQ==}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
|
@ -1443,6 +1531,14 @@ packages:
|
||||||
requiresBuild: true
|
requiresBuild: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
|
/@rollup/rollup-win32-x64-msvc@4.4.1:
|
||||||
|
resolution: {integrity: sha512-eAhItDX9yQtZVM3yvXS/VR3qPqcnXvnLyx1pLXl4JzyNMBNO3KC986t/iAg2zcMzpAp9JSvxB5VZGnBiNoA98w==}
|
||||||
|
cpu: [x64]
|
||||||
|
os: [win32]
|
||||||
|
requiresBuild: true
|
||||||
|
dev: true
|
||||||
|
optional: true
|
||||||
|
|
||||||
/@sinclair/typebox@0.27.8:
|
/@sinclair/typebox@0.27.8:
|
||||||
resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==}
|
resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==}
|
||||||
dev: true
|
dev: true
|
||||||
|
@ -1503,8 +1599,8 @@ packages:
|
||||||
dev: true
|
dev: true
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@typescript-eslint/parser@6.10.0(eslint@8.53.0)(typescript@5.2.2):
|
/@typescript-eslint/parser@6.11.0(eslint@8.54.0)(typescript@5.2.2):
|
||||||
resolution: {integrity: sha512-+sZwIj+s+io9ozSxIWbNB5873OSdfeBEH/FR0re14WLI6BaKuSOnnwCJ2foUiu8uXf4dRp1UqHP0vrZ1zXGrog==}
|
resolution: {integrity: sha512-+whEdjk+d5do5nxfxx73oanLL9ghKO3EwM9kBCkUtWMRwWuPaFv9ScuqlYfQ6pAD6ZiJhky7TZ2ZYhrMsfMxVQ==}
|
||||||
engines: {node: ^16.0.0 || >=18.0.0}
|
engines: {node: ^16.0.0 || >=18.0.0}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^7.0.0 || ^8.0.0
|
eslint: ^7.0.0 || ^8.0.0
|
||||||
|
@ -1513,12 +1609,12 @@ packages:
|
||||||
typescript:
|
typescript:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/scope-manager': 6.10.0
|
'@typescript-eslint/scope-manager': 6.11.0
|
||||||
'@typescript-eslint/types': 6.10.0
|
'@typescript-eslint/types': 6.11.0
|
||||||
'@typescript-eslint/typescript-estree': 6.10.0(typescript@5.2.2)
|
'@typescript-eslint/typescript-estree': 6.11.0(typescript@5.2.2)
|
||||||
'@typescript-eslint/visitor-keys': 6.10.0
|
'@typescript-eslint/visitor-keys': 6.11.0
|
||||||
debug: 4.3.4
|
debug: 4.3.4
|
||||||
eslint: 8.53.0
|
eslint: 8.54.0
|
||||||
typescript: 5.2.2
|
typescript: 5.2.2
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
@ -1532,12 +1628,12 @@ packages:
|
||||||
'@typescript-eslint/visitor-keys': 5.62.0
|
'@typescript-eslint/visitor-keys': 5.62.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/scope-manager@6.10.0:
|
/@typescript-eslint/scope-manager@6.11.0:
|
||||||
resolution: {integrity: sha512-TN/plV7dzqqC2iPNf1KrxozDgZs53Gfgg5ZHyw8erd6jd5Ta/JIEcdCheXFt9b1NYb93a1wmIIVW/2gLkombDg==}
|
resolution: {integrity: sha512-0A8KoVvIURG4uhxAdjSaxy8RdRE//HztaZdG8KiHLP8WOXSk0vlF7Pvogv+vlJA5Rnjj/wDcFENvDaHb+gKd1A==}
|
||||||
engines: {node: ^16.0.0 || >=18.0.0}
|
engines: {node: ^16.0.0 || >=18.0.0}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/types': 6.10.0
|
'@typescript-eslint/types': 6.11.0
|
||||||
'@typescript-eslint/visitor-keys': 6.10.0
|
'@typescript-eslint/visitor-keys': 6.11.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/types@5.62.0:
|
/@typescript-eslint/types@5.62.0:
|
||||||
|
@ -1545,8 +1641,8 @@ packages:
|
||||||
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/types@6.10.0:
|
/@typescript-eslint/types@6.11.0:
|
||||||
resolution: {integrity: sha512-36Fq1PWh9dusgo3vH7qmQAj5/AZqARky1Wi6WpINxB6SkQdY5vQoT2/7rW7uBIsPDcvvGCLi4r10p0OJ7ITAeg==}
|
resolution: {integrity: sha512-ZbEzuD4DwEJxwPqhv3QULlRj8KYTAnNsXxmfuUXFCxZmO6CF2gM/y+ugBSAQhrqaJL3M+oe4owdWunaHM6beqA==}
|
||||||
engines: {node: ^16.0.0 || >=18.0.0}
|
engines: {node: ^16.0.0 || >=18.0.0}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
@ -1571,8 +1667,8 @@ packages:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/typescript-estree@6.10.0(typescript@5.2.2):
|
/@typescript-eslint/typescript-estree@6.11.0(typescript@5.2.2):
|
||||||
resolution: {integrity: sha512-ek0Eyuy6P15LJVeghbWhSrBCj/vJpPXXR+EpaRZqou7achUWL8IdYnMSC5WHAeTWswYQuP2hAZgij/bC9fanBg==}
|
resolution: {integrity: sha512-Aezzv1o2tWJwvZhedzvD5Yv7+Lpu1by/U1LZ5gLc4tCx8jUmuSCMioPFRjliN/6SJIvY6HpTtJIWubKuYYYesQ==}
|
||||||
engines: {node: ^16.0.0 || >=18.0.0}
|
engines: {node: ^16.0.0 || >=18.0.0}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
typescript: '*'
|
typescript: '*'
|
||||||
|
@ -1580,8 +1676,8 @@ packages:
|
||||||
typescript:
|
typescript:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/types': 6.10.0
|
'@typescript-eslint/types': 6.11.0
|
||||||
'@typescript-eslint/visitor-keys': 6.10.0
|
'@typescript-eslint/visitor-keys': 6.11.0
|
||||||
debug: 4.3.4
|
debug: 4.3.4
|
||||||
globby: 11.1.0
|
globby: 11.1.0
|
||||||
is-glob: 4.0.3
|
is-glob: 4.0.3
|
||||||
|
@ -1592,19 +1688,19 @@ packages:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/utils@5.62.0(eslint@8.53.0)(typescript@5.2.2):
|
/@typescript-eslint/utils@5.62.0(eslint@8.54.0)(typescript@5.2.2):
|
||||||
resolution: {integrity: sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==}
|
resolution: {integrity: sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==}
|
||||||
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
|
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-community/eslint-utils': 4.4.0(eslint@8.53.0)
|
'@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0)
|
||||||
'@types/json-schema': 7.0.14
|
'@types/json-schema': 7.0.14
|
||||||
'@types/semver': 7.5.4
|
'@types/semver': 7.5.4
|
||||||
'@typescript-eslint/scope-manager': 5.62.0
|
'@typescript-eslint/scope-manager': 5.62.0
|
||||||
'@typescript-eslint/types': 5.62.0
|
'@typescript-eslint/types': 5.62.0
|
||||||
'@typescript-eslint/typescript-estree': 5.62.0(typescript@5.2.2)
|
'@typescript-eslint/typescript-estree': 5.62.0(typescript@5.2.2)
|
||||||
eslint: 8.53.0
|
eslint: 8.54.0
|
||||||
eslint-scope: 5.1.1
|
eslint-scope: 5.1.1
|
||||||
semver: 7.5.4
|
semver: 7.5.4
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
@ -1620,11 +1716,11 @@ packages:
|
||||||
eslint-visitor-keys: 3.4.3
|
eslint-visitor-keys: 3.4.3
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/visitor-keys@6.10.0:
|
/@typescript-eslint/visitor-keys@6.11.0:
|
||||||
resolution: {integrity: sha512-xMGluxQIEtOM7bqFCo+rCMh5fqI+ZxV5RUUOa29iVPz1OgCZrtc7rFnz5cLUazlkPKYqX+75iuDq7m0HQ48nCg==}
|
resolution: {integrity: sha512-+SUN/W7WjBr05uRxPggJPSzyB8zUpaYo2hByKasWbqr3PM8AXfZt8UHdNpBS1v9SA62qnSSMF3380SwDqqprgQ==}
|
||||||
engines: {node: ^16.0.0 || >=18.0.0}
|
engines: {node: ^16.0.0 || >=18.0.0}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/types': 6.10.0
|
'@typescript-eslint/types': 6.11.0
|
||||||
eslint-visitor-keys: 3.4.3
|
eslint-visitor-keys: 3.4.3
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
@ -1643,6 +1739,17 @@ packages:
|
||||||
vue: link:packages/vue
|
vue: link:packages/vue
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/@vitejs/plugin-vue@4.4.0(vite@5.0.0)(vue@packages+vue):
|
||||||
|
resolution: {integrity: sha512-xdguqb+VUwiRpSg+nsc2HtbAUSGak25DXYvpQQi4RVU1Xq1uworyoH/md9Rfd8zMmPR/pSghr309QNcftUVseg==}
|
||||||
|
engines: {node: ^14.18.0 || >=16.0.0}
|
||||||
|
peerDependencies:
|
||||||
|
vite: ^4.0.0
|
||||||
|
vue: ^3.2.25
|
||||||
|
dependencies:
|
||||||
|
vite: 5.0.0(@types/node@20.9.0)(terser@5.22.0)
|
||||||
|
vue: link:packages/vue
|
||||||
|
dev: true
|
||||||
|
|
||||||
/@vitest/coverage-istanbul@0.34.6(vitest@0.34.6):
|
/@vitest/coverage-istanbul@0.34.6(vitest@0.34.6):
|
||||||
resolution: {integrity: sha512-5KaBNZPDSk2ybavC3rZ1pWGniw7sJ5usuwVGRUYzJwiBfWvnLpuUer7bjw7qUCRGdKJXrBgb/Dsgif9rkwMX/A==}
|
resolution: {integrity: sha512-5KaBNZPDSk2ybavC3rZ1pWGniw7sJ5usuwVGRUYzJwiBfWvnLpuUer7bjw7qUCRGdKJXrBgb/Dsgif9rkwMX/A==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
|
@ -2863,7 +2970,7 @@ packages:
|
||||||
source-map: 0.6.1
|
source-map: 0.6.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/eslint-plugin-jest@27.6.0(eslint@8.53.0)(typescript@5.2.2):
|
/eslint-plugin-jest@27.6.0(eslint@8.54.0)(typescript@5.2.2):
|
||||||
resolution: {integrity: sha512-MTlusnnDMChbElsszJvrwD1dN3x6nZl//s4JD23BxB6MgR66TZlL064su24xEIS3VACfAoHV1vgyMgPw8nkdng==}
|
resolution: {integrity: sha512-MTlusnnDMChbElsszJvrwD1dN3x6nZl//s4JD23BxB6MgR66TZlL064su24xEIS3VACfAoHV1vgyMgPw8nkdng==}
|
||||||
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
|
engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
|
@ -2876,8 +2983,8 @@ packages:
|
||||||
jest:
|
jest:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@typescript-eslint/utils': 5.62.0(eslint@8.53.0)(typescript@5.2.2)
|
'@typescript-eslint/utils': 5.62.0(eslint@8.54.0)(typescript@5.2.2)
|
||||||
eslint: 8.53.0
|
eslint: 8.54.0
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
- typescript
|
- typescript
|
||||||
|
@ -2904,15 +3011,15 @@ packages:
|
||||||
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/eslint@8.53.0:
|
/eslint@8.54.0:
|
||||||
resolution: {integrity: sha512-N4VuiPjXDUa4xVeV/GC/RV3hQW9Nw+Y463lkWaKKXKYMvmRiRDAtfpuPFLN+E1/6ZhyR8J2ig+eVREnYgUsiag==}
|
resolution: {integrity: sha512-NY0DfAkM8BIZDVl6PgSa1ttZbx3xHgJzSNJKYcQglem6CppHyMhRIQkBVSSMaSRnLhig3jsDbEzOjwCVt4AmmA==}
|
||||||
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@eslint-community/eslint-utils': 4.4.0(eslint@8.53.0)
|
'@eslint-community/eslint-utils': 4.4.0(eslint@8.54.0)
|
||||||
'@eslint-community/regexpp': 4.9.1
|
'@eslint-community/regexpp': 4.9.1
|
||||||
'@eslint/eslintrc': 2.1.3
|
'@eslint/eslintrc': 2.1.3
|
||||||
'@eslint/js': 8.53.0
|
'@eslint/js': 8.54.0
|
||||||
'@humanwhocodes/config-array': 0.11.13
|
'@humanwhocodes/config-array': 0.11.13
|
||||||
'@humanwhocodes/module-importer': 1.0.1
|
'@humanwhocodes/module-importer': 1.0.1
|
||||||
'@nodelib/fs.walk': 1.2.8
|
'@nodelib/fs.walk': 1.2.8
|
||||||
|
@ -4090,8 +4197,8 @@ packages:
|
||||||
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
|
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/lint-staged@15.0.2:
|
/lint-staged@15.1.0:
|
||||||
resolution: {integrity: sha512-vnEy7pFTHyVuDmCAIFKR5QDO8XLVlPFQQyujQ/STOxe40ICWqJ6knS2wSJ/ffX/Lw0rz83luRDh+ET7toN+rOw==}
|
resolution: {integrity: sha512-ZPKXWHVlL7uwVpy8OZ7YQjYDAuO5X4kMh0XgZvPNxLcCCngd0PO5jKQyy3+s4TL2EnHoIXIzP1422f/l3nZKMw==}
|
||||||
engines: {node: '>=18.12.0'}
|
engines: {node: '>=18.12.0'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -4104,7 +4211,7 @@ packages:
|
||||||
micromatch: 4.0.5
|
micromatch: 4.0.5
|
||||||
pidtree: 0.6.0
|
pidtree: 0.6.0
|
||||||
string-argv: 0.3.2
|
string-argv: 0.3.2
|
||||||
yaml: 2.3.3
|
yaml: 2.3.4
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
@ -4820,8 +4927,8 @@ packages:
|
||||||
engines: {node: '>= 0.8.0'}
|
engines: {node: '>= 0.8.0'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/prettier@3.0.3:
|
/prettier@3.1.0:
|
||||||
resolution: {integrity: sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==}
|
resolution: {integrity: sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==}
|
||||||
engines: {node: '>=14'}
|
engines: {node: '>=14'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dev: true
|
dev: true
|
||||||
|
@ -5257,6 +5364,26 @@ packages:
|
||||||
'@rollup/rollup-win32-x64-msvc': 4.1.4
|
'@rollup/rollup-win32-x64-msvc': 4.1.4
|
||||||
fsevents: 2.3.3
|
fsevents: 2.3.3
|
||||||
|
|
||||||
|
/rollup@4.4.1:
|
||||||
|
resolution: {integrity: sha512-idZzrUpWSblPJX66i+GzrpjKE3vbYrlWirUHteoAbjKReZwa0cohAErOYA5efoMmNCdvG9yrJS+w9Kl6csaH4w==}
|
||||||
|
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
|
||||||
|
hasBin: true
|
||||||
|
optionalDependencies:
|
||||||
|
'@rollup/rollup-android-arm-eabi': 4.4.1
|
||||||
|
'@rollup/rollup-android-arm64': 4.4.1
|
||||||
|
'@rollup/rollup-darwin-arm64': 4.4.1
|
||||||
|
'@rollup/rollup-darwin-x64': 4.4.1
|
||||||
|
'@rollup/rollup-linux-arm-gnueabihf': 4.4.1
|
||||||
|
'@rollup/rollup-linux-arm64-gnu': 4.4.1
|
||||||
|
'@rollup/rollup-linux-arm64-musl': 4.4.1
|
||||||
|
'@rollup/rollup-linux-x64-gnu': 4.4.1
|
||||||
|
'@rollup/rollup-linux-x64-musl': 4.4.1
|
||||||
|
'@rollup/rollup-win32-arm64-msvc': 4.4.1
|
||||||
|
'@rollup/rollup-win32-ia32-msvc': 4.4.1
|
||||||
|
'@rollup/rollup-win32-x64-msvc': 4.4.1
|
||||||
|
fsevents: 2.3.3
|
||||||
|
dev: true
|
||||||
|
|
||||||
/rrweb-cssom@0.6.0:
|
/rrweb-cssom@0.6.0:
|
||||||
resolution: {integrity: sha512-APM0Gt1KoXBz0iIkkdB/kfvGOwC4UuJFeG/c+yV7wSc7q96cG/kJ0HiYCnzivD9SB53cLV1MlHFNfOuPaadYSw==}
|
resolution: {integrity: sha512-APM0Gt1KoXBz0iIkkdB/kfvGOwC4UuJFeG/c+yV7wSc7q96cG/kJ0HiYCnzivD9SB53cLV1MlHFNfOuPaadYSw==}
|
||||||
dev: true
|
dev: true
|
||||||
|
@ -5856,8 +5983,9 @@ packages:
|
||||||
typescript: 5.2.2
|
typescript: 5.2.2
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/tsx@3.14.0:
|
/tsx@4.1.3:
|
||||||
resolution: {integrity: sha512-xHtFaKtHxM9LOklMmJdI3BEnQq/D5F73Of2E1GDrITi9sgoVkvIsrQUTY1G8FlmGtA+awCI4EBlTRRYxkL2sRg==}
|
resolution: {integrity: sha512-DLiTy1eri4nhqgVVy+15YKC6Ij2BMFxGdDMkVrSDkNuISUJLv7n0NgZpFLpdM+qmwXar34XllgYi4cxkNMbDwQ==}
|
||||||
|
engines: {node: '>=18.0.0'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
esbuild: 0.18.20
|
esbuild: 0.18.20
|
||||||
|
@ -6059,7 +6187,7 @@ packages:
|
||||||
mlly: 1.4.2
|
mlly: 1.4.2
|
||||||
pathe: 1.1.1
|
pathe: 1.1.1
|
||||||
picocolors: 1.0.0
|
picocolors: 1.0.0
|
||||||
vite: 4.5.0(@types/node@20.9.0)(terser@5.22.0)
|
vite: 5.0.0(@types/node@20.9.0)(terser@5.22.0)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- '@types/node'
|
- '@types/node'
|
||||||
- less
|
- less
|
||||||
|
@ -6132,6 +6260,43 @@ packages:
|
||||||
fsevents: 2.3.3
|
fsevents: 2.3.3
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/vite@5.0.0(@types/node@20.9.0)(terser@5.22.0):
|
||||||
|
resolution: {integrity: sha512-ESJVM59mdyGpsiNAeHQOR/0fqNoOyWPYesFto8FFZugfmhdHx8Fzd8sF3Q/xkVhZsyOxHfdM7ieiVAorI9RjFw==}
|
||||||
|
engines: {node: ^18.0.0 || >=20.0.0}
|
||||||
|
hasBin: true
|
||||||
|
peerDependencies:
|
||||||
|
'@types/node': ^18.0.0 || >=20.0.0
|
||||||
|
less: '*'
|
||||||
|
lightningcss: ^1.21.0
|
||||||
|
sass: '*'
|
||||||
|
stylus: '*'
|
||||||
|
sugarss: '*'
|
||||||
|
terser: ^5.4.0
|
||||||
|
peerDependenciesMeta:
|
||||||
|
'@types/node':
|
||||||
|
optional: true
|
||||||
|
less:
|
||||||
|
optional: true
|
||||||
|
lightningcss:
|
||||||
|
optional: true
|
||||||
|
sass:
|
||||||
|
optional: true
|
||||||
|
stylus:
|
||||||
|
optional: true
|
||||||
|
sugarss:
|
||||||
|
optional: true
|
||||||
|
terser:
|
||||||
|
optional: true
|
||||||
|
dependencies:
|
||||||
|
'@types/node': 20.9.0
|
||||||
|
esbuild: 0.19.5
|
||||||
|
postcss: 8.4.31
|
||||||
|
rollup: 4.4.1
|
||||||
|
terser: 5.22.0
|
||||||
|
optionalDependencies:
|
||||||
|
fsevents: 2.3.3
|
||||||
|
dev: true
|
||||||
|
|
||||||
/vitest@0.34.6(jsdom@22.1.0)(terser@5.22.0):
|
/vitest@0.34.6(jsdom@22.1.0)(terser@5.22.0):
|
||||||
resolution: {integrity: sha512-+5CALsOvbNKnS+ZHMXtuUC7nL8/7F1F2DnHGjSsszX8zCjWSSviphCb/NuS9Nzf4Q03KyyDRBAXhF/8lffME4Q==}
|
resolution: {integrity: sha512-+5CALsOvbNKnS+ZHMXtuUC7nL8/7F1F2DnHGjSsszX8zCjWSSviphCb/NuS9Nzf4Q03KyyDRBAXhF/8lffME4Q==}
|
||||||
engines: {node: '>=v14.18.0'}
|
engines: {node: '>=v14.18.0'}
|
||||||
|
@ -6185,7 +6350,7 @@ packages:
|
||||||
strip-literal: 1.3.0
|
strip-literal: 1.3.0
|
||||||
tinybench: 2.5.1
|
tinybench: 2.5.1
|
||||||
tinypool: 0.7.0
|
tinypool: 0.7.0
|
||||||
vite: 4.5.0(@types/node@20.9.0)(terser@5.22.0)
|
vite: 5.0.0(@types/node@20.9.0)(terser@5.22.0)
|
||||||
vite-node: 0.34.6(@types/node@20.9.0)(terser@5.22.0)
|
vite-node: 0.34.6(@types/node@20.9.0)(terser@5.22.0)
|
||||||
why-is-node-running: 2.2.2
|
why-is-node-running: 2.2.2
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
|
@ -6369,8 +6534,8 @@ packages:
|
||||||
resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}
|
resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/yaml@2.3.3:
|
/yaml@2.3.4:
|
||||||
resolution: {integrity: sha512-zw0VAJxgeZ6+++/su5AFoqBbZbrEakwu+X0M5HmcwUiBL7AzcuPKjj5we4xfQLp78LkEMpD0cOnUhmgOVy3KdQ==}
|
resolution: {integrity: sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==}
|
||||||
engines: {node: '>= 14'}
|
engines: {node: '>= 14'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,8 @@ const pkg = require(`../packages/${target}/package.json`)
|
||||||
const outputFormat = format.startsWith('global')
|
const outputFormat = format.startsWith('global')
|
||||||
? 'iife'
|
? 'iife'
|
||||||
: format === 'cjs'
|
: format === 'cjs'
|
||||||
? 'cjs'
|
? 'cjs'
|
||||||
: 'esm'
|
: 'esm'
|
||||||
|
|
||||||
const postfix = format.endsWith('-runtime')
|
const postfix = format.endsWith('-runtime')
|
||||||
? `runtime.${format.replace(/-runtime$/, '')}`
|
? `runtime.${format.replace(/-runtime$/, '')}`
|
||||||
|
|
Loading…
Reference in New Issue