comment-block-transformer 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/package.json +4 -3
- package/src/index.js +1 -2
- package/tsconfig.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.2.3](https://github.com/DavidWells/markdown-magic/compare/comment-block-transformer@0.2.2...comment-block-transformer@0.2.3) (2025-12-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* add @types/node to block-transformer ([e049f6a](https://github.com/DavidWells/markdown-magic/commit/e049f6a60aa20d8b41835f09ccfcdd91c03389dc))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.2.2](https://github.com/DavidWells/markdown-magic/compare/comment-block-transformer@0.2.1...comment-block-transformer@0.2.2) (2025-11-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package comment-block-transformer
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.2.1](https://github.com/DavidWells/markdown-magic/compare/comment-block-transformer@0.2.0...comment-block-transformer@0.2.1) (2025-11-03)
|
|
7
26
|
|
|
8
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "comment-block-transformer",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Transform markdown blocks based on configured transforms",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -15,14 +15,15 @@
|
|
|
15
15
|
"release:major": "pnpm run build && pnpm version major && pnpm publish"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"comment-block-parser": "1.1.
|
|
18
|
+
"comment-block-parser": "1.1.2"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
+
"@types/node": "^22.0.0",
|
|
21
22
|
"typescript": "^5.0.0",
|
|
22
23
|
"uvu": "^0.5.6"
|
|
23
24
|
},
|
|
24
25
|
"publishConfig": {
|
|
25
26
|
"access": "public"
|
|
26
27
|
},
|
|
27
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "7d81950b7a6d27d1192b1bc2d0f19d1d5ff0f321"
|
|
28
29
|
}
|
package/src/index.js
CHANGED
|
@@ -197,7 +197,6 @@ async function blockTransformer(inputText, config) {
|
|
|
197
197
|
tempContent = returnedContent
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
|
|
201
200
|
/* Apply trailing middleware */
|
|
202
201
|
const afterContent = await applyMiddleware({
|
|
203
202
|
...match,
|
|
@@ -263,7 +262,7 @@ async function blockTransformer(inputText, config) {
|
|
|
263
262
|
if (!context.isMultiline && fix.indexOf('\n') > -1) {
|
|
264
263
|
fixWrapper = '\n'
|
|
265
264
|
}
|
|
266
|
-
|
|
265
|
+
|
|
267
266
|
// console.log('updatedText', block.value)
|
|
268
267
|
|
|
269
268
|
const indent = addLeadingNewline + indentString(fix, preserveIndent) + addTrailingNewline
|
package/tsconfig.json
CHANGED