@eik/core 1.2.28 → 1.2.29

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.2.29](https://github.com/eik-lib/core/compare/v1.2.28...v1.2.29) (2022-01-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Upgrade to major version 1.3.0 of Busboy ([#296](https://github.com/eik-lib/core/issues/296)) ([295eec0](https://github.com/eik-lib/core/commit/295eec01d9c97d421f68cd3ecfd05e083716c462))
7
+
1
8
  ## [1.2.28](https://github.com/eik-lib/core/compare/v1.2.27...v1.2.28) (2021-11-15)
2
9
 
3
10
 
@@ -66,7 +66,7 @@ const MapPut = class MapPut {
66
66
  const path = createFilePathToImportMap(incoming);
67
67
  const queue = [];
68
68
 
69
- const busboy = new Busboy({
69
+ const busboy = Busboy({
70
70
  headers: incoming.headers,
71
71
  limits: {
72
72
  fields: 0,
@@ -83,7 +83,7 @@ const MapPut = class MapPut {
83
83
  }));
84
84
  });
85
85
 
86
- busboy.on('finish', () => {
86
+ busboy.on('close', () => {
87
87
  Promise.all(queue).then((items) => {
88
88
  // Resolve with only the first item in the array since
89
89
  // only one uploaded file is accepted
@@ -35,7 +35,7 @@ const MultipartParser = class MultipartParser {
35
35
  return new Promise((resolve, reject) => {
36
36
  const queue = [];
37
37
 
38
- const busboy = new Busboy({
38
+ const busboy = Busboy({
39
39
  headers: incoming.headers,
40
40
  limits: {
41
41
  fileSize: this._pkgMaxFileSize,
@@ -82,7 +82,7 @@ const MultipartParser = class MultipartParser {
82
82
  reject(error);
83
83
  });
84
84
 
85
- busboy.once('finish', () => {
85
+ busboy.once('close', () => {
86
86
  Promise.all(queue).then((items) => {
87
87
  resolve(items);
88
88
  }).catch((error) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eik/core",
3
- "version": "1.2.28",
3
+ "version": "1.2.29",
4
4
  "description": "Core server package",
5
5
  "main": "lib/main.js",
6
6
  "files": [
@@ -22,8 +22,8 @@
22
22
  "@eik/sink": "1.1.0",
23
23
  "@metrics/client": "2.5.0",
24
24
  "abslog": "2.4.0",
25
- "busboy": "0.3.1",
26
- "http-errors": "1.8.1",
25
+ "busboy": "1.3.0",
26
+ "http-errors": "2.0.0",
27
27
  "mime": "3.0.0",
28
28
  "original-url": "1.2.3",
29
29
  "rimraf": "3.0.2",
@@ -35,16 +35,16 @@
35
35
  "devDependencies": {
36
36
  "@semantic-release/changelog": "6.0.1",
37
37
  "@semantic-release/git": "10.0.1",
38
- "eslint": "7.32.0",
39
- "eslint-config-airbnb-base": "14.2.1",
38
+ "eslint": "8.6.0",
39
+ "eslint-config-airbnb-base": "15.0.0",
40
40
  "eslint-config-prettier": "8.3.0",
41
- "eslint-plugin-import": "2.25.3",
41
+ "eslint-plugin-import": "2.25.4",
42
42
  "eslint-plugin-prettier": "4.0.0",
43
43
  "form-data": "4.0.0",
44
44
  "mkdirp": "1.0.4",
45
45
  "node-fetch": "2.6.6",
46
- "prettier": "2.4.1",
47
- "semantic-release": "18.0.0",
48
- "tap": "15.0.10"
46
+ "prettier": "2.5.1",
47
+ "semantic-release": "18.0.1",
48
+ "tap": "15.1.6"
49
49
  }
50
50
  }