mirror of
https://github.com/ad1217/PrinterStatus
synced 2024-12-26 03:25:42 -05:00
Bump js-yaml
to 4.x
This commit is contained in:
parent
41f5201d6b
commit
20b4e5ac8b
8679
package-lock.json
generated
8679
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -18,7 +18,7 @@
|
||||
"express": "^4.17.1",
|
||||
"express-ws": "^4.0.0",
|
||||
"http-proxy": "^1.18.1",
|
||||
"js-yaml": "^3.14.0",
|
||||
"js-yaml": "^4.1.0",
|
||||
"node-fetch": "^2.6.1",
|
||||
"node-gyp": "^7.1.0",
|
||||
"parcel-bundler": "^1.12.4",
|
||||
|
@ -18,7 +18,7 @@ const PORT = process.env.PORT || 1234;
|
||||
type configuration = { printers: { address: string; apikey: string }[] };
|
||||
|
||||
// Load config
|
||||
const config: configuration = yaml.safeLoad(
|
||||
const config: configuration = yaml.load(
|
||||
fs.readFileSync('config.yaml', 'utf8')
|
||||
) as configuration;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user