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

@rdfjs/fetch

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rdfjs/fetch - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

test/Headers.test.js

2

index.js

@@ -9,2 +9,4 @@ const defaultFactory = require('@rdfjs/dataset')

rdfFetch.Headers = rdfFetchLite.Headers
module.exports = rdfFetch

8

package.json
{
"name": "@rdfjs/fetch",
"version": "2.0.0",
"version": "2.1.0",
"description": "Wrapper for fetch to simplify sending and receiving RDF data",
"main": "index.js",
"scripts": {
"test": "standard && jest"
"test": "standard && mocha"
},

@@ -26,3 +26,3 @@ "repository": {

"@rdfjs/dataset": "^1.0.1",
"@rdfjs/fetch-lite": "^2.0.1",
"@rdfjs/fetch-lite": "^2.1.0",
"@rdfjs/formats-common": "^2.0.1"

@@ -32,3 +32,3 @@ },

"@rdfjs/sink-map": "^1.0.1",
"jest": "^24.9.0",
"mocha": "^7.1.1",
"nock": "^11.6.0",

@@ -35,0 +35,0 @@ "standard": "^14.3.1"

@@ -1,3 +0,3 @@

/* global describe, expect, it */
const { strictEqual } = require('assert')
const { describe, it } = require('mocha')
const nock = require('nock')

@@ -10,3 +10,3 @@ const rdf = require('@rdfjs/dataset')

it('should be a function', () => {
expect(typeof rdfFetch).toBe('function')
strictEqual(typeof rdfFetch, 'function')
})

@@ -17,4 +17,4 @@

expect(typeof result).toBe('object')
expect(typeof result.then).toBe('function')
strictEqual(typeof result, 'object')
strictEqual(typeof result.then, 'function')
})

@@ -35,3 +35,3 @@

expect([
const mediaTypes = [
'application/ld+json',

@@ -43,3 +43,7 @@ 'application/trig',

'text/turtle'
].every(mediaType => accept.includes(mediaType))).toBe(true)
]
mediaTypes.forEach(mediaType => {
strictEqual(accept.includes(mediaType), true)
})
})

@@ -69,3 +73,3 @@

expect(accept).toBe('application/ld+json, text/turtle')
strictEqual(accept, 'application/ld+json, text/turtle')
})

@@ -81,3 +85,3 @@

expect(dataset instanceof rdf.dataset().constructor).toBe(true)
strictEqual(dataset instanceof rdf.dataset().constructor, true)
})

@@ -102,4 +106,4 @@

expect(dataset instanceof CustomDataset).toBe(true)
strictEqual(dataset instanceof CustomDataset, true)
})
})

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