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.
@ndla/audio-search
Advanced tools
A simple library for selecting NDLA audio files
yarn add @ndla/audio-search
npm install @ndla/audio-search
To use the AudioSearch
component, some functions for handling search and fetching audios are needed. In addition, some translations are needed.
import { AudioSearch } from '@ndla/audio-search';
const searchAudios = queryObject => {
// Return new Promise of audio objects
};
const fetchAudio = id => {
// Return new Promise of a single audio object
};
const onError = err => {
// Handle error
};
const audioSelect = audio => {
// Handle audio selection
};
const translations = {
searchPlaceholder: /* Translated string */,
searchButtonTitle: /* Translated string */,
useAudio: /* Translated string */,
noResults: /* Translated string */,
paginationTranslations: {
rootLabel: /* Translated string */,
prevTriggerLabel: /* Translated string */,
nextTriggerLabel: /* Translated string */,
},
};
<AudioSearch
translations={translations}
fetchAudio={fetchAudio}
searchAudios={searchAudios}
onAudioSelect={audioSelect}
onError={onError}
queryObject={defaultQueryObject}
/>
A queryObject
must look like this:
{
query: /* Query string */,
page: /* Page number */,
pageSize: /* Page size (elements per page) */,
locale: /* The search language; usually provided by the front-end */,
}
FAQs
A simple library for searching for audio files from NDLA
We found that @ndla/audio-search demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.