11ty-plugin-giallo 0.1.0-alpha.0

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.
@@ -0,0 +1,2 @@
1
+ /** @module Interface docs:giallo-js/syntax-highlighter@0.0.1 **/
2
+ export function renderHighlighted(code: string, language: string, themeLight: string, themeDark: string): string;
@@ -0,0 +1,2 @@
1
+ /** @module Interface wasi:cli/environment@0.2.6 **/
2
+ export function getEnvironment(): Array<[string, string]>;
@@ -0,0 +1,3 @@
1
+ /** @module Interface wasi:cli/exit@0.2.6 **/
2
+ export function exit(status: Result<void, void>): void;
3
+ export type Result<T, E> = { tag: 'ok', val: T } | { tag: 'err', val: E };
@@ -0,0 +1,3 @@
1
+ /** @module Interface wasi:cli/stderr@0.2.6 **/
2
+ export function getStderr(): OutputStream;
3
+ export type OutputStream = import('./wasi-io-streams.js').OutputStream;
@@ -0,0 +1,3 @@
1
+ /** @module Interface wasi:cli/stdin@0.2.6 **/
2
+ export function getStdin(): InputStream;
3
+ export type InputStream = import('./wasi-io-streams.js').InputStream;
@@ -0,0 +1,3 @@
1
+ /** @module Interface wasi:cli/stdout@0.2.6 **/
2
+ export function getStdout(): OutputStream;
3
+ export type OutputStream = import('./wasi-io-streams.js').OutputStream;
@@ -0,0 +1,5 @@
1
+ /** @module Interface wasi:clocks/wall-clock@0.2.6 **/
2
+ export interface Datetime {
3
+ seconds: bigint,
4
+ nanoseconds: number,
5
+ }
@@ -0,0 +1,3 @@
1
+ /** @module Interface wasi:filesystem/preopens@0.2.6 **/
2
+ export function getDirectories(): Array<[Descriptor, string]>;
3
+ export type Descriptor = import('./wasi-filesystem-types.js').Descriptor;
@@ -0,0 +1,131 @@
1
+ /** @module Interface wasi:filesystem/types@0.2.6 **/
2
+ export function filesystemErrorCode(err: Error): ErrorCode | undefined;
3
+ export type Error = import('./wasi-io-streams.js').Error;
4
+ /**
5
+ * # Variants
6
+ *
7
+ * ## `"access"`
8
+ *
9
+ * ## `"would-block"`
10
+ *
11
+ * ## `"already"`
12
+ *
13
+ * ## `"bad-descriptor"`
14
+ *
15
+ * ## `"busy"`
16
+ *
17
+ * ## `"deadlock"`
18
+ *
19
+ * ## `"quota"`
20
+ *
21
+ * ## `"exist"`
22
+ *
23
+ * ## `"file-too-large"`
24
+ *
25
+ * ## `"illegal-byte-sequence"`
26
+ *
27
+ * ## `"in-progress"`
28
+ *
29
+ * ## `"interrupted"`
30
+ *
31
+ * ## `"invalid"`
32
+ *
33
+ * ## `"io"`
34
+ *
35
+ * ## `"is-directory"`
36
+ *
37
+ * ## `"loop"`
38
+ *
39
+ * ## `"too-many-links"`
40
+ *
41
+ * ## `"message-size"`
42
+ *
43
+ * ## `"name-too-long"`
44
+ *
45
+ * ## `"no-device"`
46
+ *
47
+ * ## `"no-entry"`
48
+ *
49
+ * ## `"no-lock"`
50
+ *
51
+ * ## `"insufficient-memory"`
52
+ *
53
+ * ## `"insufficient-space"`
54
+ *
55
+ * ## `"not-directory"`
56
+ *
57
+ * ## `"not-empty"`
58
+ *
59
+ * ## `"not-recoverable"`
60
+ *
61
+ * ## `"unsupported"`
62
+ *
63
+ * ## `"no-tty"`
64
+ *
65
+ * ## `"no-such-device"`
66
+ *
67
+ * ## `"overflow"`
68
+ *
69
+ * ## `"not-permitted"`
70
+ *
71
+ * ## `"pipe"`
72
+ *
73
+ * ## `"read-only"`
74
+ *
75
+ * ## `"invalid-seek"`
76
+ *
77
+ * ## `"text-file-busy"`
78
+ *
79
+ * ## `"cross-device"`
80
+ */
81
+ export type ErrorCode = 'access' | 'would-block' | 'already' | 'bad-descriptor' | 'busy' | 'deadlock' | 'quota' | 'exist' | 'file-too-large' | 'illegal-byte-sequence' | 'in-progress' | 'interrupted' | 'invalid' | 'io' | 'is-directory' | 'loop' | 'too-many-links' | 'message-size' | 'name-too-long' | 'no-device' | 'no-entry' | 'no-lock' | 'insufficient-memory' | 'insufficient-space' | 'not-directory' | 'not-empty' | 'not-recoverable' | 'unsupported' | 'no-tty' | 'no-such-device' | 'overflow' | 'not-permitted' | 'pipe' | 'read-only' | 'invalid-seek' | 'text-file-busy' | 'cross-device';
82
+ export type Filesize = bigint;
83
+ export type OutputStream = import('./wasi-io-streams.js').OutputStream;
84
+ /**
85
+ * # Variants
86
+ *
87
+ * ## `"unknown"`
88
+ *
89
+ * ## `"block-device"`
90
+ *
91
+ * ## `"character-device"`
92
+ *
93
+ * ## `"directory"`
94
+ *
95
+ * ## `"fifo"`
96
+ *
97
+ * ## `"symbolic-link"`
98
+ *
99
+ * ## `"regular-file"`
100
+ *
101
+ * ## `"socket"`
102
+ */
103
+ export type DescriptorType = 'unknown' | 'block-device' | 'character-device' | 'directory' | 'fifo' | 'symbolic-link' | 'regular-file' | 'socket';
104
+ export type LinkCount = bigint;
105
+ export type Datetime = import('./wasi-clocks-wall-clock.js').Datetime;
106
+ export interface DescriptorStat {
107
+ type: DescriptorType,
108
+ linkCount: LinkCount,
109
+ size: Filesize,
110
+ dataAccessTimestamp?: Datetime,
111
+ dataModificationTimestamp?: Datetime,
112
+ statusChangeTimestamp?: Datetime,
113
+ }
114
+
115
+ export class Descriptor {
116
+ /**
117
+ * This type does not have a public constructor.
118
+ */
119
+ private constructor();
120
+ writeViaStream(offset: Filesize): OutputStream;
121
+ appendViaStream(): OutputStream;
122
+ getType(): DescriptorType;
123
+ stat(): DescriptorStat;
124
+ }
125
+
126
+ export class DirectoryEntryStream {
127
+ /**
128
+ * This type does not have a public constructor.
129
+ */
130
+ private constructor();
131
+ }
@@ -0,0 +1,9 @@
1
+ /** @module Interface wasi:io/error@0.2.6 **/
2
+
3
+ export class Error {
4
+ /**
5
+ * This type does not have a public constructor.
6
+ */
7
+ private constructor();
8
+ toDebugString(): string;
9
+ }
@@ -0,0 +1,28 @@
1
+ /** @module Interface wasi:io/streams@0.2.6 **/
2
+ export type Error = import('./wasi-io-error.js').Error;
3
+ export type StreamError = StreamErrorLastOperationFailed | StreamErrorClosed;
4
+ export interface StreamErrorLastOperationFailed {
5
+ tag: 'last-operation-failed',
6
+ val: Error,
7
+ }
8
+ export interface StreamErrorClosed {
9
+ tag: 'closed',
10
+ }
11
+
12
+ export class InputStream {
13
+ /**
14
+ * This type does not have a public constructor.
15
+ */
16
+ private constructor();
17
+ }
18
+
19
+ export class OutputStream {
20
+ /**
21
+ * This type does not have a public constructor.
22
+ */
23
+ private constructor();
24
+ checkWrite(): bigint;
25
+ write(contents: Uint8Array): void;
26
+ blockingWriteAndFlush(contents: Uint8Array): void;
27
+ blockingFlush(): void;
28
+ }
@@ -0,0 +1,2 @@
1
+ /** @module Interface wasi:random/insecure-seed@0.2.6 **/
2
+ export function insecureSeed(): [bigint, bigint];
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "11ty-plugin-giallo",
3
+ "version": "0.1.0-alpha.0",
4
+ "description": "Eleventy plugin to support TextMate-style syntax highlighting via the Giallo Rust crate.",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://forge.secondsystemtech.com/brent/11ty-plugin-giallo"
8
+ },
9
+ "license": "EUPL-1.2",
10
+ "author": "Brent Schroeter (https://brentsch.com)",
11
+ "type": "module",
12
+ "main": ".eleventy.js",
13
+ "scripts": {
14
+ "test": "echo \"Error: no test specified\" && exit 1"
15
+ },
16
+ "11ty": {
17
+ "compatibility": ">=3.0.0"
18
+ },
19
+ "dependencies": {
20
+ "@bytecodealliance/preview2-shim": "^0.17.6"
21
+ },
22
+ "devDependencies": {
23
+ "@bytecodealliance/jco": "^1.15.4"
24
+ }
25
+ }