Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bufferapp/publish-utils

Package Overview
Dependencies
Maintainers
17
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bufferapp/publish-utils - npm Package Compare versions

Comparing version 1.9.23-alpha.0 to 1.9.23

4

package.json
{
"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,
};
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc