Skip to content

Commit

Permalink
build(deps-dev): updated types packages
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed May 16, 2024
1 parent cd81cc1 commit 492e44e
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 10 deletions.
49 changes: 42 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/formats/jsonld.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import tracer from './lib/tracer.js'
*/
function parse({ localContext } = {}) {
/**
* @type {import('@rdfjs/parser-jsonld').DocumentLoader | null}
* @type {import('@rdfjs/parser-jsonld').DocumentLoader | undefined}
*/
let documentLoader = null
let documentLoader

if (localContext) {
if (typeof localContext === 'string') {
Expand Down Expand Up @@ -43,7 +43,7 @@ function parse({ localContext } = {}) {
const parseObject = function () {
return tracer.startActiveSpan('jsonld:parse.object', span => {
const stream = combine([jsonStringify(), parse.call(this)], { objectMode: true })
stream.on('error', err => {
stream.on('error', (/** @type Error */ err) => {
span.recordException(err)
span.setStatus({ code: SpanStatusCode.ERROR, message: err.message })
span.end()
Expand Down
4 changes: 4 additions & 0 deletions packages/formats/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
"rdfxml-streaming-parser": "^1.2.0"
},
"devDependencies": {
"@types/rdfjs__sink-to-duplex": "^1.0.0",
"@types/rdf-parser-csvw": "^0.15.0",
"@types/rdf-parser-csvw-xlsx": "^0.1.0",
"@types/rdfjs__parser-jsonld": "^2.1.7",
"@types/sax": "^1.2.7",
"@zazuko/env-core": "^1.1.2",
"barnard59-env": "^1.2.5",
Expand Down
3 changes: 3 additions & 0 deletions packages/formats/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
},
"files": [
"./index.js"
],
"include": [
"../base/index.js"
]
}

0 comments on commit 492e44e

Please sign in to comment.