Skip to content

Commit

Permalink
Use @bergos/jsonparse instead of jsonparse
Browse files Browse the repository at this point in the history
This removes the need to use custom Web bundler configs
by not depending on Node.js built-ins.

Closes #105
Related to #100
  • Loading branch information
bergos authored Jan 3, 2023
1 parent 9f079ce commit 448c8fe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/JsonLdParser.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as RDF from "@rdfjs/types";
// tslint:disable-next-line:no-var-requires
const Parser = require('jsonparse');
const Parser = require('@bergos/jsonparse');
import {ERROR_CODES, ErrorCoded, IDocumentLoader, JsonLdContext, Util as ContextUtil} from "jsonld-context-parser";
import {PassThrough, Transform, Readable} from "readable-stream";
import {EntryHandlerArrayValue} from "./entryhandler/EntryHandlerArrayValue";
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
"index.js"
],
"dependencies": {
"@bergos/jsonparse": "^1.4.0",
"@rdfjs/types": "*",
"@types/http-link-header": "^1.0.1",
"@types/readable-stream": "^2.3.13",
"buffer": "^6.0.3",
"canonicalize": "^1.0.1",
"http-link-header": "^1.0.2",
"jsonld-context-parser": "^2.1.3",
"jsonparse": "^1.3.1",
"rdf-data-factory": "^1.1.0",
"readable-stream": "^4.0.0"
},
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,13 @@
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==

"@bergos/jsonparse@^1.4.0":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@bergos/jsonparse/-/jsonparse-1.4.0.tgz#b41a00341d27da39099ac564d57b193a2f1b9741"
integrity sha512-inR67ZG/CC2l4vIl73olg1m+mvYJyZLL6C5OhwSxFNLMx0UwIRy7XnJKgrrriZ9ZZ5JDPQrW7cS2UvQb3YgeiA==
dependencies:
buffer "^6.0.3"

"@discoveryjs/json-ext@^0.5.0":
version "0.5.7"
resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70"
Expand Down

0 comments on commit 448c8fe

Please sign in to comment.