New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@hint/utils-create-server

Package Overview
Dependencies
Maintainers
5
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hint/utils-create-server - npm Package Compare versions

Comparing version

to
3.4.15

2

dist/src/independent-thread-server.js

@@ -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