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

@bufferapp/publish-utils

Package Overview
Dependencies
Maintainers
11
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 0.5.32 to 0.5.33

2

package.json
{
"name": "@bufferapp/publish-utils",
"version": "0.5.32",
"version": "0.5.33",
"description": "Misc. utils for dates, parsing, etc.",

@@ -5,0 +5,0 @@ "main": "index.js",

module.exports = profile => ({
id: profile.id,
avatarUrl: profile.avatar,
avatar_https: profile.avatar_https,
type: profile.service,

@@ -9,3 +10,12 @@ handle: profile.service_username,

schedules: profile.schedules,
service: profile.service,
service_type: profile.service_type,
serviceUsername: profile.service_username,
service_username: profile.service_username,
formatted_username: profile.formatted_username,
subprofiles: profile.subprofiles,
disabled: profile.disabled,
business: profile.business,
default: profile.default,
open: false,
});

@@ -6,3 +6,15 @@ module.exports = userData => ({

/* TODO: Return the actual `avatar` once the API is doing that. */
features: userData.features,
hasTwentyFourHourTimeFormat: userData.twentyfour_hour_time,
imageDimensionsKey: userData.imagedimensions_key,
is_business_user: ( // Same logic as user_model.php#onBusinessPlan()
userData.features.includes('improved_analytics') ||
(userData.plan_code >= 10 && userData.plan_code <= 19)
),
is_free_user: userData.plan === 'free',
skip_empty_text_alert: userData.messages.includes('remember_confirm_saving_modal'),
profile_groups: userData.profile_groups || [],
s3_upload_signature: userData.s3_upload_signature,
uses_24h_time: userData.twentyfour_hour_time,
week_starts_monday: userData.week_starts_monday,
});
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