Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

solid-namespace

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solid-namespace - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

1

index.js

@@ -21,2 +21,3 @@ /**

cal: 'http://www.w3.org/2002/12/cal/ical#',
cert: 'http://www.w3.org/ns/auth/cert#',
contact: 'http://www.w3.org/2000/10/swap/pim/contact#',

@@ -23,0 +24,0 @@ dc: 'http://purl.org/dc/elements/1.1/',

2

package.json
{
"name": "solid-namespace",
"version": "0.3.0",
"version": "0.4.0",
"description": "A collection of common RDF namespaces used in the Solid project",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -19,3 +19,3 @@ # Solid Namespace

If a rdf library is provided then the map of namespaces given will be the result of calling `rdflib.Namespace` on the namespace urls.
If a rdf library is provided then the map of namespaces given will be the result of calling `$rdf.namedNode` on the namespace urls.

@@ -22,0 +22,0 @@ ```js

@@ -5,3 +5,3 @@ const assert = require('assert');

const ns = require('./index.js')();
assert.equal(ns.schema('Recipe'), 'http:/schema.org/Recipe');
assert.equal(ns.schema('Recipe'), 'http://schema.org/Recipe');

@@ -14,2 +14,2 @@

const rdfns = require('./index.js')(rdflib);
assert.equal(rdfns.schema('Recipe'), 'RDF::http:/schema.org/Recipe');
assert.equal(rdfns.schema('Recipe'), 'RDF::http://schema.org/Recipe');
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc