@epubjs-react-native/file-system 1.1.4 → 1.1.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/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # epubjs-react-native-file-system
2
2
 
3
- > epubjs-react-native-file-system is a module that provides a file system for the epubjs-react-native library.
3
+ > File system adapter for [epubjs-react-native](https://github.com/victorsoares96/epubjs-react-native) on bare React Native.
4
+
5
+ Uses [`@dr.pogodin/react-native-fs`](https://github.com/birdofpreyru/react-native-fs) (the maintained fork of `react-native-fs`).
4
6
 
5
7
  ## Usage
6
8
 
@@ -70,8 +70,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
70
70
  };
71
71
  Object.defineProperty(exports, "__esModule", { value: true });
72
72
  exports.useFileSystem = useFileSystem;
73
- var react_1 = require("react");
74
73
  var RNFS = __importStar(require("@dr.pogodin/react-native-fs"));
74
+ var react_1 = require("react");
75
75
  function useFileSystem() {
76
76
  var _this = this;
77
77
  var _a = (0, react_1.useState)(null), file = _a[0], setFile = _a[1];
@@ -34,8 +34,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
34
34
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
35
  }
36
36
  };
37
- import { useCallback, useState } from 'react';
38
37
  import * as RNFS from '@dr.pogodin/react-native-fs';
38
+ import { useCallback, useState } from 'react';
39
39
  export function useFileSystem() {
40
40
  var _this = this;
41
41
  var _a = useState(null), file = _a[0], setFile = _a[1];
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@epubjs-react-native/file-system",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "An file system module for epubjs-react-native library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/types/index.d.ts",
8
8
  "scripts": {
9
- "prepare": "husky install",
9
+ "prepare": "husky",
10
10
  "clean": "rimraf dist/",
11
11
  "copy-files:cjs": "copyfiles -u 1 src/**/*.json dist/cjs",
12
12
  "copy-files:esm": "copyfiles -u 1 src/**/*.json dist/esm",
13
13
  "build:cjs": "tsc -p config/tsconfig.cjs.json --skipLibCheck",
14
14
  "build:esm": "tsc -p config/tsconfig.esm.json --skipLibCheck",
15
15
  "build:types": "tsc -p config/tsconfig.types.json --skipLibCheck",
16
- "style:format": "prettier \"*.{js,json,yml,yaml,md}\" \"src/**/*\" --write",
17
- "lint": "eslint --color --ext .ts \"src/**/*.+(ts)\"",
18
- "lint:fix": "eslint --color --ext .ts \"src/**/*.+(ts)\" --fix",
16
+ "style:format": "biome format --write ./src",
17
+ "lint": "biome check ./src",
18
+ "lint:fix": "biome check --write ./src",
19
19
  "test": "jest --no-cache --runInBand --passWithNoTests",
20
20
  "test:coverage": "jest --coverage --no-cache --runInBand --passWithNoTests",
21
21
  "type-check": "tsc --pretty --noEmit --skipLibCheck --esModuleInterop --resolveJsonModule",
@@ -25,7 +25,7 @@
25
25
  "postbuild": "npm run copy-files:cjs && npm run copy-files:esm",
26
26
  "prerelease": "npm run lint:fix && npm run type-check && npm run test:coverage",
27
27
  "release": "npm run build && npm publish",
28
- "release-local": "npm run build && npm link && echo [FINISH]: Run \"npm link epubjs-react-native-file-system\" to link the package to your project"
28
+ "release-local": "npm run build && npm link && echo [FINISH]: Run \"npm link @epubjs-react-native/file-system\" to link the package to your project"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"
@@ -47,36 +47,25 @@
47
47
  "url": "https://github.com/victorsoares96/epubjs-react-native-file-system/issues"
48
48
  },
49
49
  "homepage": "https://github.com/victorsoares96/epubjs-react-native-file-system#readme",
50
- "resolutions": {
51
- "@types/react": "18.3.18"
52
- },
53
50
  "peerDependencies": {
54
- "react": "*",
55
- "@dr.pogodin/react-native-fs": "*"
51
+ "@dr.pogodin/react-native-fs": "*",
52
+ "react": "*"
56
53
  },
57
54
  "devDependencies": {
58
- "@dr.pogodin/react-native-fs": "^2.30.3",
55
+ "@biomejs/biome": "2.5.12",
56
+ "@dr.pogodin/react-native-fs": "2.40.2",
59
57
  "@types/jest": "29.5.14",
60
- "@types/react": "18.3.18",
61
- "@typescript-eslint/eslint-plugin": "7.18.0",
62
- "@typescript-eslint/parser": "7.18.0",
63
- "commitizen": "4.3.1",
58
+ "@types/react": "19.2.18",
59
+ "commitizen": "4.3.2",
64
60
  "commitizen-emoji": "1.0.5",
65
61
  "copyfiles": "2.4.1",
66
- "eslint": "8.57.1",
67
- "eslint-config-airbnb-base": "15.0.0",
68
- "eslint-config-airbnb-typescript": "18.0.0",
69
- "eslint-config-prettier": "10.0.1",
70
- "eslint-plugin-import": "2.31.0",
71
- "eslint-plugin-prettier": "5.2.3",
72
62
  "husky": "9.1.7",
73
63
  "jest": "29.7.0",
74
- "lint-staged": "15.4.3",
75
- "prettier": "3.4.2",
76
- "react": "18.3.1",
77
- "rimraf": "6.0.1",
78
- "ts-jest": "29.2.5",
79
- "typescript": "5.7.3"
64
+ "lint-staged": "15.5.2",
65
+ "react": "19.2.8",
66
+ "rimraf": "6.1.3",
67
+ "ts-jest": "29.4.12",
68
+ "typescript": "5.9.3"
80
69
  },
81
70
  "config": {
82
71
  "commitizen": {