@zenfs/core 1.0.6 → 1.0.8

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.
@@ -17,7 +17,7 @@ export declare const version = 1;
17
17
  */
18
18
  export declare class Index extends Map<string, Stats> {
19
19
  /**
20
- * Convience method
20
+ * Convenience method
21
21
  */
22
22
  files(): Map<string, Stats>;
23
23
  /**
@@ -14,7 +14,7 @@ export const version = 1;
14
14
  */
15
15
  export class Index extends Map {
16
16
  /**
17
- * Convience method
17
+ * Convenience method
18
18
  */
19
19
  files() {
20
20
  const files = new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenfs/core",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "A filesystem, anywhere",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,8 +10,7 @@
10
10
  "storage"
11
11
  ],
12
12
  "bin": {
13
- "make-index": "scripts/make-index.js",
14
- "build": "scripts/build.js"
13
+ "make-index": "scripts/make-index.js"
15
14
  },
16
15
  "files": [
17
16
  "dist",
@@ -42,14 +41,15 @@
42
41
  "./*": "./dist/*",
43
42
  "./promises": "./dist/emulation/promises.js",
44
43
  "./mixins": "./dist/mixins/index.js",
44
+ "./path": "./dist/emulation/path.js",
45
45
  "./eslint": "./eslint.shared.js"
46
46
  },
47
47
  "scripts": {
48
48
  "format": "prettier --write .",
49
49
  "format:check": "prettier --check .",
50
- "lint": "tsc -p tsconfig.json --noEmit && eslint src tests",
50
+ "lint": "eslint src tests",
51
51
  "test": "tsx --test --experimental-test-coverage",
52
- "build": "node scripts/build.js --globalName=ZenFS --entry src/index.ts",
52
+ "build": "tsc -p tsconfig.json",
53
53
  "build:docs": "typedoc",
54
54
  "dev": "npm run build -- --watch",
55
55
  "prepublishOnly": "npm run build"
@@ -70,9 +70,7 @@
70
70
  },
71
71
  "devDependencies": {
72
72
  "@eslint/js": "^9.8.0",
73
- "@fal-works/esbuild-plugin-global-externals": "^2.1.2",
74
73
  "@types/eslint__js": "^8.42.3",
75
- "esbuild": "^0.21.0",
76
74
  "eslint": "^9.8.0",
77
75
  "globals": "^15.9.0",
78
76
  "lint-staged": "^15.2.7",
package/readme.md CHANGED
@@ -30,7 +30,7 @@ npm install @zenfs/core
30
30
  > [!NOTE]
31
31
  > The examples are written in ESM.
32
32
  > If you are using CJS, you can `require` the package.
33
- > If using a browser environment without support for `type=module` in `script` tags, you can add a `script` tag to your HTML pointing to the `browser.min.js` and use ZenFS with the global `ZenFS` object.
33
+ > If using a browser environment, you can use a `<script>` with `type=module` (you may need to use import maps)
34
34
 
35
35
  ```js
36
36
  import fs from '@zenfs/core'; // You can also use the named export, `fs`
@@ -27,7 +27,7 @@ export const version = 1;
27
27
  */
28
28
  export class Index extends Map<string, Stats> {
29
29
  /**
30
- * Convience method
30
+ * Convenience method
31
31
  */
32
32
  public files(): Map<string, Stats> {
33
33
  const files = new Map<string, Stats>();