Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apache-js-workers

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apache-js-workers - npm Package Compare versions

Comparing version 0.0.16 to 0.0.17

4

index.js

@@ -61,2 +61,6 @@ "use strict";

Res.prototype.send = function (body) {
worker_threads_1.parentPort.postMessage({
type: 'set-status-code',
statusCode: this.statusCode
});
worker_threads_1.parentPort.postMessage({ type: 'response', body: body });

@@ -63,0 +67,0 @@ };

@@ -73,3 +73,3 @@ import { workerData, parentPort } from 'worker_threads'

writeHead(statusCode: number, headers: { [ keys: string ]: string }) {
writeHead(statusCode: number, headers?: { [ keys: string ]: string }) {
this.addHeaders(headers)

@@ -86,2 +86,7 @@ this.statusCode = statusCode

send(body?: any) {
parentPort.postMessage({
type: 'set-status-code',
statusCode: this.statusCode
} as SetStatusCodeMessage)
parentPort.postMessage({ type: 'response', body } as ResponseMessage)

@@ -88,0 +93,0 @@ }

2

package.json
{
"name": "apache-js-workers",
"version": "0.0.16",
"version": "0.0.17",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc