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.
@digitalbazaar/security-context
Advanced tools
Changelog
1.0.1 - 2023-06-13
./dist/context.esm.js
.Readme
Compact isomorphic clone of CCG's security-context.
This is a copy of the Linked Data Security Vocabulary context, with a refactored export to make it easier to use in the browser and in React Native.
Requires Node.js 12+
To install via NPM:
npm install @digitalbazaar/security-context
import secCtx from '@digitalbazaar/security-context';
// or
const secCtx = require('@digitalbazaar/security-context');
const {contexts, constants} = secCtx;
secCtx.CONTEXT_URL
// 'https://w3id.org/security/v2'
secCtx.SECURITY_CONTEXT_V1_URL
// 'https://w3id.org/security/v1'
secCtx.SECURITY_CONTEXT_V2_URL
// 'https://w3id.org/security/v2'
// get context data for a specific context
secCtx.contexts.get(secCtx.SECURITY_CONTEXT_V2_URL)
// security/v2 full context object
This package can be used with bundlers, such as webpack, in browser applications.
The library exports the following properties:
CONTEXT_URL
and CONTEXT
(it's recommended that context repositories only export one context).constants
: A Object that maps constants to well-known context URLs. The
main constant CONTEXT_URL
may be updated from time to time to the
latest context location.contexts
: A Map
that maps URLs to full context data.Commercial support for this library is available upon request from Digital Bazaar: support@digitalbazaar.com
FAQs
Compact isomorphic clone of ccg security-context.
The npm package @digitalbazaar/security-context receives a total of 7,427 weekly downloads. As such, @digitalbazaar/security-context popularity was classified as popular.
We found that @digitalbazaar/security-context 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.