Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
intl-locales-supported
Advanced tools
Utility to help you polyfill the Node.js runtime when the Intl APIs are missing, or if the built-in Intl is missing locale data that you need.
Utility to help you determine if your runtime has modern Intl API & locales support. This specifically checks for Intl.NumberFormat
, Intl.PluralRules
& Intl.RelativeTimeFormat
and is being used by react-intl
.
const areIntlLocalesSupported = require('intl-locales-supported');
const localesMyAppSupports = [
/* list locales here */
];
// Determine if the built-in `Intl` has the locale data we need.
if (
!areIntlLocalesSupported(localesMyAppSupports, [
Intl.PluralRules,
Intl.RelativeTimeFormat,
])
) {
// `Intl` exists, but it doesn't have the data we need, so load the
// polyfill and replace the constructors we need with the polyfill's.
require('@formatjs/intl-pluralrules/polyfill');
require('@formatjs/intl-pluralrules/locale-data/de'); // Load de
require('@formatjs/intl-relativetimeformat/polyfill');
require('@formatjs/intl-relativetimeformat/locale-data/de'); // Load de
}
FAQs
Utility to help you polyfill the Node.js runtime when the Intl APIs are missing, or if the built-in Intl is missing locale data that you need.
The npm package intl-locales-supported receives a total of 0 weekly downloads. As such, intl-locales-supported popularity was classified as not popular.
We found that intl-locales-supported demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.