@bufferapp/publish-utils
Advanced tools
Comparing version 0.5.32 to 0.5.33
{ | ||
"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, | ||
}); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
159065
1416