@bufferapp/publish-utils
Advanced tools
Comparing version 1.9.23-alpha.0 to 1.9.23
{ | ||
"name": "@bufferapp/publish-utils", | ||
"version": "1.9.23-alpha.0", | ||
"version": "1.9.23", | ||
"description": "Misc. publish utils for dates, parsing, etc.", | ||
@@ -16,3 +16,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "44a53298d48a12d07c490c2c4d5db663df31c81e" | ||
"gitHead": "35385eef461f68bbf40aa14ab54bad9ae8f6cc22" | ||
} |
@@ -31,5 +31,11 @@ const { getDateString, isInThePast } = require('./date'); | ||
if (post.scheduled_at) { | ||
// to run in every situation except when can_send_direct is explicitly false. | ||
if (post.scheduled_at && post.can_send_direct !== false) { | ||
return `This post ${post.sent_at ? 'was' : 'is'} custom scheduled for ${dateString}.`; | ||
} | ||
if (post.profile_service === 'instagram' && !post.can_send_direct && !post.sent_at) { | ||
return `You will receive a reminder on ${dateString} when it's time to post.`; | ||
} | ||
return `This post ${post.sent_at ? 'was' : 'will be'} sent ${dateString}.`; | ||
@@ -43,2 +49,3 @@ }; | ||
isCustomScheduled: post.scheduled_at ? true : false, | ||
isInstagramReminder: (post.profile_service === 'instagram' && !post.can_send_direct) ? true : false, | ||
}); | ||
@@ -147,5 +154,3 @@ | ||
statistics: post.statistics, | ||
service_geolocation_id: post.service_geolocation_id, | ||
service_geolocation_name: post.service_geolocation_name, | ||
}; | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
84846
1698
1