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

dx-server

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dx-server - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

14

cjs/express.d.ts
/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
import { Writable } from 'node:stream';
import { Readable } from 'node:stream';
export declare const expressContext: {

@@ -25,4 +25,7 @@ readonly value: {

} | {
type: 'stream';
data: Writable;
type: 'nodeStream';
data: Readable;
} | {
type: 'webStream';
data: ReadableStream;
});

@@ -43,5 +46,8 @@ chain(params_0?: {

}): void;
export declare function setStream(stream: Writable, { status }?: {
export declare function setNodeStream(stream: Readable, { status }?: {
status?: number;
}): void;
export declare function setWebStream(stream: ReadableStream, { status }?: {
status?: number;
}): void;
export declare function setJson(json: any, { status, beautify }?: {

@@ -48,0 +54,0 @@ status?: number;

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.setRedirect = exports.setJson = exports.setStream = exports.setBuffer = exports.setHtml = exports.setText = exports.expressContext = void 0;
exports.setRedirect = exports.setJson = exports.setWebStream = exports.setNodeStream = exports.setBuffer = exports.setHtml = exports.setText = exports.expressContext = void 0;
const jdefer_1 = __importDefault(require("jdefer"));

@@ -12,2 +12,3 @@ const node_util_1 = require("node:util");

const context_js_1 = require("./context.js");
const node_stream_1 = require("node:stream");
exports.expressContext = (0, context_js_1.makeContext)(async ({ jsonBeautify, disableEtag } = {}) => {

@@ -25,3 +26,3 @@ return {

};
let buffer;
let bufferOrStream;
switch (type) {

@@ -33,18 +34,22 @@ case 'text':

// shared with text
buffer = Buffer.from(data, charset);
bufferOrStream = Buffer.from(data, charset);
break;
case 'buffer':
setContentType('application/octet-stream');
buffer = data;
bufferOrStream = data;
break;
case 'stream':
case 'nodeStream':
setContentType('application/octet-stream');
buffer = data;
bufferOrStream = data;
break;
case 'webStream':
setContentType('application/octet-stream');
bufferOrStream = node_stream_1.Readable.fromWeb(data);
break;
case 'json':
setContentType('application/json');
buffer = Buffer.from(jsonBeautify ? JSON.stringify(data, null, 2) : JSON.stringify(data), charset);
bufferOrStream = Buffer.from(jsonBeautify ? JSON.stringify(data, null, 2) : JSON.stringify(data), charset);
break;
case 'redirect':
buffer = Buffer.from(data, charset);
bufferOrStream = Buffer.from(data, charset);
break;

@@ -90,7 +95,7 @@ case undefined:

else {
if (Buffer.isBuffer(buffer)) {
if (Buffer.isBuffer(bufferOrStream)) {
// support: 304 (etag), zipping, file etag and last modified
res.setHeader('content-length', buffer.length);
res.setHeader('content-length', bufferOrStream.length);
if (!disableEtag) {
const etag = (0, etag_js_1.entityTag)(buffer);
const etag = (0, etag_js_1.entityTag)(bufferOrStream);
const lastModified = res.getHeader('last-modified');

@@ -106,9 +111,9 @@ res.setHeader('ETag', etag);

else
res.write(buffer);
res.write(bufferOrStream);
}
else
res.write(buffer);
res.write(bufferOrStream);
}
else {
buffer.pipe(res);
bufferOrStream.pipe(res);
}

@@ -146,3 +151,3 @@ // fixme: not support content-encoding (gzip, deflate, br) for now

exports.setBuffer = setBuffer;
function setStream(stream, { status } = {}) {
function setNodeStream(stream, { status } = {}) {
const response = context_js_1.responseContext.value;

@@ -153,5 +158,14 @@ const express = exports.expressContext.value;

express.data = stream;
express.type = 'stream';
express.type = 'nodeStream';
}
exports.setStream = setStream;
exports.setNodeStream = setNodeStream;
function setWebStream(stream, { status } = {}) {
const response = context_js_1.responseContext.value;
const express = exports.expressContext.value;
if (status)
response.statusCode = status;
express.data = stream;
express.type = 'webStream';
}
exports.setWebStream = setWebStream;
function setJson(json, { status, beautify } = {}) {

@@ -176,2 +190,2 @@ const response = context_js_1.responseContext.value;

exports.setRedirect = setRedirect;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwcmVzcy5qcyIsInNvdXJjZVJvb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S0FBSyxDQUFBO0lBQ3RDLE1BQU0sT0FBTyxHQUFHLHNCQUFjLENBQUMsS0FBSyxDQUFBO0lBQ3BDLFFBQVEsQ0FBQyxVQUFVLEdBQUcsTUFBTSxDQUFBO0lBQzVCLE9BQU8sQ0FBQyxJQUFJLEdBQUcsR0FBRyxDQUFBO0lBQ2xCLE9BQU8sQ0FBQyxJQUFJLEdBQUcsVUFBVSxDQUFBO0FBQzFCLENBQUM7QUFORCxrQ0FNQyJ9
/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
import { Writable } from 'node:stream';
import { Readable } from 'node:stream';
export declare const expressContext: {

@@ -25,4 +25,7 @@ readonly value: {

} | {
type: 'stream';
data: Writable;
type: 'nodeStream';
data: Readable;
} | {
type: 'webStream';
data: ReadableStream;
});

@@ -43,5 +46,8 @@ chain(params_0?: {

}): void;
export declare function setStream(stream: Writable, { status }?: {
export declare function setNodeStream(stream: Readable, { status }?: {
status?: number;
}): void;
export declare function setWebStream(stream: ReadableStream, { status }?: {
status?: number;
}): void;
export declare function setJson(json: any, { status, beautify }?: {

@@ -48,0 +54,0 @@ status?: number;

@@ -5,2 +5,3 @@ import makeDefer from 'jdefer';

import { makeContext, requestContext, responseContext } from './context.js';
import { Readable } from 'node:stream';
export const expressContext = makeContext(async ({ jsonBeautify, disableEtag } = {}) => {

@@ -18,3 +19,3 @@ return {

};
let buffer;
let bufferOrStream;
switch (type) {

@@ -26,18 +27,22 @@ case 'text':

// shared with text
buffer = Buffer.from(data, charset);
bufferOrStream = Buffer.from(data, charset);
break;
case 'buffer':
setContentType('application/octet-stream');
buffer = data;
bufferOrStream = data;
break;
case 'stream':
case 'nodeStream':
setContentType('application/octet-stream');
buffer = data;
bufferOrStream = data;
break;
case 'webStream':
setContentType('application/octet-stream');
bufferOrStream = Readable.fromWeb(data);
break;
case 'json':
setContentType('application/json');
buffer = Buffer.from(jsonBeautify ? JSON.stringify(data, null, 2) : JSON.stringify(data), charset);
bufferOrStream = Buffer.from(jsonBeautify ? JSON.stringify(data, null, 2) : JSON.stringify(data), charset);
break;
case 'redirect':
buffer = Buffer.from(data, charset);
bufferOrStream = Buffer.from(data, charset);
break;

@@ -83,7 +88,7 @@ case undefined:

else {
if (Buffer.isBuffer(buffer)) {
if (Buffer.isBuffer(bufferOrStream)) {
// support: 304 (etag), zipping, file etag and last modified
res.setHeader('content-length', buffer.length);
res.setHeader('content-length', bufferOrStream.length);
if (!disableEtag) {
const etag = entityTag(buffer);
const etag = entityTag(bufferOrStream);
const lastModified = res.getHeader('last-modified');

@@ -99,9 +104,9 @@ res.setHeader('ETag', etag);

else
res.write(buffer);
res.write(bufferOrStream);
}
else
res.write(buffer);
res.write(bufferOrStream);
}
else {
buffer.pipe(res);
bufferOrStream.pipe(res);
}

@@ -136,3 +141,3 @@ // fixme: not support content-encoding (gzip, deflate, br) for now

}
export function setStream(stream, { status } = {}) {
export function setNodeStream(stream, { status } = {}) {
const response = responseContext.value;

@@ -143,4 +148,12 @@ const express = expressContext.value;

express.data = stream;
express.type = 'stream';
express.type = 'nodeStream';
}
export function setWebStream(stream, { status } = {}) {
const response = responseContext.value;
const express = expressContext.value;
if (status)
response.statusCode = status;
express.data = stream;
express.type = 'webStream';
}
export function setJson(json, { status, beautify } = {}) {

@@ -163,2 +176,2 @@ const response = responseContext.value;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwcmVzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9leHByZXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sU0FBUyxNQUFNLFFBQVEsQ0FBQTtBQUM5QixPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sV0FBVyxDQUFBO0FBQ25DLE9BQU8sRUFBQyxTQUFTLEVBQUUsV0FBVyxFQUFDLE1BQU0sV0FBVyxDQUFBO0FBQ2hELE9BQU8sRUF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TyxHQUFHLGNBQWMsQ0FBQyxLQUFLLENBQUE7SUFDcEMsUUFBUSxDQUFDLFVBQVUsR0FBRyxNQUFNLENBQUE7SUFDNUIsT0FBTyxDQUFDLElBQUksR0FBRyxHQUFHLENBQUE7SUFDbEIsT0FBTyxDQUFDLElBQUksR0FBRyxVQUFVLENBQUE7QUFDMUIsQ0FBQyJ9
{
"name": "dx-server",
"version": "0.0.4",
"version": "0.0.5",
"main": "./cjs/index.js",

@@ -5,0 +5,0 @@ "repository": "https://github.com/tranvansang/dx-server",

@@ -21,3 +21,10 @@ # dx-server - modern, unopinionated, and satisfactory server

expressContext, setHtml, setJson,
expressContext,
setHtml,
setJson,
setText,
setBuffer,
setRedirect,
setNodeStream,
setWebStream,

@@ -24,0 +31,0 @@ bufferBodyContext,

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