@zenfs/core 0.0.4 → 0.0.5
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/ApiError.js +1 -1
- package/dist/backends/SyncStore.js +2 -5
- package/dist/browser.min.js +5 -5
- package/dist/browser.min.js.map +4 -4
- package/dist/emulation/index.js +2 -4
- package/dist/emulation/shared.js +2 -1
- package/dist/file.js +1 -1
- package/dist/index.js +0 -4
- package/dist/stats.js +1 -1
- package/package.json +1 -4
package/dist/ApiError.js
CHANGED
|
@@ -21,7 +21,7 @@ export var ErrorCode;
|
|
|
21
21
|
ErrorCode[ErrorCode["EROFS"] = 30] = "EROFS";
|
|
22
22
|
ErrorCode[ErrorCode["ENOTEMPTY"] = 39] = "ENOTEMPTY";
|
|
23
23
|
ErrorCode[ErrorCode["ENOTSUP"] = 95] = "ENOTSUP";
|
|
24
|
-
})(ErrorCode || (ErrorCode = {}));
|
|
24
|
+
})(ErrorCode = ErrorCode || (ErrorCode = {}));
|
|
25
25
|
/**
|
|
26
26
|
* Strings associated with each error code.
|
|
27
27
|
* @internal
|
|
@@ -319,16 +319,13 @@ export class SyncKeyValueFileSystem extends SynchronousFileSystem {
|
|
|
319
319
|
throw ApiError.ENOENT(path.resolve(parent, filename));
|
|
320
320
|
}
|
|
321
321
|
};
|
|
322
|
-
if (parent === '.') {
|
|
323
|
-
parent = process.cwd();
|
|
324
|
-
}
|
|
325
322
|
if (parent === '/') {
|
|
326
323
|
if (filename === '') {
|
|
327
|
-
//
|
|
324
|
+
// Return the root's ID.
|
|
328
325
|
return ROOT_NODE_ID;
|
|
329
326
|
}
|
|
330
327
|
else {
|
|
331
|
-
//
|
|
328
|
+
// Find the item in the root node.
|
|
332
329
|
return readDirectory(this.getINode(tx, parent, ROOT_NODE_ID));
|
|
333
330
|
}
|
|
334
331
|
}
|