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.
- package/.eleventy.js +135 -0
- package/LICENSE +287 -0
- package/dist/giallo_js.core.wasm +0 -0
- package/dist/giallo_js.core2.wasm +0 -0
- package/dist/giallo_js.d.ts +13 -0
- package/dist/giallo_js.js +2807 -0
- package/dist/interfaces/docs-giallo-js-syntax-highlighter.d.ts +2 -0
- package/dist/interfaces/wasi-cli-environment.d.ts +2 -0
- package/dist/interfaces/wasi-cli-exit.d.ts +3 -0
- package/dist/interfaces/wasi-cli-stderr.d.ts +3 -0
- package/dist/interfaces/wasi-cli-stdin.d.ts +3 -0
- package/dist/interfaces/wasi-cli-stdout.d.ts +3 -0
- package/dist/interfaces/wasi-clocks-wall-clock.d.ts +5 -0
- package/dist/interfaces/wasi-filesystem-preopens.d.ts +3 -0
- package/dist/interfaces/wasi-filesystem-types.d.ts +131 -0
- package/dist/interfaces/wasi-io-error.d.ts +9 -0
- package/dist/interfaces/wasi-io-streams.d.ts +28 -0
- package/dist/interfaces/wasi-random-insecure-seed.d.ts +2 -0
- package/package.json +25 -0
|
@@ -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,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
|
+
}
|
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
|
+
}
|