Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@omnicar/sam-translate
Advanced tools
Handles fetching translations, looking up individual translations, and error reporting of missing translations
Client js library for fetching translations in a given format (see ILocaleTranslation
), translating strings, and reporting issues when found.
yarn
or npm i
(examples below are using yarn
)
yarn add OmniCar/sam-translate#0.0.1
Where #0.0.1
indicates the Github
release tag.
First call the init
function with the parameters that match your environment (dev/staging/prod etc.) or current needs.
These parameters are available:
translationFileUrl
- endpoint from where to fetch the translationserrorCallback
- function used for reporting errors. Defaults to window.alert
notify
- whether the library should report errors to an endpoint (see below)notificationEndpoint
- endpoint for POST
ing errorscache
- whether the library should use cache expiration (see below)cacheExpirationTime
- cache expiration time for local storageuseLocalStorage
- whether the library should save translations to localStorage
locale
- the locale to use. Defaults to the first one from the received translationsTo run jest
tests either run:
yarn test
or to run tests in watch mode run:
yarn test-watch
tsc
):yarn tsc
FAQs
Handles fetching translations, looking up individual translations, and error reporting of missing translations
We found that @omnicar/sam-translate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.