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

jsonref

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonref - npm Package Compare versions

Comparing version 5.1.3 to 5.2.0

dist/rebase.d.ts

5

dist/errors.d.ts

@@ -11,1 +11,6 @@ export declare class RetrieverError extends Error {

}
export declare class RebaserError extends Error {
scope: string;
errors?: Error[] | undefined;
constructor(scope: string, type: string, errors?: Error[] | undefined);
}

@@ -21,2 +21,11 @@ "use strict";

exports.ParserError = ParserError;
class RebaserError extends Error {
constructor(scope, type, errors) {
super(type);
this.scope = scope;
this.errors = errors;
this.name = 'RebaserError';
}
}
exports.RebaserError = RebaserError;
//# sourceMappingURL=errors.js.map

1

dist/index.d.ts

@@ -5,2 +5,3 @@ import * as meta from './meta';

export { resolve as pointer } from './pointer';
export * from './rebase';
export declare type Retriever = (url: string) => Promise<any>;

@@ -7,0 +8,0 @@ export interface ParseOptions extends meta.Options {

3

dist/index.js

@@ -18,2 +18,3 @@ "use strict";

exports.pointer = pointer_1.resolve;
__export(require("./rebase"));
function scope(data) {

@@ -34,3 +35,3 @@ if (meta.isAnnotated(data)) {

}
const uri = (new URL(dataOrUri)).toString();
const uri = new URL(dataOrUri).toString();
obj = await opts.retriever(uri);

@@ -37,0 +38,0 @@ if (!opts.registry) {

{
"name": "jsonref",
"version": "5.1.3",
"version": "5.2.0",
"description": "Javascript References ($ref) and Pointers library",

@@ -26,3 +26,3 @@ "main": "dist/index.js",

"commit": "git-cz",
"check-coverage": "nyc check-coverage --statements 100 --branches 100 --functions 100 --lines 100",
"check-coverage": "nyc check-coverage --statements 100 --branches 99 --functions 100 --lines 100",
"watch:test": "npm t -- -w",

@@ -53,3 +53,3 @@ "test": "find ./test/ts -type f -name '*.js' -delete && npm run build && tsc -p test && mocha --exit --no-timeouts --recursive --reporter mochawesome --reporter-options reportDir=test-results test/**/*.test.js",

"devDependencies": {
"@commitlint/config-conventional": "^7.5.0",
"@commitlint/config-conventional": "^7.6.0",
"@types/chai": "^4.1.7",

@@ -63,13 +63,13 @@ "@types/chai-as-promised": "^7.1.0",

"chai-spies": "^1.0.0",
"commitizen": "^3.0.7",
"commitlint": "^7.5.2",
"commitizen": "^3.1.1",
"commitlint": "^7.6.1",
"coveralls": "^3.0.3",
"cz-conventional-changelog": "^2.1.0",
"husky": "^1.3.1",
"mocha": "^6.0.2",
"mochawesome": "^3.1.1",
"nyc": "^13.3.0",
"husky": "^2.3.0",
"mocha": "^6.1.4",
"mochawesome": "^3.1.2",
"nyc": "^14.1.1",
"rimraf": "^2.6.3",
"semantic-release": "^15.13.3",
"typescript": "^3.3.3333"
"semantic-release": "^15.13.12",
"typescript": "^3.4.5"
},

@@ -86,3 +86,21 @@ "config": {

}
},
"nyc": {
"include": [
"dist/**/*.js",
"src/**/*.ts"
],
"extension": [
".js",
".ts"
],
"exclude": [
"**/test"
],
"reporter": [
"lcov",
"text"
],
"sourceMap": true
}
}
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