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