Skip to content
This repository was archived by the owner on Aug 23, 2021. It is now read-only.

Commit f12c791

Browse files
authored
Merge pull request #4 from rgraphql/master
fix: use useValue not useFactory
2 parents 3930990 + 7a2cf80 commit f12c791

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ export class Soyuz extends SoyuzClient {}
1111
export function createSoyuzSingleton(clientFn: () => SoyuzClient): Provider {
1212
return {
1313
provide: Soyuz,
14-
useValue: clientFn,
14+
useFactory: clientFn,
1515
};
1616
}

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"node",
1616
"jasmine",
1717
"chai",
18-
"graphql"
18+
"graphql",
19+
"long"
1920
],
2021
"lib": ["es2017", "dom"]
2122
},

0 commit comments

Comments
 (0)