Comparing version 8.0.8 to 9.0.0
export class RetrieverError extends Error { | ||
uri; | ||
originalError; | ||
constructor(uri, originalError) { | ||
@@ -10,2 +12,4 @@ super(uri); | ||
export class ParserError extends Error { | ||
scope; | ||
errors; | ||
constructor(scope, type, errors) { | ||
@@ -19,2 +23,4 @@ super(type); | ||
export class RebaserError extends Error { | ||
scope; | ||
errors; | ||
constructor(scope, type, errors) { | ||
@@ -21,0 +27,0 @@ super(type); |
@@ -7,3 +7,3 @@ import * as meta from './meta.js'; | ||
export * from './rebase.js'; | ||
export declare type Retriever = (url: string) => Promise<any>; | ||
export type Retriever = (url: string) => Promise<any>; | ||
export interface ParseOptions extends meta.Options { | ||
@@ -10,0 +10,0 @@ retriever?: Retriever; |
@@ -15,4 +15,4 @@ export interface JSONPatchOther { | ||
} | ||
export declare type JSONPatch = (JSONPatchOther | JSONPatchRemove | JSONPatchCopyMove)[]; | ||
export type JSONPatch = (JSONPatchOther | JSONPatchRemove | JSONPatchCopyMove)[]; | ||
export declare function diff(src: any, dst: any, path?: string): JSONPatch; | ||
export declare function patch(obj: any, patch: JSONPatch): any; |
{ | ||
"name": "jsonref", | ||
"version": "8.0.8", | ||
"version": "9.0.0", | ||
"description": "Javascript References ($ref) and Pointers library", | ||
"type": "module", | ||
"exports": { | ||
".": "./dist/index.js", | ||
"./dist/*.js": "./dist/*.js" | ||
".": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/cjs/index.js" | ||
}, | ||
"./dist/*.js": "./dist/*.js", | ||
"./dist/cjs/*.js": "./dist/cjs/*.js" | ||
}, | ||
@@ -16,23 +20,9 @@ "types": "./dist/index.d.ts", | ||
"dist/**/*.js", | ||
"dist/**/*.ts", | ||
"dist/**/*.js.map", | ||
"dist/**/*.d.ts", | ||
"dist/cjs/package.json", | ||
"!dist/**/*.test.*", | ||
"README.md", | ||
"LICENSE" | ||
], | ||
"scripts": { | ||
"build": "tsc", | ||
"build:all": "npm i && npm run build && npm i --package-lock", | ||
"build:tests": "tsc -p test", | ||
"clean": "rimraf dist coverage .nyc_output test-results", | ||
"clean:all": "npm run clean && rimraf node_modules", | ||
"cover": "c8 --require esm --reporter=lcov --reporter=text npm t", | ||
"report-coverage": "cat ./coverage/lcov.info | coveralls", | ||
"prebuild": "rimraf dist", | ||
"check-coverage": "c8 check-coverage --statements 100 --branches 100 --functions 100 --lines 100", | ||
"watch:test": "npm t -- -w", | ||
"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", | ||
"test:debug": "find ./test/ts -type f -name '*.js' -delete && npm run build && npm run build:tests && mocha --exit --no-timeouts --inspect-brk --recursive test/**/*.test.js", | ||
"test:watch": "nodemon -e ts --ignore dist/ --ignore 'test/ts/*.js' --exec npm run test", | ||
"semantic-release": "semantic-release", | ||
"semantic-release-dry": "semantic-release --dry-run" | ||
}, | ||
"repository": { | ||
@@ -56,17 +46,17 @@ "type": "git", | ||
"devDependencies": { | ||
"@types/chai": "^4.3.1", | ||
"@types/chai-as-promised": "^7.1.5", | ||
"@types/chai-spies": "^1.0.3", | ||
"@types/mocha": "^9.1.1", | ||
"@types/node": "^16.11.26", | ||
"c8": "^7.11.3", | ||
"chai": "^4.3.6", | ||
"chai-as-promised": "^7.1.1", | ||
"chai-spies": "^1.0.0", | ||
"@changesets/cli": "^2.27.6", | ||
"@types/chai": "^4.3.16", | ||
"@types/chai-as-promised": "^7.1.8", | ||
"@types/chai-spies": "^1.0.6", | ||
"@types/mocha": "^10.0.7", | ||
"@types/node": "^20.14.9", | ||
"c8": "^10.1.2", | ||
"chai": "^5.1.1", | ||
"chai-as-promised": "^8.0.0", | ||
"chai-spies": "^1.1.0", | ||
"coveralls": "^3.1.1", | ||
"mocha": "^10.0.0", | ||
"mocha": "^10.5.2", | ||
"mochawesome": "^7.1.3", | ||
"rimraf": "^3.0.2", | ||
"semantic-release": "^19.0.2", | ||
"typescript": "^4.7.3" | ||
"rimraf": "^5.0.7", | ||
"typescript": "^5.5.2" | ||
}, | ||
@@ -93,3 +83,19 @@ "engines": { | ||
"sourceMap": true | ||
}, | ||
"scripts": { | ||
"build": "pnpm run build:esm && pnpm run build:cjs", | ||
"build:esm": "tsc --outDir dist --module NodeNext --moduleResolution NodeNext", | ||
"build:cjs": "tsc --outDir dist/cjs --module commonjs && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json", | ||
"build:tests": "tsc -p tsconfig.json", | ||
"build:all": "pnpm install && pnpm run build && pnpm run build:tests && pnpm install --package-lock", | ||
"clean": "rimraf dist coverage .nyc_output test-results", | ||
"clean:all": "pnpm run clean && rimraf node_modules", | ||
"cover": "c8 --require esm --reporter=lcov --reporter=text pnpm t", | ||
"report-coverage": "cat ./coverage/lcov.info | coveralls", | ||
"prebuild": "rimraf dist", | ||
"check-coverage": "c8 check-coverage --statements 100 --branches 100 --functions 100 --lines 100", | ||
"watch:test": "pnpm t -- -w", | ||
"test": "pnpm run build && mocha --exit --no-timeouts --recursive --reporter mochawesome --reporter-options reportDir=test-results dist/*.test.js", | ||
"test:watch": "nodemon -e ts --ignore dist/ --ignore 'dist/test/*.js' --exec pnpm run test" | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110558
52
1541