@eik/core 1.3.25 → 1.3.26

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.3.26](https://github.com/eik-lib/core/compare/v1.3.25...v1.3.26) (2023-06-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Update dependencies ([#370](https://github.com/eik-lib/core/issues/370)) ([0c671f4](https://github.com/eik-lib/core/commit/0c671f412cefd9185172e36d46252c56028559e8))
7
+
1
8
  ## [1.3.25](https://github.com/eik-lib/core/compare/v1.3.24...v1.3.25) (2023-05-17)
2
9
 
3
10
 
package/lib/sinks/fs.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ReadFile } from '@eik/common';
2
+ import { rimraf } from 'rimraf';
2
3
  import Metrics from '@metrics/client';
3
- import rimraf from 'rimraf';
4
4
  import Sink from '@eik/sink';
5
5
  import mime from 'mime';
6
6
  import path from 'node:path';
@@ -204,18 +204,17 @@ const SinkFS = class SinkFS extends Sink {
204
204
  return;
205
205
  }
206
206
 
207
- rimraf(pathname, error => {
208
- if (error) {
209
- this._counter.inc({ labels: { access: true, operation } });
210
- reject(error);
211
- return;
212
- }
207
+ rimraf(pathname).then(() => {
213
208
  this._counter.inc({ labels: {
214
209
  success: true,
215
210
  access: true,
216
211
  operation
217
212
  } });
218
213
  resolve();
214
+ }).catch((error) => {
215
+ this._counter.inc({ labels: { access: true, operation } });
216
+ reject(error);
217
+
219
218
  });
220
219
  });
221
220
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eik/core",
3
- "version": "1.3.25",
3
+ "version": "1.3.26",
4
4
  "description": "Core server package",
5
5
  "main": "lib/main.js",
6
6
  "type": "module",
@@ -27,26 +27,26 @@
27
27
  "http-errors": "2.0.0",
28
28
  "mime": "3.0.0",
29
29
  "original-url": "1.2.3",
30
- "rimraf": "3.0.2",
30
+ "rimraf": "5.0.1",
31
31
  "semver": "7.5.1",
32
32
  "ssri": "10.0.4",
33
33
  "tar": "6.1.15",
34
34
  "unique-slug": "4.0.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@babel/eslint-parser": "7.21.3",
37
+ "@babel/eslint-parser": "7.21.8",
38
38
  "@semantic-release/changelog": "6.0.3",
39
39
  "@semantic-release/git": "10.0.1",
40
- "eslint": "8.39.0",
40
+ "eslint": "8.41.0",
41
41
  "eslint-config-airbnb-base": "15.0.0",
42
42
  "eslint-config-prettier": "8.8.0",
43
43
  "eslint-plugin-import": "2.27.5",
44
44
  "eslint-plugin-prettier": "4.2.1",
45
45
  "form-data": "4.0.0",
46
- "mkdirp": "1.0.4",
46
+ "mkdirp": "3.0.1",
47
47
  "node-fetch": "3.3.1",
48
48
  "prettier": "2.8.8",
49
- "semantic-release": "19.0.5",
49
+ "semantic-release": "21.0.2",
50
50
  "tap": "16.3.4"
51
51
  }
52
52
  }