@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.
@@ -1,7 +1,5 @@
1
1
  export * from './callbacks.js';
2
2
  export * from './sync.js';
3
- import * as promises_1 from './promises.js';
4
- export { promises_1 as promises };
5
- import * as constants_1 from './constants.js';
6
- export { constants_1 as constants };
3
+ export * as promises from './promises.js';
4
+ export * as constants from './constants.js';
7
5
  export { initialize, getMount, getMounts, mount, umount, _toUnixTimestamp } from './shared.js';
@@ -1,6 +1,7 @@
1
1
  // Utilities and shared data
2
2
  import { posix as path } from 'path';
3
3
  import { ApiError, ErrorCode } from '../ApiError.js';
4
+ import { Cred } from '../cred.js';
4
5
  //import { BackendConstructor } from '../backends.js';
5
6
  import { InMemoryFileSystem } from '../backends/InMemory.js';
6
7
  /**
@@ -84,7 +85,7 @@ export function nop() {
84
85
  // do nothing
85
86
  }
86
87
  // credentials
87
- export let cred;
88
+ export let cred = Cred.Root;
88
89
  export function setCred(val) {
89
90
  cred = val;
90
91
  }
package/dist/file.js CHANGED
@@ -21,7 +21,7 @@ export var ActionType;
21
21
  ActionType[ActionType["TRUNCATE_FILE"] = 2] = "TRUNCATE_FILE";
22
22
  // Indicates that the code should create the file.
23
23
  ActionType[ActionType["CREATE_FILE"] = 3] = "CREATE_FILE";
24
- })(ActionType || (ActionType = {}));
24
+ })(ActionType = ActionType || (ActionType = {}));
25
25
  /**
26
26
  * Represents one of the following file flags. A convenience object.
27
27
  *
package/dist/index.js CHANGED
@@ -15,11 +15,7 @@ import { FileSystem } from './filesystem.js';
15
15
  import { backends } from './backends/index.js';
16
16
  import { ErrorCode, ApiError } from './ApiError.js';
17
17
  import { Cred } from './cred.js';
18
- import * as process from 'process';
19
18
  import { setCred } from './emulation/shared.js';
20
- if (process && process['initializeTTYs']) {
21
- process['initializeTTYs']();
22
- }
23
19
  /**
24
20
  * Initializes ZenFS with the given file systems.
25
21
  */
package/dist/stats.js CHANGED
@@ -9,7 +9,7 @@ export var FileType;
9
9
  FileType[FileType["FILE"] = S_IFREG] = "FILE";
10
10
  FileType[FileType["DIRECTORY"] = S_IFDIR] = "DIRECTORY";
11
11
  FileType[FileType["SYMLINK"] = S_IFLNK] = "SYMLINK";
12
- })(FileType || (FileType = {}));
12
+ })(FileType = FileType || (FileType = {}));
13
13
  /**
14
14
  * Implementation of Node's `Stats`.
15
15
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenfs/core",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "A filesystem in your browser",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist",
@@ -50,8 +50,6 @@
50
50
  "@typescript-eslint/eslint-plugin": "^5.55.0",
51
51
  "@typescript-eslint/parser": "^5.55.0",
52
52
  "archiver": "~2.1.1",
53
- "bfs-path": "~0.1.2",
54
- "bfs-process": "~0.1.6",
55
53
  "buffer": "~5.1.0",
56
54
  "cross-env": "^7.0.3",
57
55
  "esbuild": "^0.17.18",
@@ -60,7 +58,6 @@
60
58
  "jest": "^29.5.0",
61
59
  "path": "^0.12.7",
62
60
  "prettier": "^2.8.7",
63
- "source-map-loader": "~0.2.3",
64
61
  "ts-jest": "^29.1.0",
65
62
  "typedoc": "^0.25.1",
66
63
  "typescript": "^4.9.5"