@visulima/packem-rollup 1.0.0-alpha.23 → 1.0.0-alpha.25
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/CHANGELOG.md +20 -0
- package/LICENSE.md +0 -436
- package/dist/index.d.ts +25 -26
- package/dist/index.js +1 -0
- package/dist/packem_shared/cachingPlugin-CLawAGhx.js +1 -0
- package/dist/packem_shared/createSplitChunks-Ceq_Ca5Y.js +1 -0
- package/dist/packem_shared/{esbuildPlugin-BrFhdKJk.mjs → esbuildPlugin-DpLtQGuZ.js} +1 -1
- package/dist/packem_shared/oxcResolvePlugin-Ccef6pyL.js +1 -0
- package/dist/packem_shared/{patchTypescriptTypes-BEdkvKxL.mjs → patchTypescriptTypes-BX_sJsvd.js} +2 -2
- package/dist/packem_shared/{resolveTsconfigPathsPlugin-pUcTdE77.mjs → resolveTsconfigPathsPlugin-CEasmDpi.js} +1 -1
- package/dist/packem_shared/{resolveTsconfigRootDirectoriesPlugin-_93afm2q.mjs → resolveTsconfigRootDirectoriesPlugin-Cwj3tqCJ.js} +1 -1
- package/dist/packem_shared/{types-Bk7lLMcF.d.ts → types-BiZanzz1.d.ts} +25 -136
- package/dist/plugins/cjs-interop.d.ts +11 -0
- package/dist/{packem_shared/cjsInteropPlugin-D5wyoQ_B.mjs → plugins/cjs-interop.js} +1 -1
- package/dist/plugins/copy.d.ts +18 -0
- package/dist/plugins/copy.js +1 -0
- package/dist/plugins/data-uri.d.ts +12 -0
- package/dist/plugins/data-uri.js +1 -0
- package/dist/plugins/debarrel.d.ts +11 -0
- package/dist/{packem_shared/debarrelPlugin-BTYc859G.mjs → plugins/debarrel.js} +1 -1
- package/dist/plugins/esbuild/index.d.ts +19 -5
- package/dist/plugins/esbuild/index.js +1 -0
- package/dist/plugins/esm-shim-cjs-syntax.d.ts +13 -0
- package/dist/plugins/fix-dts-default-cjs-exports.d.ts +9 -0
- package/dist/plugins/fix-dts-default-cjs-exports.js +1 -0
- package/dist/plugins/isolated-declarations/index.d.ts +13 -0
- package/dist/{packem_shared/isolatedDeclarationsPlugin-B34s_qkE.mjs → plugins/isolated-declarations/index.js} +1 -1
- package/dist/plugins/json.d.ts +7 -0
- package/dist/plugins/json.js +1 -0
- package/dist/plugins/jsx-remove-attributes.d.ts +11 -0
- package/dist/plugins/jsx-remove-attributes.js +1 -0
- package/dist/plugins/license.d.ts +21 -0
- package/dist/plugins/license.js +13 -0
- package/dist/plugins/minify-html-literals/index.d.ts +96 -6
- package/dist/plugins/native-modules-plugin.d.ts +9 -0
- package/dist/plugins/oxc/index.d.ts +20 -6
- package/dist/plugins/oxc/index.js +1 -0
- package/dist/plugins/preserve-directives.d.ts +13 -0
- package/dist/{packem_shared/preserveDirectivesPlugin-B49Cbykd.mjs → plugins/preserve-directives.js} +3 -3
- package/dist/plugins/raw.d.ts +11 -0
- package/dist/plugins/require-cjs-transformer.d.ts +17 -0
- package/dist/plugins/require-cjs-transformer.js +21 -0
- package/dist/plugins/shebang.d.ts +13 -0
- package/dist/plugins/source-maps.d.ts +11 -0
- package/dist/plugins/sucrase/index.d.ts +18 -4
- package/dist/plugins/swc/index.d.ts +19 -5
- package/dist/plugins/swc/index.js +1 -0
- package/dist/plugins/typescript/index.d.ts +20 -6
- package/dist/plugins/typescript/index.js +1 -0
- package/dist/plugins/url.d.ts +17 -0
- package/dist/plugins/url.js +1 -0
- package/package.json +86 -18
- package/dist/index.d.mts +0 -59
- package/dist/index.mjs +0 -1
- package/dist/packem_shared/browserslist-to-esbuild-DY9HwYtp.d.mts +0 -3
- package/dist/packem_shared/cachingPlugin-TWoY5ZxV.mjs +0 -1
- package/dist/packem_shared/copyPlugin--6RITp1-.mjs +0 -1
- package/dist/packem_shared/createSplitChunks-CGDk55G3.mjs +0 -1
- package/dist/packem_shared/dataUriPlugin-BFb7bZZs.mjs +0 -1
- package/dist/packem_shared/fixDtsDefaultCjsExportsPlugin-Dp1UcHVR.mjs +0 -1
- package/dist/packem_shared/index-hWYvkB02.d.mts +0 -346
- package/dist/packem_shared/index-hWYvkB02.d.ts +0 -346
- package/dist/packem_shared/jsonPlugin-BAi3Da-h.mjs +0 -1
- package/dist/packem_shared/jsxRemoveAttributes-B1PLPffj.mjs +0 -1
- package/dist/packem_shared/licensePlugin-C5yzUqe-.mjs +0 -13
- package/dist/packem_shared/oxcResolvePlugin-BJpi-eSG.mjs +0 -1
- package/dist/packem_shared/requireCJSTransformerPlugin-E2iuTrjs.mjs +0 -27
- package/dist/packem_shared/types-CMThMMkh.d.mts +0 -4337
- package/dist/packem_shared/urlPlugin-DJJrDWjj.mjs +0 -1
- package/dist/plugins/esbuild/index.d.mts +0 -28
- package/dist/plugins/esbuild/index.mjs +0 -1
- package/dist/plugins/minify-html-literals/index.d.mts +0 -5
- package/dist/plugins/oxc/index.d.mts +0 -31
- package/dist/plugins/oxc/index.mjs +0 -1
- package/dist/plugins/sucrase/index.d.mts +0 -22
- package/dist/plugins/swc/index.d.mts +0 -29
- package/dist/plugins/swc/index.mjs +0 -1
- package/dist/plugins/typescript/index.d.mts +0 -32
- package/dist/plugins/typescript/index.mjs +0 -1
- /package/dist/packem_shared/{browserslistToEsbuild-C0IWmbNe.mjs → browserslistToEsbuild-C0IWmbNe.js} +0 -0
- /package/dist/packem_shared/{chunkSplitter-DWAy1JkE.mjs → chunkSplitter-DWAy1JkE.js} +0 -0
- /package/dist/packem_shared/{fix-dts-default-cjs-exports-BQc0nwIG.mjs → fix-dts-default-cjs-exports-BQc0nwIG.js} +0 -0
- /package/dist/packem_shared/{fixDynamicImportExtension-BBGNRniz.mjs → fixDynamicImportExtension-BBGNRniz.js} +0 -0
- /package/dist/packem_shared/{getCustomModuleLayer-d8i66lfh.mjs → getCustomModuleLayer-d8i66lfh.js} +0 -0
- /package/dist/packem_shared/{getModuleLayer-rF9RxnJ5.mjs → getModuleLayer-rF9RxnJ5.js} +0 -0
- /package/dist/packem_shared/{index-Dq8IUFTs.mjs → index-Dq8IUFTs.js} +0 -0
- /package/dist/packem_shared/{index-QEzU3Fey.mjs → index-QEzU3Fey.js} +0 -0
- /package/dist/packem_shared/{isolatedDeclarationsOxcTransformer-WbfE6cGu.mjs → isolatedDeclarationsOxcTransformer-WbfE6cGu.js} +0 -0
- /package/dist/packem_shared/{isolatedDeclarationsSwcTransformer-Ch2AgtWC.mjs → isolatedDeclarationsSwcTransformer-Ch2AgtWC.js} +0 -0
- /package/dist/packem_shared/{isolatedDeclarationsTypescriptTransformer-DkuEkofo.mjs → isolatedDeclarationsTypescriptTransformer-DkuEkofo.js} +0 -0
- /package/dist/packem_shared/{metafilePlugin-CVcqFpPJ.mjs → metafilePlugin-CVcqFpPJ.js} +0 -0
- /package/dist/packem_shared/{oxcTransformPlugin-DfVQouIB.mjs → oxcTransformPlugin-DfVQouIB.js} +0 -0
- /package/dist/packem_shared/{resolveFileUrlPlugin-BkpjVHeK.mjs → resolveFileUrlPlugin-BkpjVHeK.js} +0 -0
- /package/dist/packem_shared/{resolveTypescriptMjsCtsPlugin-DcZrZTmM.mjs → resolveTypescriptMjsCtsPlugin-DcZrZTmM.js} +0 -0
- /package/dist/packem_shared/{swcPlugin-Boip4lWG.mjs → swcPlugin-Boip4lWG.js} +0 -0
- /package/dist/{packem_shared/esmShimCjsSyntaxPlugin-DjKqX4DE.mjs → plugins/esm-shim-cjs-syntax.js} +0 -0
- /package/dist/plugins/minify-html-literals/{index.mjs → index.js} +0 -0
- /package/dist/{packem_shared/nativeModulesPlugin-D6lO-8g6.mjs → plugins/native-modules-plugin.js} +0 -0
- /package/dist/{packem_shared/rawPlugin-DgRj14Xy.mjs → plugins/raw.js} +0 -0
- /package/dist/{packem_shared/makeExecutable-6aOVHoJR.mjs → plugins/shebang.js} +0 -0
- /package/dist/{packem_shared/sourcemapsPlugin-B4W3J79w.mjs → plugins/source-maps.js} +0 -0
- /package/dist/plugins/sucrase/{index.mjs → index.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## @visulima/packem-rollup [1.0.0-alpha.25](https://github.com/visulima/packem/compare/@visulima/packem-rollup@1.0.0-alpha.24...@visulima/packem-rollup@1.0.0-alpha.25) (2025-10-28)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* enhance require-cjs-transformer with multi-entry point support ([6f0a824](https://github.com/visulima/packem/commit/6f0a824fe982bc9dc18e0e19fd9de55754ac37b3))
|
|
6
|
+
|
|
7
|
+
## @visulima/packem-rollup [1.0.0-alpha.24](https://github.com/visulima/packem/compare/@visulima/packem-rollup@1.0.0-alpha.23...@visulima/packem-rollup@1.0.0-alpha.24) (2025-10-28)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* fixed require-cjs-transformer doublication ([218cffb](https://github.com/visulima/packem/commit/218cffbb1b3667af92161e9537618bd1cd2a0fa7))
|
|
12
|
+
|
|
13
|
+
### Miscellaneous Chores
|
|
14
|
+
|
|
15
|
+
* update ESLint configurations across multiple packages ([1fe2d3d](https://github.com/visulima/packem/commit/1fe2d3d6e4e1139560755b538367351d2b170ad3))
|
|
16
|
+
* update package configurations and dependencies ([be09695](https://github.com/visulima/packem/commit/be09695f800ee23a555c54bd92e7ddd4c88182eb))
|
|
17
|
+
* update package dependencies and configurations ([8ec45ec](https://github.com/visulima/packem/commit/8ec45ec4cc34899161fed5446268c9036162d902))
|
|
18
|
+
* update package dependencies and configurations ([8453e80](https://github.com/visulima/packem/commit/8453e80187d9e6212d98dbe5aaafd031a5cabdcf))
|
|
19
|
+
* update package.json and pnpm-lock.yaml for @visulima/packem ([d323f2c](https://github.com/visulima/packem/commit/d323f2c3c99b6231d1c598585294babe52814375))
|
|
20
|
+
|
|
1
21
|
## @visulima/packem-rollup [1.0.0-alpha.23](https://github.com/visulima/packem/compare/@visulima/packem-rollup@1.0.0-alpha.22...@visulima/packem-rollup@1.0.0-alpha.23) (2025-10-14)
|
|
2
22
|
|
|
3
23
|
### Bug Fixes
|
package/LICENSE.md
CHANGED
|
@@ -287,413 +287,6 @@ Repository: git+https://github.com/swc-project/swc.git
|
|
|
287
287
|
|
|
288
288
|
---------------------------------------
|
|
289
289
|
|
|
290
|
-
## @visulima/colorize
|
|
291
|
-
License: MIT
|
|
292
|
-
By: Daniel Bannert
|
|
293
|
-
Repository: git+https://github.com/visulima/visulima.git
|
|
294
|
-
|
|
295
|
-
> MIT License
|
|
296
|
-
>
|
|
297
|
-
> Copyright (c) 2024 visulima
|
|
298
|
-
>
|
|
299
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
300
|
-
> of this software and associated documentation files (the "Software"), to deal
|
|
301
|
-
> in the Software without restriction, including without limitation the rights
|
|
302
|
-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
303
|
-
> copies of the Software, and to permit persons to whom the Software is
|
|
304
|
-
> furnished to do so, subject to the following conditions:
|
|
305
|
-
>
|
|
306
|
-
> The above copyright notice and this permission notice shall be included in all
|
|
307
|
-
> copies or substantial portions of the Software.
|
|
308
|
-
>
|
|
309
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
310
|
-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
311
|
-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
312
|
-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
313
|
-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
314
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
315
|
-
> SOFTWARE.
|
|
316
|
-
>
|
|
317
|
-
> ---
|
|
318
|
-
>
|
|
319
|
-
> Colorize is based on https://github.com/webdiscus/ansis
|
|
320
|
-
>
|
|
321
|
-
> ISC License
|
|
322
|
-
>
|
|
323
|
-
> Copyright (c) 2023, webdiscus
|
|
324
|
-
>
|
|
325
|
-
> Permission to use, copy, modify, and/or distribute this software for any
|
|
326
|
-
> purpose with or without fee is hereby granted, provided that the above
|
|
327
|
-
> copyright notice and this permission notice appear in all copies.
|
|
328
|
-
>
|
|
329
|
-
> THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
330
|
-
> WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
331
|
-
> MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
332
|
-
> ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
333
|
-
> WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
334
|
-
> ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
335
|
-
> OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
336
|
-
>
|
|
337
|
-
> <!-- DEPENDENCIES -->
|
|
338
|
-
>
|
|
339
|
-
> # Licenses of bundled dependencies
|
|
340
|
-
> The published @visulima/colorize artifact additionally contains code with the following licenses:
|
|
341
|
-
> MIT
|
|
342
|
-
>
|
|
343
|
-
> # Bundled dependencies:
|
|
344
|
-
> ## ansi-regex
|
|
345
|
-
> License: MIT
|
|
346
|
-
> By: Sindre Sorhus
|
|
347
|
-
> Repository: chalk/ansi-regex
|
|
348
|
-
>
|
|
349
|
-
> > MIT License
|
|
350
|
-
> >
|
|
351
|
-
> > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
352
|
-
> >
|
|
353
|
-
> > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
354
|
-
> >
|
|
355
|
-
> > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
356
|
-
> >
|
|
357
|
-
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
358
|
-
>
|
|
359
|
-
> <!-- /DEPENDENCIES -->
|
|
360
|
-
|
|
361
|
-
---------------------------------------
|
|
362
|
-
|
|
363
|
-
## @visulima/pail
|
|
364
|
-
License: MIT
|
|
365
|
-
By: Daniel Bannert
|
|
366
|
-
Repository: git+https://github.com/visulima/visulima.git
|
|
367
|
-
|
|
368
|
-
> MIT License
|
|
369
|
-
>
|
|
370
|
-
> Copyright (c) 2024 visulima
|
|
371
|
-
>
|
|
372
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
373
|
-
> of this software and associated documentation files (the "Software"), to deal
|
|
374
|
-
> in the Software without restriction, including without limitation the rights
|
|
375
|
-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
376
|
-
> copies of the Software, and to permit persons to whom the Software is
|
|
377
|
-
> furnished to do so, subject to the following conditions:
|
|
378
|
-
>
|
|
379
|
-
> The above copyright notice and this permission notice shall be included in all
|
|
380
|
-
> copies or substantial portions of the Software.
|
|
381
|
-
>
|
|
382
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
383
|
-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
384
|
-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
385
|
-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
386
|
-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
387
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
388
|
-
> SOFTWARE.
|
|
389
|
-
>
|
|
390
|
-
> <!-- DEPENDENCIES -->
|
|
391
|
-
>
|
|
392
|
-
> # Licenses of bundled dependencies
|
|
393
|
-
> The published @visulima/pail artifact additionally contains code with the following licenses:
|
|
394
|
-
> MIT
|
|
395
|
-
>
|
|
396
|
-
> # Bundled dependencies:
|
|
397
|
-
> ## ansi-regex
|
|
398
|
-
> License: MIT
|
|
399
|
-
> By: Sindre Sorhus
|
|
400
|
-
> Repository: chalk/ansi-regex
|
|
401
|
-
>
|
|
402
|
-
> > MIT License
|
|
403
|
-
> >
|
|
404
|
-
> > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
405
|
-
> >
|
|
406
|
-
> > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
407
|
-
> >
|
|
408
|
-
> > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
409
|
-
> >
|
|
410
|
-
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
411
|
-
>
|
|
412
|
-
> ---------------------------------------
|
|
413
|
-
>
|
|
414
|
-
> ## ansi-styles
|
|
415
|
-
> License: MIT
|
|
416
|
-
> By: Sindre Sorhus
|
|
417
|
-
> Repository: chalk/ansi-styles
|
|
418
|
-
>
|
|
419
|
-
> > MIT License
|
|
420
|
-
> >
|
|
421
|
-
> > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
422
|
-
> >
|
|
423
|
-
> > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
424
|
-
> >
|
|
425
|
-
> > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
426
|
-
> >
|
|
427
|
-
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
428
|
-
>
|
|
429
|
-
> ---------------------------------------
|
|
430
|
-
>
|
|
431
|
-
> ## emoji-regex
|
|
432
|
-
> License: MIT
|
|
433
|
-
> By: Mathias Bynens
|
|
434
|
-
> Repository: https://github.com/mathiasbynens/emoji-regex.git
|
|
435
|
-
>
|
|
436
|
-
> > Copyright Mathias Bynens <https://mathiasbynens.be/>
|
|
437
|
-
> >
|
|
438
|
-
> > Permission is hereby granted, free of charge, to any person obtaining
|
|
439
|
-
> > a copy of this software and associated documentation files (the
|
|
440
|
-
> > "Software"), to deal in the Software without restriction, including
|
|
441
|
-
> > without limitation the rights to use, copy, modify, merge, publish,
|
|
442
|
-
> > distribute, sublicense, and/or sell copies of the Software, and to
|
|
443
|
-
> > permit persons to whom the Software is furnished to do so, subject to
|
|
444
|
-
> > the following conditions:
|
|
445
|
-
> >
|
|
446
|
-
> > The above copyright notice and this permission notice shall be
|
|
447
|
-
> > included in all copies or substantial portions of the Software.
|
|
448
|
-
> >
|
|
449
|
-
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
450
|
-
> > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
451
|
-
> > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
452
|
-
> > NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
453
|
-
> > LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
454
|
-
> > OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
455
|
-
> > WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
456
|
-
>
|
|
457
|
-
> ---------------------------------------
|
|
458
|
-
>
|
|
459
|
-
> ## get-east-asian-width
|
|
460
|
-
> License: MIT
|
|
461
|
-
> By: Sindre Sorhus
|
|
462
|
-
> Repository: sindresorhus/get-east-asian-width
|
|
463
|
-
>
|
|
464
|
-
> > MIT License
|
|
465
|
-
> >
|
|
466
|
-
> > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
467
|
-
> >
|
|
468
|
-
> > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
469
|
-
> >
|
|
470
|
-
> > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
471
|
-
> >
|
|
472
|
-
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
473
|
-
>
|
|
474
|
-
> ---------------------------------------
|
|
475
|
-
>
|
|
476
|
-
> ## string-length
|
|
477
|
-
> License: MIT
|
|
478
|
-
> By: Sindre Sorhus
|
|
479
|
-
> Repository: sindresorhus/string-length
|
|
480
|
-
>
|
|
481
|
-
> > MIT License
|
|
482
|
-
> >
|
|
483
|
-
> > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
484
|
-
> >
|
|
485
|
-
> > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
486
|
-
> >
|
|
487
|
-
> > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
488
|
-
> >
|
|
489
|
-
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
490
|
-
>
|
|
491
|
-
> ---------------------------------------
|
|
492
|
-
>
|
|
493
|
-
> ## string-width
|
|
494
|
-
> License: MIT
|
|
495
|
-
> By: Sindre Sorhus
|
|
496
|
-
> Repository: sindresorhus/string-width
|
|
497
|
-
>
|
|
498
|
-
> > MIT License
|
|
499
|
-
> >
|
|
500
|
-
> > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
501
|
-
> >
|
|
502
|
-
> > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
503
|
-
> >
|
|
504
|
-
> > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
505
|
-
> >
|
|
506
|
-
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
507
|
-
>
|
|
508
|
-
> ---------------------------------------
|
|
509
|
-
>
|
|
510
|
-
> ## strip-ansi
|
|
511
|
-
> License: MIT
|
|
512
|
-
> By: Sindre Sorhus
|
|
513
|
-
> Repository: chalk/strip-ansi
|
|
514
|
-
>
|
|
515
|
-
> > MIT License
|
|
516
|
-
> >
|
|
517
|
-
> > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
518
|
-
> >
|
|
519
|
-
> > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
520
|
-
> >
|
|
521
|
-
> > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
522
|
-
> >
|
|
523
|
-
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
524
|
-
>
|
|
525
|
-
> ---------------------------------------
|
|
526
|
-
>
|
|
527
|
-
> ## terminal-size
|
|
528
|
-
> License: MIT
|
|
529
|
-
> By: Sindre Sorhus
|
|
530
|
-
> Repository: sindresorhus/terminal-size
|
|
531
|
-
>
|
|
532
|
-
> > MIT License
|
|
533
|
-
> >
|
|
534
|
-
> > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
535
|
-
> >
|
|
536
|
-
> > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
537
|
-
> >
|
|
538
|
-
> > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
539
|
-
> >
|
|
540
|
-
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
541
|
-
>
|
|
542
|
-
> ---------------------------------------
|
|
543
|
-
>
|
|
544
|
-
> ## wrap-ansi
|
|
545
|
-
> License: MIT
|
|
546
|
-
> By: Sindre Sorhus
|
|
547
|
-
> Repository: chalk/wrap-ansi
|
|
548
|
-
>
|
|
549
|
-
> > MIT License
|
|
550
|
-
> >
|
|
551
|
-
> > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
552
|
-
> >
|
|
553
|
-
> > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
554
|
-
> >
|
|
555
|
-
> > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
556
|
-
> >
|
|
557
|
-
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
558
|
-
>
|
|
559
|
-
> <!-- /DEPENDENCIES -->
|
|
560
|
-
>
|
|
561
|
-
>
|
|
562
|
-
>
|
|
563
|
-
> # Licenses of bundled types
|
|
564
|
-
> The published @visulima/pail artifact additionally contains code with the following licenses:
|
|
565
|
-
> (MIT OR CC0-1.0)
|
|
566
|
-
>
|
|
567
|
-
> # Bundled types:
|
|
568
|
-
> ## type-fest
|
|
569
|
-
> License: (MIT OR CC0-1.0)
|
|
570
|
-
> By: Sindre Sorhus
|
|
571
|
-
> Repository: sindresorhus/type-fest
|
|
572
|
-
>
|
|
573
|
-
> > Creative Commons Legal Code
|
|
574
|
-
> >
|
|
575
|
-
> > CC0 1.0 Universal
|
|
576
|
-
> >
|
|
577
|
-
> > CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
|
578
|
-
> > LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
|
579
|
-
> > ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
|
580
|
-
> > INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
|
581
|
-
> > REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
|
582
|
-
> > PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
|
583
|
-
> > THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
|
584
|
-
> > HEREUNDER.
|
|
585
|
-
> >
|
|
586
|
-
> > Statement of Purpose
|
|
587
|
-
> >
|
|
588
|
-
> > The laws of most jurisdictions throughout the world automatically confer
|
|
589
|
-
> > exclusive Copyright and Related Rights (defined below) upon the creator
|
|
590
|
-
> > and subsequent owner(s) (each and all, an "owner") of an original work of
|
|
591
|
-
> > authorship and/or a database (each, a "Work").
|
|
592
|
-
> >
|
|
593
|
-
> > Certain owners wish to permanently relinquish those rights to a Work for
|
|
594
|
-
> > the purpose of contributing to a commons of creative, cultural and
|
|
595
|
-
> > scientific works ("Commons") that the public can reliably and without fear
|
|
596
|
-
> > of later claims of infringement build upon, modify, incorporate in other
|
|
597
|
-
> > works, reuse and redistribute as freely as possible in any form whatsoever
|
|
598
|
-
> > and for any purposes, including without limitation commercial purposes.
|
|
599
|
-
> > These owners may contribute to the Commons to promote the ideal of a free
|
|
600
|
-
> > culture and the further production of creative, cultural and scientific
|
|
601
|
-
> > works, or to gain reputation or greater distribution for their Work in
|
|
602
|
-
> > part through the use and efforts of others.
|
|
603
|
-
> >
|
|
604
|
-
> > For these and/or other purposes and motivations, and without any
|
|
605
|
-
> > expectation of additional consideration or compensation, the person
|
|
606
|
-
> > associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
|
607
|
-
> > is an owner of Copyright and Related Rights in the Work, voluntarily
|
|
608
|
-
> > elects to apply CC0 to the Work and publicly distribute the Work under its
|
|
609
|
-
> > terms, with knowledge of his or her Copyright and Related Rights in the
|
|
610
|
-
> > Work and the meaning and intended legal effect of CC0 on those rights.
|
|
611
|
-
> >
|
|
612
|
-
> > 1. Copyright and Related Rights. A Work made available under CC0 may be
|
|
613
|
-
> > protected by copyright and related or neighboring rights ("Copyright and
|
|
614
|
-
> > Related Rights"). Copyright and Related Rights include, but are not
|
|
615
|
-
> > limited to, the following:
|
|
616
|
-
> >
|
|
617
|
-
> > i. the right to reproduce, adapt, distribute, perform, display,
|
|
618
|
-
> > communicate, and translate a Work;
|
|
619
|
-
> > ii. moral rights retained by the original author(s) and/or performer(s);
|
|
620
|
-
> > iii. publicity and privacy rights pertaining to a person's image or
|
|
621
|
-
> > likeness depicted in a Work;
|
|
622
|
-
> > iv. rights protecting against unfair competition in regards to a Work,
|
|
623
|
-
> > subject to the limitations in paragraph 4(a), below;
|
|
624
|
-
> > v. rights protecting the extraction, dissemination, use and reuse of data
|
|
625
|
-
> > in a Work;
|
|
626
|
-
> > vi. database rights (such as those arising under Directive 96/9/EC of the
|
|
627
|
-
> > European Parliament and of the Council of 11 March 1996 on the legal
|
|
628
|
-
> > protection of databases, and under any national implementation
|
|
629
|
-
> > thereof, including any amended or successor version of such
|
|
630
|
-
> > directive); and
|
|
631
|
-
> > vii. other similar, equivalent or corresponding rights throughout the
|
|
632
|
-
> > world based on applicable law or treaty, and any national
|
|
633
|
-
> > implementations thereof.
|
|
634
|
-
> >
|
|
635
|
-
> > 2. Waiver. To the greatest extent permitted by, but not in contravention
|
|
636
|
-
> > of, applicable law, Affirmer hereby overtly, fully, permanently,
|
|
637
|
-
> > irrevocably and unconditionally waives, abandons, and surrenders all of
|
|
638
|
-
> > Affirmer's Copyright and Related Rights and associated claims and causes
|
|
639
|
-
> > of action, whether now known or unknown (including existing as well as
|
|
640
|
-
> > future claims and causes of action), in the Work (i) in all territories
|
|
641
|
-
> > worldwide, (ii) for the maximum duration provided by applicable law or
|
|
642
|
-
> > treaty (including future time extensions), (iii) in any current or future
|
|
643
|
-
> > medium and for any number of copies, and (iv) for any purpose whatsoever,
|
|
644
|
-
> > including without limitation commercial, advertising or promotional
|
|
645
|
-
> > purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
|
646
|
-
> > member of the public at large and to the detriment of Affirmer's heirs and
|
|
647
|
-
> > successors, fully intending that such Waiver shall not be subject to
|
|
648
|
-
> > revocation, rescission, cancellation, termination, or any other legal or
|
|
649
|
-
> > equitable action to disrupt the quiet enjoyment of the Work by the public
|
|
650
|
-
> > as contemplated by Affirmer's express Statement of Purpose.
|
|
651
|
-
> >
|
|
652
|
-
> > 3. Public License Fallback. Should any part of the Waiver for any reason
|
|
653
|
-
> > be judged legally invalid or ineffective under applicable law, then the
|
|
654
|
-
> > Waiver shall be preserved to the maximum extent permitted taking into
|
|
655
|
-
> > account Affirmer's express Statement of Purpose. In addition, to the
|
|
656
|
-
> > extent the Waiver is so judged Affirmer hereby grants to each affected
|
|
657
|
-
> > person a royalty-free, non transferable, non sublicensable, non exclusive,
|
|
658
|
-
> > irrevocable and unconditional license to exercise Affirmer's Copyright and
|
|
659
|
-
> > Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
|
660
|
-
> > maximum duration provided by applicable law or treaty (including future
|
|
661
|
-
> > time extensions), (iii) in any current or future medium and for any number
|
|
662
|
-
> > of copies, and (iv) for any purpose whatsoever, including without
|
|
663
|
-
> > limitation commercial, advertising or promotional purposes (the
|
|
664
|
-
> > "License"). The License shall be deemed effective as of the date CC0 was
|
|
665
|
-
> > applied by Affirmer to the Work. Should any part of the License for any
|
|
666
|
-
> > reason be judged legally invalid or ineffective under applicable law, such
|
|
667
|
-
> > partial invalidity or ineffectiveness shall not invalidate the remainder
|
|
668
|
-
> > of the License, and in such case Affirmer hereby affirms that he or she
|
|
669
|
-
> > will not (i) exercise any of his or her remaining Copyright and Related
|
|
670
|
-
> > Rights in the Work or (ii) assert any associated claims and causes of
|
|
671
|
-
> > action with respect to the Work, in either case contrary to Affirmer's
|
|
672
|
-
> > express Statement of Purpose.
|
|
673
|
-
> >
|
|
674
|
-
> > 4. Limitations and Disclaimers.
|
|
675
|
-
> >
|
|
676
|
-
> > a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
|
677
|
-
> > surrendered, licensed or otherwise affected by this document.
|
|
678
|
-
> > b. Affirmer offers the Work as-is and makes no representations or
|
|
679
|
-
> > warranties of any kind concerning the Work, express, implied,
|
|
680
|
-
> > statutory or otherwise, including without limitation warranties of
|
|
681
|
-
> > title, merchantability, fitness for a particular purpose, non
|
|
682
|
-
> > infringement, or the absence of latent or other defects, accuracy, or
|
|
683
|
-
> > the present or absence of errors, whether or not discoverable, all to
|
|
684
|
-
> > the greatest extent permissible under applicable law.
|
|
685
|
-
> > c. Affirmer disclaims responsibility for clearing rights of other persons
|
|
686
|
-
> > that may apply to the Work or any use thereof, including without
|
|
687
|
-
> > limitation any person's Copyright and Related Rights in the Work.
|
|
688
|
-
> > Further, Affirmer disclaims responsibility for obtaining any necessary
|
|
689
|
-
> > consents, permissions or other rights required for any use of the
|
|
690
|
-
> > Work.
|
|
691
|
-
> > d. Affirmer understands and acknowledges that Creative Commons is not a
|
|
692
|
-
> > party to this document and has no duty or obligation with respect to
|
|
693
|
-
> > this CC0 or use of the Work.
|
|
694
|
-
|
|
695
|
-
---------------------------------------
|
|
696
|
-
|
|
697
290
|
## @visulima/tsconfig
|
|
698
291
|
License: MIT
|
|
699
292
|
By: Daniel Bannert
|
|
@@ -858,33 +451,4 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
858
451
|
> > party to this document and has no duty or obligation with respect to
|
|
859
452
|
> > this CC0 or use of the Work.
|
|
860
453
|
|
|
861
|
-
---------------------------------------
|
|
862
|
-
|
|
863
|
-
## safe-stable-stringify
|
|
864
|
-
License: MIT
|
|
865
|
-
By: Ruben Bridgewater
|
|
866
|
-
Repository: git+https://github.com/BridgeAR/safe-stable-stringify.git
|
|
867
|
-
|
|
868
|
-
> The MIT License (MIT)
|
|
869
|
-
>
|
|
870
|
-
> Copyright (c) Ruben Bridgewater
|
|
871
|
-
>
|
|
872
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
873
|
-
> of this software and associated documentation files (the "Software"), to deal
|
|
874
|
-
> in the Software without restriction, including without limitation the rights
|
|
875
|
-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
876
|
-
> copies of the Software, and to permit persons to whom the Software is
|
|
877
|
-
> furnished to do so, subject to the following conditions:
|
|
878
|
-
>
|
|
879
|
-
> The above copyright notice and this permission notice shall be included in all
|
|
880
|
-
> copies or substantial portions of the Software.
|
|
881
|
-
>
|
|
882
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
883
|
-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
884
|
-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
885
|
-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
886
|
-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
887
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
888
|
-
> SOFTWARE.
|
|
889
|
-
|
|
890
454
|
<!-- /TYPE_DEPENDENCIES -->
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { Plugin, RenderedChunk, GetManualChunk, CustomPluginOptions } from 'rollup';
|
|
2
|
-
export { C as CJSInteropOptions, a as CopyPluginOptions, D as DataUriPluginOptions, e as DebarrelPluginOptions, E as EsmShimCjsSyntaxOptions, I as IsolatedDeclarationsOptions, t as IsolatedDeclarationsResult, v as IsolatedDeclarationsTransformer, J as JSXRemoveAttributesPlugin, L as LicenseOptions, N as NativeModulesOptions, P as PackemRollupOptions, R as RawLoaderOptions, O as RequireCJSPluginOptions, T as RequireCJSPluginTransformFunction, w as RollupPlugins, S as ShebangOptions, p as SourcemapsPluginOptions, x as TransformerFn, y as TransformerName, U as UrlOptions, c as cjsInteropPlugin, b as copyPlugin, d as dataUriPlugin, f as debarrelPlugin, g as esmShimCjsSyntaxPlugin, k as getShebang, i as isolatedDeclarationsPlugin, j as jsxRemoveAttributes, l as licensePlugin, m as makeExecutable, n as nativeModulesPlugin, r as rawPlugin, o as removeShebangPlugin, h as requireCJSTransformerPlugin, s as shebangPlugin, q as sourcemapsPlugin, u as urlPlugin } from './packem_shared/types-Bk7lLMcF.js';
|
|
3
|
-
export { b as browserslistToEsbuild } from './packem_shared/browserslist-to-esbuild-DY9HwYtp.js';
|
|
4
|
-
import { RollupJsonOptions } from '@rollup/plugin-json';
|
|
5
|
-
import { P as PailServerType } from './packem_shared/index-hWYvkB02.js';
|
|
6
|
-
export { M as MinifyHTMLLiteralsOptions, m as minifyHTMLLiteralsPlugin } from './packem_shared/index-hWYvkB02.js';
|
|
7
1
|
import { FileCache } from '@visulima/packem-share/utils';
|
|
8
|
-
import {
|
|
2
|
+
import { Plugin, GetManualChunk, CustomPluginOptions } from 'rollup';
|
|
3
|
+
export { b as browserslistToEsbuild } from './packem_shared/browserslist-to-esbuild-DY9HwYtp.js';
|
|
4
|
+
export { I as IsolatedDeclarationsResult, a as IsolatedDeclarationsTransformer, P as PackemRollupOptions, R as RollupPlugins, T as TransformerFn, b as TransformerName } from './packem_shared/types-BiZanzz1.js';
|
|
9
5
|
import { BuildContextBuildAssetAndChunk, BuildContextBuildEntry } from '@visulima/packem-share/types';
|
|
10
6
|
export { Alias, ResolverObject as AliasResolverObject, ResolvedAlias, RollupAliasOptions, default as alias } from '@rollup/plugin-alias';
|
|
11
7
|
export { RollupCommonJSOptions, default as commonjs } from '@rollup/plugin-commonjs';
|
|
@@ -17,37 +13,40 @@ export { RollupWasmOptions, default as wasm } from '@rollup/plugin-wasm';
|
|
|
17
13
|
export { NodePolyfillsOptions as RollupNodePolyfillsOptions, default as polyfillNode } from 'rollup-plugin-polyfill-node';
|
|
18
14
|
export { PluginPure, PureAnnotationsOptions as RollupPureAnnotationsOptions } from 'rollup-plugin-pure';
|
|
19
15
|
export { PluginVisualizerOptions as RollupPluginVisualizerOptions, default as visualizer } from 'rollup-plugin-visualizer';
|
|
16
|
+
import '@rollup/plugin-json';
|
|
17
|
+
import '@rollup/pluginutils';
|
|
20
18
|
import 'rollup-plugin-dts';
|
|
19
|
+
import './plugins/cjs-interop.js';
|
|
20
|
+
import './plugins/copy.js';
|
|
21
|
+
import './plugins/data-uri.js';
|
|
22
|
+
import './plugins/debarrel.js';
|
|
21
23
|
import 'esbuild';
|
|
24
|
+
import './plugins/esm-shim-cjs-syntax.js';
|
|
22
25
|
import '@visulima/package';
|
|
26
|
+
import './plugins/isolated-declarations/index.js';
|
|
27
|
+
import './plugins/jsx-remove-attributes.js';
|
|
28
|
+
import './plugins/license.js';
|
|
29
|
+
import './plugins/minify-html-literals/index.js';
|
|
30
|
+
import 'magic-string';
|
|
31
|
+
import 'html-minifier-next';
|
|
32
|
+
import './plugins/native-modules-plugin.js';
|
|
23
33
|
import 'oxc-resolver';
|
|
24
34
|
import 'oxc-transform';
|
|
35
|
+
import './plugins/raw.js';
|
|
36
|
+
import './plugins/require-cjs-transformer.js';
|
|
37
|
+
import './plugins/shebang.js';
|
|
38
|
+
import './plugins/source-maps.js';
|
|
25
39
|
import 'sucrase';
|
|
26
|
-
import '
|
|
27
|
-
import 'html-minifier-next';
|
|
40
|
+
import './plugins/url.js';
|
|
28
41
|
|
|
29
|
-
declare const
|
|
42
|
+
declare const cachePlugin: (plugin: Plugin, cache: FileCache, subDirectory?: string) => Plugin;
|
|
30
43
|
|
|
31
|
-
|
|
32
|
-
matcher?: (info: RenderedChunk) => boolean;
|
|
33
|
-
};
|
|
34
|
-
declare const fixDtsDefaultCjsExportsPlugin: (options?: FixDtsDefaultCjsExportsPluginOptions) => Plugin;
|
|
44
|
+
declare const chunkSplitter: () => Plugin;
|
|
35
45
|
|
|
36
46
|
declare const fixDynamicImportExtension: () => Plugin;
|
|
37
47
|
|
|
38
|
-
declare const JSONPlugin: (options: RollupJsonOptions) => Plugin;
|
|
39
|
-
|
|
40
48
|
declare const metafilePlugin: () => Plugin;
|
|
41
49
|
|
|
42
|
-
declare const cachingPlugin: (plugin: Plugin, cache: FileCache, subDirectory?: string) => Plugin;
|
|
43
|
-
|
|
44
|
-
declare const preserveDirectives: ({ directiveRegex, exclude, include, logger, }: {
|
|
45
|
-
directiveRegex: RegExp;
|
|
46
|
-
exclude?: FilterPattern;
|
|
47
|
-
include?: FilterPattern;
|
|
48
|
-
logger: PailServerType;
|
|
49
|
-
}) => Plugin;
|
|
50
|
-
|
|
51
50
|
declare const resolveFileUrl: () => Plugin;
|
|
52
51
|
|
|
53
52
|
declare const createSplitChunks: (dependencyGraphMap: Map<string, Set<[string, string]>>, entryFiles: (BuildContextBuildAssetAndChunk | BuildContextBuildEntry)[]) => GetManualChunk;
|
|
@@ -56,4 +55,4 @@ declare const getCustomModuleLayer: (moduleId: string) => string | undefined;
|
|
|
56
55
|
|
|
57
56
|
declare const getModuleLayer: (moduleMeta: CustomPluginOptions) => any;
|
|
58
57
|
|
|
59
|
-
export { cachingPlugin, chunkSplitter, createSplitChunks,
|
|
58
|
+
export { cachePlugin as cachingPlugin, chunkSplitter, createSplitChunks, fixDynamicImportExtension, getCustomModuleLayer, getModuleLayer, metafilePlugin, resolveFileUrl as resolveFileUrlPlugin };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{default as r}from"./packem_shared/cachingPlugin-CLawAGhx.js";import{default as a}from"./packem_shared/chunkSplitter-DWAy1JkE.js";import{default as l}from"./packem_shared/browserslistToEsbuild-C0IWmbNe.js";import{default as u}from"./packem_shared/fixDynamicImportExtension-BBGNRniz.js";import{default as p}from"./packem_shared/metafilePlugin-CVcqFpPJ.js";import{default as x}from"./packem_shared/resolveFileUrlPlugin-BkpjVHeK.js";import{default as n}from"./packem_shared/createSplitChunks-Ceq_Ca5Y.js";import{default as g}from"./packem_shared/getCustomModuleLayer-d8i66lfh.js";import{default as P}from"./packem_shared/getModuleLayer-rF9RxnJ5.js";import{default as v}from"@rollup/plugin-alias";import{default as j}from"@rollup/plugin-commonjs";import{default as w}from"@rollup/plugin-dynamic-import-vars";import{default as E}from"@rollup/plugin-inject";import{default as L}from"@rollup/plugin-node-resolve";import{default as S}from"@rollup/plugin-replace";import{default as D}from"@rollup/plugin-wasm";import{default as N}from"rollup-plugin-polyfill-node";import{PluginPure as T}from"rollup-plugin-pure";import{default as V}from"rollup-plugin-visualizer";export{T as PluginPure,v as alias,l as browserslistToEsbuild,r as cachingPlugin,a as chunkSplitter,j as commonjs,n as createSplitChunks,w as dynamicImportVars,u as fixDynamicImportExtension,g as getCustomModuleLayer,P as getModuleLayer,E as inject,p as metafilePlugin,L as nodeResolve,N as polyfillNode,S as replace,x as resolveFileUrlPlugin,V as visualizer,D as wasm};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var w=Object.defineProperty;var m=(a,r)=>w(a,"name",{value:r,configurable:!0});import{isAccessibleSync as b,readFileSync as g}from"@visulima/fs";import{join as l}from"@visulima/path";import{getHash as o}from"@visulima/packem-share/utils";var _=Object.defineProperty,h=m((a,r)=>_(a,"name",{value:r,configurable:!0}),"f");const d=h(a=>a.handler||a,"getHandler"),f=h(a=>a&&typeof a=="object"&&a.__packem_cache_wrapped===!0?a.data:a,"unwrapCachedValue"),E=h((a,r,u="")=>({...a,async buildEnd(e){a.buildEnd&&await d(a.buildEnd).call(this,e)},async buildStart(e){a.buildStart&&await d(a.buildStart).call(this,e)},async load(e){if(!a.load)return;const t=l(u,a.name),n=e.includes("?")?e.split("?")[0]:e;let c="";try{if(n&&b(n)){const y=g(n);c=o(y)}}catch{}const s=l("load",o(e),c);if(r.has(s,t))return f(await r.get(s,t));const i=await d(a.load).call(this,e),p=i&&typeof i=="object"&&"code"in i?i:{__packem_cache_wrapped:!0,data:i};return r.set(s,p,t),i},name:`cached(${a.name})`,async resolveId(e,t,n){if(!a.resolveId)return;const c=l(u,a.name),s=l("resolveId",o(e),t?o(t):"",o(JSON.stringify(n)));if(r.has(s,c))return f(await r.get(s,c));const i=await d(a.resolveId).call(this,e,t,n);return r.set(s,i,c),i},async transform(e,t){if(!a.transform)return;const n=l(u,a.name),c=l("transform",o(t),o(e));if(r.has(c,n))return f(await r.get(c,n));const s=await d(a.transform).call(this,e,t);return r.set(c,s,n),s}}),"cachePlugin");export{E as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var I=Object.defineProperty;var p=(t,n)=>I(t,"name",{value:n,configurable:!0});import{memoize as y}from"@visulima/packem-share/utils";import{basename as b,extname as w}from"@visulima/path";import S from"./getCustomModuleLayer-d8i66lfh.js";import l from"./getModuleLayer-rF9RxnJ5.js";var $=Object.defineProperty,h=p((t,n)=>$(t,"name",{value:n,configurable:!0}),"d");const M=y(t=>{let n=0;for(let r=0;r<t.length;r+=1)n=(n<<5)-n+t.codePointAt(r);return(n>>>0).toString(36).slice(0,3)}),j=h((t,n)=>{const r=new Map;return h(function(e,u){if(/[\\/]node_modules[\\/]@swc[\\/]helper/.test(e))return"cc";const c=u.getModuleInfo(e);if(!c)return;const{isEntry:m}=c,d=c.meta;let s=l(d);if(s&&(s=M(s)),!m){const f=r.get(e);if(f)return f;const o=S(e);if(o)return r.set(e,o),o}if(m){const f=u.getModuleIds();for(const o of f)u.getModuleInfo(o)&&l(d)===s&&(t.has(o)||t.set(o,new Set),t.get(o).add([e,s]))}if(s&&!m&&t.has(e)){const f=[...t.get(e)];if(f.some(([i])=>{if(n.some(a=>a.path===i)){const a=u.getModuleInfo(i);return l(a?a.meta:{})===s}return!1}))return;if(f.every(([,i])=>i===s))return r.has(e)?r.get(e):void 0;const o=b(e,w(e)),v=M(s),g=`${o}-${v}`;return r.set(e,g),g}},"splitChunks")},"createSplitChunks");export{j as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var j=Object.defineProperty;var u=(e,r)=>j(e,"name",{value:r,configurable:!0});import{createFilter as x}from"@rollup/pluginutils";import{DEFAULT_LOADERS as k}from"@visulima/packem-share/constants";import{join as O,extname as E}from"@visulima/path";import{formatMessages as M,transform as h,build as $}from"esbuild";import{findCacheDirSync as A}from"@visulima/find-cache-dir";import{readFileSync as
|
|
1
|
+
var j=Object.defineProperty;var u=(e,r)=>j(e,"name",{value:r,configurable:!0});import{createFilter as x}from"@rollup/pluginutils";import{DEFAULT_LOADERS as k}from"@visulima/packem-share/constants";import{join as O,extname as E}from"@visulima/path";import{formatMessages as M,transform as h,build as $}from"esbuild";import{findCacheDirSync as A}from"@visulima/find-cache-dir";import{readFileSync as P}from"@visulima/fs";import*as R from"rs-module-lexer";var S=Object.defineProperty,F=u((e,r)=>S(e,"name",{value:r,configurable:!0}),"n$1");const y=F(async(e,r)=>{r.length>0&&(await M(r,{color:!0,kind:"warning"})).forEach(s=>e.warn(s))},"warn");var C=Object.defineProperty,w=u((e,r)=>C(e,"name",{value:r,configurable:!0}),"t");const L=w(e=>{if(e==="es")return"esm";if(e==="cjs")return e},"getEsbuildFormat"),W=w(({sourceMap:e=!0,...r})=>async function(s,n,i){if(r.minify||r.minifyWhitespace||r.minifyIdentifiers||r.minifySyntax){const t=L(i.format),c=await h(s,{format:t,loader:"js",sourcemap:e,...r});if(await y(this,c.warnings),c.code)return{code:c.code,map:c.map||void 0}}},"getRenderChunk");var I=Object.defineProperty,D=u((e,r)=>I(e,"name",{value:r,configurable:!0}),"n");const b=D(e=>e.replaceAll("\\","/"),"slash"),{parseAsync:T}=R,q=D(async e=>{const r=A("@visulima/packem/optimize-deps",{create:!0,cwd:e.cwd});if(!r)throw new Error('[packem:optimize-deps]: failed to find or create cache directory "node_modules/.cache/packem/optimize_deps".');await $({absWorkingDir:e.cwd,bundle:!0,entryPoints:e.include,format:"esm",ignoreAnnotations:!0,metafile:!0,outdir:r,sourcemap:e.sourceMap,splitting:!0,...e.esbuildOptions,plugins:[{name:"optimize-deps",async setup(n){n.onResolve({filter:/.*/},async i=>{if(e.exclude?.includes(i.path))return{external:!0};if(!i.pluginData?.__resolving_dep_path__&&e.include.includes(i.path)){const t=await n.resolve(i.path,{kind:"import-statement",pluginData:{__resolving_dep_path__:!0},resolveDir:i.resolveDir});return t.errors.length>0||t.warnings.length>0?t:{namespace:"optimize-deps",path:i.path,pluginData:{absolute:t.path,resolveDir:i.resolveDir}}}}),n.onLoad({filter:/.*/,namespace:"optimize-deps"},async i=>{const{absolute:t,resolveDir:c}=i.pluginData,p=P(t),{output:g}=await T({input:[{code:p,filename:t}]});return{contents:(g[0]?.exports??[]).length>0?`export * from '${b(t)}'`:`module.exports = require('${b(t)}')`,resolveDir:c}})}},...e.esbuildOptions?.plugins??[]]});const s=new Map;for(const n of e.include)s.set(n,{file:O(r,`${n}.js`)});return{cacheDir:r,optimized:s}},"optimizeDeps");var N=Object.defineProperty,U=u((e,r)=>N(e,"name",{value:r,configurable:!0}),"g");const B=U(({exclude:e,include:r,loaders:s,logger:n,optimizeDeps:i,sourceMap:t,...c})=>{const p=k;if(s!==void 0)for(let[a,o]of Object.entries(s)){const d=a.startsWith(".")?a:`.${a}`;typeof o=="string"?p[d]=o:o||delete p[d]}const g=Object.keys(p),_=new RegExp(`\\.(${g.map(a=>a.slice(1)).join("|")})$`),z=x(r??_,e);let l,v=process.cwd();return{async buildStart(){!i||l||(l=await q({cwd:v,sourceMap:t??!1,...i}),n.debug("optimized %O",l.optimized))},name:"packem:esbuild",options({context:a}){a&&(v=a)},renderChunk:W({...c,sourceMap:t}),async resolveId(a){if(l?.optimized.has(a)){const o=l.optimized.get(a);if(o)return n.debug("resolved %s to %s",a,o.file),o.file}},async transform(a,o){if(!z(o)||l?.optimized.has(o))return;const d=E(o),m=p[d];if(n.debug("transforming %s with %s loader",o,m),!m)return;const f=await h(a,{format:["base64","binary","dataurl","text","json"].includes(m)?"esm":void 0,loader:m,sourcefile:o.replace(/\.[cm]ts/,".ts"),sourcemap:t,...c});if(await y(this,f.warnings),f.code)return{code:f.code,map:f.map||void 0}}}},"esbuildTransformer");B.NAME="esbuild";export{B as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var S=Object.defineProperty;var g=(t,e)=>S(t,"name",{value:e,configurable:!0});import{createFilter as P}from"@rollup/pluginutils";import{findPackageJson as k}from"@visulima/package/package-json";import{dirname as n}from"@visulima/path";import{ResolverFactory as J}from"oxc-resolver";var M=Object.defineProperty,m=g((t,e)=>M(t,"name",{value:e,configurable:!0}),"a");let b;const A=new Map,z=m((t,e,h,u)=>{const{ignoreSideEffectsForRoot:E,...a}=t;let c=b;return c||(c=b=new J({...a,roots:[...a.roots??[],e],tsconfig:u?{configFile:u,references:"auto"}:void 0})),{name:"oxc-resolve",resolveId:{async handler(p,l,{isEntry:w}){const v=w||!l?n(p):n(l),{error:x,path:o}=await c.async(v,p);if(x){h.debug(x,{context:[{basedir:e,extensions:a.extensions,id:o}]});return}let f=m(s=>!1,"hasModuleSideEffects");try{const{packageJson:s,path:F}=await k(n(o),{cache:A}),y=n(F);if(!E||e!==y){const i=s.sideEffects;if(typeof i=="boolean")f=m(()=>i,"hasModuleSideEffects");else if(Array.isArray(i)){const R=i.map(d=>d.includes("/")?d:`**/${d}`);f=P(R,void 0,{resolve:y})}}}catch(s){console.debug(s.message,{context:[{basedir:v,caller:"Resolver",error:s,extensions:a.extensions,id:o}]})}const r=await this.resolve(o,l,{skipSelf:!0});if(r)return r.external?!1:r.id!==o?r:{id:o,meta:r.meta,moduleSideEffects:f(o)}},order:"post"}}},"oxcResolvePlugin");export{z as default};
|
package/dist/packem_shared/{patchTypescriptTypes-BEdkvKxL.mjs → patchTypescriptTypes-BX_sJsvd.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var $=Object.defineProperty;var l=(e,n)=>$(e,"name",{value:n,configurable:!0});import{parse as w}from"@babel/parser";import{w as y}from"./index-Dq8IUFTs.
|
|
1
|
+
var $=Object.defineProperty;var l=(e,n)=>$(e,"name",{value:n,configurable:!0});import{parse as w}from"@babel/parser";import{w as y}from"./index-Dq8IUFTs.js";import T from"magic-string";import{findStaticImports as b}from"mlly";var x=Object.defineProperty,s=l((e,n)=>x(e,"name",{value:n,configurable:!0}),"s");const C=/\/\*[^*]*\*+(?:[^/*][^*]*\*+)*\//g,N=/MIT License|MIT license|BSD license/,k=/\n{2,}/g,v=/\b(\w+)\$\d+\b/g,A=/[-/\\^$*+?.()|[\]{}]/g,I=s(e=>e.replaceAll(A,String.raw`\$&`),"escapeRegex"),R=s(e=>[...new Set(e)],"unique"),S=s(e=>e.replaceAll(C,n=>N.test(n)?"":n).replaceAll(k,`
|
|
2
2
|
|
|
3
3
|
`),"cleanUnnecessaryComments"),d=new Map;function g(e,n,{identifierReplacements:r},o){const p=b(e);for(const t in r){const a=p.find(i=>i.specifier===t&&i.imports.includes("{"));if(!a){this.warn(`${n.fileName} does not import "${t}" for replacement`),process.exitCode=1;continue}const c=r[t];for(const i in c){if(!a.imports.includes(i))throw new Error(`${n.fileName} does not import "${i}" from "${t}" for replacement`);const f=c[i],u=I(i);f.includes(".")&&(e=e.replace(new RegExp(`\\b\\w+\\b as ${u},?\\s?`),"")),e=e.replaceAll(new RegExp(`\\b${u}\\b`,"g"),f)}}const m=R(Array.from(e.matchAll(v),t=>t[0]));if(m.length>0){const t=m.map(c=>`
|
|
4
4
|
- ${c}`).join(""),a=n.fileName.replace(/\.[^/.]+$/,"");d.has(a)||o.warn({message:`${n.fileName} contains confusing identifier names${t}
|
|
5
5
|
|
|
6
|
-
To replace these, add them to the "rollup -> patchTypes -> identifierReplacements" option in your packem config.`,prefix:"plugin:patch-types"}),d.set(a,!0)}return e}l(g,"
|
|
6
|
+
To replace these, add them to the "rollup -> patchTypes -> identifierReplacements" option in your packem config.`,prefix:"plugin:patch-types"}),d.set(a,!0)}return e}l(g,"N");s(g,"replaceConfusingTypeNames");const E=s((e,n)=>{if(n.leadingComments?.some(r=>r.type==="CommentBlock"&&r.value.includes("@internal"))){const r=e.original[n.end]===","?n.end+1:n.end;return e.remove(n.leadingComments[0].start,r),!0}return!1},"removeInternal");function h(e,n){if(e.includes("@internal")){const r=new T(e),o=w(e,{plugins:["typescript"],sourceType:"module"});if(y(o,{enter(p){E(r,p)&&this.skip()}}),e=r.toString(),e.includes("@internal"))throw new Error(`${n.fileName} has unhandled @internal declarations`)}return e}l(h,"S");s(h,"stripInternalTypes");const D=s((e,n)=>({name:"packem:patch-types",renderChunk(r,o){return r=g.call(this,r,o,e,n),r=h.call(this,r,o),r=S(r),r}}),"patchTypescriptTypes");export{D as patchTypescriptTypes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var b=Object.defineProperty;var d=(t,e)=>b(t,"name",{value:e,configurable:!0});import{isAbsolute as P,join as $,dirname as O,resolve as k}from"@visulima/path";import{isRelative as y}from"@visulima/path/utils";var j=Object.defineProperty,o=d((t,e)=>j(t,"name",{value:e,configurable:!0}),"o");const S=42,U=o(t=>{let e=!1;for(let s=0;s<t.length;s++)if(t.codePointAt(s)===S){if(e)return!1;e=!0}return!0},"hasZeroOrOneAsteriskCharacter"),W=o(t=>{const e=t.indexOf("*");return e===-1?void 0:{prefix:t.slice(0,e),suffix:t.slice(e+1)}},"tryParsePattern"),A=o(({prefix:t,suffix:e},s)=>s.length>=t.length+e.length&&s.startsWith(t)&&s.endsWith(e),"isPatternMatch"),T=o((t,e,s)=>{let i,r=-1;for(const f of t){const a=e(f);A(a,s)&&a.prefix.length>r&&(r=a.prefix.length,i=f)}return i},"findBestPatternMatch"),
|
|
1
|
+
var b=Object.defineProperty;var d=(t,e)=>b(t,"name",{value:e,configurable:!0});import{isAbsolute as P,join as $,dirname as O,resolve as k}from"@visulima/path";import{isRelative as y}from"@visulima/path/utils";var j=Object.defineProperty,o=d((t,e)=>j(t,"name",{value:e,configurable:!0}),"o");const S=42,U=o(t=>{let e=!1;for(let s=0;s<t.length;s++)if(t.codePointAt(s)===S){if(e)return!1;e=!0}return!0},"hasZeroOrOneAsteriskCharacter"),W=o(t=>{const e=t.indexOf("*");return e===-1?void 0:{prefix:t.slice(0,e),suffix:t.slice(e+1)}},"tryParsePattern"),A=o(({prefix:t,suffix:e},s)=>s.length>=t.length+e.length&&s.startsWith(t)&&s.endsWith(e),"isPatternMatch"),T=o((t,e,s)=>{let i,r=-1;for(const f of t){const a=e(f);A(a,s)&&a.prefix.length>r&&(r=a.prefix.length,i=f)}return i},"findBestPatternMatch"),q=o((t,e)=>{const s=[];for(const i of t){if(!U(i))continue;const r=W(i);if(r)s.push(r);else if(i===e)return i}return T(s,i=>i,e)},"matchPatternOrExact"),B=o((t,e)=>e.substring(t.prefix.length,e.length-t.suffix.length),"matchedText"),R=o(({prefix:t,suffix:e})=>`${t}*${e}`,"patternText"),w=o((t,e,s)=>{let i=O(e.path);e.config.compilerOptions?.baseUrl&&(i=k(t,e.config.compilerOptions.baseUrl)),s?.debug({message:`Resolved baseUrl to ${i}`,prefix:"plugin:resolve-tsconfig-paths"});const r=e.config.compilerOptions?.paths??{};return Object.keys(r).length===0&&s?.debug({message:"No paths found in tsconfig.json",prefix:"plugin:resolve-tsconfig-paths"}),{paths:r,resolvedBaseUrl:i}},"getTsconfigPaths"),_=o((t,e,s,i)=>{const{paths:r,resolvedBaseUrl:f}=w(t,e,s),a=Object.keys(r);return{name:"plugin:resolve-tsconfig-paths",async resolveId(n,m,v){if(a.length===0)return;if(n.includes("\0")){s.debug({message:`Skipping resolution of ${n} as it is a virtual module`,prefix:"plugin:resolve-tsconfig-paths"});return}if(n.includes("node_modules")){s.debug({message:`Skipping request as it is inside node_modules ${n}`,prefix:"plugin:resolve-tsconfig-paths"});return}if(!i.resolveAbsolutePath&&P(n)){s.debug({message:`Skipping request as it is an absolute path ${n}`,prefix:"plugin:resolve-tsconfig-paths"});return}if(y(n)){s.debug({message:`Skipping request as it is a relative path ${n}`,prefix:"plugin:resolve-tsconfig-paths"});return}const l=q(a,n);if(!l){s.debug({message:`moduleName did not match any paths pattern ${n}`,prefix:"plugin:resolve-tsconfig-paths"});return}const u=typeof l=="string"?void 0:B(l,n),x=typeof l=="string"?l:R(l);for await(const c of r[x]){const p=u?c.replace("*",u):c;if(p.endsWith(".d.ts")||p.endsWith(".d.cts")||p.endsWith(".d.mts"))continue;const h=$(f,p);try{const g=await this.resolve(h,m,{skipSelf:!0,...v});if(g)return g}catch(g){s.debug({context:[g],message:`Failed to resolve ${h} from ${n}`,prefix:"plugin:resolve-tsconfig-paths"})}}}}},"resolveTsconfigPathsPlugin");export{_ as resolveTsconfigPathsPlugin};
|