Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@bedrock/jsonld-document-loader
Advanced tools
Changelog
5.0.0 - 2024-03-17
httpHandlerClient
.Readme
A document loader API for jsonld.js and the Bedrock ecosystem.
TBD
TBD
To install via NPM:
npm install --save @bedrock/jsonld-document-loader
To install locally (for development):
git clone https://github.com/digitalbazaar/bedrock-jsonld-document-loader.git
cd bedrock-jsonld-document-loader
npm install
This library exports the following things:
jsonLdDocumentLoader
instance.documentLoader
function (with an instance bound to it).httpClientHandler
, for use with cfg.documentLoader.mode === 'web'
.import {documentLoader} from '@bedrock/jsonld-document-loader';
import * as bedrock from '@bedrock/core';
const {config: {'your-project': cfg}} = bedrock;
// Import the loader instance, and not the 'documentLoader' function directly.
import {jsonLdDocumentLoader, httpClientHandler} from
'@bedrock/jsonld-document-loader';
// if enabled, add loader for remote documents
if(cfg.documentLoader.mode === 'web') {
jsonLdDocumentLoader.setProtocolHandler({protocol: 'http', handler: httpClientHandler});
jsonLdDocumentLoader.setProtocolHandler({protocol: 'https', handler: httpClientHandler});
}
export const documentLoader = jsonLdDocumentLoader.build();
See the contribute file!
PRs accepted.
If editing the Readme, please conform to the standard-readme specification.
Commercial support for this library is available upon request from Digital Bazaar: support@digitalbazaar.com
Bedrock Non-Commercial License v1.0 © Digital Bazaar
FAQs
A document loader for jsonld.js.
The npm package @bedrock/jsonld-document-loader receives a total of 101 weekly downloads. As such, @bedrock/jsonld-document-loader popularity was classified as not popular.
We found that @bedrock/jsonld-document-loader demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.