@alva-ai/toolkit 0.24.0 → 0.25.1
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/README.md +19 -16
- package/dist/browser.global.js +6 -6
- package/dist/browser.global.js.map +1 -1
- package/dist/cli.d.ts +13 -11
- package/dist/cli.js +53 -28
- package/dist/cli.js.map +1 -1
- package/dist/dispatch.d.ts +16 -34
- package/dist/dispatch.js +1389 -485
- package/dist/dispatch.js.map +1 -1
- package/dist/index.cjs +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -8
- package/dist/index.d.ts +10 -8
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -721,7 +721,13 @@ var FeedResource = class {
|
|
|
721
721
|
}
|
|
722
722
|
};
|
|
723
723
|
function requireFeedID(id) {
|
|
724
|
-
if (
|
|
724
|
+
if (typeof id === "string") {
|
|
725
|
+
if (!/^[1-9]\d*$/.test(id)) {
|
|
726
|
+
throw new Error("feed id must be a positive integer");
|
|
727
|
+
}
|
|
728
|
+
return id;
|
|
729
|
+
}
|
|
730
|
+
if (!Number.isSafeInteger(id) || id <= 0) {
|
|
725
731
|
throw new Error("feed id must be a positive integer");
|
|
726
732
|
}
|
|
727
733
|
return id;
|
|
@@ -898,7 +904,8 @@ var AutomationAlertDeliveryResource = class {
|
|
|
898
904
|
}
|
|
899
905
|
};
|
|
900
906
|
function requireAutomationID(id) {
|
|
901
|
-
if (
|
|
907
|
+
if (typeof id === "string") return requireAutomationIDString(id);
|
|
908
|
+
if (!Number.isSafeInteger(id) || id <= 0) {
|
|
902
909
|
throw new Error("automation id must be a positive integer");
|
|
903
910
|
}
|
|
904
911
|
return id;
|
|
@@ -3986,7 +3993,7 @@ var installPlaybookRuntime = (targetWindow) => {
|
|
|
3986
3993
|
};
|
|
3987
3994
|
|
|
3988
3995
|
// src/index.ts
|
|
3989
|
-
var VERSION = true ? "0.
|
|
3996
|
+
var VERSION = true ? "0.25.1" : "dev";
|
|
3990
3997
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3991
3998
|
0 && (module.exports = {
|
|
3992
3999
|
AlertsResource,
|