@cristian-israel/giganet_lib_conecta 1.0.65 → 1.0.66
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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -3
- package/dist/index.mjs +4 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -37091,9 +37091,9 @@ interface NtfyAction {
|
|
|
37091
37091
|
clear?: boolean;
|
|
37092
37092
|
}
|
|
37093
37093
|
interface NtfyPublishOptions {
|
|
37094
|
-
sequence_id: string;
|
|
37095
37094
|
message: string;
|
|
37096
37095
|
title?: string;
|
|
37096
|
+
sequence_id?: string;
|
|
37097
37097
|
priority?: NtfyPriority;
|
|
37098
37098
|
tags?: string[];
|
|
37099
37099
|
click?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -37091,9 +37091,9 @@ interface NtfyAction {
|
|
|
37091
37091
|
clear?: boolean;
|
|
37092
37092
|
}
|
|
37093
37093
|
interface NtfyPublishOptions {
|
|
37094
|
-
sequence_id: string;
|
|
37095
37094
|
message: string;
|
|
37096
37095
|
title?: string;
|
|
37096
|
+
sequence_id?: string;
|
|
37097
37097
|
priority?: NtfyPriority;
|
|
37098
37098
|
tags?: string[];
|
|
37099
37099
|
click?: string;
|
package/dist/index.js
CHANGED
|
@@ -91496,6 +91496,9 @@ var NtfyPublishResource = class {
|
|
|
91496
91496
|
if (priority) headers["Priority"] = priority;
|
|
91497
91497
|
if (tags && tags.length > 0) headers["Tags"] = tags.join(",");
|
|
91498
91498
|
if (click) headers["Click"] = click;
|
|
91499
|
+
if (sequence_id) {
|
|
91500
|
+
headers["Sequence-ID"] = sequence_id;
|
|
91501
|
+
}
|
|
91499
91502
|
if (actions && actions.length > 0) {
|
|
91500
91503
|
headers["Actions"] = actions.map((a) => {
|
|
91501
91504
|
const parts = [a.action, `label="${a.label}"`];
|
|
@@ -91525,9 +91528,7 @@ var NtfyPublishResource = class {
|
|
|
91525
91528
|
return parts.join(", ");
|
|
91526
91529
|
}).join("; ");
|
|
91527
91530
|
}
|
|
91528
|
-
return this.client.post(
|
|
91529
|
-
headers
|
|
91530
|
-
});
|
|
91531
|
+
return this.client.post("/", message, { headers });
|
|
91531
91532
|
}
|
|
91532
91533
|
};
|
|
91533
91534
|
|
package/dist/index.mjs
CHANGED
|
@@ -91455,6 +91455,9 @@ var NtfyPublishResource = class {
|
|
|
91455
91455
|
if (priority) headers["Priority"] = priority;
|
|
91456
91456
|
if (tags && tags.length > 0) headers["Tags"] = tags.join(",");
|
|
91457
91457
|
if (click) headers["Click"] = click;
|
|
91458
|
+
if (sequence_id) {
|
|
91459
|
+
headers["Sequence-ID"] = sequence_id;
|
|
91460
|
+
}
|
|
91458
91461
|
if (actions && actions.length > 0) {
|
|
91459
91462
|
headers["Actions"] = actions.map((a) => {
|
|
91460
91463
|
const parts = [a.action, `label="${a.label}"`];
|
|
@@ -91484,9 +91487,7 @@ var NtfyPublishResource = class {
|
|
|
91484
91487
|
return parts.join(", ");
|
|
91485
91488
|
}).join("; ");
|
|
91486
91489
|
}
|
|
91487
|
-
return this.client.post(
|
|
91488
|
-
headers
|
|
91489
|
-
});
|
|
91490
|
+
return this.client.post("/", message, { headers });
|
|
91490
91491
|
}
|
|
91491
91492
|
};
|
|
91492
91493
|
|