mailerlite-api-v2-node
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -75,3 +75,3 @@ "use strict"; | ||
return __generator(this, function (_a) { | ||
if (!campaign.groups || !campaign.segments) { | ||
if (!campaign.groups && !campaign.segments) { | ||
throw new Error('Groups or segments have to be specified'); | ||
@@ -78,0 +78,0 @@ } |
{ | ||
"name": "mailerlite-api-v2-node", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "[MailerLite API v2](https://developers.mailerlite.com/docs/getting-started-with-mailerlite-api) [Node.js](https://nodejs.org/en/) SDK. It is mostly a thin wrapper on [axios](https://github.com/axios/axios) that provides [authentication](https://developers.mailerlite.com/docs/authentication), response/request camelCase transformations, Typescript type definitions and some handy shorthand methods.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |