@molecule/api-resource-firmware 1.0.6 → 1.0.7

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.
Files changed (2) hide show
  1. package/dist/routes.js +2 -2
  2. package/package.json +1 -1
package/dist/routes.js CHANGED
@@ -20,7 +20,7 @@ const validateQuery = validateQueryRaw;
20
20
  /** Responds with a 401 Unauthorized JSON error. */
21
21
  function unauthorized(res) {
22
22
  return res.status(401).json({
23
- error: t('auth.unauthorized', undefined, { defaultValue: 'Authentication required.' }),
23
+ error: t('auth.unauthorized', undefined, { defaultValue: 'Unauthorized' }),
24
24
  });
25
25
  }
26
26
  /** Responds with a 404 Not Found JSON error for a missing firmware version. */
@@ -32,7 +32,7 @@ function firmwareNotFound(res) {
32
32
  /** Responds with a 500 Internal Server Error JSON error. */
33
33
  function internalError(res) {
34
34
  return res.status(500).json({
35
- error: t('errors.internalServer', undefined, { defaultValue: 'Internal server error.' }),
35
+ error: t('errors.internalServer', undefined, { defaultValue: 'Internal server error' }),
36
36
  });
37
37
  }
38
38
  /** Build the firmware router. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-resource-firmware",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Owner-scoped firmware versions + OTA rollouts: draft/publish/deprecate, per-device update tasks, realtime command dispatch, device-token-authenticated status reporting. Extracted from iot-device-manager flagship.",
5
5
  "homepage": "https://www.molecule.dev/packages/api-resource-firmware",
6
6
  "type": "module",