New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@stoplight/json-ref-resolver

Package Overview
Dependencies
Maintainers
18
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/json-ref-resolver - npm Package Compare versions

Comparing version 2.4.1 to 3.0.0

__tests__/benchmark.spec.d.ts

0

cache.d.ts

@@ -0,0 +0,0 @@ import * as Types from './types';

@@ -0,0 +0,0 @@ import { DepGraph } from 'dependency-graph';

export * from './resolver';
export { Cache } from './cache';
export { defaultGetRef } from './runner';

9

package.json
{
"name": "@stoplight/json-ref-resolver",
"version": "2.4.1",
"version": "3.0.0",
"description": "Recursively resolve JSON pointers and remote authorities.",

@@ -18,3 +18,2 @@ "keywords": [

],
"main": "index.js",
"sideEffects": false,

@@ -35,8 +34,8 @@ "files": [

"@stoplight/json": "^3.1.2",
"@stoplight/types": "^11.1.1",
"@stoplight/path": "^1.3.0",
"@stoplight/types": "^11.0.0",
"@types/urijs": "1.x.x",
"dependency-graph": "~0.8.0",
"fast-memoize": "^2.5.1",
"immer": "^3.2.0",
"immer": "^4.0.1",
"lodash": "^4.17.15",

@@ -46,3 +45,5 @@ "tslib": "^1.10.0",

},
"main": "index.cjs.js",
"module": "index.es.js",
"typings": "index.d.ts"
}

@@ -0,0 +0,0 @@ /// <reference types="urijs" />

@@ -9,3 +9,3 @@ /// <reference types="urijs" />

readonly uriCache: Types.ICache;
readonly graph: DepGraph<any>;
readonly graph: Types.IResolveRunner['graph'];
readonly root: string;

@@ -40,2 +40,4 @@ depth: number;

private isFile;
private _setGraphNodeData;
private _setGraphNodeEdge;
}
/// <reference types="urijs" />
import { Segment } from '@stoplight/types';
import { Dictionary, Segment } from '@stoplight/types';
import { DepGraph } from 'dependency-graph';

@@ -28,3 +28,3 @@ export interface IResolverOpts {

};
graph: DepGraph<any>;
graph: DepGraph<IGraphNodeData>;
errors: IResolveError[];

@@ -107,2 +107,6 @@ runner: IResolveRunner;

}
export interface IGraphNodeData {
refMap: Dictionary<string>;
data?: any;
}
export interface IResolveRunner {

@@ -116,3 +120,3 @@ id: number;

baseUri: uri.URI;
graph: DepGraph<any>;
graph: DepGraph<IGraphNodeData>;
root: string;

@@ -119,0 +123,0 @@ atMaxUriDepth: () => boolean;

@@ -0,0 +0,0 @@ /// <reference types="urijs" />

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