zupost 0.1.0 → 0.1.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/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -92,7 +92,7 @@ __export(index_exports, {
|
|
|
92
92
|
module.exports = __toCommonJS(index_exports);
|
|
93
93
|
|
|
94
94
|
// package.json
|
|
95
|
-
var version = "0.1.
|
|
95
|
+
var version = "0.1.1";
|
|
96
96
|
|
|
97
97
|
// node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/errors/HTTPError.js
|
|
98
98
|
var HTTPError = class extends Error {
|
|
@@ -996,8 +996,8 @@ var Emails = class {
|
|
|
996
996
|
delete options.react;
|
|
997
997
|
delete options.reactOptions;
|
|
998
998
|
}
|
|
999
|
-
if (!options.html && !options.markdown && !options.react) {
|
|
1000
|
-
throw new Error("Either html, markdown or
|
|
999
|
+
if (!options.html && !options.markdown && !options.react && !options.templateId) {
|
|
1000
|
+
throw new Error("Either html, markdown, react or templateId must be provided");
|
|
1001
1001
|
}
|
|
1002
1002
|
if (options.html && options.markdown) {
|
|
1003
1003
|
throw new Error("Either html or markdown must be provided");
|
package/dist/index.mjs
CHANGED
|
@@ -69,7 +69,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
// package.json
|
|
72
|
-
var version = "0.1.
|
|
72
|
+
var version = "0.1.1";
|
|
73
73
|
|
|
74
74
|
// node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/errors/HTTPError.js
|
|
75
75
|
var HTTPError = class extends Error {
|
|
@@ -973,8 +973,8 @@ var Emails = class {
|
|
|
973
973
|
delete options.react;
|
|
974
974
|
delete options.reactOptions;
|
|
975
975
|
}
|
|
976
|
-
if (!options.html && !options.markdown && !options.react) {
|
|
977
|
-
throw new Error("Either html, markdown or
|
|
976
|
+
if (!options.html && !options.markdown && !options.react && !options.templateId) {
|
|
977
|
+
throw new Error("Either html, markdown, react or templateId must be provided");
|
|
978
978
|
}
|
|
979
979
|
if (options.html && options.markdown) {
|
|
980
980
|
throw new Error("Either html or markdown must be provided");
|