Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/polite-wombats-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"is-graph-pointer": patch
---

The package would fail to import in webpack
8 changes: 8 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ export function isBlankNode(arg: AnyPointer | undefined): arg is GraphPointer<Bl
export function isLiteral(arg: AnyPointer | undefined): arg is GraphPointer<Literal> {
return arg?.term?.termType === 'Literal'
}

export default {
isGraphPointer,
isResource,
isNamedNode,
isBlankNode,
isLiteral,
}
2 changes: 1 addition & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { expect } from 'chai'
import { describe, it } from 'mocha'
import clownface, { MultiPointer } from 'clownface'
import $rdf from 'rdf-ext'
import * as graphPointer from '../'
import graphPointer from '../'

function cf() {
return clownface({ dataset: $rdf.dataset() })
Expand Down