@eslint-react/jsx 0.8.9-beta.2 → 0.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{node_modules/micro-memoize/LICENSE → LICENSE} +1 -1
- package/package.json +5 -12
- package/node_modules/@eslint-react/ast/dist/index.cjs +0 -931
- package/node_modules/@eslint-react/ast/dist/index.d.mts +0 -1177
- package/node_modules/@eslint-react/ast/dist/index.d.ts +0 -1177
- package/node_modules/@eslint-react/ast/dist/index.js +0 -931
- package/node_modules/@eslint-react/ast/dist/index.mjs +0 -852
- package/node_modules/@eslint-react/ast/package.json +0 -53
- package/node_modules/@eslint-react/shared/dist/index.cjs +0 -424
- package/node_modules/@eslint-react/shared/dist/index.d.mts +0 -128
- package/node_modules/@eslint-react/shared/dist/index.d.ts +0 -128
- package/node_modules/@eslint-react/shared/dist/index.js +0 -424
- package/node_modules/@eslint-react/shared/dist/index.mjs +0 -390
- package/node_modules/@eslint-react/shared/package.json +0 -49
- package/node_modules/@eslint-react/tools/dist/index.cjs +0 -8208
- package/node_modules/@eslint-react/tools/dist/index.d.mts +0 -173
- package/node_modules/@eslint-react/tools/dist/index.d.ts +0 -173
- package/node_modules/@eslint-react/tools/dist/index.js +0 -8208
- package/node_modules/@eslint-react/tools/dist/index.mjs +0 -8187
- package/node_modules/@eslint-react/tools/package.json +0 -46
- package/node_modules/@eslint-react/types/dist/index.cjs +0 -2
- package/node_modules/@eslint-react/types/dist/index.d.mts +0 -10
- package/node_modules/@eslint-react/types/dist/index.d.ts +0 -10
- package/node_modules/@eslint-react/types/dist/index.js +0 -2
- package/node_modules/@eslint-react/types/dist/index.mjs +0 -1
- package/node_modules/@eslint-react/types/package.json +0 -49
- package/node_modules/@typescript-eslint/scope-manager/LICENSE +0 -21
- package/node_modules/@typescript-eslint/scope-manager/README.md +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts +0 -4
- package/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/ID.js +0 -21
- package/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts +0 -75
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +0 -185
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts +0 -56
- package/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/analyze.js +0 -42
- package/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/assert.js +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts +0 -39
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js +0 -19
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts +0 -15
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js +0 -18
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js +0 -15
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js +0 -30
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts +0 -9
- package/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/index.js +0 -31
- package/node_modules/@typescript-eslint/scope-manager/dist/index.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts +0 -16
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js +0 -23
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js +0 -23
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js +0 -15
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +0 -75
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +0 -1436
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js +0 -21
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js +0 -23
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js +0 -16
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js +0 -55
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js +0 -30
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js +0 -13
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js +0 -46
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js +0 -22
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js +0 -20
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js +0 -20
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js +0 -24
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js +0 -19
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js +0 -20
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js +0 -16
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js +0 -19
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js +0 -20
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js +0 -22
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js +0 -20
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +0 -22
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js +0 -22
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js +0 -20
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js +0 -28
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js +0 -15
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js +0 -17
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js +0 -20
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js +0 -20
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js +0 -15
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js +0 -24
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js +0 -21
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js +0 -20
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +0 -26
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js +0 -15
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js +0 -24
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js +0 -20
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js +0 -16
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js +0 -116
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js +0 -30
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js +0 -24
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js +0 -19
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js +0 -22
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js +0 -17
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js +0 -22
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js +0 -20
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +0 -18
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js +0 -15
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts +0 -93
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +0 -189
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js +0 -18
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js +0 -24
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js +0 -9
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js +0 -34
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +0 -589
- package/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts +0 -29
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +0 -321
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts +0 -15
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js +0 -84
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts +0 -14
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js +0 -50
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts +0 -29
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +0 -108
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts +0 -89
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +0 -107
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts +0 -86
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +0 -539
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts +0 -33
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js +0 -229
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts +0 -13
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js +0 -41
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts +0 -22
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js +0 -80
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts +0 -2
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js +0 -6
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js +0 -17
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts +0 -13
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js +0 -36
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts +0 -18
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js +0 -39
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts +0 -21
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js +0 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts +0 -107
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js +0 -358
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts +0 -22
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js +0 -25
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts +0 -11
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js +0 -22
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts +0 -20
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js +0 -36
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts +0 -34
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js +0 -12
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts +0 -25
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js +0 -19
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts +0 -18
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js +0 -33
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts +0 -44
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js +0 -39
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts +0 -4
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js +0 -10
- package/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map +0 -1
- package/node_modules/@typescript-eslint/scope-manager/package.json +0 -72
- package/node_modules/@typescript-eslint/types/LICENSE +0 -21
- package/node_modules/@typescript-eslint/types/README.md +0 -12
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +0 -1881
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +0 -202
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +0 -1
- package/node_modules/@typescript-eslint/types/dist/index.d.ts +0 -5
- package/node_modules/@typescript-eslint/types/dist/index.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/types/dist/index.js +0 -24
- package/node_modules/@typescript-eslint/types/dist/index.js.map +0 -1
- package/node_modules/@typescript-eslint/types/dist/lib.d.ts +0 -3
- package/node_modules/@typescript-eslint/types/dist/lib.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/types/dist/lib.js +0 -7
- package/node_modules/@typescript-eslint/types/dist/lib.js.map +0 -1
- package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +0 -40
- package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/types/dist/parser-options.js +0 -3
- package/node_modules/@typescript-eslint/types/dist/parser-options.js.map +0 -1
- package/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts +0 -14
- package/node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map +0 -1
- package/node_modules/@typescript-eslint/types/dist/ts-estree.js +0 -28
- package/node_modules/@typescript-eslint/types/dist/ts-estree.js.map +0 -1
- package/node_modules/@typescript-eslint/types/package.json +0 -94
- package/node_modules/micro-memoize/CHANGELOG.md +0 -226
- package/node_modules/micro-memoize/README.md +0 -557
- package/node_modules/micro-memoize/dist/micro-memoize.cjs.js +0 -373
- package/node_modules/micro-memoize/dist/micro-memoize.cjs.js.map +0 -1
- package/node_modules/micro-memoize/dist/micro-memoize.esm.js +0 -371
- package/node_modules/micro-memoize/dist/micro-memoize.esm.js.map +0 -1
- package/node_modules/micro-memoize/dist/micro-memoize.js +0 -379
- package/node_modules/micro-memoize/dist/micro-memoize.js.map +0 -1
- package/node_modules/micro-memoize/dist/micro-memoize.min.js +0 -1
- package/node_modules/micro-memoize/index.d.ts +0 -132
- package/node_modules/micro-memoize/mjs/index.d.mts +0 -132
- package/node_modules/micro-memoize/mjs/index.mjs +0 -371
- package/node_modules/micro-memoize/mjs/index.mjs.map +0 -1
- package/node_modules/micro-memoize/package.json +0 -106
|
@@ -1,379 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global["micro-memoize"] = factory());
|
|
5
|
-
})(this, (function () { 'use strict';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @constant DEFAULT_OPTIONS_KEYS the default options keys
|
|
9
|
-
*/
|
|
10
|
-
var DEFAULT_OPTIONS_KEYS = {
|
|
11
|
-
isEqual: true,
|
|
12
|
-
isMatchingKey: true,
|
|
13
|
-
isPromise: true,
|
|
14
|
-
maxSize: true,
|
|
15
|
-
onCacheAdd: true,
|
|
16
|
-
onCacheChange: true,
|
|
17
|
-
onCacheHit: true,
|
|
18
|
-
transformKey: true,
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* @function slice
|
|
22
|
-
*
|
|
23
|
-
* @description
|
|
24
|
-
* slice.call() pre-bound
|
|
25
|
-
*/
|
|
26
|
-
var slice = Array.prototype.slice;
|
|
27
|
-
/**
|
|
28
|
-
* @function cloneArray
|
|
29
|
-
*
|
|
30
|
-
* @description
|
|
31
|
-
* clone the array-like object and return the new array
|
|
32
|
-
*
|
|
33
|
-
* @param arrayLike the array-like object to clone
|
|
34
|
-
* @returns the clone as an array
|
|
35
|
-
*/
|
|
36
|
-
function cloneArray(arrayLike) {
|
|
37
|
-
var length = arrayLike.length;
|
|
38
|
-
if (!length) {
|
|
39
|
-
return [];
|
|
40
|
-
}
|
|
41
|
-
if (length === 1) {
|
|
42
|
-
return [arrayLike[0]];
|
|
43
|
-
}
|
|
44
|
-
if (length === 2) {
|
|
45
|
-
return [arrayLike[0], arrayLike[1]];
|
|
46
|
-
}
|
|
47
|
-
if (length === 3) {
|
|
48
|
-
return [arrayLike[0], arrayLike[1], arrayLike[2]];
|
|
49
|
-
}
|
|
50
|
-
return slice.call(arrayLike, 0);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* @function getCustomOptions
|
|
54
|
-
*
|
|
55
|
-
* @description
|
|
56
|
-
* get the custom options on the object passed
|
|
57
|
-
*
|
|
58
|
-
* @param options the memoization options passed
|
|
59
|
-
* @returns the custom options passed
|
|
60
|
-
*/
|
|
61
|
-
function getCustomOptions(options) {
|
|
62
|
-
var customOptions = {};
|
|
63
|
-
/* eslint-disable no-restricted-syntax */
|
|
64
|
-
for (var key in options) {
|
|
65
|
-
if (!DEFAULT_OPTIONS_KEYS[key]) {
|
|
66
|
-
customOptions[key] = options[key];
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
/* eslint-enable */
|
|
70
|
-
return customOptions;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* @function isMemoized
|
|
74
|
-
*
|
|
75
|
-
* @description
|
|
76
|
-
* is the function passed already memoized
|
|
77
|
-
*
|
|
78
|
-
* @param fn the function to test
|
|
79
|
-
* @returns is the function already memoized
|
|
80
|
-
*/
|
|
81
|
-
function isMemoized(fn) {
|
|
82
|
-
return typeof fn === 'function' && fn.isMemoized;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* @function isSameValueZero
|
|
86
|
-
*
|
|
87
|
-
* @description
|
|
88
|
-
* are the objects equal based on SameValueZero equality
|
|
89
|
-
*
|
|
90
|
-
* @param object1 the first object to compare
|
|
91
|
-
* @param object2 the second object to compare
|
|
92
|
-
* @returns are the two objects equal
|
|
93
|
-
*/
|
|
94
|
-
function isSameValueZero(object1, object2) {
|
|
95
|
-
// eslint-disable-next-line no-self-compare
|
|
96
|
-
return object1 === object2 || (object1 !== object1 && object2 !== object2);
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* @function mergeOptions
|
|
100
|
-
*
|
|
101
|
-
* @description
|
|
102
|
-
* merge the options into the target
|
|
103
|
-
*
|
|
104
|
-
* @param existingOptions the options provided
|
|
105
|
-
* @param newOptions the options to include
|
|
106
|
-
* @returns the merged options
|
|
107
|
-
*/
|
|
108
|
-
function mergeOptions(existingOptions, newOptions) {
|
|
109
|
-
var target = {};
|
|
110
|
-
/* eslint-disable no-restricted-syntax */
|
|
111
|
-
for (var key in existingOptions) {
|
|
112
|
-
target[key] = existingOptions[key];
|
|
113
|
-
}
|
|
114
|
-
for (var key in newOptions) {
|
|
115
|
-
target[key] = newOptions[key];
|
|
116
|
-
}
|
|
117
|
-
/* eslint-enable */
|
|
118
|
-
return target;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// utils
|
|
122
|
-
var Cache = /** @class */ (function () {
|
|
123
|
-
function Cache(options) {
|
|
124
|
-
this.keys = [];
|
|
125
|
-
this.values = [];
|
|
126
|
-
this.options = options;
|
|
127
|
-
var isMatchingKeyFunction = typeof options.isMatchingKey === 'function';
|
|
128
|
-
if (isMatchingKeyFunction) {
|
|
129
|
-
this.getKeyIndex = this._getKeyIndexFromMatchingKey;
|
|
130
|
-
}
|
|
131
|
-
else if (options.maxSize > 1) {
|
|
132
|
-
this.getKeyIndex = this._getKeyIndexForMany;
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
this.getKeyIndex = this._getKeyIndexForSingle;
|
|
136
|
-
}
|
|
137
|
-
this.canTransformKey = typeof options.transformKey === 'function';
|
|
138
|
-
this.shouldCloneArguments = this.canTransformKey || isMatchingKeyFunction;
|
|
139
|
-
this.shouldUpdateOnAdd = typeof options.onCacheAdd === 'function';
|
|
140
|
-
this.shouldUpdateOnChange = typeof options.onCacheChange === 'function';
|
|
141
|
-
this.shouldUpdateOnHit = typeof options.onCacheHit === 'function';
|
|
142
|
-
}
|
|
143
|
-
Object.defineProperty(Cache.prototype, "size", {
|
|
144
|
-
/**
|
|
145
|
-
* The number of cached [key,value] results.
|
|
146
|
-
*/
|
|
147
|
-
get: function () {
|
|
148
|
-
return this.keys.length;
|
|
149
|
-
},
|
|
150
|
-
enumerable: false,
|
|
151
|
-
configurable: true
|
|
152
|
-
});
|
|
153
|
-
Object.defineProperty(Cache.prototype, "snapshot", {
|
|
154
|
-
/**
|
|
155
|
-
* A copy of the cache at a moment in time. This is useful
|
|
156
|
-
* to compare changes over time, since the cache mutates
|
|
157
|
-
* internally for performance reasons.
|
|
158
|
-
*/
|
|
159
|
-
get: function () {
|
|
160
|
-
return {
|
|
161
|
-
keys: cloneArray(this.keys),
|
|
162
|
-
size: this.size,
|
|
163
|
-
values: cloneArray(this.values),
|
|
164
|
-
};
|
|
165
|
-
},
|
|
166
|
-
enumerable: false,
|
|
167
|
-
configurable: true
|
|
168
|
-
});
|
|
169
|
-
/**
|
|
170
|
-
* Gets the matching key index when a custom key matcher is used.
|
|
171
|
-
*/
|
|
172
|
-
Cache.prototype._getKeyIndexFromMatchingKey = function (keyToMatch) {
|
|
173
|
-
var _a = this.options, isMatchingKey = _a.isMatchingKey, maxSize = _a.maxSize;
|
|
174
|
-
var keys = this.keys;
|
|
175
|
-
var keysLength = keys.length;
|
|
176
|
-
if (!keysLength) {
|
|
177
|
-
return -1;
|
|
178
|
-
}
|
|
179
|
-
if (isMatchingKey(keys[0], keyToMatch)) {
|
|
180
|
-
return 0;
|
|
181
|
-
}
|
|
182
|
-
if (maxSize > 1) {
|
|
183
|
-
for (var index = 1; index < keysLength; index++) {
|
|
184
|
-
if (isMatchingKey(keys[index], keyToMatch)) {
|
|
185
|
-
return index;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
return -1;
|
|
190
|
-
};
|
|
191
|
-
/**
|
|
192
|
-
* Gets the matching key index when multiple keys are used.
|
|
193
|
-
*/
|
|
194
|
-
Cache.prototype._getKeyIndexForMany = function (keyToMatch) {
|
|
195
|
-
var isEqual = this.options.isEqual;
|
|
196
|
-
var keys = this.keys;
|
|
197
|
-
var keysLength = keys.length;
|
|
198
|
-
if (!keysLength) {
|
|
199
|
-
return -1;
|
|
200
|
-
}
|
|
201
|
-
if (keysLength === 1) {
|
|
202
|
-
return this._getKeyIndexForSingle(keyToMatch);
|
|
203
|
-
}
|
|
204
|
-
var keyLength = keyToMatch.length;
|
|
205
|
-
var existingKey;
|
|
206
|
-
var argIndex;
|
|
207
|
-
if (keyLength > 1) {
|
|
208
|
-
for (var index = 0; index < keysLength; index++) {
|
|
209
|
-
existingKey = keys[index];
|
|
210
|
-
if (existingKey.length === keyLength) {
|
|
211
|
-
argIndex = 0;
|
|
212
|
-
for (; argIndex < keyLength; argIndex++) {
|
|
213
|
-
if (!isEqual(existingKey[argIndex], keyToMatch[argIndex])) {
|
|
214
|
-
break;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
if (argIndex === keyLength) {
|
|
218
|
-
return index;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
else {
|
|
224
|
-
for (var index = 0; index < keysLength; index++) {
|
|
225
|
-
existingKey = keys[index];
|
|
226
|
-
if (existingKey.length === keyLength &&
|
|
227
|
-
isEqual(existingKey[0], keyToMatch[0])) {
|
|
228
|
-
return index;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
return -1;
|
|
233
|
-
};
|
|
234
|
-
/**
|
|
235
|
-
* Gets the matching key index when a single key is used.
|
|
236
|
-
*/
|
|
237
|
-
Cache.prototype._getKeyIndexForSingle = function (keyToMatch) {
|
|
238
|
-
var keys = this.keys;
|
|
239
|
-
if (!keys.length) {
|
|
240
|
-
return -1;
|
|
241
|
-
}
|
|
242
|
-
var existingKey = keys[0];
|
|
243
|
-
var length = existingKey.length;
|
|
244
|
-
if (keyToMatch.length !== length) {
|
|
245
|
-
return -1;
|
|
246
|
-
}
|
|
247
|
-
var isEqual = this.options.isEqual;
|
|
248
|
-
if (length > 1) {
|
|
249
|
-
for (var index = 0; index < length; index++) {
|
|
250
|
-
if (!isEqual(existingKey[index], keyToMatch[index])) {
|
|
251
|
-
return -1;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
return 0;
|
|
255
|
-
}
|
|
256
|
-
return isEqual(existingKey[0], keyToMatch[0]) ? 0 : -1;
|
|
257
|
-
};
|
|
258
|
-
/**
|
|
259
|
-
* Order the array based on a Least-Recently-Used basis.
|
|
260
|
-
*/
|
|
261
|
-
Cache.prototype.orderByLru = function (key, value, startingIndex) {
|
|
262
|
-
var keys = this.keys;
|
|
263
|
-
var values = this.values;
|
|
264
|
-
var currentLength = keys.length;
|
|
265
|
-
var index = startingIndex;
|
|
266
|
-
while (index--) {
|
|
267
|
-
keys[index + 1] = keys[index];
|
|
268
|
-
values[index + 1] = values[index];
|
|
269
|
-
}
|
|
270
|
-
keys[0] = key;
|
|
271
|
-
values[0] = value;
|
|
272
|
-
var maxSize = this.options.maxSize;
|
|
273
|
-
if (currentLength === maxSize && startingIndex === currentLength) {
|
|
274
|
-
keys.pop();
|
|
275
|
-
values.pop();
|
|
276
|
-
}
|
|
277
|
-
else if (startingIndex >= maxSize) {
|
|
278
|
-
// eslint-disable-next-line no-multi-assign
|
|
279
|
-
keys.length = values.length = maxSize;
|
|
280
|
-
}
|
|
281
|
-
};
|
|
282
|
-
/**
|
|
283
|
-
* Update the promise method to auto-remove from cache if rejected, and
|
|
284
|
-
* if resolved then fire cache hit / changed.
|
|
285
|
-
*/
|
|
286
|
-
Cache.prototype.updateAsyncCache = function (memoized) {
|
|
287
|
-
var _this = this;
|
|
288
|
-
var _a = this.options, onCacheChange = _a.onCacheChange, onCacheHit = _a.onCacheHit;
|
|
289
|
-
var firstKey = this.keys[0];
|
|
290
|
-
var firstValue = this.values[0];
|
|
291
|
-
this.values[0] = firstValue.then(function (value) {
|
|
292
|
-
if (_this.shouldUpdateOnHit) {
|
|
293
|
-
onCacheHit(_this, _this.options, memoized);
|
|
294
|
-
}
|
|
295
|
-
if (_this.shouldUpdateOnChange) {
|
|
296
|
-
onCacheChange(_this, _this.options, memoized);
|
|
297
|
-
}
|
|
298
|
-
return value;
|
|
299
|
-
}, function (error) {
|
|
300
|
-
var keyIndex = _this.getKeyIndex(firstKey);
|
|
301
|
-
if (keyIndex !== -1) {
|
|
302
|
-
_this.keys.splice(keyIndex, 1);
|
|
303
|
-
_this.values.splice(keyIndex, 1);
|
|
304
|
-
}
|
|
305
|
-
throw error;
|
|
306
|
-
});
|
|
307
|
-
};
|
|
308
|
-
return Cache;
|
|
309
|
-
}());
|
|
310
|
-
|
|
311
|
-
function createMemoizedFunction(fn, options) {
|
|
312
|
-
if (options === void 0) { options = {}; }
|
|
313
|
-
if (isMemoized(fn)) {
|
|
314
|
-
return createMemoizedFunction(fn.fn, mergeOptions(fn.options, options));
|
|
315
|
-
}
|
|
316
|
-
if (typeof fn !== 'function') {
|
|
317
|
-
throw new TypeError('You must pass a function to `memoize`.');
|
|
318
|
-
}
|
|
319
|
-
var _a = options.isEqual, isEqual = _a === void 0 ? isSameValueZero : _a, isMatchingKey = options.isMatchingKey, _b = options.isPromise, isPromise = _b === void 0 ? false : _b, _c = options.maxSize, maxSize = _c === void 0 ? 1 : _c, onCacheAdd = options.onCacheAdd, onCacheChange = options.onCacheChange, onCacheHit = options.onCacheHit, transformKey = options.transformKey;
|
|
320
|
-
var normalizedOptions = mergeOptions({
|
|
321
|
-
isEqual: isEqual,
|
|
322
|
-
isMatchingKey: isMatchingKey,
|
|
323
|
-
isPromise: isPromise,
|
|
324
|
-
maxSize: maxSize,
|
|
325
|
-
onCacheAdd: onCacheAdd,
|
|
326
|
-
onCacheChange: onCacheChange,
|
|
327
|
-
onCacheHit: onCacheHit,
|
|
328
|
-
transformKey: transformKey,
|
|
329
|
-
}, getCustomOptions(options));
|
|
330
|
-
var cache = new Cache(normalizedOptions);
|
|
331
|
-
var keys = cache.keys, values = cache.values, canTransformKey = cache.canTransformKey, shouldCloneArguments = cache.shouldCloneArguments, shouldUpdateOnAdd = cache.shouldUpdateOnAdd, shouldUpdateOnChange = cache.shouldUpdateOnChange, shouldUpdateOnHit = cache.shouldUpdateOnHit;
|
|
332
|
-
var memoized = function () {
|
|
333
|
-
var key = shouldCloneArguments
|
|
334
|
-
? cloneArray(arguments)
|
|
335
|
-
: arguments;
|
|
336
|
-
if (canTransformKey) {
|
|
337
|
-
key = transformKey(key);
|
|
338
|
-
}
|
|
339
|
-
var keyIndex = keys.length ? cache.getKeyIndex(key) : -1;
|
|
340
|
-
if (keyIndex !== -1) {
|
|
341
|
-
if (shouldUpdateOnHit) {
|
|
342
|
-
onCacheHit(cache, normalizedOptions, memoized);
|
|
343
|
-
}
|
|
344
|
-
if (keyIndex) {
|
|
345
|
-
cache.orderByLru(keys[keyIndex], values[keyIndex], keyIndex);
|
|
346
|
-
if (shouldUpdateOnChange) {
|
|
347
|
-
onCacheChange(cache, normalizedOptions, memoized);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
else {
|
|
352
|
-
var newValue = fn.apply(this, arguments);
|
|
353
|
-
var newKey = shouldCloneArguments
|
|
354
|
-
? key
|
|
355
|
-
: cloneArray(arguments);
|
|
356
|
-
cache.orderByLru(newKey, newValue, keys.length);
|
|
357
|
-
if (isPromise) {
|
|
358
|
-
cache.updateAsyncCache(memoized);
|
|
359
|
-
}
|
|
360
|
-
if (shouldUpdateOnAdd) {
|
|
361
|
-
onCacheAdd(cache, normalizedOptions, memoized);
|
|
362
|
-
}
|
|
363
|
-
if (shouldUpdateOnChange) {
|
|
364
|
-
onCacheChange(cache, normalizedOptions, memoized);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
return values[0];
|
|
368
|
-
};
|
|
369
|
-
memoized.cache = cache;
|
|
370
|
-
memoized.fn = fn;
|
|
371
|
-
memoized.isMemoized = true;
|
|
372
|
-
memoized.options = normalizedOptions;
|
|
373
|
-
return memoized;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
return createMemoizedFunction;
|
|
377
|
-
|
|
378
|
-
}));
|
|
379
|
-
//# sourceMappingURL=micro-memoize.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"micro-memoize.js","sources":["../src/utils.ts","../src/Cache.ts","../src/index.ts"],"sourcesContent":[null,null,null],"names":[],"mappings":";;;;;;IAQA;;IAEG;IACH,IAAM,oBAAoB,GAAqB;IAC7C,IAAA,OAAO,EAAE,IAAI;IACb,IAAA,aAAa,EAAE,IAAI;IACnB,IAAA,SAAS,EAAE,IAAI;IACf,IAAA,OAAO,EAAE,IAAI;IACb,IAAA,UAAU,EAAE,IAAI;IAChB,IAAA,aAAa,EAAE,IAAI;IACnB,IAAA,UAAU,EAAE,IAAI;IAChB,IAAA,YAAY,EAAE,IAAI;KACnB,CAAC;IAEF;;;;;IAKG;IACY,IAAA,KAAK,GAAK,KAAK,CAAC,SAAS,MAApB,CAAqB;IAEzC;;;;;;;;IAQG;IACG,SAAU,UAAU,CAAC,SAA6B,EAAA;IAC9C,IAAA,IAAA,MAAM,GAAK,SAAS,CAAA,MAAd,CAAe;QAE7B,IAAI,CAAC,MAAM,EAAE;IACX,QAAA,OAAO,EAAE,CAAC;IACX,KAAA;QAED,IAAI,MAAM,KAAK,CAAC,EAAE;IAChB,QAAA,OA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CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAClC,aAAA;IAED,YAAA,IAAI,iBAAiB,EAAE;IACpB,gBAAA,UAAuC,CACtC,KAAK,EACL,iBAAiB,EACjB,QAAQ,CACT,CAAC;IACH,aAAA;IAED,YAAA,IAAI,oBAAoB,EAAE;IACvB,gBAAA,aAA0C,CACzC,KAAK,EACL,iBAAiB,EACjB,QAAQ,CACT,CAAC;IACH,aAAA;IACF,SAAA;IAED,QAAA,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;IACnB,KAAiB,CAAC;IAElB,IAAA,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,IAAA,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC;IACjB,IAAA,QAAQ,CAAC,UAAU,GAAG,IAAa,CAAC;IACpC,IAAA,QAAQ,CAAC,OAAO,GAAG,iBAAiB,CAAC;IAErC,IAAA,OAAO,QAAQ,CAAC;IAClB;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self)["micro-memoize"]=t()}(this,(function(){"use strict";var e={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},t=Array.prototype.slice;function n(e){var n=e.length;return n?1===n?[e[0]]:2===n?[e[0],e[1]]:3===n?[e[0],e[1],e[2]]:t.call(e,0):[]}function i(e,t){return e===t||e!=e&&t!=t}function o(e,t){var n={};for(var i in e)n[i]=e[i];for(var i in t)n[i]=t[i];return n}var r=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:n(this.keys),size:this.size,values:n(this.values)}},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,n=t.isMatchingKey,i=t.maxSize,o=this.keys,r=o.length;if(!r)return-1;if(n(o[0],e))return 0;if(i>1)for(var s=1;s<r;s++)if(n(o[s],e))return s;return-1},e.prototype._getKeyIndexForMany=function(e){var t=this.options.isEqual,n=this.keys,i=n.length;if(!i)return-1;if(1===i)return this._getKeyIndexForSingle(e);var o,r,s=e.length;if(s>1){for(var a=0;a<i;a++)if((o=n[a]).length===s){for(r=0;r<s&&t(o[r],e[r]);r++);if(r===s)return a}}else for(a=0;a<i;a++)if((o=n[a]).length===s&&t(o[0],e[0]))return a;return-1},e.prototype._getKeyIndexForSingle=function(e){var t=this.keys;if(!t.length)return-1;var n=t[0],i=n.length;if(e.length!==i)return-1;var o=this.options.isEqual;if(i>1){for(var r=0;r<i;r++)if(!o(n[r],e[r]))return-1;return 0}return o(n[0],e[0])?0:-1},e.prototype.orderByLru=function(e,t,n){for(var i=this.keys,o=this.values,r=i.length,s=n;s--;)i[s+1]=i[s],o[s+1]=o[s];i[0]=e,o[0]=t;var a=this.options.maxSize;r===a&&n===r?(i.pop(),o.pop()):n>=a&&(i.length=o.length=a)},e.prototype.updateAsyncCache=function(e){var t=this,n=this.options,i=n.onCacheChange,o=n.onCacheHit,r=this.keys[0],s=this.values[0];this.values[0]=s.then((function(n){return t.shouldUpdateOnHit&&o(t,t.options,e),t.shouldUpdateOnChange&&i(t,t.options,e),n}),(function(e){var n=t.getKeyIndex(r);throw-1!==n&&(t.keys.splice(n,1),t.values.splice(n,1)),e}))},e}();return function t(s,a){if(void 0===a&&(a={}),function(e){return"function"==typeof e&&e.isMemoized}(s))return t(s.fn,o(s.options,a));if("function"!=typeof s)throw new TypeError("You must pass a function to `memoize`.");var h=a.isEqual,u=void 0===h?i:h,f=a.isMatchingKey,c=a.isPromise,y=void 0!==c&&c,d=a.maxSize,l=void 0===d?1:d,p=a.onCacheAdd,g=a.onCacheChange,v=a.onCacheHit,m=a.transformKey,C=o({isEqual:u,isMatchingKey:f,isPromise:y,maxSize:l,onCacheAdd:p,onCacheChange:g,onCacheHit:v,transformKey:m},function(t){var n={};for(var i in t)e[i]||(n[i]=t[i]);return n}(a)),K=new r(C),x=K.keys,z=K.values,I=K.canTransformKey,k=K.shouldCloneArguments,A=K.shouldUpdateOnAdd,M=K.shouldUpdateOnChange,O=K.shouldUpdateOnHit,b=function(){var e=k?n(arguments):arguments;I&&(e=m(e));var t=x.length?K.getKeyIndex(e):-1;if(-1!==t)O&&v(K,C,b),t&&(K.orderByLru(x[t],z[t],t),M&&g(K,C,b));else{var i=s.apply(this,arguments),o=k?e:n(arguments);K.orderByLru(o,i,x.length),y&&K.updateAsyncCache(b),A&&p(K,C,b),M&&g(K,C,b)}return z[0]};return b.cache=K,b.fn=s,b.isMemoized=!0,b.options=C,b}}));
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
export interface Dictionary<Type> {
|
|
2
|
-
[key: string]: Type;
|
|
3
|
-
[index: number]: Type;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export type AnyFn = (...args: any[]) => any;
|
|
7
|
-
|
|
8
|
-
export type Key = any[];
|
|
9
|
-
export type RawKey = Key | IArguments;
|
|
10
|
-
export type Value = any;
|
|
11
|
-
|
|
12
|
-
export interface CacheSnapshot {
|
|
13
|
-
keys: Key[];
|
|
14
|
-
size: number;
|
|
15
|
-
values: Value[];
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export class Cache<Fn extends AnyFn> {
|
|
19
|
-
readonly canTransformKey: boolean;
|
|
20
|
-
readonly getKeyIndex: KeyIndexGetter;
|
|
21
|
-
readonly options: NormalizedOptions<Fn>;
|
|
22
|
-
readonly shouldCloneArguments: boolean;
|
|
23
|
-
readonly shouldUpdateOnAdd: boolean;
|
|
24
|
-
readonly shouldUpdateOnChange: boolean;
|
|
25
|
-
readonly shouldUpdateOnHit: boolean;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The prevents call arguments which have cached results.
|
|
29
|
-
*/
|
|
30
|
-
keys: Key[];
|
|
31
|
-
/**
|
|
32
|
-
* The results of previous cached calls.
|
|
33
|
-
*/
|
|
34
|
-
values: Value[];
|
|
35
|
-
|
|
36
|
-
constructor(options: NormalizedOptions<Fn>);
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* The number of cached [key,value] results.
|
|
40
|
-
*/
|
|
41
|
-
get size(): number;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* A copy of the cache at a moment in time. This is useful
|
|
45
|
-
* to compare changes over time, since the cache mutates
|
|
46
|
-
* internally for performance reasons.
|
|
47
|
-
*/
|
|
48
|
-
get snapshot(): CacheSnapshot;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Order the array based on a Least-Recently-Used basis.
|
|
52
|
-
*/
|
|
53
|
-
orderByLru(key: Key, value: Value, startingIndex: number): void;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Update the promise method to auto-remove from cache if rejected, and
|
|
57
|
-
* if resolved then fire cache hit / changed.
|
|
58
|
-
*/
|
|
59
|
-
updateAsyncCache(memoized: Memoized<Fn>): void;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export type EqualityComparator = (object1: any, object2: any) => boolean;
|
|
63
|
-
|
|
64
|
-
export type MatchingKeyComparator = (key1: Key, key2: RawKey) => boolean;
|
|
65
|
-
|
|
66
|
-
export type CacheModifiedHandler<Fn extends AnyFn> = (
|
|
67
|
-
cache: Cache<Fn>,
|
|
68
|
-
options: NormalizedOptions<Fn>,
|
|
69
|
-
memoized: Memoized<Fn>,
|
|
70
|
-
) => void;
|
|
71
|
-
|
|
72
|
-
export type KeyTransformer = (args: Key) => Key;
|
|
73
|
-
|
|
74
|
-
export type KeyIndexGetter = (keyToMatch: RawKey) => number;
|
|
75
|
-
|
|
76
|
-
export interface StandardOptions<Fn extends AnyFn> {
|
|
77
|
-
isEqual?: EqualityComparator;
|
|
78
|
-
isMatchingKey?: MatchingKeyComparator;
|
|
79
|
-
isPromise?: boolean;
|
|
80
|
-
maxSize?: number;
|
|
81
|
-
onCacheAdd?: CacheModifiedHandler<Fn>;
|
|
82
|
-
onCacheChange?: CacheModifiedHandler<Fn>;
|
|
83
|
-
onCacheHit?: CacheModifiedHandler<Fn>;
|
|
84
|
-
transformKey?: KeyTransformer;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export interface Options<Fn extends AnyFn>
|
|
88
|
-
extends StandardOptions<Fn>,
|
|
89
|
-
Dictionary<any> {}
|
|
90
|
-
|
|
91
|
-
export interface NormalizedOptions<Fn extends AnyFn> extends Options<Fn> {
|
|
92
|
-
isEqual: EqualityComparator;
|
|
93
|
-
isPromise: boolean;
|
|
94
|
-
maxSize: number;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export type Memoized<Fn extends AnyFn> = Fn &
|
|
98
|
-
Dictionary<any> & {
|
|
99
|
-
cache: Cache<Fn>;
|
|
100
|
-
fn: Fn;
|
|
101
|
-
isMemoized: true;
|
|
102
|
-
options: NormalizedOptions<Fn>;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* @deprecated
|
|
107
|
-
* All types declared on this namespace are available for direct import
|
|
108
|
-
* from the package. In a future release, this namespace will be removed
|
|
109
|
-
* in favor of those direct imports.
|
|
110
|
-
*/
|
|
111
|
-
export declare namespace MicroMemoize {
|
|
112
|
-
export type {
|
|
113
|
-
Cache,
|
|
114
|
-
CacheModifiedHandler,
|
|
115
|
-
EqualityComparator,
|
|
116
|
-
Key,
|
|
117
|
-
KeyIndexGetter,
|
|
118
|
-
KeyTransformer,
|
|
119
|
-
MatchingKeyComparator,
|
|
120
|
-
Memoized,
|
|
121
|
-
NormalizedOptions,
|
|
122
|
-
Options,
|
|
123
|
-
StandardOptions,
|
|
124
|
-
RawKey,
|
|
125
|
-
Value,
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export default function memoize<Fn extends AnyFn>(
|
|
130
|
-
fn: Fn | Memoized<Fn>,
|
|
131
|
-
options?: Options<Fn>,
|
|
132
|
-
): Memoized<Fn>;
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
export interface Dictionary<Type> {
|
|
2
|
-
[key: string]: Type;
|
|
3
|
-
[index: number]: Type;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export type AnyFn = (...args: any[]) => any;
|
|
7
|
-
|
|
8
|
-
export type Key = any[];
|
|
9
|
-
export type RawKey = Key | IArguments;
|
|
10
|
-
export type Value = any;
|
|
11
|
-
|
|
12
|
-
export interface CacheSnapshot {
|
|
13
|
-
keys: Key[];
|
|
14
|
-
size: number;
|
|
15
|
-
values: Value[];
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export class Cache<Fn extends AnyFn> {
|
|
19
|
-
readonly canTransformKey: boolean;
|
|
20
|
-
readonly getKeyIndex: KeyIndexGetter;
|
|
21
|
-
readonly options: NormalizedOptions<Fn>;
|
|
22
|
-
readonly shouldCloneArguments: boolean;
|
|
23
|
-
readonly shouldUpdateOnAdd: boolean;
|
|
24
|
-
readonly shouldUpdateOnChange: boolean;
|
|
25
|
-
readonly shouldUpdateOnHit: boolean;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The prevents call arguments which have cached results.
|
|
29
|
-
*/
|
|
30
|
-
keys: Key[];
|
|
31
|
-
/**
|
|
32
|
-
* The results of previous cached calls.
|
|
33
|
-
*/
|
|
34
|
-
values: Value[];
|
|
35
|
-
|
|
36
|
-
constructor(options: NormalizedOptions<Fn>);
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* The number of cached [key,value] results.
|
|
40
|
-
*/
|
|
41
|
-
get size(): number;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* A copy of the cache at a moment in time. This is useful
|
|
45
|
-
* to compare changes over time, since the cache mutates
|
|
46
|
-
* internally for performance reasons.
|
|
47
|
-
*/
|
|
48
|
-
get snapshot(): CacheSnapshot;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Order the array based on a Least-Recently-Used basis.
|
|
52
|
-
*/
|
|
53
|
-
orderByLru(key: Key, value: Value, startingIndex: number): void;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Update the promise method to auto-remove from cache if rejected, and
|
|
57
|
-
* if resolved then fire cache hit / changed.
|
|
58
|
-
*/
|
|
59
|
-
updateAsyncCache(memoized: Memoized<Fn>): void;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export type EqualityComparator = (object1: any, object2: any) => boolean;
|
|
63
|
-
|
|
64
|
-
export type MatchingKeyComparator = (key1: Key, key2: RawKey) => boolean;
|
|
65
|
-
|
|
66
|
-
export type CacheModifiedHandler<Fn extends AnyFn> = (
|
|
67
|
-
cache: Cache<Fn>,
|
|
68
|
-
options: NormalizedOptions<Fn>,
|
|
69
|
-
memoized: Memoized<Fn>,
|
|
70
|
-
) => void;
|
|
71
|
-
|
|
72
|
-
export type KeyTransformer = (args: Key) => Key;
|
|
73
|
-
|
|
74
|
-
export type KeyIndexGetter = (keyToMatch: RawKey) => number;
|
|
75
|
-
|
|
76
|
-
export interface StandardOptions<Fn extends AnyFn> {
|
|
77
|
-
isEqual?: EqualityComparator;
|
|
78
|
-
isMatchingKey?: MatchingKeyComparator;
|
|
79
|
-
isPromise?: boolean;
|
|
80
|
-
maxSize?: number;
|
|
81
|
-
onCacheAdd?: CacheModifiedHandler<Fn>;
|
|
82
|
-
onCacheChange?: CacheModifiedHandler<Fn>;
|
|
83
|
-
onCacheHit?: CacheModifiedHandler<Fn>;
|
|
84
|
-
transformKey?: KeyTransformer;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export interface Options<Fn extends AnyFn>
|
|
88
|
-
extends StandardOptions<Fn>,
|
|
89
|
-
Dictionary<any> {}
|
|
90
|
-
|
|
91
|
-
export interface NormalizedOptions<Fn extends AnyFn> extends Options<Fn> {
|
|
92
|
-
isEqual: EqualityComparator;
|
|
93
|
-
isPromise: boolean;
|
|
94
|
-
maxSize: number;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export type Memoized<Fn extends AnyFn> = Fn &
|
|
98
|
-
Dictionary<any> & {
|
|
99
|
-
cache: Cache<Fn>;
|
|
100
|
-
fn: Fn;
|
|
101
|
-
isMemoized: true;
|
|
102
|
-
options: NormalizedOptions<Fn>;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* @deprecated
|
|
107
|
-
* All types declared on this namespace are available for direct import
|
|
108
|
-
* from the package. In a future release, this namespace will be removed
|
|
109
|
-
* in favor of those direct imports.
|
|
110
|
-
*/
|
|
111
|
-
export declare namespace MicroMemoize {
|
|
112
|
-
export type {
|
|
113
|
-
Cache,
|
|
114
|
-
CacheModifiedHandler,
|
|
115
|
-
EqualityComparator,
|
|
116
|
-
Key,
|
|
117
|
-
KeyIndexGetter,
|
|
118
|
-
KeyTransformer,
|
|
119
|
-
MatchingKeyComparator,
|
|
120
|
-
Memoized,
|
|
121
|
-
NormalizedOptions,
|
|
122
|
-
Options,
|
|
123
|
-
StandardOptions,
|
|
124
|
-
RawKey,
|
|
125
|
-
Value,
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export default function memoize<Fn extends AnyFn>(
|
|
130
|
-
fn: Fn | Memoized<Fn>,
|
|
131
|
-
options?: Options<Fn>,
|
|
132
|
-
): Memoized<Fn>;
|