Skip to content

Commit e7c5680

Browse files
committed
Fix DataFactory imports.
1 parent 7ea4578 commit e7c5680

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/update-manager.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import IndexedFormula from './store'
88
import { docpart } from './uri'
99
import Fetcher from './fetcher'
10-
import { namedNode } from './data-factory'
10+
import DataFactory from './data-factory'
1111
import Namespace from './namespace'
1212
import Serializer from './serializer'
1313
import { join as uriJoin } from './uri'
@@ -81,8 +81,8 @@ export default class UpdateManager {
8181
if (uri.slice(0, 8) === 'file:///') {
8282
if (kb.holds(
8383
kb.sym(uri),
84-
namedNode('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'),
85-
namedNode('http://www.w3.org/2007/ont/link#MachineEditableDocument'))) {
84+
DataFactory.namedNode('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'),
85+
DataFactory.namedNode('http://www.w3.org/2007/ont/link#MachineEditableDocument'))) {
8686
return 'LOCALFILE'
8787
}
8888

src/updates-via.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Updates-Via
33
*/
4-
import { namedNode } from './data-factory'
4+
import DataFactory from './data-factory'
55

66
export class UpdatesSocket {
77
constructor (parent, via) {
@@ -131,7 +131,7 @@ export class UpdatesVia {
131131
return true
132132
}
133133
onUpdate (uri, d) {
134-
return this.fetcher.refresh(namedNode(uri))
134+
return this.fetcher.refresh(DataFactory.namedNode(uri))
135135
}
136136
register (via, uri) {
137137
if (this.via[via] == null) {

0 commit comments

Comments
 (0)