2
0
mirror of https://github.com/ad1217/PrinterStatus synced 2024-11-21 23:13:49 -05:00

Bump js-yaml to 4.x

This commit is contained in:
Adam Goldsmith 2021-10-11 21:18:50 -04:00
parent 41f5201d6b
commit 20b4e5ac8b
3 changed files with 8656 additions and 27 deletions

8679
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -18,7 +18,7 @@
"express": "^4.17.1", "express": "^4.17.1",
"express-ws": "^4.0.0", "express-ws": "^4.0.0",
"http-proxy": "^1.18.1", "http-proxy": "^1.18.1",
"js-yaml": "^3.14.0", "js-yaml": "^4.1.0",
"node-fetch": "^2.6.1", "node-fetch": "^2.6.1",
"node-gyp": "^7.1.0", "node-gyp": "^7.1.0",
"parcel-bundler": "^1.12.4", "parcel-bundler": "^1.12.4",

View File

@ -18,7 +18,7 @@ const PORT = process.env.PORT || 1234;
type configuration = { printers: { address: string; apikey: string }[] }; type configuration = { printers: { address: string; apikey: string }[] };
// Load config // Load config
const config: configuration = yaml.safeLoad( const config: configuration = yaml.load(
fs.readFileSync('config.yaml', 'utf8') fs.readFileSync('config.yaml', 'utf8')
) as configuration; ) as configuration;