@powerlines/plugin-esbuild 0.13.466 → 0.13.468
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/index.cjs +29 -8
- package/dist/index.d.cts +2 -4
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -4
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/plugin.d.cts +19 -2
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +19 -2
- package/dist/types/plugin.d.mts.map +1 -0
- package/package.json +4 -4
- package/dist/bundle-A-22BjWv.d.mts +0 -22
- package/dist/bundle-A-22BjWv.d.mts.map +0 -1
- package/dist/bundle-B_-jRFlM.cjs +0 -84
- package/dist/bundle-HmHLeZt2.d.cts +0 -22
- package/dist/bundle-HmHLeZt2.d.cts.map +0 -1
- package/dist/helpers/bundle.cjs +0 -4
- package/dist/helpers/bundle.d.cts +0 -2
- package/dist/helpers/bundle.d.mts +0 -2
- package/dist/helpers/bundle.mjs +0 -46
- package/dist/helpers/bundle.mjs.map +0 -1
- package/dist/helpers/index.cjs +0 -7
- package/dist/helpers/index.d.cts +0 -3
- package/dist/helpers/index.d.mts +0 -3
- package/dist/helpers/index.mjs +0 -4
- package/dist/helpers/resolve.cjs +0 -64
- package/dist/helpers/resolve.d.cts +0 -2
- package/dist/helpers/resolve.d.mts +0 -2
- package/dist/helpers/resolve.mjs +0 -63
- package/dist/helpers/resolve.mjs.map +0 -1
- package/dist/index-BtBZHVmz.d.cts +0 -1
- package/dist/index-DXRuzH8z.d.mts +0 -1
- package/dist/plugin-BuKZtP7s.d.mts +0 -19
- package/dist/plugin-BuKZtP7s.d.mts.map +0 -1
- package/dist/plugin-g0pkWAvQ.d.cts +0 -19
- package/dist/plugin-g0pkWAvQ.d.cts.map +0 -1
- package/dist/resolve-DGrNGKUw.d.mts +0 -26
- package/dist/resolve-DGrNGKUw.d.mts.map +0 -1
- package/dist/resolve-uvDtu7oi.d.cts +0 -26
- package/dist/resolve-uvDtu7oi.d.cts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,37 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
14
|
+
__defProp(to, key, {
|
|
15
|
+
get: ((k) => from[k]).bind(null, key),
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
+
value: mod,
|
|
25
|
+
enumerable: true
|
|
26
|
+
}) : target, mod));
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
5
29
|
require('./types/index.cjs');
|
|
6
30
|
let _powerlines_core = require("@powerlines/core");
|
|
7
31
|
let _powerlines_core_plugin_utils = require("@powerlines/core/plugin-utils");
|
|
8
32
|
let _powerlines_unplugin_esbuild = require("@powerlines/unplugin/esbuild");
|
|
9
33
|
let defu = require("defu");
|
|
10
|
-
defu =
|
|
34
|
+
defu = __toESM(defu, 1);
|
|
11
35
|
let esbuild = require("esbuild");
|
|
12
36
|
let unplugin = require("unplugin");
|
|
13
37
|
|
|
@@ -46,8 +70,5 @@ const plugin = (options = {}) => {
|
|
|
46
70
|
};
|
|
47
71
|
|
|
48
72
|
//#endregion
|
|
49
|
-
exports.bundle = require_bundle.bundle;
|
|
50
73
|
exports.default = plugin;
|
|
51
|
-
exports.plugin = plugin;
|
|
52
|
-
exports.resolve = require_helpers_resolve.resolve;
|
|
53
|
-
exports.resolveModule = require_helpers_resolve.resolveModule;
|
|
74
|
+
exports.plugin = plugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { n as __ΩEsbuildOptions, t as EsbuildOptions } from "./build-B8u-bRQt.cjs";
|
|
2
|
-
import {
|
|
3
|
-
import { n as __ΩBundleOptions, r as bundle, t as BundleOptions } from "./bundle-HmHLeZt2.cjs";
|
|
4
|
-
import { n as resolveModule, t as resolve } from "./resolve-uvDtu7oi.cjs";
|
|
2
|
+
import { EsbuildPluginContext, EsbuildPluginOptions, EsbuildPluginResolvedConfig, EsbuildPluginUserConfig, __ΩEsbuildPluginContext, __ΩEsbuildPluginOptions, __ΩEsbuildPluginResolvedConfig, __ΩEsbuildPluginUserConfig } from "./types/plugin.cjs";
|
|
5
3
|
import { Plugin } from "@powerlines/core";
|
|
6
4
|
|
|
7
5
|
//#region src/index.d.ts
|
|
@@ -15,5 +13,5 @@ declare module "@powerlines/core" {
|
|
|
15
13
|
*/
|
|
16
14
|
declare const plugin: <TContext extends EsbuildPluginContext = EsbuildPluginContext>(options?: EsbuildPluginOptions) => Plugin<TContext>;
|
|
17
15
|
//#endregion
|
|
18
|
-
export {
|
|
16
|
+
export { EsbuildOptions, EsbuildPluginContext, EsbuildPluginOptions, EsbuildPluginResolvedConfig, EsbuildPluginUserConfig, __ΩEsbuildOptions, __ΩEsbuildPluginContext, __ΩEsbuildPluginOptions, __ΩEsbuildPluginResolvedConfig, __ΩEsbuildPluginUserConfig, plugin as default, plugin };
|
|
19
17
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YA6BY,MAAA;IACR,OAAA,GAAU,oBAAA;EAAA;AAAA;;;;cAOD,MAAA,oBACM,oBAAA,GAAuB,oBAAA,EAExC,OAAA,GAAS,oBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { n as __ΩEsbuildOptions, t as EsbuildOptions } from "./build-VnV0tsb3.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { n as __ΩBundleOptions, r as bundle, t as BundleOptions } from "./bundle-A-22BjWv.mjs";
|
|
4
|
-
import { n as resolveModule, t as resolve } from "./resolve-DGrNGKUw.mjs";
|
|
2
|
+
import { EsbuildPluginContext, EsbuildPluginOptions, EsbuildPluginResolvedConfig, EsbuildPluginUserConfig, __ΩEsbuildPluginContext, __ΩEsbuildPluginOptions, __ΩEsbuildPluginResolvedConfig, __ΩEsbuildPluginUserConfig } from "./types/plugin.mjs";
|
|
5
3
|
import { Plugin } from "@powerlines/core";
|
|
6
4
|
|
|
7
5
|
//#region src/index.d.ts
|
|
@@ -15,5 +13,5 @@ declare module "@powerlines/core" {
|
|
|
15
13
|
*/
|
|
16
14
|
declare const plugin: <TContext extends EsbuildPluginContext = EsbuildPluginContext>(options?: EsbuildPluginOptions) => Plugin<TContext>;
|
|
17
15
|
//#endregion
|
|
18
|
-
export {
|
|
16
|
+
export { EsbuildOptions, EsbuildPluginContext, EsbuildPluginOptions, EsbuildPluginResolvedConfig, EsbuildPluginUserConfig, __ΩEsbuildOptions, __ΩEsbuildPluginContext, __ΩEsbuildPluginOptions, __ΩEsbuildPluginResolvedConfig, __ΩEsbuildPluginUserConfig, plugin as default, plugin };
|
|
19
17
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YA6BY,MAAA;IACR,OAAA,GAAU,oBAAA;EAAA;AAAA;;;;cAOD,MAAA,oBACM,oBAAA,GAAuB,oBAAA,EAExC,OAAA,GAAS,oBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { bundle } from "./helpers/bundle.mjs";
|
|
2
|
-
import { resolve, resolveModule } from "./helpers/resolve.mjs";
|
|
3
|
-
import "./helpers/index.mjs";
|
|
4
1
|
import "./types/index.mjs";
|
|
5
2
|
import { createUnplugin } from "@powerlines/core";
|
|
6
3
|
import { formatConfig } from "@powerlines/core/plugin-utils";
|
|
@@ -44,5 +41,5 @@ const plugin = (options = {}) => {
|
|
|
44
41
|
};
|
|
45
42
|
|
|
46
43
|
//#endregion
|
|
47
|
-
export {
|
|
44
|
+
export { plugin as default, plugin };
|
|
48
45
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createUnplugin, Plugin } from \"@powerlines/core\";\nimport { formatConfig } from \"@powerlines/core/plugin-utils\";\nimport { resolveEntry, resolveOptions } from \"@powerlines/unplugin/esbuild\";\nimport defu from \"defu\";\nimport { build, BuildOptions, SameShape } from \"esbuild\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { EsbuildPluginContext, EsbuildPluginOptions } from \"./types/plugin\";\n\nexport * from \"./
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { createUnplugin, Plugin } from \"@powerlines/core\";\nimport { formatConfig } from \"@powerlines/core/plugin-utils\";\nimport { resolveEntry, resolveOptions } from \"@powerlines/unplugin/esbuild\";\nimport defu from \"defu\";\nimport { build, BuildOptions, SameShape } from \"esbuild\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { EsbuildPluginContext, EsbuildPluginOptions } from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"@powerlines/core\" {\n interface Config {\n esbuild?: EsbuildPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to assist in developing other Powerlines plugins.\n */\nexport const plugin = <\n TContext extends EsbuildPluginContext = EsbuildPluginContext\n>(\n options: EsbuildPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"esbuild\",\n config() {\n return {\n output: {\n format: [\"esm\"]\n },\n esbuild: {\n ...options\n }\n };\n },\n async build() {\n this.debug(\"Starting Esbuild build process...\");\n\n const resolved = resolveOptions(this);\n const options = defu(this.config.esbuild, {\n ...resolved,\n entryPoints: resolveEntry(this, this.entry),\n config: false,\n plugins: [\n createEsbuildPlugin(\n createUnplugin(this, {\n silenceHookLogging: true,\n name: \"esbuild\"\n })\n )()\n ]\n }) as SameShape<BuildOptions, BuildOptions>;\n\n this.debug({\n meta: {\n category: \"config\"\n },\n message: `Resolved Esbuild configuration: \\n${formatConfig(options)}`\n });\n\n await build(options);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;AAqCA,MAAa,UAGX,UAAgC,EAAE,KACb;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,UAAO;IACL,QAAQ,EACN,QAAQ,CAAC,MAAM,EAChB;IACD,SAAS,EACP,GAAG,SACJ;IACF;;EAEH,MAAM,QAAQ;AACZ,QAAK,MAAM,oCAAoC;GAE/C,MAAM,WAAW,eAAe,KAAK;GACrC,MAAM,UAAU,KAAK,KAAK,OAAO,SAAS;IACxC,GAAG;IACH,aAAa,aAAa,MAAM,KAAK,MAAM;IAC3C,QAAQ;IACR,SAAS,CACP,oBACE,eAAe,MAAM;KACnB,oBAAoB;KACpB,MAAM;KACP,CAAC,CACH,EAAE,CACJ;IACF,CAAC;AAEF,QAAK,MAAM;IACT,MAAM,EACJ,UAAU,UACX;IACD,SAAS,qCAAqC,aAAa,QAAQ;IACpE,CAAC;AAEF,SAAM,MAAM,QAAQ;;EAEvB"}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as __ΩEsbuildOptions, t as EsbuildOptions } from "../build-B8u-bRQt.cjs";
|
|
2
|
-
import {
|
|
2
|
+
import { EsbuildPluginContext, EsbuildPluginOptions, EsbuildPluginResolvedConfig, EsbuildPluginUserConfig, __ΩEsbuildPluginContext, __ΩEsbuildPluginOptions, __ΩEsbuildPluginResolvedConfig, __ΩEsbuildPluginUserConfig } from "./plugin.cjs";
|
|
3
3
|
export { EsbuildOptions, EsbuildPluginContext, EsbuildPluginOptions, EsbuildPluginResolvedConfig, EsbuildPluginUserConfig, __ΩEsbuildOptions, __ΩEsbuildPluginContext, __ΩEsbuildPluginOptions, __ΩEsbuildPluginResolvedConfig, __ΩEsbuildPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as __ΩEsbuildOptions, t as EsbuildOptions } from "../build-VnV0tsb3.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { EsbuildPluginContext, EsbuildPluginOptions, EsbuildPluginResolvedConfig, EsbuildPluginUserConfig, __ΩEsbuildPluginContext, __ΩEsbuildPluginOptions, __ΩEsbuildPluginResolvedConfig, __ΩEsbuildPluginUserConfig } from "./plugin.mjs";
|
|
3
3
|
export { EsbuildOptions, EsbuildPluginContext, EsbuildPluginOptions, EsbuildPluginResolvedConfig, EsbuildPluginUserConfig, __ΩEsbuildOptions, __ΩEsbuildPluginContext, __ΩEsbuildPluginOptions, __ΩEsbuildPluginResolvedConfig, __ΩEsbuildPluginUserConfig };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { t as EsbuildOptions } from "../build-B8u-bRQt.cjs";
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
|
+
|
|
4
|
+
//#region src/types/plugin.d.ts
|
|
5
|
+
type EsbuildPluginOptions = Partial<EsbuildOptions>;
|
|
6
|
+
interface EsbuildPluginUserConfig extends UserConfig {
|
|
7
|
+
esbuild?: EsbuildPluginOptions;
|
|
8
|
+
}
|
|
9
|
+
interface EsbuildPluginResolvedConfig extends ResolvedConfig {
|
|
10
|
+
esbuild: EsbuildOptions;
|
|
11
|
+
}
|
|
12
|
+
type EsbuildPluginContext<TResolvedConfig extends EsbuildPluginResolvedConfig = EsbuildPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
13
|
+
declare type __ΩEsbuildPluginOptions = any[];
|
|
14
|
+
declare type __ΩEsbuildPluginUserConfig = any[];
|
|
15
|
+
declare type __ΩEsbuildPluginResolvedConfig = any[];
|
|
16
|
+
declare type __ΩEsbuildPluginContext = any[];
|
|
17
|
+
//#endregion
|
|
18
|
+
export { EsbuildPluginContext, EsbuildPluginOptions, EsbuildPluginResolvedConfig, EsbuildPluginUserConfig, __ΩEsbuildPluginContext, __ΩEsbuildPluginOptions, __ΩEsbuildPluginResolvedConfig, __ΩEsbuildPluginUserConfig };
|
|
19
|
+
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAyBY,oBAAA,GAAuB,OAAA,CAAQ,cAAA;AAAA,UAE1B,uBAAA,SAAgC,UAAA;EAC/C,OAAA,GAAU,oBAAA;AAAA;AAAA,UAGK,2BAAA,SAAoC,cAAA;EACnD,OAAA,EAAS,cAAA;AAAA;AAAA,KAGC,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { t as EsbuildOptions } from "../build-VnV0tsb3.mjs";
|
|
2
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
|
+
|
|
4
|
+
//#region src/types/plugin.d.ts
|
|
5
|
+
type EsbuildPluginOptions = Partial<EsbuildOptions>;
|
|
6
|
+
interface EsbuildPluginUserConfig extends UserConfig {
|
|
7
|
+
esbuild?: EsbuildPluginOptions;
|
|
8
|
+
}
|
|
9
|
+
interface EsbuildPluginResolvedConfig extends ResolvedConfig {
|
|
10
|
+
esbuild: EsbuildOptions;
|
|
11
|
+
}
|
|
12
|
+
type EsbuildPluginContext<TResolvedConfig extends EsbuildPluginResolvedConfig = EsbuildPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
13
|
+
declare type __ΩEsbuildPluginOptions = any[];
|
|
14
|
+
declare type __ΩEsbuildPluginUserConfig = any[];
|
|
15
|
+
declare type __ΩEsbuildPluginResolvedConfig = any[];
|
|
16
|
+
declare type __ΩEsbuildPluginContext = any[];
|
|
17
|
+
//#endregion
|
|
18
|
+
export { EsbuildPluginContext, EsbuildPluginOptions, EsbuildPluginResolvedConfig, EsbuildPluginUserConfig, __ΩEsbuildPluginContext, __ΩEsbuildPluginOptions, __ΩEsbuildPluginResolvedConfig, __ΩEsbuildPluginUserConfig };
|
|
19
|
+
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAyBY,oBAAA,GAAuB,OAAA,CAAQ,cAAA;AAAA,UAE1B,uBAAA,SAAgC,UAAA;EAC/C,OAAA,GAAU,oBAAA;AAAA;AAAA,UAGK,2BAAA,SAAoC,cAAA;EACnD,OAAA,EAAS,cAAA;AAAA;AAAA,KAGC,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-esbuild",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.468",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin to build projects using esbuild.",
|
|
6
6
|
"keywords": ["esbuild", "powerlines", "storm-software", "powerlines-plugin"],
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"peerDependencies": { "esbuild": ">=0.27.3" },
|
|
84
84
|
"peerDependenciesMeta": { "esbuild": { "optional": false } },
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@powerlines/core": "^0.
|
|
87
|
-
"@powerlines/unplugin": "^0.0.
|
|
86
|
+
"@powerlines/core": "^0.10.0",
|
|
87
|
+
"@powerlines/unplugin": "^0.0.8",
|
|
88
88
|
"@stryke/fs": "^0.33.75",
|
|
89
89
|
"@stryke/helpers": "^0.10.15",
|
|
90
90
|
"@stryke/path": "^0.29.2",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": { "@types/node": "^25.7.0", "esbuild": "^0.27.7" },
|
|
98
98
|
"publishConfig": { "access": "public" },
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "b5295d4093708060dda7987bee13eec141765a93"
|
|
100
100
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { t as EsbuildOptions } from "./build-VnV0tsb3.mjs";
|
|
2
|
-
import { PluginContext, ResolveOptions } from "@powerlines/core";
|
|
3
|
-
import { OutputFile } from "esbuild";
|
|
4
|
-
|
|
5
|
-
//#region src/helpers/bundle.d.ts
|
|
6
|
-
type BundleOptions = Partial<EsbuildOptions> & {
|
|
7
|
-
name?: string;
|
|
8
|
-
resolve?: Partial<ResolveOptions>;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Bundle a type definition to a module.
|
|
12
|
-
*
|
|
13
|
-
* @param context - The context object containing the environment paths.
|
|
14
|
-
* @param file - The file path to bundle.
|
|
15
|
-
* @param overrides - Optional overrides for the ESBuild configuration.
|
|
16
|
-
* @returns A promise that resolves to the bundled module.
|
|
17
|
-
*/
|
|
18
|
-
declare function bundle<TContext extends PluginContext = PluginContext>(context: TContext, file: string, overrides?: BundleOptions): Promise<OutputFile>;
|
|
19
|
-
declare type __ΩBundleOptions = any[];
|
|
20
|
-
//#endregion
|
|
21
|
-
export { __ΩBundleOptions as n, bundle as r, BundleOptions as t };
|
|
22
|
-
//# sourceMappingURL=bundle-A-22BjWv.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-A-22BjWv.d.mts","names":[],"sources":["../src/helpers/bundle.ts"],"mappings":";;;;;KAgCY,aAAA,GAAgB,OAAA,CAAQ,cAAA;EAClC,IAAA;EACA,OAAA,GAAU,OAAA,CAAQ,cAAA;AAAA;;;;;;;;;iBAWE,MAAA,kBAAwB,aAAA,GAAgB,aAAA,CAAA,CAC5D,OAAA,EAAS,QAAA,EACT,IAAA,UACA,SAAA,GAAW,aAAA,GACV,OAAA,CAAQ,UAAA;AAAA"}
|
package/dist/bundle-B_-jRFlM.cjs
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
-
key = keys[i];
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
-
__defProp(to, key, {
|
|
14
|
-
get: ((k) => from[k]).bind(null, key),
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
-
value: mod,
|
|
24
|
-
enumerable: true
|
|
25
|
-
}) : target, mod));
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
let _powerlines_unplugin_esbuild = require("@powerlines/unplugin/esbuild");
|
|
29
|
-
let defu = require("defu");
|
|
30
|
-
defu = __toESM(defu, 1);
|
|
31
|
-
let esbuild = require("esbuild");
|
|
32
|
-
let unplugin = require("unplugin");
|
|
33
|
-
let _powerlines_core_lib_unplugin = require("@powerlines/core/lib/unplugin");
|
|
34
|
-
let _stryke_helpers_omit = require("@stryke/helpers/omit");
|
|
35
|
-
let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
|
|
36
|
-
|
|
37
|
-
//#region src/helpers/bundle.ts
|
|
38
|
-
/**
|
|
39
|
-
* Bundle a type definition to a module.
|
|
40
|
-
*
|
|
41
|
-
* @param context - The context object containing the environment paths.
|
|
42
|
-
* @param file - The file path to bundle.
|
|
43
|
-
* @param overrides - Optional overrides for the ESBuild configuration.
|
|
44
|
-
* @returns A promise that resolves to the bundled module.
|
|
45
|
-
*/
|
|
46
|
-
async function bundle(context, file, overrides = {}) {
|
|
47
|
-
const path = await context.fs.resolve(file);
|
|
48
|
-
if (!path || !context.fs.existsSync(path)) throw new Error(`Module not found: "${file}". Please check the path and try again.`);
|
|
49
|
-
const result = await (0, esbuild.build)((0, defu.default)({
|
|
50
|
-
entryPoints: [path],
|
|
51
|
-
write: false,
|
|
52
|
-
sourcemap: false,
|
|
53
|
-
splitting: false,
|
|
54
|
-
treeShaking: true,
|
|
55
|
-
bundle: true,
|
|
56
|
-
packages: "bundle",
|
|
57
|
-
platform: "node",
|
|
58
|
-
logLevel: "silent",
|
|
59
|
-
...(0, _stryke_helpers_omit.omit)(overrides, ["name", "resolve"])
|
|
60
|
-
}, (0, _powerlines_unplugin_esbuild.resolveOptions)(context), { plugins: [(0, unplugin.createEsbuildPlugin)((0, _powerlines_core_lib_unplugin.createUnpluginResolver)(context, {
|
|
61
|
-
name: overrides.name ?? `${(0, _stryke_path_file_path_fns.findFileName)(file)} Bundler`,
|
|
62
|
-
prefix: false,
|
|
63
|
-
overrides: (0, defu.default)(overrides.resolve ?? {}, { skipNodeModulesBundle: false }, context.config.resolve),
|
|
64
|
-
silenceHookLogging: true
|
|
65
|
-
}))({ ...context.options })] }));
|
|
66
|
-
if (result.errors.length > 0) throw new Error(`Failed to bundle ${file}: ${result.errors.map((error) => error.text).join(", ")}`);
|
|
67
|
-
if (result.warnings.length > 0) context.warn(`Warnings while bundling ${file}: ${result.warnings.map((warning) => warning.text).join(", ")}`);
|
|
68
|
-
if (!result.outputFiles || result.outputFiles.filter(Boolean).length === 0) throw new Error(`No output files generated for ${file}. Please check the configuration and try again.`);
|
|
69
|
-
return result.outputFiles.filter(Boolean)[0];
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
//#endregion
|
|
73
|
-
Object.defineProperty(exports, '__toESM', {
|
|
74
|
-
enumerable: true,
|
|
75
|
-
get: function () {
|
|
76
|
-
return __toESM;
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
Object.defineProperty(exports, 'bundle', {
|
|
80
|
-
enumerable: true,
|
|
81
|
-
get: function () {
|
|
82
|
-
return bundle;
|
|
83
|
-
}
|
|
84
|
-
});
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { t as EsbuildOptions } from "./build-B8u-bRQt.cjs";
|
|
2
|
-
import { PluginContext, ResolveOptions } from "@powerlines/core";
|
|
3
|
-
import { OutputFile } from "esbuild";
|
|
4
|
-
|
|
5
|
-
//#region src/helpers/bundle.d.ts
|
|
6
|
-
type BundleOptions = Partial<EsbuildOptions> & {
|
|
7
|
-
name?: string;
|
|
8
|
-
resolve?: Partial<ResolveOptions>;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Bundle a type definition to a module.
|
|
12
|
-
*
|
|
13
|
-
* @param context - The context object containing the environment paths.
|
|
14
|
-
* @param file - The file path to bundle.
|
|
15
|
-
* @param overrides - Optional overrides for the ESBuild configuration.
|
|
16
|
-
* @returns A promise that resolves to the bundled module.
|
|
17
|
-
*/
|
|
18
|
-
declare function bundle<TContext extends PluginContext = PluginContext>(context: TContext, file: string, overrides?: BundleOptions): Promise<OutputFile>;
|
|
19
|
-
declare type __ΩBundleOptions = any[];
|
|
20
|
-
//#endregion
|
|
21
|
-
export { __ΩBundleOptions as n, bundle as r, BundleOptions as t };
|
|
22
|
-
//# sourceMappingURL=bundle-HmHLeZt2.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundle-HmHLeZt2.d.cts","names":[],"sources":["../src/helpers/bundle.ts"],"mappings":";;;;;KAgCY,aAAA,GAAgB,OAAA,CAAQ,cAAA;EAClC,IAAA;EACA,OAAA,GAAU,OAAA,CAAQ,cAAA;AAAA;;;;;;;;;iBAWE,MAAA,kBAAwB,aAAA,GAAgB,aAAA,CAAA,CAC5D,OAAA,EAAS,QAAA,EACT,IAAA,UACA,SAAA,GAAW,aAAA,GACV,OAAA,CAAQ,UAAA;AAAA"}
|
package/dist/helpers/bundle.cjs
DELETED
package/dist/helpers/bundle.mjs
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { resolveOptions } from "@powerlines/unplugin/esbuild";
|
|
2
|
-
import defu from "defu";
|
|
3
|
-
import { build } from "esbuild";
|
|
4
|
-
import { createEsbuildPlugin } from "unplugin";
|
|
5
|
-
import { createUnpluginResolver } from "@powerlines/core/lib/unplugin";
|
|
6
|
-
import { omit } from "@stryke/helpers/omit";
|
|
7
|
-
import { findFileName } from "@stryke/path/file-path-fns";
|
|
8
|
-
|
|
9
|
-
//#region src/helpers/bundle.ts
|
|
10
|
-
/**
|
|
11
|
-
* Bundle a type definition to a module.
|
|
12
|
-
*
|
|
13
|
-
* @param context - The context object containing the environment paths.
|
|
14
|
-
* @param file - The file path to bundle.
|
|
15
|
-
* @param overrides - Optional overrides for the ESBuild configuration.
|
|
16
|
-
* @returns A promise that resolves to the bundled module.
|
|
17
|
-
*/
|
|
18
|
-
async function bundle(context, file, overrides = {}) {
|
|
19
|
-
const path = await context.fs.resolve(file);
|
|
20
|
-
if (!path || !context.fs.existsSync(path)) throw new Error(`Module not found: "${file}". Please check the path and try again.`);
|
|
21
|
-
const result = await build(defu({
|
|
22
|
-
entryPoints: [path],
|
|
23
|
-
write: false,
|
|
24
|
-
sourcemap: false,
|
|
25
|
-
splitting: false,
|
|
26
|
-
treeShaking: true,
|
|
27
|
-
bundle: true,
|
|
28
|
-
packages: "bundle",
|
|
29
|
-
platform: "node",
|
|
30
|
-
logLevel: "silent",
|
|
31
|
-
...omit(overrides, ["name", "resolve"])
|
|
32
|
-
}, resolveOptions(context), { plugins: [createEsbuildPlugin(createUnpluginResolver(context, {
|
|
33
|
-
name: overrides.name ?? `${findFileName(file)} Bundler`,
|
|
34
|
-
prefix: false,
|
|
35
|
-
overrides: defu(overrides.resolve ?? {}, { skipNodeModulesBundle: false }, context.config.resolve),
|
|
36
|
-
silenceHookLogging: true
|
|
37
|
-
}))({ ...context.options })] }));
|
|
38
|
-
if (result.errors.length > 0) throw new Error(`Failed to bundle ${file}: ${result.errors.map((error) => error.text).join(", ")}`);
|
|
39
|
-
if (result.warnings.length > 0) context.warn(`Warnings while bundling ${file}: ${result.warnings.map((warning) => warning.text).join(", ")}`);
|
|
40
|
-
if (!result.outputFiles || result.outputFiles.filter(Boolean).length === 0) throw new Error(`No output files generated for ${file}. Please check the configuration and try again.`);
|
|
41
|
-
return result.outputFiles.filter(Boolean)[0];
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
//#endregion
|
|
45
|
-
export { bundle };
|
|
46
|
-
//# sourceMappingURL=bundle.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.mjs","names":[],"sources":["../../src/helpers/bundle.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type {\n CreateUnpluginResolverOptions,\n PluginContext,\n ResolveOptions\n} from \"@powerlines/core\";\nimport { createUnpluginResolver } from \"@powerlines/core/lib/unplugin\";\nimport { resolveOptions } from \"@powerlines/unplugin/esbuild\";\nimport { omit } from \"@stryke/helpers/omit\";\nimport { findFileName } from \"@stryke/path/file-path-fns\";\nimport defu from \"defu\";\nimport { build, OutputFile } from \"esbuild\";\nimport { createEsbuildPlugin } from \"unplugin\";\nimport { EsbuildOptions } from \"../types\";\n\nexport type BundleOptions = Partial<EsbuildOptions> & {\n name?: string;\n resolve?: Partial<ResolveOptions>;\n};\n\n/**\n * Bundle a type definition to a module.\n *\n * @param context - The context object containing the environment paths.\n * @param file - The file path to bundle.\n * @param overrides - Optional overrides for the ESBuild configuration.\n * @returns A promise that resolves to the bundled module.\n */\nexport async function bundle<TContext extends PluginContext = PluginContext>(\n context: TContext,\n file: string,\n overrides: BundleOptions = {}\n): Promise<OutputFile> {\n const path = await context.fs.resolve(file);\n if (!path || !context.fs.existsSync(path)) {\n throw new Error(\n `Module not found: \"${file}\". Please check the path and try again.`\n );\n }\n\n const result = await build(\n defu(\n {\n entryPoints: [path],\n write: false,\n sourcemap: false,\n splitting: false,\n treeShaking: true,\n bundle: true,\n packages: \"bundle\",\n platform: \"node\",\n logLevel: \"silent\",\n ...omit(overrides, [\"name\", \"resolve\"])\n },\n resolveOptions(context),\n {\n plugins: [\n createEsbuildPlugin(\n createUnpluginResolver(context, {\n name: overrides.name ?? `${findFileName(file)} Bundler`,\n prefix: false,\n overrides: defu(\n overrides.resolve ?? {},\n { skipNodeModulesBundle: false },\n context.config.resolve\n ),\n silenceHookLogging: true\n } as CreateUnpluginResolverOptions)\n )({\n ...context.options\n })\n ]\n }\n )\n );\n if (result.errors.length > 0) {\n throw new Error(\n `Failed to bundle ${file}: ${result.errors\n .map(error => error.text)\n .join(\", \")}`\n );\n }\n if (result.warnings.length > 0) {\n context.warn(\n `Warnings while bundling ${file}: ${result.warnings\n .map(warning => warning.text)\n .join(\", \")}`\n );\n }\n if (!result.outputFiles || result.outputFiles.filter(Boolean).length === 0) {\n throw new Error(\n `No output files generated for ${\n file\n }. Please check the configuration and try again.`\n );\n }\n\n return result.outputFiles.filter(Boolean)[0]!;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AA6CA,eAAsB,OACpB,SACA,MACA,YAA2B,EAAE,EACR;CACrB,MAAM,OAAO,MAAM,QAAQ,GAAG,QAAQ,KAAK;AAC3C,KAAI,CAAC,QAAQ,CAAC,QAAQ,GAAG,WAAW,KAAK,CACvC,OAAM,IAAI,MACR,sBAAsB,KAAK,yCAC5B;CAGH,MAAM,SAAS,MAAM,MACnB,KACE;EACE,aAAa,CAAC,KAAK;EACnB,OAAO;EACP,WAAW;EACX,WAAW;EACX,aAAa;EACb,QAAQ;EACR,UAAU;EACV,UAAU;EACV,UAAU;EACV,GAAG,KAAK,WAAW,CAAC,QAAQ,UAAU,CAAC;EACxC,EACD,eAAe,QAAQ,EACvB,EACE,SAAS,CACP,oBACE,uBAAuB,SAAS;EAC9B,MAAM,UAAU,QAAQ,GAAG,aAAa,KAAK,CAAC;EAC9C,QAAQ;EACR,WAAW,KACT,UAAU,WAAW,EAAE,EACvB,EAAE,uBAAuB,OAAO,EAChC,QAAQ,OAAO,QAChB;EACD,oBAAoB;EACrB,CAAkC,CACpC,CAAC,EACA,GAAG,QAAQ,SACZ,CAAC,CACH,EACF,CACF,CACF;AACD,KAAI,OAAO,OAAO,SAAS,EACzB,OAAM,IAAI,MACR,oBAAoB,KAAK,IAAI,OAAO,OACjC,KAAI,UAAS,MAAM,KAAK,CACxB,KAAK,KAAK,GACd;AAEH,KAAI,OAAO,SAAS,SAAS,EAC3B,SAAQ,KACN,2BAA2B,KAAK,IAAI,OAAO,SACxC,KAAI,YAAW,QAAQ,KAAK,CAC5B,KAAK,KAAK,GACd;AAEH,KAAI,CAAC,OAAO,eAAe,OAAO,YAAY,OAAO,QAAQ,CAAC,WAAW,EACvE,OAAM,IAAI,MACR,iCACE,KACD,iDACF;AAGH,QAAO,OAAO,YAAY,OAAO,QAAQ,CAAC"}
|
package/dist/helpers/index.cjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_bundle = require('../bundle-B_-jRFlM.cjs');
|
|
3
|
-
const require_helpers_resolve = require('./resolve.cjs');
|
|
4
|
-
|
|
5
|
-
exports.bundle = require_bundle.bundle;
|
|
6
|
-
exports.resolve = require_helpers_resolve.resolve;
|
|
7
|
-
exports.resolveModule = require_helpers_resolve.resolveModule;
|
package/dist/helpers/index.d.cts
DELETED
package/dist/helpers/index.d.mts
DELETED
package/dist/helpers/index.mjs
DELETED
package/dist/helpers/resolve.cjs
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_bundle = require('../bundle-B_-jRFlM.cjs');
|
|
3
|
-
let _stryke_convert_parse_type_definition = require("@stryke/convert/parse-type-definition");
|
|
4
|
-
let _stryke_path_find = require("@stryke/path/find");
|
|
5
|
-
let _stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
|
|
6
|
-
|
|
7
|
-
//#region src/helpers/resolve.ts
|
|
8
|
-
/**
|
|
9
|
-
* Compiles a type definition to a module and returns the module.
|
|
10
|
-
*
|
|
11
|
-
* @param context - The context object containing the environment paths.
|
|
12
|
-
* @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.
|
|
13
|
-
* @param overrides - Optional overrides for the ESBuild configuration.
|
|
14
|
-
* @returns A promise that resolves to the compiled module.
|
|
15
|
-
*/
|
|
16
|
-
async function resolveModule(context, type, overrides) {
|
|
17
|
-
let typeDefinition;
|
|
18
|
-
if ((0, _stryke_type_checks_is_set_string.isSetString)(type)) typeDefinition = (0, _stryke_convert_parse_type_definition.parseTypeDefinition)(type);
|
|
19
|
-
else typeDefinition = type;
|
|
20
|
-
const result = await require_bundle.bundle(context, typeDefinition.file, overrides);
|
|
21
|
-
let resolved;
|
|
22
|
-
try {
|
|
23
|
-
resolved = await context.resolver.evalModule(result.text, {
|
|
24
|
-
filename: result.path,
|
|
25
|
-
ext: (0, _stryke_path_find.findFileDotExtension)(result.path)
|
|
26
|
-
});
|
|
27
|
-
} catch (error) {
|
|
28
|
-
if ((0, _stryke_type_checks_is_set_string.isSetString)(error.message) && new RegExp(`Cannot find module '${context.config.framework?.name || "powerlines"}:.*'`).test(error.message)) {
|
|
29
|
-
const moduleName = error.message.match(new RegExp(`Cannot find module '(${context.config.framework?.name || "powerlines"}:.*)'`))?.[1];
|
|
30
|
-
throw new Error(`The module "${moduleName}" could not be resolved while evaluating "${typeDefinition.file}". It is possible the required built-in modules have not yet been generated. Please check the order of your plugins. ${context.config.logLevel.general === "debug" || context.config.logLevel.general === "trace" ? `
|
|
31
|
-
|
|
32
|
-
Bundle output for module:
|
|
33
|
-
${result.text}` : ""}`);
|
|
34
|
-
}
|
|
35
|
-
throw new Error(`Failed to evaluate the bundled module for "${typeDefinition.file}". Error: ${error.message}${context.config.logLevel.general === "debug" || context.config.logLevel.general === "trace" ? `
|
|
36
|
-
|
|
37
|
-
Bundle output for module:
|
|
38
|
-
${result.text}` : ""}`);
|
|
39
|
-
}
|
|
40
|
-
return resolved;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Compiles a type definition to a module and returns the specified export from the module.
|
|
44
|
-
*
|
|
45
|
-
* @param context - The context object containing the environment paths.
|
|
46
|
-
* @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.
|
|
47
|
-
* @param overrides - Optional overrides for the ESBuild configuration.
|
|
48
|
-
* @returns A promise that resolves to the compiled module.
|
|
49
|
-
*/
|
|
50
|
-
async function resolve(context, type, overrides) {
|
|
51
|
-
let typeDefinition;
|
|
52
|
-
if ((0, _stryke_type_checks_is_set_string.isSetString)(type)) typeDefinition = (0, _stryke_convert_parse_type_definition.parseTypeDefinition)(type);
|
|
53
|
-
else typeDefinition = type;
|
|
54
|
-
const resolved = await resolveModule(context, typeDefinition, overrides);
|
|
55
|
-
let exportName = typeDefinition.name;
|
|
56
|
-
if (!exportName) exportName = "default";
|
|
57
|
-
const resolvedExport = resolved[exportName] ?? resolved[`__Ω${exportName}`];
|
|
58
|
-
if (resolvedExport === void 0) throw new Error(`The export "${exportName}" could not be resolved in the "${typeDefinition.file}" module. ${Object.keys(resolved).length === 0 ? `After bundling, no exports were found in the module. Please ensure that the "${typeDefinition.file}" module has a "${exportName}" export with the desired value.` : `After bundling, the available exports were: ${Object.keys(resolved).join(", ")}. Please ensure that the export exists and is correctly named.`}`);
|
|
59
|
-
return resolvedExport;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
//#endregion
|
|
63
|
-
exports.resolve = resolve;
|
|
64
|
-
exports.resolveModule = resolveModule;
|
package/dist/helpers/resolve.mjs
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { bundle } from "./bundle.mjs";
|
|
2
|
-
import { parseTypeDefinition } from "@stryke/convert/parse-type-definition";
|
|
3
|
-
import { findFileDotExtension } from "@stryke/path/find";
|
|
4
|
-
import { isSetString } from "@stryke/type-checks/is-set-string";
|
|
5
|
-
|
|
6
|
-
//#region src/helpers/resolve.ts
|
|
7
|
-
/**
|
|
8
|
-
* Compiles a type definition to a module and returns the module.
|
|
9
|
-
*
|
|
10
|
-
* @param context - The context object containing the environment paths.
|
|
11
|
-
* @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.
|
|
12
|
-
* @param overrides - Optional overrides for the ESBuild configuration.
|
|
13
|
-
* @returns A promise that resolves to the compiled module.
|
|
14
|
-
*/
|
|
15
|
-
async function resolveModule(context, type, overrides) {
|
|
16
|
-
let typeDefinition;
|
|
17
|
-
if (isSetString(type)) typeDefinition = parseTypeDefinition(type);
|
|
18
|
-
else typeDefinition = type;
|
|
19
|
-
const result = await bundle(context, typeDefinition.file, overrides);
|
|
20
|
-
let resolved;
|
|
21
|
-
try {
|
|
22
|
-
resolved = await context.resolver.evalModule(result.text, {
|
|
23
|
-
filename: result.path,
|
|
24
|
-
ext: findFileDotExtension(result.path)
|
|
25
|
-
});
|
|
26
|
-
} catch (error) {
|
|
27
|
-
if (isSetString(error.message) && new RegExp(`Cannot find module '${context.config.framework?.name || "powerlines"}:.*'`).test(error.message)) {
|
|
28
|
-
const moduleName = error.message.match(new RegExp(`Cannot find module '(${context.config.framework?.name || "powerlines"}:.*)'`))?.[1];
|
|
29
|
-
throw new Error(`The module "${moduleName}" could not be resolved while evaluating "${typeDefinition.file}". It is possible the required built-in modules have not yet been generated. Please check the order of your plugins. ${context.config.logLevel.general === "debug" || context.config.logLevel.general === "trace" ? `
|
|
30
|
-
|
|
31
|
-
Bundle output for module:
|
|
32
|
-
${result.text}` : ""}`);
|
|
33
|
-
}
|
|
34
|
-
throw new Error(`Failed to evaluate the bundled module for "${typeDefinition.file}". Error: ${error.message}${context.config.logLevel.general === "debug" || context.config.logLevel.general === "trace" ? `
|
|
35
|
-
|
|
36
|
-
Bundle output for module:
|
|
37
|
-
${result.text}` : ""}`);
|
|
38
|
-
}
|
|
39
|
-
return resolved;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Compiles a type definition to a module and returns the specified export from the module.
|
|
43
|
-
*
|
|
44
|
-
* @param context - The context object containing the environment paths.
|
|
45
|
-
* @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.
|
|
46
|
-
* @param overrides - Optional overrides for the ESBuild configuration.
|
|
47
|
-
* @returns A promise that resolves to the compiled module.
|
|
48
|
-
*/
|
|
49
|
-
async function resolve(context, type, overrides) {
|
|
50
|
-
let typeDefinition;
|
|
51
|
-
if (isSetString(type)) typeDefinition = parseTypeDefinition(type);
|
|
52
|
-
else typeDefinition = type;
|
|
53
|
-
const resolved = await resolveModule(context, typeDefinition, overrides);
|
|
54
|
-
let exportName = typeDefinition.name;
|
|
55
|
-
if (!exportName) exportName = "default";
|
|
56
|
-
const resolvedExport = resolved[exportName] ?? resolved[`__Ω${exportName}`];
|
|
57
|
-
if (resolvedExport === void 0) throw new Error(`The export "${exportName}" could not be resolved in the "${typeDefinition.file}" module. ${Object.keys(resolved).length === 0 ? `After bundling, no exports were found in the module. Please ensure that the "${typeDefinition.file}" module has a "${exportName}" export with the desired value.` : `After bundling, the available exports were: ${Object.keys(resolved).join(", ")}. Please ensure that the export exists and is correctly named.`}`);
|
|
58
|
-
return resolvedExport;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
//#endregion
|
|
62
|
-
export { resolve, resolveModule };
|
|
63
|
-
//# sourceMappingURL=resolve.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve.mjs","names":[],"sources":["../../src/helpers/resolve.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { PluginContext } from \"@powerlines/core\";\nimport { parseTypeDefinition } from \"@stryke/convert/parse-type-definition\";\nimport { findFileDotExtension } from \"@stryke/path/find\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport {\n TypeDefinition,\n TypeDefinitionParameter\n} from \"@stryke/types/configuration\";\nimport { bundle, BundleOptions } from \"./bundle\";\n\n/**\n * Compiles a type definition to a module and returns the module.\n *\n * @param context - The context object containing the environment paths.\n * @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.\n * @param overrides - Optional overrides for the ESBuild configuration.\n * @returns A promise that resolves to the compiled module.\n */\nexport async function resolveModule<\n TResult,\n TContext extends PluginContext = PluginContext\n>(\n context: TContext,\n type: TypeDefinitionParameter,\n overrides?: BundleOptions\n): Promise<TResult> {\n let typeDefinition!: TypeDefinition;\n if (isSetString(type)) {\n typeDefinition = parseTypeDefinition(type) as TypeDefinition;\n } else {\n typeDefinition = type;\n }\n\n const result = await bundle<TContext>(\n context,\n typeDefinition.file,\n overrides\n );\n\n let resolved: any;\n try {\n resolved = await context.resolver.evalModule(result.text, {\n filename: result.path,\n ext: findFileDotExtension(result.path)\n });\n } catch (error) {\n if (\n isSetString((error as Error).message) &&\n new RegExp(\n `Cannot find module '${context.config.framework?.name || \"powerlines\"}:.*'`\n ).test((error as Error).message)\n ) {\n const moduleName = (error as Error).message.match(\n new RegExp(\n `Cannot find module '(${context.config.framework?.name || \"powerlines\"}:.*)'`\n )\n )?.[1];\n throw new Error(\n `The module \"${moduleName}\" could not be resolved while evaluating \"${\n typeDefinition.file\n }\". It is possible the required built-in modules have not yet been generated. Please check the order of your plugins. ${\n context.config.logLevel.general === \"debug\" ||\n context.config.logLevel.general === \"trace\"\n ? `\n\nBundle output for module:\n${result.text}`\n : \"\"\n }`\n );\n }\n\n throw new Error(\n `Failed to evaluate the bundled module for \"${\n typeDefinition.file\n }\". Error: ${(error as Error).message}${\n context.config.logLevel.general === \"debug\" ||\n context.config.logLevel.general === \"trace\"\n ? `\n\nBundle output for module:\n${result.text}`\n : \"\"\n }`\n );\n }\n\n return resolved;\n}\n\n/**\n * Compiles a type definition to a module and returns the specified export from the module.\n *\n * @param context - The context object containing the environment paths.\n * @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.\n * @param overrides - Optional overrides for the ESBuild configuration.\n * @returns A promise that resolves to the compiled module.\n */\nexport async function resolve<\n TResult,\n TContext extends PluginContext = PluginContext\n>(\n context: TContext,\n type: TypeDefinitionParameter,\n overrides?: BundleOptions\n): Promise<TResult> {\n let typeDefinition!: TypeDefinition;\n if (isSetString(type)) {\n typeDefinition = parseTypeDefinition(type) as TypeDefinition;\n } else {\n typeDefinition = type;\n }\n\n const resolved = await resolveModule<Record<string, any>, TContext>(\n context,\n typeDefinition,\n overrides\n );\n\n let exportName = typeDefinition.name;\n if (!exportName) {\n exportName = \"default\";\n }\n\n const resolvedExport = resolved[exportName] ?? resolved[`__Ω${exportName}`];\n if (resolvedExport === undefined) {\n throw new Error(\n `The export \"${exportName}\" could not be resolved in the \"${\n typeDefinition.file\n }\" module. ${\n Object.keys(resolved).length === 0\n ? `After bundling, no exports were found in the module. Please ensure that the \"${\n typeDefinition.file\n }\" module has a \"${exportName}\" export with the desired value.`\n : `After bundling, the available exports were: ${Object.keys(\n resolved\n ).join(\n \", \"\n )}. Please ensure that the export exists and is correctly named.`\n }`\n );\n }\n\n return resolvedExport;\n}\n"],"mappings":";;;;;;;;;;;;;;AAoCA,eAAsB,cAIpB,SACA,MACA,WACkB;CAClB,IAAI;AACJ,KAAI,YAAY,KAAK,CACnB,kBAAiB,oBAAoB,KAAK;KAE1C,kBAAiB;CAGnB,MAAM,SAAS,MAAM,OACnB,SACA,eAAe,MACf,UACD;CAED,IAAI;AACJ,KAAI;AACF,aAAW,MAAM,QAAQ,SAAS,WAAW,OAAO,MAAM;GACxD,UAAU,OAAO;GACjB,KAAK,qBAAqB,OAAO,KAAK;GACvC,CAAC;UACK,OAAO;AACd,MACE,YAAa,MAAgB,QAAQ,IACrC,IAAI,OACF,uBAAuB,QAAQ,OAAO,WAAW,QAAQ,aAAa,MACvE,CAAC,KAAM,MAAgB,QAAQ,EAChC;GACA,MAAM,aAAc,MAAgB,QAAQ,MAC1C,IAAI,OACF,wBAAwB,QAAQ,OAAO,WAAW,QAAQ,aAAa,OACxE,CACF,GAAG;AACJ,SAAM,IAAI,MACR,eAAe,WAAW,4CACxB,eAAe,KAChB,uHACC,QAAQ,OAAO,SAAS,YAAY,WACpC,QAAQ,OAAO,SAAS,YAAY,UAChC;;;EAGZ,OAAO,SACK,KAEP;;AAGH,QAAM,IAAI,MACR,8CACE,eAAe,KAChB,YAAa,MAAgB,UAC5B,QAAQ,OAAO,SAAS,YAAY,WACpC,QAAQ,OAAO,SAAS,YAAY,UAChC;;;EAGV,OAAO,SACG,KAEP;;AAGH,QAAO;;;;;;;;;;AAWT,eAAsB,QAIpB,SACA,MACA,WACkB;CAClB,IAAI;AACJ,KAAI,YAAY,KAAK,CACnB,kBAAiB,oBAAoB,KAAK;KAE1C,kBAAiB;CAGnB,MAAM,WAAW,MAAM,cACrB,SACA,gBACA,UACD;CAED,IAAI,aAAa,eAAe;AAChC,KAAI,CAAC,WACH,cAAa;CAGf,MAAM,iBAAiB,SAAS,eAAe,SAAS,MAAM;AAC9D,KAAI,mBAAmB,OACrB,OAAM,IAAI,MACR,eAAe,WAAW,kCACxB,eAAe,KAChB,YACC,OAAO,KAAK,SAAS,CAAC,WAAW,IAC7B,gFACE,eAAe,KAChB,kBAAkB,WAAW,oCAC9B,+CAA+C,OAAO,KACpD,SACD,CAAC,KACA,KACD,CAAC,kEAET;AAGH,QAAO"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { t as EsbuildOptions } from "./build-VnV0tsb3.mjs";
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
|
-
|
|
4
|
-
//#region src/types/plugin.d.ts
|
|
5
|
-
type EsbuildPluginOptions = Partial<EsbuildOptions>;
|
|
6
|
-
interface EsbuildPluginUserConfig extends UserConfig {
|
|
7
|
-
esbuild?: EsbuildPluginOptions;
|
|
8
|
-
}
|
|
9
|
-
interface EsbuildPluginResolvedConfig extends ResolvedConfig {
|
|
10
|
-
esbuild: EsbuildOptions;
|
|
11
|
-
}
|
|
12
|
-
type EsbuildPluginContext<TResolvedConfig extends EsbuildPluginResolvedConfig = EsbuildPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
13
|
-
declare type __ΩEsbuildPluginOptions = any[];
|
|
14
|
-
declare type __ΩEsbuildPluginUserConfig = any[];
|
|
15
|
-
declare type __ΩEsbuildPluginResolvedConfig = any[];
|
|
16
|
-
declare type __ΩEsbuildPluginContext = any[];
|
|
17
|
-
//#endregion
|
|
18
|
-
export { __ΩEsbuildPluginContext as a, __ΩEsbuildPluginUserConfig as c, EsbuildPluginUserConfig as i, EsbuildPluginOptions as n, __ΩEsbuildPluginOptions as o, EsbuildPluginResolvedConfig as r, __ΩEsbuildPluginResolvedConfig as s, EsbuildPluginContext as t };
|
|
19
|
-
//# sourceMappingURL=plugin-BuKZtP7s.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-BuKZtP7s.d.mts","names":[],"sources":["../src/types/plugin.ts"],"mappings":";;;;KAqBY,oBAAA,GAAuB,OAAA,CAAQ,cAAA;AAAA,UAE1B,uBAAA,SAAgC,UAAA;EAC/C,OAAA,GAAU,oBAAA;AAAA;AAAA,UAGK,2BAAA,SAAoC,cAAA;EACnD,OAAA,EAAS,cAAA;AAAA;AAAA,KAGC,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { t as EsbuildOptions } from "./build-B8u-bRQt.cjs";
|
|
2
|
-
import { PluginContext, ResolvedConfig, UserConfig } from "@powerlines/core";
|
|
3
|
-
|
|
4
|
-
//#region src/types/plugin.d.ts
|
|
5
|
-
type EsbuildPluginOptions = Partial<EsbuildOptions>;
|
|
6
|
-
interface EsbuildPluginUserConfig extends UserConfig {
|
|
7
|
-
esbuild?: EsbuildPluginOptions;
|
|
8
|
-
}
|
|
9
|
-
interface EsbuildPluginResolvedConfig extends ResolvedConfig {
|
|
10
|
-
esbuild: EsbuildOptions;
|
|
11
|
-
}
|
|
12
|
-
type EsbuildPluginContext<TResolvedConfig extends EsbuildPluginResolvedConfig = EsbuildPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
13
|
-
declare type __ΩEsbuildPluginOptions = any[];
|
|
14
|
-
declare type __ΩEsbuildPluginUserConfig = any[];
|
|
15
|
-
declare type __ΩEsbuildPluginResolvedConfig = any[];
|
|
16
|
-
declare type __ΩEsbuildPluginContext = any[];
|
|
17
|
-
//#endregion
|
|
18
|
-
export { __ΩEsbuildPluginContext as a, __ΩEsbuildPluginUserConfig as c, EsbuildPluginUserConfig as i, EsbuildPluginOptions as n, __ΩEsbuildPluginOptions as o, EsbuildPluginResolvedConfig as r, __ΩEsbuildPluginResolvedConfig as s, EsbuildPluginContext as t };
|
|
19
|
-
//# sourceMappingURL=plugin-g0pkWAvQ.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-g0pkWAvQ.d.cts","names":[],"sources":["../src/types/plugin.ts"],"mappings":";;;;KAqBY,oBAAA,GAAuB,OAAA,CAAQ,cAAA;AAAA,UAE1B,uBAAA,SAAgC,UAAA;EAC/C,OAAA,GAAU,oBAAA;AAAA;AAAA,UAGK,2BAAA,SAAoC,cAAA;EACnD,OAAA,EAAS,cAAA;AAAA;AAAA,KAGC,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,aAAA,CAAc,eAAA;AAAA"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { t as BundleOptions } from "./bundle-A-22BjWv.mjs";
|
|
2
|
-
import { PluginContext } from "@powerlines/core";
|
|
3
|
-
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
4
|
-
|
|
5
|
-
//#region src/helpers/resolve.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* Compiles a type definition to a module and returns the module.
|
|
8
|
-
*
|
|
9
|
-
* @param context - The context object containing the environment paths.
|
|
10
|
-
* @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.
|
|
11
|
-
* @param overrides - Optional overrides for the ESBuild configuration.
|
|
12
|
-
* @returns A promise that resolves to the compiled module.
|
|
13
|
-
*/
|
|
14
|
-
declare function resolveModule<TResult, TContext extends PluginContext = PluginContext>(context: TContext, type: TypeDefinitionParameter, overrides?: BundleOptions): Promise<TResult>;
|
|
15
|
-
/**
|
|
16
|
-
* Compiles a type definition to a module and returns the specified export from the module.
|
|
17
|
-
*
|
|
18
|
-
* @param context - The context object containing the environment paths.
|
|
19
|
-
* @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.
|
|
20
|
-
* @param overrides - Optional overrides for the ESBuild configuration.
|
|
21
|
-
* @returns A promise that resolves to the compiled module.
|
|
22
|
-
*/
|
|
23
|
-
declare function resolve<TResult, TContext extends PluginContext = PluginContext>(context: TContext, type: TypeDefinitionParameter, overrides?: BundleOptions): Promise<TResult>;
|
|
24
|
-
//#endregion
|
|
25
|
-
export { resolveModule as n, resolve as t };
|
|
26
|
-
//# sourceMappingURL=resolve-DGrNGKUw.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-DGrNGKUw.d.mts","names":[],"sources":["../src/helpers/resolve.ts"],"mappings":";;;;;;;AAoCA;;;;;;iBAAsB,aAAA,2BAEH,aAAA,GAAgB,aAAA,CAAA,CAEjC,OAAA,EAAS,QAAA,EACT,IAAA,EAAM,uBAAA,EACN,SAAA,GAAY,aAAA,GACX,OAAA,CAAQ,OAAA;;;;;;;;;iBAyEW,OAAA,2BAEH,aAAA,GAAgB,aAAA,CAAA,CAEjC,OAAA,EAAS,QAAA,EACT,IAAA,EAAM,uBAAA,EACN,SAAA,GAAY,aAAA,GACX,OAAA,CAAQ,OAAA"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { t as BundleOptions } from "./bundle-HmHLeZt2.cjs";
|
|
2
|
-
import { PluginContext } from "@powerlines/core";
|
|
3
|
-
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
4
|
-
|
|
5
|
-
//#region src/helpers/resolve.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* Compiles a type definition to a module and returns the module.
|
|
8
|
-
*
|
|
9
|
-
* @param context - The context object containing the environment paths.
|
|
10
|
-
* @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.
|
|
11
|
-
* @param overrides - Optional overrides for the ESBuild configuration.
|
|
12
|
-
* @returns A promise that resolves to the compiled module.
|
|
13
|
-
*/
|
|
14
|
-
declare function resolveModule<TResult, TContext extends PluginContext = PluginContext>(context: TContext, type: TypeDefinitionParameter, overrides?: BundleOptions): Promise<TResult>;
|
|
15
|
-
/**
|
|
16
|
-
* Compiles a type definition to a module and returns the specified export from the module.
|
|
17
|
-
*
|
|
18
|
-
* @param context - The context object containing the environment paths.
|
|
19
|
-
* @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.
|
|
20
|
-
* @param overrides - Optional overrides for the ESBuild configuration.
|
|
21
|
-
* @returns A promise that resolves to the compiled module.
|
|
22
|
-
*/
|
|
23
|
-
declare function resolve<TResult, TContext extends PluginContext = PluginContext>(context: TContext, type: TypeDefinitionParameter, overrides?: BundleOptions): Promise<TResult>;
|
|
24
|
-
//#endregion
|
|
25
|
-
export { resolveModule as n, resolve as t };
|
|
26
|
-
//# sourceMappingURL=resolve-uvDtu7oi.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-uvDtu7oi.d.cts","names":[],"sources":["../src/helpers/resolve.ts"],"mappings":";;;;;;;AAoCA;;;;;;iBAAsB,aAAA,2BAEH,aAAA,GAAgB,aAAA,CAAA,CAEjC,OAAA,EAAS,QAAA,EACT,IAAA,EAAM,uBAAA,EACN,SAAA,GAAY,aAAA,GACX,OAAA,CAAQ,OAAA;;;;;;;;;iBAyEW,OAAA,2BAEH,aAAA,GAAgB,aAAA,CAAA,CAEjC,OAAA,EAAS,QAAA,EACT,IAAA,EAAM,uBAAA,EACN,SAAA,GAAY,aAAA,GACX,OAAA,CAAQ,OAAA"}
|