@devicecloud.dev/dcd 3.7.1 → 3.7.3

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.
@@ -125,8 +125,11 @@ class Cloud extends core_1.Command {
125
125
  };
126
126
  }
127
127
  const [major] = process.versions.node.split('.').map(Number);
128
- if (major < 18) {
129
- throw new Error(`You are using node version ${major}. DCD requires node version 18 or later`);
128
+ if (major < 20) {
129
+ this.warn(`WARNING: You are using node version ${major}. DeviceCloud requires node version 20 or later`);
130
+ if (major < 18) {
131
+ throw new Error('Invalid node version');
132
+ }
130
133
  }
131
134
  await this.versionCheck();
132
135
  // Download and expand Moropo zip if API key is present
@@ -35,6 +35,7 @@ class ApiGateway {
35
35
  method: 'POST',
36
36
  headers: {
37
37
  'x-app-api-key': apiKey,
38
+ 'content-type': 'application/json',
38
39
  },
39
40
  body: JSON.stringify({ results }),
40
41
  });
@@ -544,5 +544,5 @@
544
544
  ]
545
545
  }
546
546
  },
547
- "version": "3.7.1"
547
+ "version": "3.7.3"
548
548
  }
package/package.json CHANGED
@@ -43,7 +43,7 @@
43
43
  "typescript": "^5"
44
44
  },
45
45
  "engines": {
46
- "node": ">=18.0.0"
46
+ "node": ">=20.0.0"
47
47
  },
48
48
  "files": [
49
49
  "/bin",
@@ -79,7 +79,7 @@
79
79
  "prepare": "yarn build",
80
80
  "version": "oclif readme && git add README.md"
81
81
  },
82
- "version": "3.7.1",
82
+ "version": "3.7.3",
83
83
  "bugs": {
84
84
  "url": "https://discord.gg/gm3mJwcNw8"
85
85
  },