@powerlines/plugin-marked 0.1.306 → 0.1.308

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/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the <b>🔌 Powerlines</b> monorepo. Powerlines is the "
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.1.299-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/powerlines)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/powerlines/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-0.1.306-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/powerlines)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/powerlines/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -58,21 +58,19 @@ A Powerlines plugin to generate project code with [Marked](https://marked.js.org
58
58
 
59
59
  ## Table of Contents
60
60
 
61
- - [Powerlines - Marked Plugin](#powerlines---marked-plugin)
62
- - [Table of Contents](#table-of-contents)
63
- - [Installing](#installing)
64
- - [Reduced Package Size](#reduced-package-size)
65
- - [Development](#development)
66
- - [Building](#building)
67
- - [Running unit tests](#running-unit-tests)
68
- - [Linting](#linting)
69
- - [Storm Workspaces](#storm-workspaces)
70
- - [Roadmap](#roadmap)
71
- - [Support](#support)
72
- - [License](#license)
73
- - [Changelog](#changelog)
74
- - [Contributing](#contributing)
75
- - [Contributors](#contributors)
61
+ - [Installing](#installing)
62
+ - [Reduced Package Size](#reduced-package-size)
63
+ - [Development](#development)
64
+ - [Building](#building)
65
+ - [Running unit tests](#running-unit-tests)
66
+ - [Linting](#linting)
67
+ - [Storm Workspaces](#storm-workspaces)
68
+ - [Roadmap](#roadmap)
69
+ - [Support](#support)
70
+ - [License](#license)
71
+ - [Changelog](#changelog)
72
+ - [Contributing](#contributing)
73
+ - [Contributors](#contributors)
76
74
 
77
75
  <!-- END doctoc -->
78
76
 
@@ -1,4 +1,4 @@
1
- //#region rolldown:runtime
1
+ //#region \0rolldown/runtime.js
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -0,0 +1,3 @@
1
+ import "node:module";
2
+
3
+ export { };
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
3
- const require_marked_esm = require('./node_modules/.pnpm/marked@17.0.4/node_modules/marked/lib/marked.esm.cjs');
1
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
+ const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
4
3
  let defu = require("defu");
5
- defu = require_rolldown_runtime.__toESM(defu);
4
+ defu = require_runtime.__toESM(defu);
5
+ let marked = require("marked");
6
6
 
7
7
  //#region src/index.ts
8
8
  /**
@@ -29,13 +29,12 @@ const plugin = (options = {}) => {
29
29
  },
30
30
  async configResolved() {
31
31
  this.marked ??= {};
32
- this.marked.parse ??= async (src, override = {}) => require_marked_esm.g.parse(src, (0, defu.default)(override, this.config.marked));
33
- this.marked.use ??= (...args) => require_marked_esm.g.use(...args);
32
+ this.marked.parse ??= async (src, override = {}) => marked.marked.parse(src, (0, defu.default)(override, this.config.marked));
33
+ this.marked.use ??= (...args) => marked.marked.use(...args);
34
34
  }
35
35
  };
36
36
  };
37
- var src_default = plugin;
38
37
 
39
38
  //#endregion
40
- exports.default = src_default;
39
+ exports.default = plugin;
41
40
  exports.plugin = plugin;
package/dist/index.d.cts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { MarkedPluginContext, MarkedPluginOptions, MarkedPluginResolvedConfig, MarkedPluginUserConfig } from "./types/plugin.cjs";
2
- import "./types/index.cjs";
3
2
  import { Plugin } from "powerlines";
4
3
 
5
4
  //#region src/index.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IA2BwB,MAAA,CAAA,EAIX,mBAJW;EAAA;;;;AAmBxB;;;;;;;;;cAAa,0BACM,sBAAsB,+BAE9B,wBACR,OAAO"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YA8BY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;AAAA;;;;;;;;AAeb;;;;cAAa,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
package/dist/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { MarkedPluginContext, MarkedPluginOptions, MarkedPluginResolvedConfig, MarkedPluginUserConfig } from "./types/plugin.mjs";
2
- import "./types/index.mjs";
3
2
  import { Plugin } from "powerlines";
4
3
 
5
4
  //#region src/index.d.ts
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IA2BwB,MAAA,CAAA,EAIX,mBAJW;EAAA;;;;AAmBxB;;;;;;;;;cAAa,0BACM,sBAAsB,+BAE9B,wBACR,OAAO"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YA8BY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;AAAA;;;;;;;;AAeb;;;;cAAa,MAAA,oBACM,mBAAA,GAAsB,mBAAA,EAEvC,OAAA,GAAS,mBAAA,KACR,MAAA,CAAO,QAAA"}
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { g } from "./node_modules/.pnpm/marked@17.0.4/node_modules/marked/lib/marked.esm.mjs";
2
1
  import defu from "defu";
2
+ import { marked } from "marked";
3
3
 
4
4
  //#region src/index.ts
5
5
  /**
@@ -26,13 +26,12 @@ const plugin = (options = {}) => {
26
26
  },
27
27
  async configResolved() {
28
28
  this.marked ??= {};
29
- this.marked.parse ??= async (src, override = {}) => g.parse(src, defu(override, this.config.marked));
30
- this.marked.use ??= (...args) => g.use(...args);
29
+ this.marked.parse ??= async (src, override = {}) => marked.parse(src, defu(override, this.config.marked));
30
+ this.marked.use ??= (...args) => marked.use(...args);
31
31
  }
32
32
  };
33
33
  };
34
- var src_default = plugin;
35
34
 
36
35
  //#endregion
37
- export { src_default as default, plugin };
36
+ export { plugin as default, plugin };
38
37
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["marked"],"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 defu from \"defu\";\nimport { marked, MarkedExtension, MarkedOptions } from \"marked\";\nimport { Plugin } from \"powerlines\";\nimport {\n MarkedPluginContext,\n MarkedPluginOptions,\n MarkedPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n marked?: MarkedPluginOptions;\n }\n}\n\n/**\n * Marked Plugin\n *\n * @remarks\n * A Powerlines plugin to use the Marked markdown transformer during the prepare task.\n *\n * @see https://marked.js.org\n *\n * @param options - The plugin options.\n * @returns A Powerlines plugin instance.\n */\nexport const plugin = <\n TContext extends MarkedPluginContext = MarkedPluginContext\n>(\n options: MarkedPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"marked\",\n async config() {\n return {\n marked: defu(options, {\n async: true,\n breaks: true,\n gfm: true,\n silent: !this.config.logLevel\n })\n } as Partial<MarkedPluginUserConfig>;\n },\n async configResolved() {\n this.marked ??= {} as TContext[\"marked\"];\n this.marked.parse ??= async (\n src: string,\n override: Partial<MarkedOptions> = {}\n ) =>\n marked.parse(src, defu(override, this.config.marked) as MarkedOptions);\n this.marked.use ??= (...args: MarkedExtension[]) => marked.use(...args);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;AA8CA,MAAa,UAGX,UAA+B,EAAE,KACZ;AACrB,QAAO;EACL,MAAM;EACN,MAAM,SAAS;AACb,UAAO,EACL,QAAQ,KAAK,SAAS;IACpB,OAAO;IACP,QAAQ;IACR,KAAK;IACL,QAAQ,CAAC,KAAK,OAAO;IACtB,CAAC,EACH;;EAEH,MAAM,iBAAiB;AACrB,QAAK,WAAW,EAAE;AAClB,QAAK,OAAO,UAAU,OACpB,KACA,WAAmC,EAAE,KAErCA,EAAO,MAAM,KAAK,KAAK,UAAU,KAAK,OAAO,OAAO,CAAkB;AACxE,QAAK,OAAO,SAAS,GAAG,SAA4BA,EAAO,IAAI,GAAG,KAAK;;EAE1E;;AAGH,kBAAe"}
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 defu from \"defu\";\nimport { marked, MarkedExtension, MarkedOptions } from \"marked\";\nimport { Plugin } from \"powerlines\";\nimport {\n MarkedPluginContext,\n MarkedPluginOptions,\n MarkedPluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n marked?: MarkedPluginOptions;\n }\n}\n\n/**\n * Marked Plugin\n *\n * @remarks\n * A Powerlines plugin to use the Marked markdown transformer during the prepare task.\n *\n * @see https://marked.js.org\n *\n * @param options - The plugin options.\n * @returns A Powerlines plugin instance.\n */\nexport const plugin = <\n TContext extends MarkedPluginContext = MarkedPluginContext\n>(\n options: MarkedPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"marked\",\n async config() {\n return {\n marked: defu(options, {\n async: true,\n breaks: true,\n gfm: true,\n silent: !this.config.logLevel\n })\n } as Partial<MarkedPluginUserConfig>;\n },\n async configResolved() {\n this.marked ??= {} as TContext[\"marked\"];\n this.marked.parse ??= async (\n src: string,\n override: Partial<MarkedOptions> = {}\n ) =>\n marked.parse(src, defu(override, this.config.marked) as MarkedOptions);\n this.marked.use ??= (...args: MarkedExtension[]) => marked.use(...args);\n }\n };\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;AA8CA,MAAa,UAGX,UAA+B,EAAE,KACZ;AACrB,QAAO;EACL,MAAM;EACN,MAAM,SAAS;AACb,UAAO,EACL,QAAQ,KAAK,SAAS;IACpB,OAAO;IACP,QAAQ;IACR,KAAK;IACL,QAAQ,CAAC,KAAK,OAAO;IACtB,CAAC,EACH;;EAEH,MAAM,iBAAiB;AACrB,QAAK,WAAW,EAAE;AAClB,QAAK,OAAO,UAAU,OACpB,KACA,WAAmC,EAAE,KAErC,OAAO,MAAM,KAAK,KAAK,UAAU,KAAK,OAAO,OAAO,CAAkB;AACxE,QAAK,OAAO,SAAS,GAAG,SAA4B,OAAO,IAAI,GAAG,KAAK;;EAE1E"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,mBAAA,GAAsB,gBAAgB;KAEtC,sBAAA,GAAyB;EAFzB,MAAA,CAAA,EAGD,mBAHoB;AAE/B,CAAA;AAIY,KAAA,0BAAA,GAA6B,cAAA,GAAA;EAI7B,MAAA,EAHF,mBAGqB;CACL;AACtB,KAFQ,mBAER,CAAA,wBADsB,0BACtB,GAAA,0BAAA,CAAA,GACA,aADA,CACc,eADd,CAAA,GAAA;EACc,MAAA,EAAA;IAAd,KAAA,EAAA,CAAA,GAAA,EAAA,MAAA,EAAA,QAAA,CAAA,EAEgC,OAFhC,CAEwC,aAFxC,CAAA,EAAA,GAE2D,OAF3D,CAAA,MAAA,CAAA;IAEwC,GAAA,EAAA,OAC5B,MAAA,CAAO,GADqB;EAAR,CAAA;CAA2B"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,mBAAA,GAAsB,aAAA,GAAgB,eAAA;AAAA,KAEtC,sBAAA,GAAyB,UAAA;EACnC,MAAA,GAAS,mBAAA;AAAA;AAAA,KAGC,0BAAA,GAA6B,cAAA;EACvC,MAAA,EAAQ,mBAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA;EAChB,MAAA;IACE,KAAA,GAAQ,GAAA,UAAa,QAAA,GAAW,OAAA,CAAQ,aAAA,MAAmB,OAAA;IAC3D,GAAA,SAAY,MAAA,CAAO,GAAA;EAAA;AAAA"}
@@ -1,5 +1,5 @@
1
- import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
2
1
  import { MarkedExtension, MarkedOptions, marked } from "marked";
2
+ import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
3
3
 
4
4
  //#region src/types/plugin.d.ts
5
5
  type MarkedPluginOptions = MarkedOptions & MarkedExtension;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KAqBY,mBAAA,GAAsB,gBAAgB;KAEtC,sBAAA,GAAyB;EAFzB,MAAA,CAAA,EAGD,mBAHoB;AAE/B,CAAA;AAIY,KAAA,0BAAA,GAA6B,cAAA,GAAA;EAI7B,MAAA,EAHF,mBAGqB;CACL;AACtB,KAFQ,mBAER,CAAA,wBADsB,0BACtB,GAAA,0BAAA,CAAA,GACA,aADA,CACc,eADd,CAAA,GAAA;EACc,MAAA,EAAA;IAAd,KAAA,EAAA,CAAA,GAAA,EAAA,MAAA,EAAA,QAAA,CAAA,EAEgC,OAFhC,CAEwC,aAFxC,CAAA,EAAA,GAE2D,OAF3D,CAAA,MAAA,CAAA;IAEwC,GAAA,EAAA,OAC5B,MAAA,CAAO,GADqB;EAAR,CAAA;CAA2B"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KAqBY,mBAAA,GAAsB,aAAA,GAAgB,eAAA;AAAA,KAEtC,sBAAA,GAAyB,UAAA;EACnC,MAAA,GAAS,mBAAA;AAAA;AAAA,KAGC,0BAAA,GAA6B,cAAA;EACvC,MAAA,EAAQ,mBAAA;AAAA;AAAA,KAGE,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA;EAChB,MAAA;IACE,KAAA,GAAQ,GAAA,UAAa,QAAA,GAAW,OAAA,CAAQ,aAAA,MAAmB,OAAA;IAC3D,GAAA,SAAY,MAAA,CAAO,GAAA;EAAA;AAAA"}
package/package.json CHANGED
@@ -1,18 +1,24 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-marked",
3
- "version": "0.1.306",
4
- "type": "module",
3
+ "version": "0.1.308",
4
+ "private": false,
5
5
  "description": "A Powerlines plugin to use the Marked markdown compiler to generate HTML.",
6
+ "keywords": ["marked", "powerlines", "storm-software", "powerlines-plugin"],
7
+ "homepage": "https://stormsoftware.com",
8
+ "bugs": {
9
+ "url": "https://stormsoftware.com/support",
10
+ "email": "support@stormsoftware.com"
11
+ },
6
12
  "repository": {
7
13
  "type": "github",
8
14
  "url": "https://github.com/storm-software/powerlines.git",
9
15
  "directory": "packages/plugin-marked"
10
16
  },
11
- "homepage": "https://stormsoftware.com",
12
- "bugs": {
13
- "url": "https://stormsoftware.com/support",
14
- "email": "support@stormsoftware.com"
17
+ "funding": {
18
+ "type": "github",
19
+ "url": "https://github.com/sponsors/storm-software"
15
20
  },
21
+ "license": "Apache-2.0",
16
22
  "author": {
17
23
  "name": "Storm Software",
18
24
  "email": "contact@stormsoftware.com",
@@ -32,14 +38,7 @@
32
38
  "url": "https://stormsoftware.com"
33
39
  }
34
40
  ],
35
- "funding": {
36
- "type": "github",
37
- "url": "https://github.com/sponsors/storm-software"
38
- },
39
- "license": "Apache-2.0",
40
- "private": false,
41
- "main": "./dist/index.cjs",
42
- "module": "./dist/index.mjs",
41
+ "type": "module",
43
42
  "exports": {
44
43
  ".": {
45
44
  "require": {
@@ -55,7 +54,7 @@
55
54
  "default": "./dist/index.mjs"
56
55
  }
57
56
  },
58
- "./*": "./*",
57
+ "./package.json": "./package.json",
59
58
  "./types": {
60
59
  "require": {
61
60
  "types": "./dist/types/index.d.cts",
@@ -85,22 +84,25 @@
85
84
  }
86
85
  }
87
86
  },
87
+ "main": "./dist/index.cjs",
88
+ "module": "./dist/index.mjs",
89
+ "types": "./dist/index.d.cts",
88
90
  "typings": "dist/index.d.mts",
89
91
  "files": ["dist/**/*"],
90
- "keywords": ["marked", "powerlines", "storm-software", "powerlines-plugin"],
91
92
  "dependencies": {
92
93
  "@stryke/fs": "^0.33.57",
93
94
  "@stryke/path": "^0.26.19",
94
95
  "@stryke/types": "^0.10.52",
95
96
  "defu": "^6.1.4",
96
- "powerlines": "^0.41.6"
97
+ "powerlines": "^0.41.8"
97
98
  },
98
99
  "devDependencies": {
99
- "@powerlines/plugin-plugin": "^0.12.292",
100
+ "@powerlines/plugin-plugin": "^0.12.294",
100
101
  "@types/node": "^25.4.0",
101
102
  "marked": "^17.0.4"
102
103
  },
104
+ "peerDependencies": { "marked": ">=17.0.4" },
105
+ "peerDependenciesMeta": { "marked": { "optional": false } },
103
106
  "publishConfig": { "access": "public" },
104
- "types": "./dist/index.d.cts",
105
- "gitHead": "86bbe64da57a38d472b37261ca9d113171841a6c"
107
+ "gitHead": "40d1f94407720be23c3801f9145fdad1fe27dfb2"
106
108
  }