Skip to content

Commit 92b9174

Browse files
authored
Remove Mustache (#925)
1 parent bc7c646 commit 92b9174

File tree

3 files changed

+0
-32
lines changed

3 files changed

+0
-32
lines changed

packages/neo4j-driver/package-lock.json

Lines changed: 0 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/neo4j-driver/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
"karma-spec-reporter": "^0.0.33",
7676
"lolex": "^6.0.0",
7777
"minimist": "^1.2.6",
78-
"mustache": "^4.2.0",
7978
"nyc": "^15.1.0",
8079
"run-sequence": "^2.2.1",
8180
"semver": "^7.3.5",

packages/neo4j-driver/test/internal/bolt-stub.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ class UnsupportedBoltStub {
2424
start (script, port) {
2525
throw new Error('BoltStub: unable to start, unavailable on this platform')
2626
}
27-
28-
startWithTemplate (scriptTemplate, parameters, port) {
29-
throw new Error(
30-
'BoltStub: unable to start with template, unavailable on this platform'
31-
)
32-
}
3327
}
3428

3529
const verbose = (process.env.NEOLOGLEVEL || 'error').toLowerCase() === 'debug' // for debugging purposes
@@ -115,14 +109,6 @@ class SupportedBoltStub extends UnsupportedBoltStub {
115109
tryConnect()
116110
})
117111
}
118-
119-
startWithTemplate (scriptTemplate, parameters, port) {
120-
const template = this._fs.readFileSync(scriptTemplate, 'utf-8')
121-
const scriptContents = this._mustache.render(template, parameters)
122-
const script = this._tmp.fileSync().name
123-
this._fs.writeFileSync(script, scriptContents, 'utf-8')
124-
return this.start(script, port)
125-
}
126112
}
127113

128114
class StubServer {
@@ -182,6 +168,5 @@ const stub = supported ? supportedStub : new UnsupportedBoltStub()
182168
export default {
183169
supported: supported,
184170
start: stub.start.bind(stub),
185-
startWithTemplate: stub.startWithTemplate.bind(stub),
186171
newDriver: newDriver
187172
}

0 commit comments

Comments
 (0)