@riebeckite/plugin-plantuml 0.0.50 → 0.0.52
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.js +2 -1
- package/dist/src/plantuml-encoder.d.ts +6 -0
- package/package.json +8 -3
package/dist/index.js
CHANGED
|
@@ -38,7 +38,8 @@ var init_hast = __esm({
|
|
|
38
38
|
// src/plantuml-encoder.ts
|
|
39
39
|
var plantuml_encoder_exports = {};
|
|
40
40
|
__export(plantuml_encoder_exports, {
|
|
41
|
-
encodePlantuml: () => encodePlantuml
|
|
41
|
+
encodePlantuml: () => encodePlantuml,
|
|
42
|
+
encodePlantumlBase64: () => encodePlantumlBase64
|
|
42
43
|
});
|
|
43
44
|
async function encodePlantuml(source) {
|
|
44
45
|
const { deflateRawSync } = await import("node:zlib");
|
|
@@ -32,3 +32,9 @@
|
|
|
32
32
|
*/
|
|
33
33
|
/** Encodes PlantUML source into the server URL path segment. */
|
|
34
34
|
export declare function encodePlantuml(source: string): Promise<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Re-encodes raw DEFLATE bytes with PlantUML's custom base64 alphabet.
|
|
37
|
+
* Exposed separately from the compression step so it can be reasoned about
|
|
38
|
+
* (and tested) without a Node runtime.
|
|
39
|
+
*/
|
|
40
|
+
export declare function encodePlantumlBase64(bytes: Uint8Array): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/plugin-plantuml",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.52",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -15,8 +15,13 @@
|
|
|
15
15
|
"./style.css": "./style.css"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@riebeckite/
|
|
19
|
-
|
|
18
|
+
"@riebeckite/diagram": "0.0.52"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"@riebeckite/core": "^0.0.52"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@riebeckite/core": "0.0.52"
|
|
20
25
|
},
|
|
21
26
|
"publishConfig": {
|
|
22
27
|
"access": "public"
|