@histoire/vendors 1.0.0-alpha.1 → 1.0.0-alpha.3
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 +142 -255
- package/dist/client/b-pinia.js +3 -3
- package/dist/client/b-scroll.js +1 -1
- package/dist/client/b-vue-use.js +1200 -764
- package/dist/client/b-vue.js +1 -1
- package/dist/client/node_modules/@babel/helper-string-parser/package.json +1 -1
- package/dist/client/node_modules/@babel/helper-validator-identifier/package.json +1 -1
- package/dist/client/node_modules/@babel/parser/package.json +7 -7
- package/dist/client/node_modules/@babel/parser/typings/babel-parser.d.ts +137 -165
- package/dist/client/node_modules/@babel/types/lib/index-legacy.d.ts +61 -40
- package/dist/client/node_modules/@babel/types/lib/index.d.ts +1691 -1658
- package/dist/client/node_modules/@babel/types/package.json +14 -14
- package/dist/client/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts +4 -1
- package/dist/client/node_modules/@floating-ui/core/package.json +2 -2
- package/dist/client/node_modules/@floating-ui/utils/package.json +1 -1
- package/dist/client/node_modules/@iconify/vue/dist/iconify.d.ts +59 -6
- package/dist/client/node_modules/@iconify/vue/dist/offline.d.ts +9 -2
- package/dist/client/node_modules/@iconify/vue/package.json +14 -14
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/package.json +39 -47
- package/dist/client/node_modules/@vueuse/core/index.d.ts +486 -236
- package/dist/client/node_modules/@vueuse/core/package.json +18 -6
- package/dist/client/node_modules/@vueuse/metadata/package.json +11 -4
- package/dist/client/node_modules/@vueuse/shared/index.d.ts +50 -16
- package/dist/client/node_modules/@vueuse/shared/package.json +15 -3
- package/dist/client/node_modules/nanoid/package.json +3 -2
- package/dist/client/node_modules/pinia/dist/pinia.d.ts +1 -1
- package/dist/client/node_modules/pinia/package.json +1 -1
- package/dist/client/node_modules/postcss/lib/at-rule.d.ts +9 -9
- package/dist/client/node_modules/postcss/lib/comment.d.ts +7 -7
- package/dist/client/node_modules/postcss/lib/container.d.ts +52 -52
- package/dist/client/node_modules/postcss/lib/declaration.d.ts +9 -9
- package/dist/client/node_modules/postcss/lib/input.d.ts +38 -19
- package/dist/client/node_modules/postcss/lib/lazy-result.d.ts +40 -40
- package/dist/client/node_modules/postcss/lib/no-work-result.d.ts +5 -5
- package/dist/client/node_modules/postcss/lib/node.d.ts +25 -10
- package/dist/client/node_modules/postcss/lib/result.d.ts +10 -10
- package/dist/client/node_modules/postcss/lib/rule.d.ts +8 -8
- package/dist/client/node_modules/postcss/lib/stringifier.d.ts +2 -2
- package/dist/client/node_modules/postcss/package.json +4 -4
- package/dist/client/vue.runtime.esm-bundler.js +1 -1
- package/package.json +1 -1
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/scopes.d.ts +0 -49
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +0 -8
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/strings.d.ts +0 -15
- package/dist/client/node_modules/@jridgewell/sourcemap-codec/dist/types/vlq.d.ts +0 -6
- /package/dist/client/node_modules/{vue-demi → pinia/node_modules/vue-demi}/lib/index.d.ts +0 -0
- /package/dist/client/node_modules/{vue-demi → pinia/node_modules/vue-demi}/lib/v2/index.d.ts +0 -0
- /package/dist/client/node_modules/{vue-demi → pinia/node_modules/vue-demi}/lib/v2.7/index.d.ts +0 -0
- /package/dist/client/node_modules/{vue-demi → pinia/node_modules/vue-demi}/lib/v3/index.d.ts +0 -0
- /package/dist/client/node_modules/{vue-demi → pinia/node_modules/vue-demi}/package.json +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babel/types",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.28.2",
|
|
4
4
|
"description": "Babel Types is a Lodash-esque utility library for AST nodes",
|
|
5
5
|
"author": "The Babel Team (https://babel.dev/team)",
|
|
6
6
|
"homepage": "https://babel.dev/docs/en/next/babel-types",
|
|
@@ -15,25 +15,25 @@
|
|
|
15
15
|
"directory": "packages/babel-types"
|
|
16
16
|
},
|
|
17
17
|
"main": "./lib/index.js",
|
|
18
|
-
"types": "./lib/index-legacy.d.ts",
|
|
19
|
-
"typesVersions": {
|
|
20
|
-
">=4.1": {
|
|
21
|
-
"lib/index-legacy.d.ts": [
|
|
22
|
-
"lib/index.d.ts"
|
|
23
|
-
]
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
18
|
"dependencies": {
|
|
27
|
-
"@babel/helper-string-parser": "^7.
|
|
28
|
-
"@babel/helper-validator-identifier": "^7.
|
|
19
|
+
"@babel/helper-string-parser": "^7.27.1",
|
|
20
|
+
"@babel/helper-validator-identifier": "^7.27.1"
|
|
29
21
|
},
|
|
30
22
|
"devDependencies": {
|
|
31
|
-
"@babel/generator": "^7.
|
|
32
|
-
"@babel/parser": "^7.
|
|
23
|
+
"@babel/generator": "^7.28.0",
|
|
24
|
+
"@babel/parser": "^7.28.0",
|
|
33
25
|
"glob": "^7.2.0"
|
|
34
26
|
},
|
|
35
27
|
"engines": {
|
|
36
28
|
"node": ">=6.9.0"
|
|
37
29
|
},
|
|
38
|
-
"type": "commonjs"
|
|
30
|
+
"type": "commonjs",
|
|
31
|
+
"types": "./lib/index-legacy.d.ts",
|
|
32
|
+
"typesVersions": {
|
|
33
|
+
">=4.1": {
|
|
34
|
+
"lib/index-legacy.d.ts": [
|
|
35
|
+
"lib/index.d.ts"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
39
|
}
|
|
@@ -201,9 +201,12 @@ export declare interface FlipOptions extends DetectOverflowOptions {
|
|
|
201
201
|
/**
|
|
202
202
|
* The axis that runs along the alignment of the floating element. Determines
|
|
203
203
|
* whether overflow along this axis is checked to perform a flip.
|
|
204
|
+
* - `true`: Whether to check cross axis overflow for both side and alignment flipping.
|
|
205
|
+
* - `false`: Whether to disable all cross axis overflow checking.
|
|
206
|
+
* - `'alignment'`: Whether to check cross axis overflow for alignment flipping only.
|
|
204
207
|
* @default true
|
|
205
208
|
*/
|
|
206
|
-
crossAxis?: boolean;
|
|
209
|
+
crossAxis?: boolean | 'alignment';
|
|
207
210
|
/**
|
|
208
211
|
* Placements to try sequentially if the preferred `placement` does not fit.
|
|
209
212
|
* @default [oppositePlacement] (computed)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@floating-ui/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"description": "Positioning library for floating elements: tooltips, popovers, dropdowns, and more",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"positioning"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@floating-ui/utils": "^0.2.
|
|
46
|
+
"@floating-ui/utils": "^0.2.10"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"config": "0.0.0"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
import { ComponentProvideOptions } from 'vue';
|
|
2
3
|
import type { DefineComponent } from 'vue';
|
|
3
4
|
import { IconifyIcon } from '@iconify/types';
|
|
4
5
|
import { IconifyJSON } from '@iconify/types';
|
|
@@ -18,13 +19,18 @@ export declare function addCollection(data: IconifyJSON, provider?: string): boo
|
|
|
18
19
|
/**
|
|
19
20
|
* Add one icon
|
|
20
21
|
*/
|
|
21
|
-
export declare function addIcon(name: string, data: IconifyIcon): boolean;
|
|
22
|
+
export declare function addIcon(name: string, data: IconifyIcon | null): boolean;
|
|
22
23
|
|
|
23
24
|
/**
|
|
24
25
|
* Internal API
|
|
25
26
|
*/
|
|
26
27
|
export declare const _api: IconifyAPIInternalFunctions;
|
|
27
28
|
|
|
29
|
+
/**
|
|
30
|
+
* Storage types
|
|
31
|
+
*
|
|
32
|
+
* @deprecated This type is not used anymore
|
|
33
|
+
*/
|
|
28
34
|
declare type BrowserStorageType = 'local' | 'session';
|
|
29
35
|
|
|
30
36
|
/**
|
|
@@ -50,11 +56,15 @@ export declare function calculateSize(size: string | number, ratio: number, prec
|
|
|
50
56
|
|
|
51
57
|
/**
|
|
52
58
|
* Disable cache
|
|
59
|
+
*
|
|
60
|
+
* @deprecated No longer used
|
|
53
61
|
*/
|
|
54
62
|
export declare function disableCache(storage: IconifyBrowserCacheType): void;
|
|
55
63
|
|
|
56
64
|
/**
|
|
57
65
|
* Enable cache
|
|
66
|
+
*
|
|
67
|
+
* @deprecated No longer used
|
|
58
68
|
*/
|
|
59
69
|
export declare function enableCache(storage: IconifyBrowserCacheType): void;
|
|
60
70
|
|
|
@@ -66,9 +76,9 @@ export declare type GetAPIConfig = (provider: string) => IconifyAPIConfig | unde
|
|
|
66
76
|
/**
|
|
67
77
|
* Get full icon
|
|
68
78
|
*/
|
|
69
|
-
export declare function getIcon(name: string): Required<IconifyIcon> | null;
|
|
79
|
+
export declare function getIcon(name: string): Required<IconifyIcon> | null | undefined;
|
|
70
80
|
|
|
71
|
-
export declare const Icon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconProps>, {}, {}>;
|
|
81
|
+
export declare const Icon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
72
82
|
|
|
73
83
|
/**
|
|
74
84
|
* API config
|
|
@@ -100,6 +110,14 @@ export declare interface IconifyAPIFunctions {
|
|
|
100
110
|
* Add API provider
|
|
101
111
|
*/
|
|
102
112
|
addAPIProvider: (provider: string, customConfig: PartialIconifyAPIConfig) => boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Set custom loader for multple icons
|
|
115
|
+
*/
|
|
116
|
+
setCustomIconsLoader: (callback: IconifyCustomIconsLoader, prefix: string, provider?: string) => void;
|
|
117
|
+
/**
|
|
118
|
+
* Set custom loader for one icon
|
|
119
|
+
*/
|
|
120
|
+
setCustomIconLoader: (callback: IconifyCustomIconLoader, prefix: string, provider?: string) => void;
|
|
103
121
|
}
|
|
104
122
|
|
|
105
123
|
/**
|
|
@@ -162,6 +180,8 @@ export declare type IconifyAPISendQuery = (host: string, params: IconifyAPIQuery
|
|
|
162
180
|
|
|
163
181
|
/**
|
|
164
182
|
* Interface for exported functions
|
|
183
|
+
*
|
|
184
|
+
* @deprecated This type is not used anymore
|
|
165
185
|
*/
|
|
166
186
|
export declare interface IconifyBrowserCacheFunctions {
|
|
167
187
|
enableCache: (storage: IconifyBrowserCacheType) => void;
|
|
@@ -170,6 +190,8 @@ export declare interface IconifyBrowserCacheFunctions {
|
|
|
170
190
|
|
|
171
191
|
/**
|
|
172
192
|
* Cache types
|
|
193
|
+
*
|
|
194
|
+
* @deprecated This type is not used anymore
|
|
173
195
|
*/
|
|
174
196
|
export declare type IconifyBrowserCacheType = BrowserStorageType | 'all';
|
|
175
197
|
|
|
@@ -182,13 +204,22 @@ export declare interface IconifyBuilderFunctions {
|
|
|
182
204
|
buildIcon: (icon: IconifyIcon, customisations?: IconifyIconCustomisations_2) => IconifyIconBuildResult;
|
|
183
205
|
}
|
|
184
206
|
|
|
207
|
+
/**
|
|
208
|
+
* Custom loader for one icon
|
|
209
|
+
*/
|
|
210
|
+
export declare type IconifyCustomIconLoader = (name: string, prefix: string, provider: string) => Promise<IconifyIcon | null> | IconifyIcon | null;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Custom icons loader
|
|
214
|
+
*/
|
|
215
|
+
export declare type IconifyCustomIconsLoader = (icons: string[], prefix: string, provider: string) => Promise<IconifyJSON | null> | IconifyJSON | null;
|
|
216
|
+
|
|
185
217
|
/**
|
|
186
218
|
* Properties for element that are mentioned in render.ts
|
|
187
219
|
*/
|
|
188
220
|
declare interface IconifyElementProps {
|
|
189
221
|
id?: string;
|
|
190
222
|
style?: unknown;
|
|
191
|
-
onLoad?: IconifyIconOnLoad;
|
|
192
223
|
}
|
|
193
224
|
|
|
194
225
|
export { IconifyIcon }
|
|
@@ -220,6 +251,11 @@ export declare type IconifyIconCustomisations = IconifyIconCustomisations_2 & {
|
|
|
220
251
|
declare interface IconifyIconCustomisations_2 extends IconifyTransformations, IconifyIconSizeCustomisations {
|
|
221
252
|
}
|
|
222
253
|
|
|
254
|
+
/**
|
|
255
|
+
* Customise callback
|
|
256
|
+
*/
|
|
257
|
+
declare type IconifyIconCustomiseCallback = (content: string, name: string, prefix: string, provider: string) => string;
|
|
258
|
+
|
|
223
259
|
/**
|
|
224
260
|
* Function to abort loading (usually just removes callback because loading is already in progress)
|
|
225
261
|
*/
|
|
@@ -302,16 +338,21 @@ export declare interface IconifyStorageFunctions {
|
|
|
302
338
|
iconExists: (name: string) => boolean;
|
|
303
339
|
/**
|
|
304
340
|
* Get icon data with all properties
|
|
341
|
+
*
|
|
342
|
+
* Returns null if icon is missing (attempted to load, but failed)
|
|
343
|
+
* Returns undefined if icon was not loaded
|
|
305
344
|
*/
|
|
306
|
-
getIcon: (name: string) => Required<IconifyIcon> | null;
|
|
345
|
+
getIcon: (name: string) => Required<IconifyIcon> | null | undefined;
|
|
307
346
|
/**
|
|
308
347
|
* List all available icons
|
|
309
348
|
*/
|
|
310
349
|
listIcons: (provider?: string, prefix?: string) => string[];
|
|
311
350
|
/**
|
|
312
351
|
* Add icon to storage
|
|
352
|
+
*
|
|
353
|
+
* Data is null if icon is missing
|
|
313
354
|
*/
|
|
314
|
-
addIcon: (name: string, data: IconifyIcon) => boolean;
|
|
355
|
+
addIcon: (name: string, data: IconifyIcon | null) => boolean;
|
|
315
356
|
/**
|
|
316
357
|
* Add icon set to storage
|
|
317
358
|
*/
|
|
@@ -336,6 +377,8 @@ export declare interface IconProps extends IconifyElementProps, IconifyIconProps
|
|
|
336
377
|
* Note this might hydration mismatches if the icon data is not handled correctly, use with caution.
|
|
337
378
|
*/
|
|
338
379
|
ssr?: boolean;
|
|
380
|
+
onLoad?: IconifyIconOnLoad;
|
|
381
|
+
customise?: IconifyIconCustomiseCallback;
|
|
339
382
|
}
|
|
340
383
|
|
|
341
384
|
/**
|
|
@@ -414,6 +457,16 @@ declare type RedundancyResource = string;
|
|
|
414
457
|
*/
|
|
415
458
|
export declare function replaceIDs(body: string, prefix?: string | ((id: string) => string)): string;
|
|
416
459
|
|
|
460
|
+
/**
|
|
461
|
+
* Set custom loader for one icon
|
|
462
|
+
*/
|
|
463
|
+
export declare function setCustomIconLoader(loader: IconifyCustomIconLoader, prefix: string, provider?: string): void;
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Set custom loader for multiple icons
|
|
467
|
+
*/
|
|
468
|
+
export declare function setCustomIconsLoader(loader: IconifyCustomIconsLoader, prefix: string, provider?: string): void;
|
|
469
|
+
|
|
417
470
|
/**
|
|
418
471
|
* SVG viewBox: x, y, width, height
|
|
419
472
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
import { ComponentProvideOptions } from 'vue';
|
|
2
3
|
import type { DefineComponent } from 'vue';
|
|
3
4
|
import type { IconifyIcon } from '@iconify/types';
|
|
4
5
|
import type { IconifyJSON } from '@iconify/types';
|
|
@@ -24,7 +25,7 @@ export declare function addIcon(name: string, data: IconifyIcon): void;
|
|
|
24
25
|
/**
|
|
25
26
|
* Component
|
|
26
27
|
*/
|
|
27
|
-
export declare const Icon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconProps>, {}, {}>;
|
|
28
|
+
export declare const Icon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
28
29
|
|
|
29
30
|
/**
|
|
30
31
|
* Properties for element that are mentioned in render.ts
|
|
@@ -32,7 +33,6 @@ export declare const Icon: DefineComponent<IconProps, {}, {}, {}, {}, ComponentO
|
|
|
32
33
|
declare interface IconifyElementProps {
|
|
33
34
|
id?: string;
|
|
34
35
|
style?: unknown;
|
|
35
|
-
onLoad?: IconifyIconOnLoad;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export { IconifyIcon }
|
|
@@ -51,6 +51,11 @@ export declare type IconifyIconCustomisations = IconifyIconCustomisations_2 & {
|
|
|
51
51
|
declare interface IconifyIconCustomisations_2 extends IconifyTransformations, IconifyIconSizeCustomisations {
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Customise callback
|
|
56
|
+
*/
|
|
57
|
+
declare type IconifyIconCustomiseCallback = (content: string, name: string, prefix: string, provider: string) => string;
|
|
58
|
+
|
|
54
59
|
/**
|
|
55
60
|
* Callback for when icon has been loaded (only triggered for icons loaded from API)
|
|
56
61
|
*/
|
|
@@ -102,6 +107,8 @@ export declare interface IconProps extends IconifyElementProps, IconifyIconProps
|
|
|
102
107
|
* Note this might hydration mismatches if the icon data is not handled correctly, use with caution.
|
|
103
108
|
*/
|
|
104
109
|
ssr?: boolean;
|
|
110
|
+
onLoad?: IconifyIconOnLoad;
|
|
111
|
+
customise?: IconifyIconCustomiseCallback;
|
|
105
112
|
}
|
|
106
113
|
|
|
107
114
|
export { }
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@iconify/vue",
|
|
3
3
|
"description": "Iconify icon component for Vue 3.",
|
|
4
4
|
"author": "Vjacheslav Trushkin",
|
|
5
|
-
"version": "4.
|
|
5
|
+
"version": "4.3.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bugs": "https://github.com/iconify/iconify/issues",
|
|
8
8
|
"homepage": "https://iconify.design/",
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
"@iconify/types": "^2.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@babel/preset-env": "^7.
|
|
41
|
-
"@microsoft/api-extractor": "^7.
|
|
42
|
-
"@rollup/plugin-node-resolve": "^15.
|
|
43
|
-
"@types/jest": "^29.5.
|
|
44
|
-
"@vitejs/plugin-vue": "^
|
|
45
|
-
"@vue/test-utils": "^2.4.
|
|
46
|
-
"jsdom": "^
|
|
47
|
-
"rollup": "^
|
|
48
|
-
"typescript": "^5.
|
|
49
|
-
"vitest": "^
|
|
50
|
-
"vue": "^3.
|
|
51
|
-
"@iconify/core": "^
|
|
52
|
-
"@iconify/utils": "^2.1
|
|
40
|
+
"@babel/preset-env": "^7.26.0",
|
|
41
|
+
"@microsoft/api-extractor": "^7.48.1",
|
|
42
|
+
"@rollup/plugin-node-resolve": "^15.3.1",
|
|
43
|
+
"@types/jest": "^29.5.14",
|
|
44
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
45
|
+
"@vue/test-utils": "^2.4.6",
|
|
46
|
+
"jsdom": "^25.0.1",
|
|
47
|
+
"rollup": "^4.29.1",
|
|
48
|
+
"typescript": "^5.7.2",
|
|
49
|
+
"vitest": "^2.1.8",
|
|
50
|
+
"vue": "^3.5.13",
|
|
51
|
+
"@iconify/core": "^3.1.0",
|
|
52
|
+
"@iconify/utils": "^2.2.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"vue": ">=3"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jridgewell/sourcemap-codec",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4",
|
|
4
4
|
"description": "Encode/decode sourcemap mappings",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sourcemap",
|
|
@@ -8,68 +8,60 @@
|
|
|
8
8
|
],
|
|
9
9
|
"main": "dist/sourcemap-codec.umd.js",
|
|
10
10
|
"module": "dist/sourcemap-codec.mjs",
|
|
11
|
-
"types": "
|
|
11
|
+
"types": "types/sourcemap-codec.d.cts",
|
|
12
12
|
"files": [
|
|
13
|
-
"dist"
|
|
13
|
+
"dist",
|
|
14
|
+
"src",
|
|
15
|
+
"types"
|
|
14
16
|
],
|
|
15
17
|
"exports": {
|
|
16
18
|
".": [
|
|
17
19
|
{
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
"import": {
|
|
21
|
+
"types": "./types/sourcemap-codec.d.mts",
|
|
22
|
+
"default": "./dist/sourcemap-codec.mjs"
|
|
23
|
+
},
|
|
24
|
+
"require": {
|
|
25
|
+
"types": "./types/sourcemap-codec.d.cts",
|
|
26
|
+
"default": "./dist/sourcemap-codec.umd.js"
|
|
27
|
+
},
|
|
28
|
+
"browser": {
|
|
29
|
+
"types": "./types/sourcemap-codec.d.cts",
|
|
30
|
+
"default": "./dist/sourcemap-codec.umd.js"
|
|
31
|
+
}
|
|
22
32
|
},
|
|
23
33
|
"./dist/sourcemap-codec.umd.js"
|
|
24
34
|
],
|
|
25
35
|
"./package.json": "./package.json"
|
|
26
36
|
},
|
|
27
37
|
"scripts": {
|
|
28
|
-
"benchmark": "run-s build:
|
|
38
|
+
"benchmark": "run-s build:code benchmark:*",
|
|
29
39
|
"benchmark:install": "cd benchmark && npm install",
|
|
30
40
|
"benchmark:only": "node --expose-gc benchmark/index.js",
|
|
31
|
-
"build": "run-s -n build
|
|
32
|
-
"build:
|
|
33
|
-
"build:
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"test": "run-s -n test:
|
|
41
|
-
"test:
|
|
42
|
-
"test:lint": "run-s -n test:lint:*",
|
|
43
|
-
"test:lint:prettier": "prettier --check '{src,test}/**/*.ts'",
|
|
44
|
-
"test:lint:ts": "eslint '{src,test}/**/*.ts'",
|
|
41
|
+
"build": "run-s -n build:code build:types",
|
|
42
|
+
"build:code": "node ../../esbuild.mjs sourcemap-codec.ts",
|
|
43
|
+
"build:types": "run-s build:types:force build:types:emit build:types:mts",
|
|
44
|
+
"build:types:force": "rimraf tsconfig.build.tsbuildinfo",
|
|
45
|
+
"build:types:emit": "tsc --project tsconfig.build.json",
|
|
46
|
+
"build:types:mts": "node ../../mts-types.mjs",
|
|
47
|
+
"clean": "run-s -n clean:code clean:types",
|
|
48
|
+
"clean:code": "tsc --build --clean tsconfig.build.json",
|
|
49
|
+
"clean:types": "rimraf dist types",
|
|
50
|
+
"test": "run-s -n test:types test:only test:format",
|
|
51
|
+
"test:format": "prettier --check '{src,test}/**/*.ts'",
|
|
45
52
|
"test:only": "mocha",
|
|
46
|
-
"test:
|
|
47
|
-
"
|
|
53
|
+
"test:types": "eslint '{src,test}/**/*.ts'",
|
|
54
|
+
"lint": "run-s -n lint:types lint:format",
|
|
55
|
+
"lint:format": "npm run test:format -- --write",
|
|
56
|
+
"lint:types": "npm run test:types -- --fix",
|
|
57
|
+
"prepublishOnly": "npm run-s -n build test"
|
|
48
58
|
},
|
|
59
|
+
"homepage": "https://github.com/jridgewell/sourcemaps/tree/main/packages/sourcemap-codec",
|
|
49
60
|
"repository": {
|
|
50
61
|
"type": "git",
|
|
51
|
-
"url": "git+https://github.com/jridgewell/
|
|
62
|
+
"url": "git+https://github.com/jridgewell/sourcemaps.git",
|
|
63
|
+
"directory": "packages/sourcemap-codec"
|
|
52
64
|
},
|
|
53
|
-
"author": "
|
|
54
|
-
"license": "MIT"
|
|
55
|
-
"devDependencies": {
|
|
56
|
-
"@rollup/plugin-typescript": "8.3.0",
|
|
57
|
-
"@types/mocha": "10.0.6",
|
|
58
|
-
"@types/node": "17.0.15",
|
|
59
|
-
"@typescript-eslint/eslint-plugin": "5.10.0",
|
|
60
|
-
"@typescript-eslint/parser": "5.10.0",
|
|
61
|
-
"benchmark": "2.1.4",
|
|
62
|
-
"c8": "7.11.2",
|
|
63
|
-
"eslint": "8.7.0",
|
|
64
|
-
"eslint-config-prettier": "8.3.0",
|
|
65
|
-
"mocha": "9.2.0",
|
|
66
|
-
"npm-run-all": "4.1.5",
|
|
67
|
-
"prettier": "2.5.1",
|
|
68
|
-
"rollup": "2.64.0",
|
|
69
|
-
"source-map": "0.6.1",
|
|
70
|
-
"source-map-js": "1.0.2",
|
|
71
|
-
"sourcemap-codec": "1.4.8",
|
|
72
|
-
"tsx": "4.7.1",
|
|
73
|
-
"typescript": "4.5.4"
|
|
74
|
-
}
|
|
65
|
+
"author": "Justin Ridgewell <justin@ridgewell.name>",
|
|
66
|
+
"license": "MIT"
|
|
75
67
|
}
|