protoobject 2.1.32 → 2.1.34

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.
@@ -180,7 +180,7 @@ let ProtoObjectFS = (() => {
180
180
  }
181
181
  }
182
182
  catch (error) {
183
- throw new Error(`Failed to load from file ${filePath}: ${error}`);
183
+ throw new Error(`Failed to load from file ${filePath}: ${error}`, { cause: error });
184
184
  }
185
185
  }
186
186
  /**
@@ -209,7 +209,7 @@ let ProtoObjectFS = (() => {
209
209
  return objects;
210
210
  }
211
211
  catch (error) {
212
- throw new Error(`Failed to load from directory ${directoryPath}: ${error}`);
212
+ throw new Error(`Failed to load from directory ${directoryPath}: ${error}`, { cause: error });
213
213
  }
214
214
  }
215
215
  /**
@@ -176,7 +176,7 @@ let ProtoObjectFS = (() => {
176
176
  }
177
177
  }
178
178
  catch (error) {
179
- throw new Error(`Failed to load from file ${filePath}: ${error}`);
179
+ throw new Error(`Failed to load from file ${filePath}: ${error}`, { cause: error });
180
180
  }
181
181
  }
182
182
  /**
@@ -205,7 +205,7 @@ let ProtoObjectFS = (() => {
205
205
  return objects;
206
206
  }
207
207
  catch (error) {
208
- throw new Error(`Failed to load from directory ${directoryPath}: ${error}`);
208
+ throw new Error(`Failed to load from directory ${directoryPath}: ${error}`, { cause: error });
209
209
  }
210
210
  }
211
211
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protoobject",
3
- "version": "2.1.32",
3
+ "version": "2.1.34",
4
4
  "description": "A universal class for creating any JSON objects and simple manipulations with them.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -104,14 +104,15 @@
104
104
  ],
105
105
  "homepage": "https://github.com/dudko-dev/protoobject",
106
106
  "devDependencies": {
107
- "@eslint/js": "^9.39.2",
107
+ "@eslint/js": "^10.0.1",
108
108
  "@types/node": "^22.4.1",
109
- "eslint": "^9.39.2",
109
+ "eslint": "^10.1.0",
110
+ "globals": "^17.4.0",
110
111
  "nyc": "^17.1.0",
111
112
  "prettier": "^3.8.1",
112
113
  "tsx": "^4.21.0",
113
114
  "typescript": "^5.9.3",
114
- "typescript-eslint": "^8.54.0"
115
+ "typescript-eslint": "^8.57.1"
115
116
  },
116
117
  "engines": {
117
118
  "node": ">=16"
@@ -121,6 +122,6 @@
121
122
  "test": "./test/"
122
123
  },
123
124
  "dependencies": {
124
- "@sergdudko/objectstream": "^4.0.31"
125
+ "@sergdudko/objectstream": "^4.0.33"
125
126
  }
126
127
  }