ziex 0.1.0-dev.765 → 0.1.0-dev.785
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/cloudflare/index.js +28 -0
- package/index.js +1 -1
- package/package.json +1 -1
package/cloudflare/index.js
CHANGED
|
@@ -234,6 +234,34 @@ function createWasiImports({
|
|
|
234
234
|
random_get(buf_ptr, buf_len) {
|
|
235
235
|
crypto.getRandomValues(new Uint8Array(wasmMemory.buffer, buf_ptr, buf_len));
|
|
236
236
|
return 0;
|
|
237
|
+
},
|
|
238
|
+
path_open(_fd, _dirflags, _path, _path_len, _oflags, _rights_base, _rights_inheriting, _fdflags, opened_fd_ptr) {
|
|
239
|
+
v().setInt32(opened_fd_ptr, -1, true);
|
|
240
|
+
return 76;
|
|
241
|
+
},
|
|
242
|
+
path_create_directory(_fd, _path, _path_len) {
|
|
243
|
+
return 76;
|
|
244
|
+
},
|
|
245
|
+
path_unlink_file(_fd, _path, _path_len) {
|
|
246
|
+
return 76;
|
|
247
|
+
},
|
|
248
|
+
path_remove_directory(_fd, _path, _path_len) {
|
|
249
|
+
return 76;
|
|
250
|
+
},
|
|
251
|
+
path_rename(_fd, _old_path, _old_path_len, _new_fd, _new_path, _new_path_len) {
|
|
252
|
+
return 76;
|
|
253
|
+
},
|
|
254
|
+
path_filestat_get(_fd, _flags, _path, _path_len, filestat_ptr) {
|
|
255
|
+
new Uint8Array(wasmMemory.buffer, filestat_ptr, 64).fill(0);
|
|
256
|
+
return 76;
|
|
257
|
+
},
|
|
258
|
+
path_readlink(_fd, _path, _path_len, _buf, _buf_len, nread_ptr) {
|
|
259
|
+
v().setUint32(nread_ptr, 0, true);
|
|
260
|
+
return 76;
|
|
261
|
+
},
|
|
262
|
+
fd_readdir(_fd, _buf, _buf_len, _cookie, bufused_ptr) {
|
|
263
|
+
v().setUint32(bufused_ptr, 0, true);
|
|
264
|
+
return 76;
|
|
237
265
|
}
|
|
238
266
|
};
|
|
239
267
|
function collectOutput() {
|
package/index.js
CHANGED
|
@@ -12,7 +12,7 @@ var __export = (target, all) => {
|
|
|
12
12
|
// src/index.ts
|
|
13
13
|
var zx = {
|
|
14
14
|
name: "zx",
|
|
15
|
-
version: "0.1.0-dev.
|
|
15
|
+
version: "0.1.0-dev.785",
|
|
16
16
|
jsglue_version: "0.1.0-dev.727",
|
|
17
17
|
description: "ZX is a framework for building web applications with Zig.",
|
|
18
18
|
repository: "https://github.com/ziex-dev/ziex",
|