Comparing version 5.1.3 to 5.2.0
@@ -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 |
@@ -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 { |
@@ -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 | ||
} | ||
} |
27158
17
540