Update dependencies

This commit is contained in:
Zaid Abdulla committed 2019-07-29 23:59:41 -07:00
1 parent 1ee6c9e89e
commit 58b3e13ecd
9 files changed
+1029 -981

No files matched your search

+3 -1
View File
@@ -20,6 +20,8 @@
"no-return-await": "error", "no-return-await": "error",
"@typescript-eslint/no-explicit-any": 0, "@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-use-before-define": ["error", { "functions": false }], "@typescript-eslint/no-use-before-define": ["error", { "functions": false }],
"@typescript-eslint/explicit-function-return-type": ["error", { "allowExpressions": true }] "@typescript-eslint/explicit-function-return-type": ["error", { "allowExpressions": true }],
"require-atomic-updates": 0,
"no-prototype-builtins": 0
} }
} }
+3 -3
View File
@@ -302,9 +302,9 @@ async function inform(sessionContext: SessionContext, rpc): Promise<void> {
); );
if (cookiesPath) { if (cookiesPath) {
res.headers["Set-Cookie"] = `session=${ res.headers[
sessionContext.sessionId "Set-Cookie"
}; Path=${cookiesPath}`; ] = `session=${sessionContext.sessionId}; Path=${cookiesPath}`;
} else { } else {
res.headers["Set-Cookie"] = `session=${sessionContext.sessionId}`; res.headers["Set-Cookie"] = `session=${sessionContext.sessionId}`;
} }
+4 -7
View File
@@ -55,13 +55,10 @@ export function listener(request, response): void {
let bytes = 0; let bytes = 0;
response.setHeader("GenieACS-Version", VERSION); response.setHeader("GenieACS-Version", VERSION);
request.addListener( request.addListener("data", (chunk): void => {
"data", chunks.push(chunk);
(chunk): void => { bytes += chunk.length;
chunks.push(chunk); });
bytes += chunk.length;
}
);
function getBody(): Buffer { function getBody(): Buffer {
// Write all chunks into a Buffer // Write all chunks into a Buffer
+4 -9
View File
@@ -635,9 +635,7 @@ async function runVirtualParameters(
) { ) {
r.fault = { r.fault = {
code: "script", code: "script",
message: `Virtual parameter '${ message: `Virtual parameter '${provision[0]}' must provide 'writable' attribute`
provision[0]
}' must provide 'writable' attribute`
}; };
return r; return r;
} }
@@ -668,9 +666,7 @@ async function runVirtualParameters(
} else if (provision[1].value != null || provision[2].value != null) { } else if (provision[1].value != null || provision[2].value != null) {
r.fault = { r.fault = {
code: "script", code: "script",
message: `Virtual parameter '${ message: `Virtual parameter '${provision[0]}' must provide 'value' attribute`
provision[0]
}' must provide 'value' attribute`
}; };
return r; return r;
} }
@@ -1858,9 +1854,8 @@ function processDeclarations(
const root = sessionContext.deviceData.paths.add(Path.parse("")); const root = sessionContext.deviceData.paths.add(Path.parse(""));
const paths = deviceData.paths.find(root, false, true, 99); const paths = deviceData.paths.find(root, false, true, 99);
paths.sort( paths.sort((a, b): number =>
(a, b): number => a.wildcard === b.wildcard ? a.length - b.length : a.wildcard - b.wildcard
a.wildcard === b.wildcard ? a.length - b.length : a.wildcard - b.wildcard
); );
const virtualParameterDeclarations = [] as VirtualParameterDeclaration[]; const virtualParameterDeclarations = [] as VirtualParameterDeclaration[];
+1 -3
View File
@@ -246,9 +246,7 @@ function SetParameterValues(xml, methodRequest): void {
const el = xml.node("cwmp:SetParameterValues"); const el = xml.node("cwmp:SetParameterValues");
const paramList = el.node("ParameterList"); const paramList = el.node("ParameterList");
paramList.attr({ paramList.attr({
"soap-enc:arrayType": `cwmp:ParameterValueStruct[${ "soap-enc:arrayType": `cwmp:ParameterValueStruct[${methodRequest.parameterList.length}]`
methodRequest.parameterList.length
}]`
}); });
for (const p of methodRequest.parameterList) { for (const p of methodRequest.parameterList) {
+992 -933
View File
File diff suppressed because it is too large. Load diff
+20 -19
View File
@@ -24,12 +24,12 @@
"koa": "^2.7.0", "koa": "^2.7.0",
"koa-bodyparser": "^4.2.1", "koa-bodyparser": "^4.2.1",
"koa-compress": "^3.0.0", "koa-compress": "^3.0.0",
"koa-jwt": "^3.5.1", "koa-jwt": "^3.6.0",
"koa-router": "^7.4.0", "koa-router": "^7.4.0",
"koa-static": "^5.0.0", "koa-static": "^5.0.0",
"later": "^1.2.0", "later": "^1.2.0",
"mongodb": "^3.2.6", "mongodb": "^3.2.6",
"parsimmon": "^1.12.0", "parsimmon": "^1.13.0",
"seedrandom": "^3.0.1", "seedrandom": "^3.0.1",
"yaml": "^1.6.0" "yaml": "^1.6.0"
}, },
@@ -38,38 +38,39 @@
}, },
"devDependencies": { "devDependencies": {
"@types/jsonwebtoken": "^8.3.2", "@types/jsonwebtoken": "^8.3.2",
"@types/koa": "^2.0.48", "@types/koa": "^2.0.49",
"@types/koa-compress": "^2.0.9", "@types/koa-compress": "^2.0.9",
"@types/koa-router": "^7.0.40", "@types/koa-router": "^7.0.42",
"@types/koa-static": "^4.0.1", "@types/koa-static": "^4.0.1",
"@types/libxmljs": "^0.18.3", "@types/libxmljs": "^0.18.3",
"@types/mithril": "github:MithrilJS/mithril.d.ts#next", "@types/mithril": "^2.0.0",
"@types/mongodb": "^3.1.28", "@types/mongodb": "^3.1.31",
"@types/parsimmon": "^1.10.0", "@types/parsimmon": "^1.10.0",
"@types/seedrandom": "^2.4.28", "@types/seedrandom": "^2.4.28",
"@types/svgo": "^1.2.1", "@types/svgo": "^1.2.1",
"@typescript-eslint/eslint-plugin": "^1.9.0", "@typescript-eslint/eslint-plugin": "^1.13.0",
"ava": "^2.0.0", "@typescript-eslint/parser": "^1.13.0",
"codemirror": "^5.47.0", "ava": "^2.2.0",
"codemirror": "^5.48.2",
"cssnano": "^4.1.10", "cssnano": "^4.1.10",
"eslint": "^5.16.0", "eslint": "^6.1.0",
"eslint-config-prettier": "^4.3.0", "eslint-config-prettier": "^6.0.0",
"esm": "^3.2.25", "esm": "^3.2.25",
"mithril": "^2.0.0-rc.8", "mithril": "^2.0.3",
"postcss": "^7.0.16", "postcss": "^7.0.17",
"postcss-import": "^12.0.1", "postcss-import": "^12.0.1",
"postcss-preset-env": "^6.7.0", "postcss-preset-env": "^6.7.0",
"prettier": "^1.17.1", "prettier": "^1.18.2",
"rollup": "^1.13.1", "rollup": "^1.17.0",
"rollup-plugin-json": "^4.0.0", "rollup-plugin-json": "^4.0.0",
"rollup-plugin-replace": "^2.2.0", "rollup-plugin-replace": "^2.2.0",
"rollup-plugin-terser": "^5.0.0", "rollup-plugin-terser": "^5.1.1",
"rollup-plugin-typescript": "^1.0.1", "rollup-plugin-typescript": "^1.0.1",
"source-map-loader": "^0.2.4", "source-map-loader": "^0.2.4",
"svgo": "^1.3.0", "svgo": "^1.3.0",
"ts-node": "^8.2.0", "ts-node": "^8.3.0",
"typescript": "^3.5.1", "typescript": "^3.5.3",
"webpack": "^4.32.2" "webpack": "^4.38.0"
}, },
"engines": { "engines": {
"node": ">=8.14.0" "node": ">=8.14.0"
+1 -3
View File
@@ -53,9 +53,7 @@ ava("generateDeviceId", t => {
OUI: `TestOUIWith${space[0]}_${special[0]}2912`, OUI: `TestOUIWith${space[0]}_${special[0]}2912`,
SerialNumber: `TestSerialNumberWith${space[0]}_${special[0]}2912` SerialNumber: `TestSerialNumberWith${space[0]}_${special[0]}2912`
}, },
`TestOUIWith${space[1]}_${special[1]}2912-TestSerialNumberWith${ `TestOUIWith${space[1]}_${special[1]}2912-TestSerialNumberWith${space[1]}_${special[1]}2912`
space[1]
}_${special[1]}2912`
] ]
]; ];
t.plan(cases.length); t.plan(cases.length);
+1 -3
View File
@@ -297,9 +297,7 @@ export const component: ClosureComponent = (): Component => {
onclick: e => { onclick: e => {
if ( if (
!confirm( !confirm(
`Deleting ${ `Deleting ${selected.size} virtual parameters. Are you sure?`
selected.size
} virtual parameters. Are you sure?`
) )
) )
return; return;