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

rdf-serializer-jsonld-ext

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rdf-serializer-jsonld-ext - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

6

package.json
{
"name": "rdf-serializer-jsonld-ext",
"version": "1.3.0",
"version": "1.4.0",
"description": "JSON-LD serializer that implements the RDFJS Sink Interfaces and supports different output styles",

@@ -29,4 +29,4 @@ "main": "index.js",

"bluebird": "^3.5.0",
"jsonld": "^0.4.12",
"rdf-serializer-jsonld": "^1.0.0",
"jsonld": "^1.0.1",
"rdf-serializer-jsonld": "^1.1.2",
"rdf-sink": "^1.0.0",

@@ -33,0 +33,0 @@ "readable-stream": "^2.2.9"

@@ -35,7 +35,4 @@ /* global describe, it */

const jsonldString = JSON.stringify([{
'@id': '@default',
'@graph': {
'@id': 'http://example.org/subject',
'http://example.org/predicate': 'object1'
}
'@id': 'http://example.org/subject',
'http://example.org/predicate': 'object1'
}])

@@ -70,7 +67,4 @@

'@context': context,
'@id': '@default',
'@graph': [{
'@id': 'ex:subject',
'ex:predicate': 'object1'
}]
'@id': 'ex:subject',
'ex:predicate': 'object1'
}

@@ -132,6 +126,4 @@

'@graph': [{
'@id': '_:b0',
'@type': 'Thing',
property0: {
'@id': '_:b1',
'@type': 'OtherThing',

@@ -158,3 +150,3 @@ property1: 'value1'

it('should skip @graph property if options is true and array.length == 1', () => {
it('should skip @graph property if skipGraphProperty is true and array.length == 1', () => {
const root = rdf.blankNode()

@@ -197,6 +189,4 @@ const property = rdf.blankNode()

},
'@id': '_:b0',
'@type': 'Thing',
property0: {
'@id': '_:b1',
'@type': 'OtherThing',

@@ -222,3 +212,3 @@ property1: 'value1'

it('should not skip @graph property if options is true and array.length != 1', () => {
it('should not skip @graph property if skipGraphProperty is true and array.length != 1', () => {
const s0 = rdf.blankNode('b0')

@@ -261,9 +251,5 @@ const s1 = rdf.blankNode('b1')

'@graph': [{
'@id': '@default'
}, {
'@id': '_:b0',
'@type': 'Thing',
'property0': 'value0'
}, {
'@id': '_:b1',
'@type': 'OtherThing',

@@ -289,3 +275,3 @@ 'property1': 'value1'

it('should not skip @graph property if options is true and array.length != 1', () => {
it('should remove @context if skipContext is true', () => {
const s0 = rdf.blankNode('b0')

@@ -315,3 +301,2 @@

'@graph': [{
'@id': '_:b0',
'@type': 'Thing',

@@ -349,7 +334,4 @@ 'property0': 'value0'

'@context': context,
'@id': '@default',
'@graph': [{
'@id': 'ex:subject',
'ex:predicate': 'object1'
}]
'@id': 'ex:subject',
'ex:predicate': 'object1'
}

@@ -356,0 +338,0 @@

Sorry, the diff of this file is not supported yet

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