@gregoriusrippenstein/node-red-contrib-introspection 0.1.7 → 0.1.8

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.
@@ -258,14 +258,24 @@
258
258
  // if svg larger than that, need to increase the limit.
259
259
  // Provide a hint to that setting in the error message.
260
260
  RED.notify(
261
- "Screenshot too large, increase apiMaxLength in settings.js", {
261
+ "Screenshot too large, increase apiMaxLength in settings.js.", {
262
+ type: "error"
263
+ }
264
+ );
265
+ break;
266
+ case 404:
267
+ // Http-in POST node is missing
268
+ RED.notify(
269
+ "Missing http-in node: method: POST, path: /screenshot.", {
262
270
  type: "error"
263
271
  }
264
272
  );
265
273
  break;
266
274
  case 200:
267
275
  if ( notification != "off" ) {
268
- RED.notify("Screenshot posted", { type: "success" });
276
+ RED.notify("Screenshot successfully posted", {
277
+ type: "success"
278
+ });
269
279
  }
270
280
  break;
271
281
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gregoriusrippenstein/node-red-contrib-introspection",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "keywords": [
5
5
  "node-red"
6
6
  ],