Socket
Socket
Sign inDemoInstall

json-schema-resolver

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-schema-resolver - npm Package Compare versions

Comparing version 1.1.0-0 to 1.1.1-0

test/ref-fragment.test.js

2

package.json
{
"name": "json-schema-resolver",
"version": "1.1.0-0",
"version": "1.1.1-0",
"description": "Resolve all your $refs",

@@ -5,0 +5,0 @@ "main": "ref-resolver.js",

@@ -103,3 +103,3 @@ 'use strict'

debug('Generating %d refs', allRefs.length)
allRefs.forEach(({ baseUri, ref, json }) => {
allRefs.forEach(({ baseUri, ref, refUri, json }) => {
debug('Evaluating $ref %s', ref)

@@ -114,3 +114,3 @@ if (ref[0] === '#') { return }

evaluatedJson[kConsumed] = true
json.$ref = `#/definitions/${evaluatedJson[kRefToDef]}`
json.$ref = `#/definitions/${evaluatedJson[kRefToDef]}${refUri.fragment || ''}`
})

@@ -171,2 +171,3 @@

baseUri: URI.serialize(baseUri),
refUri,
ref,

@@ -173,0 +174,0 @@ json

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