@poveste/vendors 0.13.1 → 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/nanoid/package.json +1 -1
- 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,88 @@
|
|
|
1
|
+
import type { SourceMapInput } from '@jridgewell/trace-mapping';
|
|
2
|
+
import type { DecodedSourceMap, EncodedSourceMap, Pos, Mapping } from './types';
|
|
3
|
+
export type { DecodedSourceMap, EncodedSourceMap, Mapping };
|
|
4
|
+
export type Options = {
|
|
5
|
+
file?: string | null;
|
|
6
|
+
sourceRoot?: string | null;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Provides the state to generate a sourcemap.
|
|
10
|
+
*/
|
|
11
|
+
export declare class GenMapping {
|
|
12
|
+
private _names;
|
|
13
|
+
private _sources;
|
|
14
|
+
private _sourcesContent;
|
|
15
|
+
private _mappings;
|
|
16
|
+
private _ignoreList;
|
|
17
|
+
file: string | null | undefined;
|
|
18
|
+
sourceRoot: string | null | undefined;
|
|
19
|
+
constructor({ file, sourceRoot }?: Options);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A low-level API to associate a generated position with an original source position. Line and
|
|
23
|
+
* column here are 0-based, unlike `addMapping`.
|
|
24
|
+
*/
|
|
25
|
+
export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source?: null, sourceLine?: null, sourceColumn?: null, name?: null, content?: null): void;
|
|
26
|
+
export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source: string, sourceLine: number, sourceColumn: number, name?: null, content?: string | null): void;
|
|
27
|
+
export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source: string, sourceLine: number, sourceColumn: number, name: string, content?: string | null): void;
|
|
28
|
+
/**
|
|
29
|
+
* A high-level API to associate a generated position with an original source position. Line is
|
|
30
|
+
* 1-based, but column is 0-based, due to legacy behavior in `source-map` library.
|
|
31
|
+
*/
|
|
32
|
+
export declare function addMapping(map: GenMapping, mapping: {
|
|
33
|
+
generated: Pos;
|
|
34
|
+
source?: null;
|
|
35
|
+
original?: null;
|
|
36
|
+
name?: null;
|
|
37
|
+
content?: null;
|
|
38
|
+
}): void;
|
|
39
|
+
export declare function addMapping(map: GenMapping, mapping: {
|
|
40
|
+
generated: Pos;
|
|
41
|
+
source: string;
|
|
42
|
+
original: Pos;
|
|
43
|
+
name?: null;
|
|
44
|
+
content?: string | null;
|
|
45
|
+
}): void;
|
|
46
|
+
export declare function addMapping(map: GenMapping, mapping: {
|
|
47
|
+
generated: Pos;
|
|
48
|
+
source: string;
|
|
49
|
+
original: Pos;
|
|
50
|
+
name: string;
|
|
51
|
+
content?: string | null;
|
|
52
|
+
}): void;
|
|
53
|
+
/**
|
|
54
|
+
* Same as `addSegment`, but will only add the segment if it generates useful information in the
|
|
55
|
+
* resulting map. This only works correctly if segments are added **in order**, meaning you should
|
|
56
|
+
* not add a segment with a lower generated line/column than one that came before.
|
|
57
|
+
*/
|
|
58
|
+
export declare const maybeAddSegment: typeof addSegment;
|
|
59
|
+
/**
|
|
60
|
+
* Same as `addMapping`, but will only add the mapping if it generates useful information in the
|
|
61
|
+
* resulting map. This only works correctly if mappings are added **in order**, meaning you should
|
|
62
|
+
* not add a mapping with a lower generated line/column than one that came before.
|
|
63
|
+
*/
|
|
64
|
+
export declare const maybeAddMapping: typeof addMapping;
|
|
65
|
+
/**
|
|
66
|
+
* Adds/removes the content of the source file to the source map.
|
|
67
|
+
*/
|
|
68
|
+
export declare function setSourceContent(map: GenMapping, source: string, content: string | null): void;
|
|
69
|
+
export declare function setIgnore(map: GenMapping, source: string, ignore?: boolean): void;
|
|
70
|
+
/**
|
|
71
|
+
* Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects
|
|
72
|
+
* a sourcemap, or to JSON.stringify.
|
|
73
|
+
*/
|
|
74
|
+
export declare function toDecodedMap(map: GenMapping): DecodedSourceMap;
|
|
75
|
+
/**
|
|
76
|
+
* Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects
|
|
77
|
+
* a sourcemap, or to JSON.stringify.
|
|
78
|
+
*/
|
|
79
|
+
export declare function toEncodedMap(map: GenMapping): EncodedSourceMap;
|
|
80
|
+
/**
|
|
81
|
+
* Constructs a new GenMapping, using the already present mappings of the input.
|
|
82
|
+
*/
|
|
83
|
+
export declare function fromMap(input: SourceMapInput): GenMapping;
|
|
84
|
+
/**
|
|
85
|
+
* Returns an array of high-level mapping objects for every recorded segment, which could then be
|
|
86
|
+
* passed to the `source-map` library.
|
|
87
|
+
*/
|
|
88
|
+
export declare function allMappings(map: GenMapping): Mapping[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
type Key = string | number | symbol;
|
|
2
|
+
/**
|
|
3
|
+
* SetArray acts like a `Set` (allowing only one occurrence of a string `key`), but provides the
|
|
4
|
+
* index of the `key` in the backing array.
|
|
5
|
+
*
|
|
6
|
+
* This is designed to allow synchronizing a second array with the contents of the backing array,
|
|
7
|
+
* like how in a sourcemap `sourcesContent[i]` is the source content associated with `source[i]`,
|
|
8
|
+
* and there are never duplicates.
|
|
9
|
+
*/
|
|
10
|
+
export declare class SetArray<T extends Key = Key> {
|
|
11
|
+
private _indexes;
|
|
12
|
+
array: readonly T[];
|
|
13
|
+
constructor();
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Gets the index associated with `key` in the backing array, if it is already present.
|
|
17
|
+
*/
|
|
18
|
+
export declare function get<T extends Key>(setarr: SetArray<T>, key: T): number | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Puts `key` into the backing array, if it is not already present. Returns
|
|
21
|
+
* the index of the `key` in the backing array.
|
|
22
|
+
*/
|
|
23
|
+
export declare function put<T extends Key>(setarr: SetArray<T>, key: T): number;
|
|
24
|
+
/**
|
|
25
|
+
* Pops the last added item out of the SetArray.
|
|
26
|
+
*/
|
|
27
|
+
export declare function pop<T extends Key>(setarr: SetArray<T>): void;
|
|
28
|
+
/**
|
|
29
|
+
* Removes the key, if it exists in the set.
|
|
30
|
+
*/
|
|
31
|
+
export declare function remove<T extends Key>(setarr: SetArray<T>, key: T): void;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type GeneratedColumn = number;
|
|
2
|
+
type SourcesIndex = number;
|
|
3
|
+
type SourceLine = number;
|
|
4
|
+
type SourceColumn = number;
|
|
5
|
+
type NamesIndex = number;
|
|
6
|
+
export type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];
|
|
7
|
+
export declare const COLUMN = 0;
|
|
8
|
+
export declare const SOURCES_INDEX = 1;
|
|
9
|
+
export declare const SOURCE_LINE = 2;
|
|
10
|
+
export declare const SOURCE_COLUMN = 3;
|
|
11
|
+
export declare const NAMES_INDEX = 4;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { SourceMapSegment } from './sourcemap-segment';
|
|
2
|
+
export interface SourceMapV3 {
|
|
3
|
+
file?: string | null;
|
|
4
|
+
names: readonly string[];
|
|
5
|
+
sourceRoot?: string;
|
|
6
|
+
sources: readonly (string | null)[];
|
|
7
|
+
sourcesContent?: readonly (string | null)[];
|
|
8
|
+
version: 3;
|
|
9
|
+
ignoreList?: readonly number[];
|
|
10
|
+
}
|
|
11
|
+
export interface EncodedSourceMap extends SourceMapV3 {
|
|
12
|
+
mappings: string;
|
|
13
|
+
}
|
|
14
|
+
export interface DecodedSourceMap extends SourceMapV3 {
|
|
15
|
+
mappings: readonly SourceMapSegment[][];
|
|
16
|
+
}
|
|
17
|
+
export interface Pos {
|
|
18
|
+
line: number;
|
|
19
|
+
column: number;
|
|
20
|
+
}
|
|
21
|
+
export interface OriginalPos extends Pos {
|
|
22
|
+
source: string;
|
|
23
|
+
}
|
|
24
|
+
export interface BindingExpressionRange {
|
|
25
|
+
start: Pos;
|
|
26
|
+
expression: string;
|
|
27
|
+
}
|
|
28
|
+
export type Mapping = {
|
|
29
|
+
generated: Pos;
|
|
30
|
+
source: undefined;
|
|
31
|
+
original: undefined;
|
|
32
|
+
name: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
generated: Pos;
|
|
35
|
+
source: string;
|
|
36
|
+
original: Pos;
|
|
37
|
+
name: string;
|
|
38
|
+
} | {
|
|
39
|
+
generated: Pos;
|
|
40
|
+
source: string;
|
|
41
|
+
original: Pos;
|
|
42
|
+
name: undefined;
|
|
43
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jridgewell/gen-mapping",
|
|
3
|
+
"version": "0.3.13",
|
|
4
|
+
"description": "Generate source maps",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"source",
|
|
7
|
+
"map"
|
|
8
|
+
],
|
|
9
|
+
"main": "dist/gen-mapping.umd.js",
|
|
10
|
+
"module": "dist/gen-mapping.mjs",
|
|
11
|
+
"types": "types/gen-mapping.d.cts",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"src",
|
|
15
|
+
"types"
|
|
16
|
+
],
|
|
17
|
+
"exports": {
|
|
18
|
+
".": [
|
|
19
|
+
{
|
|
20
|
+
"import": {
|
|
21
|
+
"types": "./types/gen-mapping.d.mts",
|
|
22
|
+
"default": "./dist/gen-mapping.mjs"
|
|
23
|
+
},
|
|
24
|
+
"default": {
|
|
25
|
+
"types": "./types/gen-mapping.d.cts",
|
|
26
|
+
"default": "./dist/gen-mapping.umd.js"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"./dist/gen-mapping.umd.js"
|
|
30
|
+
],
|
|
31
|
+
"./package.json": "./package.json"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"benchmark": "run-s build:code benchmark:*",
|
|
35
|
+
"benchmark:install": "cd benchmark && npm install",
|
|
36
|
+
"benchmark:only": "node --expose-gc benchmark/index.js",
|
|
37
|
+
"build": "run-s -n build:code build:types",
|
|
38
|
+
"build:code": "node ../../esbuild.mjs gen-mapping.ts",
|
|
39
|
+
"build:types": "run-s build:types:force build:types:emit build:types:mts",
|
|
40
|
+
"build:types:force": "rimraf tsconfig.build.tsbuildinfo",
|
|
41
|
+
"build:types:emit": "tsc --project tsconfig.build.json",
|
|
42
|
+
"build:types:mts": "node ../../mts-types.mjs",
|
|
43
|
+
"clean": "run-s -n clean:code clean:types",
|
|
44
|
+
"clean:code": "tsc --build --clean tsconfig.build.json",
|
|
45
|
+
"clean:types": "rimraf dist types",
|
|
46
|
+
"test": "run-s -n test:types test:only test:format",
|
|
47
|
+
"test:format": "prettier --check '{src,test}/**/*.ts'",
|
|
48
|
+
"test:only": "mocha",
|
|
49
|
+
"test:types": "eslint '{src,test}/**/*.ts'",
|
|
50
|
+
"lint": "run-s -n lint:types lint:format",
|
|
51
|
+
"lint:format": "npm run test:format -- --write",
|
|
52
|
+
"lint:types": "npm run test:types -- --fix",
|
|
53
|
+
"prepublishOnly": "npm run-s -n build test"
|
|
54
|
+
},
|
|
55
|
+
"homepage": "https://github.com/jridgewell/sourcemaps/tree/main/packages/gen-mapping",
|
|
56
|
+
"repository": {
|
|
57
|
+
"type": "git",
|
|
58
|
+
"url": "git+https://github.com/jridgewell/sourcemaps.git",
|
|
59
|
+
"directory": "packages/gen-mapping"
|
|
60
|
+
},
|
|
61
|
+
"author": "Justin Ridgewell <justin@ridgewell.name>",
|
|
62
|
+
"license": "MIT",
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@jridgewell/sourcemap-codec": "^1.5.0",
|
|
65
|
+
"@jridgewell/trace-mapping": "^0.3.24"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { SourceMapInput } from '@jridgewell/trace-mapping';
|
|
2
|
+
import type { DecodedSourceMap, EncodedSourceMap, Pos, Mapping } from './types.mts';
|
|
3
|
+
export type { DecodedSourceMap, EncodedSourceMap, Mapping };
|
|
4
|
+
export type Options = {
|
|
5
|
+
file?: string | null;
|
|
6
|
+
sourceRoot?: string | null;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Provides the state to generate a sourcemap.
|
|
10
|
+
*/
|
|
11
|
+
export declare class GenMapping {
|
|
12
|
+
private _names;
|
|
13
|
+
private _sources;
|
|
14
|
+
private _sourcesContent;
|
|
15
|
+
private _mappings;
|
|
16
|
+
private _ignoreList;
|
|
17
|
+
file: string | null | undefined;
|
|
18
|
+
sourceRoot: string | null | undefined;
|
|
19
|
+
constructor({ file, sourceRoot }?: Options);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A low-level API to associate a generated position with an original source position. Line and
|
|
23
|
+
* column here are 0-based, unlike `addMapping`.
|
|
24
|
+
*/
|
|
25
|
+
export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source?: null, sourceLine?: null, sourceColumn?: null, name?: null, content?: null): void;
|
|
26
|
+
export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source: string, sourceLine: number, sourceColumn: number, name?: null, content?: string | null): void;
|
|
27
|
+
export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source: string, sourceLine: number, sourceColumn: number, name: string, content?: string | null): void;
|
|
28
|
+
/**
|
|
29
|
+
* A high-level API to associate a generated position with an original source position. Line is
|
|
30
|
+
* 1-based, but column is 0-based, due to legacy behavior in `source-map` library.
|
|
31
|
+
*/
|
|
32
|
+
export declare function addMapping(map: GenMapping, mapping: {
|
|
33
|
+
generated: Pos;
|
|
34
|
+
source?: null;
|
|
35
|
+
original?: null;
|
|
36
|
+
name?: null;
|
|
37
|
+
content?: null;
|
|
38
|
+
}): void;
|
|
39
|
+
export declare function addMapping(map: GenMapping, mapping: {
|
|
40
|
+
generated: Pos;
|
|
41
|
+
source: string;
|
|
42
|
+
original: Pos;
|
|
43
|
+
name?: null;
|
|
44
|
+
content?: string | null;
|
|
45
|
+
}): void;
|
|
46
|
+
export declare function addMapping(map: GenMapping, mapping: {
|
|
47
|
+
generated: Pos;
|
|
48
|
+
source: string;
|
|
49
|
+
original: Pos;
|
|
50
|
+
name: string;
|
|
51
|
+
content?: string | null;
|
|
52
|
+
}): void;
|
|
53
|
+
/**
|
|
54
|
+
* Same as `addSegment`, but will only add the segment if it generates useful information in the
|
|
55
|
+
* resulting map. This only works correctly if segments are added **in order**, meaning you should
|
|
56
|
+
* not add a segment with a lower generated line/column than one that came before.
|
|
57
|
+
*/
|
|
58
|
+
export declare const maybeAddSegment: typeof addSegment;
|
|
59
|
+
/**
|
|
60
|
+
* Same as `addMapping`, but will only add the mapping if it generates useful information in the
|
|
61
|
+
* resulting map. This only works correctly if mappings are added **in order**, meaning you should
|
|
62
|
+
* not add a mapping with a lower generated line/column than one that came before.
|
|
63
|
+
*/
|
|
64
|
+
export declare const maybeAddMapping: typeof addMapping;
|
|
65
|
+
/**
|
|
66
|
+
* Adds/removes the content of the source file to the source map.
|
|
67
|
+
*/
|
|
68
|
+
export declare function setSourceContent(map: GenMapping, source: string, content: string | null): void;
|
|
69
|
+
export declare function setIgnore(map: GenMapping, source: string, ignore?: boolean): void;
|
|
70
|
+
/**
|
|
71
|
+
* Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects
|
|
72
|
+
* a sourcemap, or to JSON.stringify.
|
|
73
|
+
*/
|
|
74
|
+
export declare function toDecodedMap(map: GenMapping): DecodedSourceMap;
|
|
75
|
+
/**
|
|
76
|
+
* Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects
|
|
77
|
+
* a sourcemap, or to JSON.stringify.
|
|
78
|
+
*/
|
|
79
|
+
export declare function toEncodedMap(map: GenMapping): EncodedSourceMap;
|
|
80
|
+
/**
|
|
81
|
+
* Constructs a new GenMapping, using the already present mappings of the input.
|
|
82
|
+
*/
|
|
83
|
+
export declare function fromMap(input: SourceMapInput): GenMapping;
|
|
84
|
+
/**
|
|
85
|
+
* Returns an array of high-level mapping objects for every recorded segment, which could then be
|
|
86
|
+
* passed to the `source-map` library.
|
|
87
|
+
*/
|
|
88
|
+
export declare function allMappings(map: GenMapping): Mapping[];
|
|
89
|
+
//# sourceMappingURL=gen-mapping.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
type Key = string | number | symbol;
|
|
2
|
+
/**
|
|
3
|
+
* SetArray acts like a `Set` (allowing only one occurrence of a string `key`), but provides the
|
|
4
|
+
* index of the `key` in the backing array.
|
|
5
|
+
*
|
|
6
|
+
* This is designed to allow synchronizing a second array with the contents of the backing array,
|
|
7
|
+
* like how in a sourcemap `sourcesContent[i]` is the source content associated with `source[i]`,
|
|
8
|
+
* and there are never duplicates.
|
|
9
|
+
*/
|
|
10
|
+
export declare class SetArray<T extends Key = Key> {
|
|
11
|
+
private _indexes;
|
|
12
|
+
array: readonly T[];
|
|
13
|
+
constructor();
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Gets the index associated with `key` in the backing array, if it is already present.
|
|
17
|
+
*/
|
|
18
|
+
export declare function get<T extends Key>(setarr: SetArray<T>, key: T): number | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Puts `key` into the backing array, if it is not already present. Returns
|
|
21
|
+
* the index of the `key` in the backing array.
|
|
22
|
+
*/
|
|
23
|
+
export declare function put<T extends Key>(setarr: SetArray<T>, key: T): number;
|
|
24
|
+
/**
|
|
25
|
+
* Pops the last added item out of the SetArray.
|
|
26
|
+
*/
|
|
27
|
+
export declare function pop<T extends Key>(setarr: SetArray<T>): void;
|
|
28
|
+
/**
|
|
29
|
+
* Removes the key, if it exists in the set.
|
|
30
|
+
*/
|
|
31
|
+
export declare function remove<T extends Key>(setarr: SetArray<T>, key: T): void;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=set-array.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type GeneratedColumn = number;
|
|
2
|
+
type SourcesIndex = number;
|
|
3
|
+
type SourceLine = number;
|
|
4
|
+
type SourceColumn = number;
|
|
5
|
+
type NamesIndex = number;
|
|
6
|
+
export type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];
|
|
7
|
+
export declare const COLUMN = 0;
|
|
8
|
+
export declare const SOURCES_INDEX = 1;
|
|
9
|
+
export declare const SOURCE_LINE = 2;
|
|
10
|
+
export declare const SOURCE_COLUMN = 3;
|
|
11
|
+
export declare const NAMES_INDEX = 4;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=sourcemap-segment.d.ts.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { SourceMapSegment } from './sourcemap-segment.mts';
|
|
2
|
+
export interface SourceMapV3 {
|
|
3
|
+
file?: string | null;
|
|
4
|
+
names: readonly string[];
|
|
5
|
+
sourceRoot?: string;
|
|
6
|
+
sources: readonly (string | null)[];
|
|
7
|
+
sourcesContent?: readonly (string | null)[];
|
|
8
|
+
version: 3;
|
|
9
|
+
ignoreList?: readonly number[];
|
|
10
|
+
}
|
|
11
|
+
export interface EncodedSourceMap extends SourceMapV3 {
|
|
12
|
+
mappings: string;
|
|
13
|
+
}
|
|
14
|
+
export interface DecodedSourceMap extends SourceMapV3 {
|
|
15
|
+
mappings: readonly SourceMapSegment[][];
|
|
16
|
+
}
|
|
17
|
+
export interface Pos {
|
|
18
|
+
line: number;
|
|
19
|
+
column: number;
|
|
20
|
+
}
|
|
21
|
+
export interface OriginalPos extends Pos {
|
|
22
|
+
source: string;
|
|
23
|
+
}
|
|
24
|
+
export interface BindingExpressionRange {
|
|
25
|
+
start: Pos;
|
|
26
|
+
expression: string;
|
|
27
|
+
}
|
|
28
|
+
export type Mapping = {
|
|
29
|
+
generated: Pos;
|
|
30
|
+
source: undefined;
|
|
31
|
+
original: undefined;
|
|
32
|
+
name: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
generated: Pos;
|
|
35
|
+
source: string;
|
|
36
|
+
original: Pos;
|
|
37
|
+
name: string;
|
|
38
|
+
} | {
|
|
39
|
+
generated: Pos;
|
|
40
|
+
source: string;
|
|
41
|
+
original: Pos;
|
|
42
|
+
name: undefined;
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jridgewell/remapping",
|
|
3
|
+
"version": "2.3.5",
|
|
4
|
+
"description": "Remap sequential sourcemaps through transformations to point at the original source code",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"source",
|
|
7
|
+
"map",
|
|
8
|
+
"remap"
|
|
9
|
+
],
|
|
10
|
+
"main": "dist/remapping.umd.js",
|
|
11
|
+
"module": "dist/remapping.mjs",
|
|
12
|
+
"types": "types/remapping.d.cts",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"src",
|
|
16
|
+
"types"
|
|
17
|
+
],
|
|
18
|
+
"exports": {
|
|
19
|
+
".": [
|
|
20
|
+
{
|
|
21
|
+
"import": {
|
|
22
|
+
"types": "./types/remapping.d.mts",
|
|
23
|
+
"default": "./dist/remapping.mjs"
|
|
24
|
+
},
|
|
25
|
+
"default": {
|
|
26
|
+
"types": "./types/remapping.d.cts",
|
|
27
|
+
"default": "./dist/remapping.umd.js"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"./dist/remapping.umd.js"
|
|
31
|
+
],
|
|
32
|
+
"./package.json": "./package.json"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"benchmark": "run-s build:code benchmark:*",
|
|
36
|
+
"benchmark:install": "cd benchmark && npm install",
|
|
37
|
+
"benchmark:only": "node --expose-gc benchmark/index.js",
|
|
38
|
+
"build": "run-s -n build:code build:types",
|
|
39
|
+
"build:code": "node ../../esbuild.mjs remapping.ts",
|
|
40
|
+
"build:types": "run-s build:types:force build:types:emit build:types:mts",
|
|
41
|
+
"build:types:force": "rimraf tsconfig.build.tsbuildinfo",
|
|
42
|
+
"build:types:emit": "tsc --project tsconfig.build.json",
|
|
43
|
+
"build:types:mts": "node ../../mts-types.mjs",
|
|
44
|
+
"clean": "run-s -n clean:code clean:types",
|
|
45
|
+
"clean:code": "tsc --build --clean tsconfig.build.json",
|
|
46
|
+
"clean:types": "rimraf dist types",
|
|
47
|
+
"test": "run-s -n test:types test:only test:format",
|
|
48
|
+
"test:format": "prettier --check '{src,test}/**/*.ts'",
|
|
49
|
+
"test:only": "mocha",
|
|
50
|
+
"test:types": "eslint '{src,test}/**/*.ts'",
|
|
51
|
+
"lint": "run-s -n lint:types lint:format",
|
|
52
|
+
"lint:format": "npm run test:format -- --write",
|
|
53
|
+
"lint:types": "npm run test:types -- --fix",
|
|
54
|
+
"prepublishOnly": "npm run-s -n build test"
|
|
55
|
+
},
|
|
56
|
+
"homepage": "https://github.com/jridgewell/sourcemaps/tree/main/packages/remapping",
|
|
57
|
+
"repository": {
|
|
58
|
+
"type": "git",
|
|
59
|
+
"url": "git+https://github.com/jridgewell/sourcemaps.git",
|
|
60
|
+
"directory": "packages/remapping"
|
|
61
|
+
},
|
|
62
|
+
"author": "Justin Ridgewell <justin@ridgewell.name>",
|
|
63
|
+
"license": "MIT",
|
|
64
|
+
"dependencies": {
|
|
65
|
+
"@jridgewell/gen-mapping": "^0.3.5",
|
|
66
|
+
"@jridgewell/trace-mapping": "^0.3.24"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"source-map": "0.6.1"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MapSource as MapSourceType } from './source-map-tree.mts';
|
|
2
|
+
import type { SourceMapInput, SourceMapLoader } from './types.mts';
|
|
3
|
+
/**
|
|
4
|
+
* Recursively builds a tree structure out of sourcemap files, with each node
|
|
5
|
+
* being either an `OriginalSource` "leaf" or a `SourceMapTree` composed of
|
|
6
|
+
* `OriginalSource`s and `SourceMapTree`s.
|
|
7
|
+
*
|
|
8
|
+
* Every sourcemap is composed of a collection of source files and mappings
|
|
9
|
+
* into locations of those source files. When we generate a `SourceMapTree` for
|
|
10
|
+
* the sourcemap, we attempt to load each source file's own sourcemap. If it
|
|
11
|
+
* does not have an associated sourcemap, it is considered an original,
|
|
12
|
+
* unmodified source file.
|
|
13
|
+
*/
|
|
14
|
+
export default function buildSourceMapTree(input: SourceMapInput | SourceMapInput[], loader: SourceMapLoader): MapSourceType;
|
|
15
|
+
//# sourceMappingURL=build-source-map-tree.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import SourceMap from './source-map.mts';
|
|
2
|
+
import type { SourceMapInput, SourceMapLoader, Options } from './types.mts';
|
|
3
|
+
export type { SourceMapSegment, EncodedSourceMap, EncodedSourceMap as RawSourceMap, DecodedSourceMap, SourceMapInput, SourceMapLoader, LoaderContext, Options, } from './types.mts';
|
|
4
|
+
export type { SourceMap };
|
|
5
|
+
/**
|
|
6
|
+
* Traces through all the mappings in the root sourcemap, through the sources
|
|
7
|
+
* (and their sourcemaps), all the way back to the original source location.
|
|
8
|
+
*
|
|
9
|
+
* `loader` will be called every time we encounter a source file. If it returns
|
|
10
|
+
* a sourcemap, we will recurse into that sourcemap to continue the trace. If
|
|
11
|
+
* it returns a falsey value, that source file is treated as an original,
|
|
12
|
+
* unmodified source file.
|
|
13
|
+
*
|
|
14
|
+
* Pass `excludeContent` to exclude any self-containing source file content
|
|
15
|
+
* from the output sourcemap.
|
|
16
|
+
*
|
|
17
|
+
* Pass `decodedMappings` to receive a SourceMap with decoded (instead of
|
|
18
|
+
* VLQ encoded) mappings.
|
|
19
|
+
*/
|
|
20
|
+
export default function remapping(input: SourceMapInput | SourceMapInput[], loader: SourceMapLoader, options?: boolean | Options): SourceMap;
|
|
21
|
+
//# sourceMappingURL=remapping.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { GenMapping } from '@jridgewell/gen-mapping';
|
|
2
|
+
import type { TraceMap } from '@jridgewell/trace-mapping';
|
|
3
|
+
export type SourceMapSegmentObject = {
|
|
4
|
+
column: number;
|
|
5
|
+
line: number;
|
|
6
|
+
name: string;
|
|
7
|
+
source: string;
|
|
8
|
+
content: string | null;
|
|
9
|
+
ignore: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type OriginalSource = {
|
|
12
|
+
map: null;
|
|
13
|
+
sources: Sources[];
|
|
14
|
+
source: string;
|
|
15
|
+
content: string | null;
|
|
16
|
+
ignore: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type MapSource = {
|
|
19
|
+
map: TraceMap;
|
|
20
|
+
sources: Sources[];
|
|
21
|
+
source: string;
|
|
22
|
+
content: null;
|
|
23
|
+
ignore: false;
|
|
24
|
+
};
|
|
25
|
+
export type Sources = OriginalSource | MapSource;
|
|
26
|
+
/**
|
|
27
|
+
* MapSource represents a single sourcemap, with the ability to trace mappings into its child nodes
|
|
28
|
+
* (which may themselves be SourceMapTrees).
|
|
29
|
+
*/
|
|
30
|
+
export declare function MapSource(map: TraceMap, sources: Sources[]): MapSource;
|
|
31
|
+
/**
|
|
32
|
+
* A "leaf" node in the sourcemap tree, representing an original, unmodified source file. Recursive
|
|
33
|
+
* segment tracing ends at the `OriginalSource`.
|
|
34
|
+
*/
|
|
35
|
+
export declare function OriginalSource(source: string, content: string | null, ignore: boolean): OriginalSource;
|
|
36
|
+
/**
|
|
37
|
+
* traceMappings is only called on the root level SourceMapTree, and begins the process of
|
|
38
|
+
* resolving each mapping in terms of the original source files.
|
|
39
|
+
*/
|
|
40
|
+
export declare function traceMappings(tree: MapSource): GenMapping;
|
|
41
|
+
/**
|
|
42
|
+
* originalPositionFor is only called on children SourceMapTrees. It recurses down into its own
|
|
43
|
+
* child SourceMapTrees, until we find the original source map.
|
|
44
|
+
*/
|
|
45
|
+
export declare function originalPositionFor(source: Sources, line: number, column: number, name: string): SourceMapSegmentObject | null;
|
|
46
|
+
//# sourceMappingURL=source-map-tree.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { GenMapping } from '@jridgewell/gen-mapping';
|
|
2
|
+
import type { DecodedSourceMap, EncodedSourceMap, Options } from './types.mts';
|
|
3
|
+
/**
|
|
4
|
+
* A SourceMap v3 compatible sourcemap, which only includes fields that were
|
|
5
|
+
* provided to it.
|
|
6
|
+
*/
|
|
7
|
+
export default class SourceMap {
|
|
8
|
+
file?: string | null;
|
|
9
|
+
mappings: EncodedSourceMap['mappings'] | DecodedSourceMap['mappings'];
|
|
10
|
+
sourceRoot?: string;
|
|
11
|
+
names: string[];
|
|
12
|
+
sources: (string | null)[];
|
|
13
|
+
sourcesContent?: (string | null)[];
|
|
14
|
+
version: 3;
|
|
15
|
+
ignoreList: number[] | undefined;
|
|
16
|
+
constructor(map: GenMapping, options: Options);
|
|
17
|
+
toString(): string;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=source-map.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SourceMapInput } from '@jridgewell/trace-mapping';
|
|
2
|
+
export type { SourceMapSegment, DecodedSourceMap, EncodedSourceMap, } from '@jridgewell/trace-mapping';
|
|
3
|
+
export type { SourceMapInput };
|
|
4
|
+
export type LoaderContext = {
|
|
5
|
+
readonly importer: string;
|
|
6
|
+
readonly depth: number;
|
|
7
|
+
source: string;
|
|
8
|
+
content: string | null | undefined;
|
|
9
|
+
ignore: boolean | undefined;
|
|
10
|
+
};
|
|
11
|
+
export type SourceMapLoader = (file: string, ctx: LoaderContext) => SourceMapInput | null | undefined | void;
|
|
12
|
+
export type Options = {
|
|
13
|
+
excludeContent?: boolean;
|
|
14
|
+
decodedMappings?: boolean;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|