@hint/utils-create-server
Advanced tools
Comparing version
@@ -16,3 +16,3 @@ "use strict"; | ||
}; | ||
this.child = child_process_1.spawn(process.execPath, [pathToServer, serverArgs], opts); | ||
this.child = (0, child_process_1.spawn)(process.execPath, [pathToServer, serverArgs], opts); | ||
this.child.on('message', this.onMessage.bind(this)); | ||
@@ -19,0 +19,0 @@ this.child.on('error', (error) => { |
@@ -64,4 +64,4 @@ "use strict"; | ||
for (const [header, value] of Object.entries(headers)) { | ||
const headerValue = utils_network_1.normalizeHeaderValue(req.headers, header); | ||
if ((headerValue !== utils_string_1.normalizeString(value)) || (!headerValue && (value === null))) { | ||
const headerValue = (0, utils_network_1.normalizeHeaderValue)(req.headers, header); | ||
if ((headerValue !== (0, utils_string_1.normalizeString)(value)) || (!headerValue && (value === null))) { | ||
return 0; | ||
@@ -68,0 +68,0 @@ } |
@@ -5,4 +5,4 @@ "use strict"; | ||
const src_1 = require("../src"); | ||
ava_1.default('generateHTML generates a starter HTML', (t) => { | ||
const page = src_1.generateHTMLPage(undefined, `<p>hi!</p>`); | ||
(0, ava_1.default)('generateHTML generates a starter HTML', (t) => { | ||
const page = (0, src_1.generateHTMLPage)(undefined, `<p>hi!</p>`); | ||
const expected = `<!doctype html> | ||
@@ -19,4 +19,4 @@ <html lang="en"> | ||
}); | ||
ava_1.default('generateHTML generates an html with an empty body', (t) => { | ||
const page = src_1.generateHTMLPage(undefined); | ||
(0, ava_1.default)('generateHTML generates an html with an empty body', (t) => { | ||
const page = (0, src_1.generateHTMLPage)(undefined); | ||
let expected = `<!doctype html> | ||
@@ -23,0 +23,0 @@ <html lang="en"> |
{ | ||
"dependencies": { | ||
"@hint/utils-network": "^1.0.14", | ||
"@hint/utils-string": "^1.0.10", | ||
"express": "^4.17.1", | ||
"@hint/utils-network": "^1.0.15", | ||
"@hint/utils-string": "^1.0.11", | ||
"express": "^4.17.2", | ||
"is-ci": "^3.0.1", | ||
@@ -13,15 +13,15 @@ "lodash": "^4.17.21", | ||
"@types/express": "^4.17.13", | ||
"@types/lodash": "^4.14.176", | ||
"@types/node": "^15.6.1", | ||
"@types/lodash": "^4.14.178", | ||
"@types/node": "^17.0.14", | ||
"@types/on-headers": "^1.0.0", | ||
"@typescript-eslint/eslint-plugin": "^4.33.0", | ||
"@typescript-eslint/parser": "^4.28.1", | ||
"ava": "^3.15.0", | ||
"@typescript-eslint/parser": "^4.33.0", | ||
"ava": "^4.0.1", | ||
"copyfiles": "^2.4.1", | ||
"eslint": "^7.29.0", | ||
"eslint-plugin-import": "^2.25.2", | ||
"eslint": "^7.32.0", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-markdown": "^2.2.1", | ||
"npm-run-all": "^4.1.5", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.3.5" | ||
"typescript": "^4.5.5" | ||
}, | ||
@@ -63,3 +63,3 @@ "files": [ | ||
}, | ||
"version": "3.4.14" | ||
"version": "3.4.15" | ||
} |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
141723
-23.31%25
-3.85%4
33.33%Updated
Updated
Updated