@poveste/vendors 0.14.0 → 0.15.0
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/dist/client/b-floating-vue.js +1 -1
- package/dist/client/b-iconify.js +1429 -1416
- package/dist/client/b-pinia.js +1359 -1936
- package/dist/client/b-vue-router.js +787 -502
- package/dist/client/b-vue-use.js +497 -367
- package/dist/client/b-vue.js +1 -1
- package/dist/client/devtools-api.js +6568 -0
- package/dist/client/index.js +178 -162
- package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +17 -72
- package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +7 -12
- package/dist/client/node_modules/@iconify/vue/offline/package.json +2 -2
- package/dist/client/node_modules/@iconify/vue/package.json +13 -16
- package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +88 -0
- package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/set-array.d.ts +32 -0
- package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
- package/dist/client/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts +43 -0
- package/dist/client/node_modules/@jridgewell/gen-mapping/package.json +67 -0
- package/dist/client/node_modules/@jridgewell/gen-mapping/types/gen-mapping.d.mts +89 -0
- package/dist/client/node_modules/@jridgewell/gen-mapping/types/set-array.d.mts +33 -0
- package/dist/client/node_modules/@jridgewell/gen-mapping/types/sourcemap-segment.d.mts +13 -0
- package/dist/client/node_modules/@jridgewell/gen-mapping/types/types.d.mts +44 -0
- package/dist/client/node_modules/@jridgewell/remapping/package.json +71 -0
- package/dist/client/node_modules/@jridgewell/remapping/types/build-source-map-tree.d.mts +15 -0
- package/dist/client/node_modules/@jridgewell/remapping/types/remapping.d.mts +21 -0
- package/dist/client/node_modules/@jridgewell/remapping/types/source-map-tree.d.mts +46 -0
- package/dist/client/node_modules/@jridgewell/remapping/types/source-map.d.mts +19 -0
- package/dist/client/node_modules/@jridgewell/remapping/types/types.d.mts +16 -0
- package/dist/client/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
- package/dist/client/node_modules/@jridgewell/resolve-uri/package.json +69 -0
- package/dist/client/node_modules/@jridgewell/trace-mapping/package.json +67 -0
- package/dist/client/node_modules/@jridgewell/trace-mapping/types/binary-search.d.mts +33 -0
- package/dist/client/node_modules/@jridgewell/trace-mapping/types/by-source.d.mts +4 -0
- package/dist/client/node_modules/@jridgewell/trace-mapping/types/flatten-map.d.mts +9 -0
- package/dist/client/node_modules/@jridgewell/trace-mapping/types/resolve.d.mts +4 -0
- package/dist/client/node_modules/@jridgewell/trace-mapping/types/sort.d.mts +4 -0
- package/dist/client/node_modules/@jridgewell/trace-mapping/types/sourcemap-segment.d.mts +17 -0
- package/dist/client/node_modules/@jridgewell/trace-mapping/types/strip-filename.d.mts +5 -0
- package/dist/client/node_modules/@jridgewell/trace-mapping/types/trace-mapping.d.mts +80 -0
- package/dist/client/node_modules/@jridgewell/trace-mapping/types/types.d.mts +107 -0
- package/dist/client/node_modules/@vue/devtools-api/dist/index-node.d.ts +11 -0
- package/dist/client/node_modules/@vue/devtools-api/dist/index.d.ts +2 -0
- package/dist/client/node_modules/@vue/devtools-api/package.json +25 -24
- package/dist/client/node_modules/@vue/devtools-kit/dist/index.d.ts +1170 -0
- package/dist/client/node_modules/@vue/devtools-kit/global.d.ts +20 -0
- package/dist/client/node_modules/@vue/devtools-kit/package.json +44 -0
- package/dist/client/node_modules/@vue/devtools-kit/types.d.ts +2 -0
- package/dist/client/node_modules/@vue/devtools-shared/dist/index.d.ts +40 -0
- package/dist/client/node_modules/@vue/devtools-shared/package.json +33 -0
- package/dist/client/node_modules/@vue-macros/common/dist/index.d.ts +124 -0
- package/dist/client/node_modules/@vue-macros/common/package.json +63 -0
- package/dist/client/node_modules/@vueuse/core/dist/index.d.ts +223 -111
- package/dist/client/node_modules/@vueuse/core/package.json +10 -3
- package/dist/client/node_modules/@vueuse/metadata/package.json +4 -1
- package/dist/client/node_modules/@vueuse/shared/dist/index.d.ts +2 -2
- package/dist/client/node_modules/@vueuse/shared/package.json +4 -1
- package/dist/client/node_modules/acorn/dist/acorn.d.mts +897 -0
- package/dist/client/node_modules/acorn/dist/acorn.d.ts +897 -0
- package/dist/client/node_modules/acorn/package.json +50 -0
- package/dist/client/node_modules/ast-kit/dist/index.d.ts +380 -0
- package/dist/client/node_modules/ast-kit/package.json +63 -0
- package/dist/client/node_modules/ast-walker-scope/dist/index.d.mts +51 -0
- package/dist/client/node_modules/ast-walker-scope/package.json +60 -0
- package/dist/client/node_modules/birpc/dist/index.d.mts +215 -0
- package/dist/client/node_modules/birpc/dist/index.d.ts +215 -0
- package/dist/client/node_modules/birpc/package.json +57 -0
- package/dist/client/node_modules/chokidar/handler.d.ts +90 -0
- package/dist/client/node_modules/chokidar/index.d.ts +217 -0
- package/dist/client/node_modules/chokidar/package.json +63 -0
- package/dist/client/node_modules/confbox/dist/_chunks/_format.d.mts +25 -0
- package/dist/client/node_modules/confbox/dist/index.d.mts +34 -0
- package/dist/client/node_modules/confbox/dist/ini.d.mts +62 -0
- package/dist/client/node_modules/confbox/dist/json5.d.mts +59 -0
- package/dist/client/node_modules/confbox/dist/jsonc.d.mts +41 -0
- package/dist/client/node_modules/confbox/dist/toml.d.mts +23 -0
- package/dist/client/node_modules/confbox/dist/yaml.d.mts +96 -0
- package/dist/client/node_modules/confbox/package.json +67 -0
- package/dist/client/node_modules/exsolve/dist/index.d.mts +66 -0
- package/dist/client/node_modules/exsolve/package.json +42 -0
- package/dist/client/node_modules/fdir/dist/index.d.mts +155 -0
- package/dist/client/node_modules/fdir/package.json +103 -0
- package/dist/client/node_modules/hookable/dist/index.d.ts +103 -0
- package/dist/client/node_modules/hookable/package.json +49 -0
- package/dist/client/node_modules/local-pkg/dist/index.d.mts +42 -0
- package/dist/client/node_modules/local-pkg/dist/index.d.ts +42 -0
- package/dist/client/node_modules/local-pkg/package.json +65 -0
- package/dist/client/node_modules/magic-string-ast/dist/index.d.ts +67 -0
- package/dist/client/node_modules/magic-string-ast/package.json +64 -0
- package/dist/client/node_modules/mlly/dist/index.d.mts +564 -0
- package/dist/client/node_modules/mlly/dist/index.d.ts +564 -0
- package/dist/client/node_modules/mlly/node_modules/confbox/dist/index.d.mts +32 -0
- package/dist/client/node_modules/mlly/node_modules/confbox/dist/index.d.ts +32 -0
- package/dist/client/node_modules/mlly/node_modules/confbox/dist/json5.d.mts +58 -0
- package/dist/client/node_modules/mlly/node_modules/confbox/dist/json5.d.ts +58 -0
- package/dist/client/node_modules/mlly/node_modules/confbox/dist/jsonc.d.mts +41 -0
- package/dist/client/node_modules/mlly/node_modules/confbox/dist/jsonc.d.ts +41 -0
- package/dist/client/node_modules/mlly/node_modules/confbox/dist/shared/confbox.9745c98f.d.mts +24 -0
- package/dist/client/node_modules/mlly/node_modules/confbox/dist/shared/confbox.9745c98f.d.ts +24 -0
- package/dist/client/node_modules/mlly/node_modules/confbox/dist/toml.d.mts +22 -0
- package/dist/client/node_modules/mlly/node_modules/confbox/dist/toml.d.ts +22 -0
- package/dist/client/node_modules/mlly/node_modules/confbox/dist/yaml.d.mts +95 -0
- package/dist/client/node_modules/mlly/node_modules/confbox/dist/yaml.d.ts +95 -0
- package/dist/client/node_modules/mlly/node_modules/confbox/json5.d.ts +2 -0
- package/dist/client/node_modules/mlly/node_modules/confbox/jsonc.d.ts +2 -0
- package/dist/client/node_modules/mlly/node_modules/confbox/package.json +86 -0
- package/dist/client/node_modules/mlly/node_modules/confbox/toml.d.ts +2 -0
- package/dist/client/node_modules/mlly/node_modules/confbox/yaml.d.ts +2 -0
- package/dist/client/node_modules/mlly/node_modules/pkg-types/dist/index.d.mts +411 -0
- package/dist/client/node_modules/mlly/node_modules/pkg-types/dist/index.d.ts +411 -0
- package/dist/client/node_modules/mlly/node_modules/pkg-types/package.json +47 -0
- package/dist/client/node_modules/mlly/package.json +55 -0
- package/dist/client/node_modules/muggle-string/out/base.d.ts +6 -0
- package/dist/client/node_modules/muggle-string/out/basic.d.ts +6 -0
- package/dist/client/node_modules/muggle-string/out/binarySearch.d.ts +1 -0
- package/dist/client/node_modules/muggle-string/out/common.d.ts +9 -0
- package/dist/client/node_modules/muggle-string/out/getLength.d.ts +2 -0
- package/dist/client/node_modules/muggle-string/out/index.d.ts +10 -0
- package/dist/client/node_modules/muggle-string/out/map.d.ts +3 -0
- package/dist/client/node_modules/muggle-string/out/overwriteSource.d.ts +3 -0
- package/dist/client/node_modules/muggle-string/out/replace.d.ts +3 -0
- package/dist/client/node_modules/muggle-string/out/segment.d.ts +6 -0
- package/dist/client/node_modules/muggle-string/out/sourceBased.d.ts +3 -0
- package/dist/client/node_modules/muggle-string/out/toString.d.ts +2 -0
- package/dist/client/node_modules/muggle-string/out/track.d.ts +6 -0
- package/dist/client/node_modules/muggle-string/out/types.d.ts +16 -0
- package/dist/client/node_modules/muggle-string/package.json +22 -0
- package/dist/client/node_modules/nostics/dist/diagnostic-wduO7saY.d.mts +295 -0
- package/dist/client/node_modules/nostics/dist/formatters/ansi.d.mts +15 -0
- package/dist/client/node_modules/nostics/dist/formatters/json.d.mts +7 -0
- package/dist/client/node_modules/nostics/dist/index.d.mts +51 -0
- package/dist/client/node_modules/nostics/dist/reporters/dev.d.mts +13 -0
- package/dist/client/node_modules/nostics/dist/reporters/fetch.d.mts +11 -0
- package/dist/client/node_modules/nostics/dist/reporters/node.d.mts +43 -0
- package/dist/client/node_modules/nostics/package.json +125 -0
- package/dist/client/node_modules/pathe/dist/index.d.mts +47 -0
- package/dist/client/node_modules/pathe/dist/index.d.ts +47 -0
- package/dist/client/node_modules/pathe/dist/utils.d.mts +32 -0
- package/dist/client/node_modules/pathe/dist/utils.d.ts +32 -0
- package/dist/client/node_modules/pathe/package.json +61 -0
- package/dist/client/node_modules/pathe/utils.d.ts +1 -0
- package/dist/client/node_modules/perfect-debounce/dist/index.d.mts +49 -0
- package/dist/client/node_modules/perfect-debounce/package.json +41 -0
- package/dist/client/node_modules/picomatch/package.json +83 -0
- package/dist/client/node_modules/pinia/dist/pinia.d.ts +937 -1056
- package/dist/client/node_modules/pinia/package.json +53 -67
- package/dist/client/node_modules/pkg-types/dist/index.d.mts +695 -0
- package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/_chunks/_format.d.mts +22 -0
- package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/_chunks/libs/js-yaml.d.mts +33 -0
- package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/index.d.mts +7 -0
- package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/ini.d.mts +59 -0
- package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/json.d.mts +25 -0
- package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/json5.d.mts +55 -0
- package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/jsonc.d.mts +29 -0
- package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/toml.d.mts +20 -0
- package/dist/client/node_modules/pkg-types/node_modules/confbox/dist/yaml.d.mts +101 -0
- package/dist/client/node_modules/pkg-types/node_modules/confbox/package.json +68 -0
- package/dist/client/node_modules/pkg-types/package.json +47 -0
- package/dist/client/node_modules/quansync/dist/index.d.mts +22 -0
- package/dist/client/node_modules/quansync/dist/index.d.ts +22 -0
- package/dist/client/node_modules/quansync/dist/macro.d.mts +18 -0
- package/dist/client/node_modules/quansync/dist/macro.d.ts +18 -0
- package/dist/client/node_modules/quansync/dist/types.d.mts +27 -0
- package/dist/client/node_modules/quansync/dist/types.d.ts +27 -0
- package/dist/client/node_modules/quansync/package.json +95 -0
- package/dist/client/node_modules/readdirp/index.d.ts +117 -0
- package/dist/client/node_modules/readdirp/package.json +62 -0
- package/dist/client/node_modules/scule/dist/index.d.mts +57 -0
- package/dist/client/node_modules/scule/dist/index.d.ts +57 -0
- package/dist/client/node_modules/scule/package.json +43 -0
- package/dist/client/node_modules/tinyglobby/dist/index.d.mts +148 -0
- package/dist/client/node_modules/tinyglobby/package.json +70 -0
- package/dist/client/node_modules/ufo/dist/index.d.mts +714 -0
- package/dist/client/node_modules/ufo/dist/index.d.ts +714 -0
- package/dist/client/node_modules/ufo/package.json +48 -0
- package/dist/client/node_modules/unplugin/dist/index.d.mts +241 -0
- package/dist/client/node_modules/unplugin/dist/rspack/loaders/load.d.mts +4 -0
- package/dist/client/node_modules/unplugin/dist/rspack/loaders/transform.d.mts +4 -0
- package/dist/client/node_modules/unplugin/dist/webpack/loaders/load.d.mts +4 -0
- package/dist/client/node_modules/unplugin/dist/webpack/loaders/transform.d.mts +4 -0
- package/dist/client/node_modules/unplugin/package.json +146 -0
- package/dist/client/node_modules/unplugin-utils/dist/index.d.ts +31 -0
- package/dist/client/node_modules/unplugin-utils/package.json +61 -0
- package/dist/client/node_modules/vue-router/dist/experimental/index.d.ts +7 -0
- package/dist/client/node_modules/vue-router/dist/experimental/pinia-colada.d.ts +151 -0
- package/dist/client/node_modules/vue-router/dist/{router-CWoNjPRp.d.mts → index-D7ja2BKs.d.ts} +2480 -1160
- package/dist/client/node_modules/vue-router/dist/options-CwYZKRl4.d.mts +2923 -0
- package/dist/client/node_modules/vue-router/dist/unplugin/esbuild.d.mts +10 -0
- package/dist/client/node_modules/vue-router/dist/unplugin/index.d.mts +62 -0
- package/dist/client/node_modules/vue-router/dist/unplugin/options.d.mts +7 -0
- package/dist/client/node_modules/vue-router/dist/unplugin/rolldown.d.mts +10 -0
- package/dist/client/node_modules/vue-router/dist/unplugin/rollup.d.mts +10 -0
- package/dist/client/node_modules/vue-router/dist/unplugin/types.d.mts +7 -0
- package/dist/client/node_modules/vue-router/dist/unplugin/vite.d.mts +10 -0
- package/dist/client/node_modules/vue-router/dist/unplugin/webpack.d.mts +10 -0
- package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +7 -0
- package/dist/client/node_modules/vue-router/package.json +153 -95
- package/dist/client/node_modules/vue-router/vue-router-auto-resolver.d.mts +22 -17
- package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.mts +53 -0
- package/dist/client/node_modules/vue-router/vue-router-auto.d.ts +2 -1
- package/dist/client/node_modules/webpack-virtual-modules/lib/index.d.ts +15 -0
- package/dist/client/node_modules/webpack-virtual-modules/lib/virtual-stats.d.ts +11 -0
- package/dist/client/node_modules/webpack-virtual-modules/package.json +82 -0
- package/dist/client/vue.runtime.esm-bundler.js +1 -176
- package/package.json +8 -7
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/api.d.ts +0 -108
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/app.d.ts +0 -1
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/component.d.ts +0 -78
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/context.d.ts +0 -5
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/hooks.d.ts +0 -180
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/index.d.ts +0 -6
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/api/util.d.ts +0 -4
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/const.d.ts +0 -2
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/env.d.ts +0 -15
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/index.d.ts +0 -18
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/plugin.d.ts +0 -47
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/proxy.d.ts +0 -20
- package/dist/client/node_modules/@vue/devtools-api/lib/esm/time.d.ts +0 -2
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/index.d.ts +0 -22
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2/index.d.ts +0 -33
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v2.7/index.d.ts +0 -38
- package/dist/client/node_modules/pinia/node_modules/vue-demi/lib/v3/index.d.ts +0 -22
- package/dist/client/node_modules/pinia/node_modules/vue-demi/package.json +0 -47
- package/dist/client/node_modules/vue-router/dist/experimental/index.d.mts +0 -38
- package/dist/client/node_modules/vue-router/dist/vue-router.d.mts +0 -361
- package/dist/client/node_modules/vue-router/vue-router-auto-routes.d.ts +0 -4
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalises alias mappings, ensuring that more specific aliases are resolved before less specific ones.
|
|
3
|
+
* This function also ensures that aliases do not resolve to themselves cyclically.
|
|
4
|
+
*
|
|
5
|
+
* @param _aliases - A set of alias mappings where each key is an alias and its value is the actual path it points to.
|
|
6
|
+
* @returns a set of normalised alias mappings.
|
|
7
|
+
*/
|
|
8
|
+
declare function normalizeAliases(_aliases: Record<string, string>): Record<string, string>;
|
|
9
|
+
/**
|
|
10
|
+
* Resolves a path string to its alias if applicable, otherwise returns the original path.
|
|
11
|
+
* This function normalises the path, resolves the alias and then joins it to the alias target if necessary.
|
|
12
|
+
*
|
|
13
|
+
* @param path - The path string to resolve.
|
|
14
|
+
* @param aliases - A set of alias mappings to use for resolution.
|
|
15
|
+
* @returns the resolved path as a string.
|
|
16
|
+
*/
|
|
17
|
+
declare function resolveAlias(path: string, aliases: Record<string, string>): string;
|
|
18
|
+
/**
|
|
19
|
+
* Resolves a path string to its possible alias.
|
|
20
|
+
*
|
|
21
|
+
* Returns an array of possible alias resolutions (could be empty), sorted by specificity (longest first).
|
|
22
|
+
*/
|
|
23
|
+
declare function reverseResolveAlias(path: string, aliases: Record<string, string>): string[];
|
|
24
|
+
/**
|
|
25
|
+
* Extracts the filename from a given path, excluding any directory paths and the file extension.
|
|
26
|
+
*
|
|
27
|
+
* @param path - The full path of the file from which to extract the filename.
|
|
28
|
+
* @returns the filename without the extension, or `undefined` if the filename cannot be extracted.
|
|
29
|
+
*/
|
|
30
|
+
declare function filename(path: string): string | undefined;
|
|
31
|
+
|
|
32
|
+
export { filename, normalizeAliases, resolveAlias, reverseResolveAlias };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalises alias mappings, ensuring that more specific aliases are resolved before less specific ones.
|
|
3
|
+
* This function also ensures that aliases do not resolve to themselves cyclically.
|
|
4
|
+
*
|
|
5
|
+
* @param _aliases - A set of alias mappings where each key is an alias and its value is the actual path it points to.
|
|
6
|
+
* @returns a set of normalised alias mappings.
|
|
7
|
+
*/
|
|
8
|
+
declare function normalizeAliases(_aliases: Record<string, string>): Record<string, string>;
|
|
9
|
+
/**
|
|
10
|
+
* Resolves a path string to its alias if applicable, otherwise returns the original path.
|
|
11
|
+
* This function normalises the path, resolves the alias and then joins it to the alias target if necessary.
|
|
12
|
+
*
|
|
13
|
+
* @param path - The path string to resolve.
|
|
14
|
+
* @param aliases - A set of alias mappings to use for resolution.
|
|
15
|
+
* @returns the resolved path as a string.
|
|
16
|
+
*/
|
|
17
|
+
declare function resolveAlias(path: string, aliases: Record<string, string>): string;
|
|
18
|
+
/**
|
|
19
|
+
* Resolves a path string to its possible alias.
|
|
20
|
+
*
|
|
21
|
+
* Returns an array of possible alias resolutions (could be empty), sorted by specificity (longest first).
|
|
22
|
+
*/
|
|
23
|
+
declare function reverseResolveAlias(path: string, aliases: Record<string, string>): string[];
|
|
24
|
+
/**
|
|
25
|
+
* Extracts the filename from a given path, excluding any directory paths and the file extension.
|
|
26
|
+
*
|
|
27
|
+
* @param path - The full path of the file from which to extract the filename.
|
|
28
|
+
* @returns the filename without the extension, or `undefined` if the filename cannot be extracted.
|
|
29
|
+
*/
|
|
30
|
+
declare function filename(path: string): string | undefined;
|
|
31
|
+
|
|
32
|
+
export { filename, normalizeAliases, resolveAlias, reverseResolveAlias };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pathe",
|
|
3
|
+
"version": "2.0.3",
|
|
4
|
+
"description": "Universal filesystem path utils",
|
|
5
|
+
"repository": "unjs/pathe",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"type": "module",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./dist/index.d.mts",
|
|
13
|
+
"default": "./dist/index.mjs"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./dist/index.d.cts",
|
|
17
|
+
"default": "./dist/index.cjs"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"./utils": {
|
|
21
|
+
"import": {
|
|
22
|
+
"types": "./dist/utils.d.mts",
|
|
23
|
+
"default": "./dist/utils.mjs"
|
|
24
|
+
},
|
|
25
|
+
"require": {
|
|
26
|
+
"types": "./dist/utils.d.cts",
|
|
27
|
+
"default": "./dist/utils.cjs"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"main": "./dist/index.cjs",
|
|
32
|
+
"module": "./dist/index.mjs",
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"files": [
|
|
35
|
+
"dist",
|
|
36
|
+
"utils.d.ts"
|
|
37
|
+
],
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/node": "^22.13.1",
|
|
40
|
+
"@vitest/coverage-v8": "^3.0.5",
|
|
41
|
+
"changelogen": "^0.5.7",
|
|
42
|
+
"esbuild": "^0.25.0",
|
|
43
|
+
"eslint": "^9.20.1",
|
|
44
|
+
"eslint-config-unjs": "^0.4.2",
|
|
45
|
+
"jiti": "^2.4.2",
|
|
46
|
+
"prettier": "^3.5.0",
|
|
47
|
+
"typescript": "^5.7.3",
|
|
48
|
+
"unbuild": "^3.3.1",
|
|
49
|
+
"vitest": "^3.0.5",
|
|
50
|
+
"zeptomatch": "^2.0.0"
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"build": "unbuild",
|
|
54
|
+
"dev": "vitest",
|
|
55
|
+
"lint": "eslint . && prettier -c src test",
|
|
56
|
+
"lint:fix": "eslint . --fix && prettier -w src test",
|
|
57
|
+
"release": "pnpm test && pnpm build && changelogen --release && pnpm publish && git push --follow-tags",
|
|
58
|
+
"test": "pnpm lint && vitest run --coverage",
|
|
59
|
+
"test:types": "tsc --noEmit"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./dist/utils";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
//#region src/index.d.ts
|
|
2
|
+
interface DebounceOptions {
|
|
3
|
+
/**
|
|
4
|
+
Call the `fn` on the [leading edge of the timeout](https://css-tricks.com/debouncing-throttling-explained-examples/#article-header-id-1).
|
|
5
|
+
Meaning immediately, instead of waiting for `wait` milliseconds.
|
|
6
|
+
@default false
|
|
7
|
+
*/
|
|
8
|
+
readonly leading?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
Call the `fn` on trailing edge with last used arguments. Result of call is from previous call.
|
|
11
|
+
@default true
|
|
12
|
+
*/
|
|
13
|
+
readonly trailing?: boolean;
|
|
14
|
+
}
|
|
15
|
+
type DebouncedReturn<ArgumentsT extends unknown[], ReturnT> = ((...args: ArgumentsT) => Promise<ReturnT>) & {
|
|
16
|
+
/**
|
|
17
|
+
* Cancel pending function call
|
|
18
|
+
*/
|
|
19
|
+
cancel: () => void;
|
|
20
|
+
/**
|
|
21
|
+
* Immediately invoke pending function call
|
|
22
|
+
*/
|
|
23
|
+
flush: () => Promise<ReturnT> | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Get pending function call
|
|
26
|
+
*/
|
|
27
|
+
isPending: () => boolean;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
Debounce functions
|
|
31
|
+
@param fn - Promise-returning/async function to debounce.
|
|
32
|
+
@param wait - Milliseconds to wait before calling `fn`. Default value is 25ms
|
|
33
|
+
@returns A function that delays calling `fn` until after `wait` milliseconds have elapsed since the last time it was called.
|
|
34
|
+
@example
|
|
35
|
+
```
|
|
36
|
+
import { debounce } from 'perfect-debounce';
|
|
37
|
+
const expensiveCall = async input => input;
|
|
38
|
+
const debouncedFn = debounce(expensiveCall, 200);
|
|
39
|
+
for (const number of [1, 2, 3]) {
|
|
40
|
+
console.log(await debouncedFn(number));
|
|
41
|
+
}
|
|
42
|
+
//=> 1
|
|
43
|
+
//=> 2
|
|
44
|
+
//=> 3
|
|
45
|
+
```
|
|
46
|
+
*/
|
|
47
|
+
declare function debounce<ArgumentsT extends unknown[], ReturnT>(fn: (...args: ArgumentsT) => PromiseLike<ReturnT> | ReturnT, wait?: number, options?: DebounceOptions): DebouncedReturn<ArgumentsT, ReturnT>;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { DebounceOptions, DebouncedReturn, debounce };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "perfect-debounce",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"repository": "unjs/perfect-debounce",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"type": "module",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": "./dist/index.mjs"
|
|
11
|
+
},
|
|
12
|
+
"main": "./dist/index.mjs",
|
|
13
|
+
"module": "./dist/index.mjs",
|
|
14
|
+
"types": "./dist/index.d.mts",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "obuild",
|
|
20
|
+
"dev": "vitest dev",
|
|
21
|
+
"lint": "eslint . && prettier --check src test",
|
|
22
|
+
"lint:fix": "eslint . --fix && prettier -w src test",
|
|
23
|
+
"release": "pnpm test && pnpm build && changelogen --release --push && npm publish",
|
|
24
|
+
"test": "vitest run --coverage"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@types/node": "^25.0.10",
|
|
28
|
+
"@vitest/coverage-v8": "^4.0.17",
|
|
29
|
+
"automd": "^0.4.2",
|
|
30
|
+
"changelogen": "^0.6.2",
|
|
31
|
+
"eslint": "^9.39.2",
|
|
32
|
+
"eslint-config-unjs": "^0.6.2",
|
|
33
|
+
"in-range": "^3.0.0",
|
|
34
|
+
"obuild": "^0.4.18",
|
|
35
|
+
"prettier": "^3.8.1",
|
|
36
|
+
"time-span": "^5.1.0",
|
|
37
|
+
"typescript": "^5.9.3",
|
|
38
|
+
"vitest": "^4.0.17"
|
|
39
|
+
},
|
|
40
|
+
"packageManager": "pnpm@10.28.1"
|
|
41
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "picomatch",
|
|
3
|
+
"description": "Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.",
|
|
4
|
+
"version": "4.0.7",
|
|
5
|
+
"homepage": "https://github.com/micromatch/picomatch",
|
|
6
|
+
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
|
7
|
+
"funding": "https://github.com/sponsors/jonschlinkert",
|
|
8
|
+
"repository": "micromatch/picomatch",
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/micromatch/picomatch/issues"
|
|
11
|
+
},
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"files": [
|
|
14
|
+
"index.js",
|
|
15
|
+
"posix.js",
|
|
16
|
+
"lib"
|
|
17
|
+
],
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"main": "index.js",
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=12"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --report-unused-disable-directives --ignore-path .gitignore .",
|
|
25
|
+
"mocha": "mocha --reporter dot",
|
|
26
|
+
"test": "npm run lint && npm run mocha",
|
|
27
|
+
"test:ci": "npm run test:cover",
|
|
28
|
+
"test:cover": "nyc npm run mocha"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"eslint": "^8.57.0",
|
|
32
|
+
"fill-range": "^7.0.1",
|
|
33
|
+
"gulp-format-md": "^2.0.0",
|
|
34
|
+
"mocha": "^10.4.0",
|
|
35
|
+
"nyc": "^15.1.0"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"glob",
|
|
39
|
+
"match",
|
|
40
|
+
"picomatch"
|
|
41
|
+
],
|
|
42
|
+
"nyc": {
|
|
43
|
+
"reporter": [
|
|
44
|
+
"html",
|
|
45
|
+
"lcov",
|
|
46
|
+
"text-summary",
|
|
47
|
+
"cobertura"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"verb": {
|
|
51
|
+
"toc": {
|
|
52
|
+
"render": true,
|
|
53
|
+
"method": "preWrite",
|
|
54
|
+
"maxdepth": 3
|
|
55
|
+
},
|
|
56
|
+
"layout": "empty",
|
|
57
|
+
"tasks": [
|
|
58
|
+
"readme"
|
|
59
|
+
],
|
|
60
|
+
"plugins": [
|
|
61
|
+
"gulp-format-md"
|
|
62
|
+
],
|
|
63
|
+
"lint": {
|
|
64
|
+
"reflinks": true
|
|
65
|
+
},
|
|
66
|
+
"related": {
|
|
67
|
+
"list": [
|
|
68
|
+
"braces",
|
|
69
|
+
"micromatch"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"reflinks": [
|
|
73
|
+
"braces",
|
|
74
|
+
"expand-brackets",
|
|
75
|
+
"extglob",
|
|
76
|
+
"fill-range",
|
|
77
|
+
"micromatch",
|
|
78
|
+
"minimatch",
|
|
79
|
+
"nanomatch",
|
|
80
|
+
"picomatch"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
}
|