Update dependencies

This commit is contained in:
Zaid Abdulla committed 2021-10-27 13:04:34 -07:00
1 parent 1b86f41ad7
commit 2c606b268e
3 files changed
+9120 -3026

No files matched your search

+4 -4
View File
@@ -17,7 +17,7 @@
* along with GenieACS. If not, see <http://www.gnu.org/licenses/>. * along with GenieACS. If not, see <http://www.gnu.org/licenses/>.
*/ */
import * as stream from "stream"; import { PassThrough } from "stream";
import Router from "koa-router"; import Router from "koa-router";
import * as db from "./db"; import * as db from "./db";
import * as apiFunctions from "./api-functions"; import * as apiFunctions from "./api-functions";
@@ -103,7 +103,7 @@ router.get(`/devices/:id.csv`, async (ctx) => {
.replace(/[:.]/g, "")}.csv` .replace(/[:.]/g, "")}.csv`
); );
ctx.body = new stream.PassThrough(); ctx.body = new PassThrough();
ctx.body.write( ctx.body.write(
"Parameter,Object,Object timestamp,Writable,Writable timestamp,Value,Value type,Value timestamp,Notification,Notification timestamp,Access list,Access list timestamp\n" "Parameter,Object,Object timestamp,Writable,Writable timestamp,Value,Value type,Value timestamp,Notification,Notification timestamp,Access list,Access list timestamp\n"
); );
@@ -216,7 +216,7 @@ for (const [resource, flags] of Object.entries(resources)) {
]); ]);
} }
ctx.body = new stream.PassThrough(); ctx.body = new PassThrough();
ctx.type = "application/json"; ctx.type = "application/json";
let c = 0; let c = 0;
@@ -276,7 +276,7 @@ for (const [resource, flags] of Object.entries(resources)) {
]); ]);
} }
ctx.body = new stream.PassThrough(); ctx.body = new PassThrough();
ctx.type = "text/csv"; ctx.type = "text/csv";
ctx.attachment( ctx.attachment(
`${resource}-${new Date(now).toISOString().replace(/[:.]/g, "")}.csv` `${resource}-${new Date(now).toISOString().replace(/[:.]/g, "")}.csv`
+9098 -3004
View File
File diff suppressed because it is too large. Load diff
+18 -18
View File
@@ -24,50 +24,50 @@
"iconv-lite": "^0.6.3", "iconv-lite": "^0.6.3",
"ipaddr.js": "^2.0.1", "ipaddr.js": "^2.0.1",
"jsonwebtoken": "^8.5.1", "jsonwebtoken": "^8.5.1",
"koa": "^2.13.1", "koa": "^2.13.4",
"koa-bodyparser": "^4.3.0", "koa-bodyparser": "^4.3.0",
"koa-compress": "^5.1.0", "koa-compress": "^5.1.0",
"koa-jwt": "^4.0.1", "koa-jwt": "^4.0.3",
"koa-router": "^10.1.1", "koa-router": "^10.1.1",
"koa-static": "^5.0.0", "koa-static": "^5.0.0",
"mongodb": "^4.1.2", "mongodb": "^4.1.3",
"parsimmon": "^1.18.0", "parsimmon": "^1.18.0",
"seedrandom": "^3.0.5" "seedrandom": "^3.0.5"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^20.0.0", "@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.1.0", "@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.4", "@rollup/plugin-node-resolve": "^13.0.6",
"@rollup/plugin-typescript": "^8.2.5", "@rollup/plugin-typescript": "^8.3.0",
"@types/codemirror": "^5.60.2", "@types/codemirror": "^5.60.5",
"@types/jsonwebtoken": "^8.5.5", "@types/jsonwebtoken": "^8.5.5",
"@types/koa": "^2.13.4", "@types/koa": "^2.13.4",
"@types/koa-compress": "^4.0.3", "@types/koa-compress": "^4.0.3",
"@types/koa-router": "^7.4.4", "@types/koa-router": "^7.4.4",
"@types/koa-static": "^4.0.2", "@types/koa-static": "^4.0.2",
"@types/mithril": "^2.0.8", "@types/mithril": "^2.0.8",
"@types/node": "^16.9.2", "@types/node": "^16.11.6",
"@types/parsimmon": "^1.10.6", "@types/parsimmon": "^1.10.6",
"@types/seedrandom": "^3.0.1", "@types/seedrandom": "^3.0.1",
"@typescript-eslint/eslint-plugin": "^4.31.1", "@typescript-eslint/eslint-plugin": "^5.2.0",
"@typescript-eslint/parser": "^4.31.1", "@typescript-eslint/parser": "^5.2.0",
"ava": "^3.15.0", "ava": "^3.15.0",
"codemirror": "^5.62.3", "codemirror": "^5.63.3",
"cssnano": "^5.0.8", "cssnano": "^5.0.8",
"eslint": "^7.32.0", "eslint": "^8.1.0",
"eslint-config-prettier": "^8.3.0", "eslint-config-prettier": "^8.3.0",
"esm": "^3.2.25", "esm": "^3.2.25",
"mithril": "^2.0.4", "mithril": "^2.0.4",
"postcss": "^8.3.6", "postcss": "^8.3.11",
"postcss-import": "^14.0.2", "postcss-import": "^14.0.2",
"postcss-preset-env": "^6.7.0", "postcss-preset-env": "^6.7.0",
"prettier": "^2.4.1", "prettier": "^2.4.1",
"rollup": "^2.56.3", "rollup": "^2.58.3",
"rollup-plugin-terser": "^7.0.2", "rollup-plugin-terser": "^7.0.2",
"sql.js": "^1.6.1", "sql.js": "^1.6.2",
"svgo": "^2.6.1", "svgo": "^2.7.0",
"ts-node": "^10.2.1", "ts-node": "^10.4.0",
"typescript": "^4.4.3", "typescript": "^4.4.4",
"yaml": "^1.10.2" "yaml": "^1.10.2"
}, },
"engines": { "engines": {