@bestend/confluence-cli 1.15.7 → 1.15.8
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.
|
@@ -19,14 +19,16 @@ jobs:
|
|
|
19
19
|
node-version: '24.x'
|
|
20
20
|
registry-url: 'https://registry.npmjs.org'
|
|
21
21
|
|
|
22
|
-
- name:
|
|
22
|
+
- name: Set package version from tag (idempotent)
|
|
23
23
|
run: |
|
|
24
24
|
TAG="${GITHUB_REF_NAME#v}"
|
|
25
25
|
PKG_VERSION=$(node -p "require('./package.json').version")
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
if [ "$TAG" = "$PKG_VERSION" ]; then
|
|
27
|
+
echo "package.json already at $PKG_VERSION (matches tag)"
|
|
28
|
+
else
|
|
29
|
+
echo "Setting package.json version to ${TAG}"
|
|
30
|
+
npm pkg set version="${TAG}"
|
|
31
|
+
npm install --package-lock-only
|
|
30
32
|
fi
|
|
31
33
|
|
|
32
34
|
- name: Install dependencies
|
package/lib/confluence-client.js
CHANGED
|
@@ -883,7 +883,7 @@ class ConfluenceClient {
|
|
|
883
883
|
.replace(/</g, '<')
|
|
884
884
|
.replace(/>/g, '>')
|
|
885
885
|
.replace(/"/g, '"')
|
|
886
|
-
.replace(/'/g,
|
|
886
|
+
.replace(/'/g, '\'');
|
|
887
887
|
decoded = decoded.replace(/\]\]>/g, ']]]]><![CDATA[>');
|
|
888
888
|
|
|
889
889
|
return `<ac:structured-macro ac:name="code">
|