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

retes

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

retes - npm Package Compare versions

Comparing version 0.27.2 to 0.28.0

chunk-DZGYT532.mjs

2

adapter.js

@@ -27,3 +27,3 @@ var __defProp = Object.defineProperty;

// src/util.ts
var compose = (...functions) => (args) => functions.reduceRight((arg, fn) => fn(arg), args);
var compose = (...functions) => (args) => functions.reduce((arg, fn) => fn(arg), args);
function isPipeline(handler) {

@@ -30,0 +30,0 @@ return Array.isArray(handler);

var __create = Object.create;
var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __spreadValues = (a, b) => {
for (var prop in b || (b = {}))
if (__hasOwnProp.call(b, prop))
__defNormalProp(a, prop, b[prop]);
if (__getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(b)) {
if (__propIsEnum.call(b, prop))
__defNormalProp(a, prop, b[prop]);
}
return a;
};
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
var __export = (target, all) => {

@@ -324,5 +307,5 @@ for (var name in all)

if (handler !== void 0) {
request.params = __spreadValues(__spreadValues({}, query), params);
request.params = { ...query, ...params };
await handleRequest(request);
request.params = __spreadValues({}, request.params);
request.params = { ...request.params };
return handler(request);

@@ -366,3 +349,4 @@ } else {

file.on("data", (data) => {
request.files = __spreadProps(__spreadValues({}, request.files), {
request.files = {
...request.files,
[name]: {

@@ -375,3 +359,3 @@ name: filename,

}
});
};
});

@@ -382,3 +366,3 @@ file.on("close", () => {

bb.on("field", (name, val) => {
request.params = __spreadProps(__spreadValues({}, request.params), { [name]: val });
request.params = { ...request.params, [name]: val };
});

@@ -429,5 +413,6 @@ bb.end(buffer);

status,
headers: __spreadProps(__spreadValues({}, headers), {
headers: {
...headers,
Location: url
})
}
};

@@ -636,5 +621,6 @@ }

this.routePaths[path] = {};
this.routePaths[path][method.toLowerCase()] = __spreadProps(__spreadValues({}, meta), {
this.routePaths[path][method.toLowerCase()] = {
...meta,
summary
});
};
const flow = [...middleware, handler];

@@ -641,0 +627,0 @@ this.add(method, path, ...flow);

var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __spreadValues = (a, b) => {
for (var prop in b || (b = {}))
if (__hasOwnProp.call(b, prop))
__defNormalProp(a, prop, b[prop]);
if (__getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(b)) {
if (__propIsEnum.call(b, prop))
__defNormalProp(a, prop, b[prop]);
}
return a;
};
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
var __export = (target, all) => {

@@ -75,5 +58,6 @@ for (var name in all)

status,
headers: __spreadProps(__spreadValues({}, headers), {
headers: {
...headers,
Location: url
})
}
};

@@ -107,8 +91,10 @@ }

const response = await handler(request);
const newResponse = __spreadProps(__spreadValues({}, response), {
const newResponse = {
...response,
body: JSON.stringify(response.body),
headers: __spreadProps(__spreadValues({}, response.headers), {
headers: {
...response.headers,
"Content-Type": "application/json"
})
});
}
};
return newResponse;

@@ -118,8 +104,10 @@ };

const response = await handler(request);
const newResponse = __spreadProps(__spreadValues({}, response), {
const newResponse = {
...response,
body: JSON.stringify(response.body),
headers: __spreadProps(__spreadValues({}, response.headers), {
headers: {
...response.headers,
"Content-Type": "text/html"
})
});
}
};
return newResponse;

@@ -126,0 +114,0 @@ };

{
"name": "retes",
"version": "0.27.2",
"version": "0.28.0",
"description": "Universal HTTP library for Node.js, Deno & Serverless (Cloudflare, Vercel, Netlify)",

@@ -5,0 +5,0 @@ "types": "index.d.ts",

var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __spreadValues = (a, b) => {
for (var prop in b || (b = {}))
if (__hasOwnProp.call(b, prop))
__defNormalProp(a, prop, b[prop]);
if (__getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(b)) {
if (__propIsEnum.call(b, prop))
__defNormalProp(a, prop, b[prop]);
}
return a;
};
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
var __export = (target, all) => {

@@ -72,5 +55,6 @@ for (var name in all)

status,
headers: __spreadProps(__spreadValues({}, headers), {
headers: {
...headers,
Location: url
})
}
};

@@ -77,0 +61,0 @@ }

var __create = Object.create;
var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __spreadValues = (a, b) => {
for (var prop in b || (b = {}))
if (__hasOwnProp.call(b, prop))
__defNormalProp(a, prop, b[prop]);
if (__getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(b)) {
if (__propIsEnum.call(b, prop))
__defNormalProp(a, prop, b[prop]);
}
return a;
};
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
var __export = (target, all) => {

@@ -102,5 +85,5 @@ for (var name in all)

if (handler !== void 0) {
request.params = __spreadValues(__spreadValues({}, query), params);
request.params = { ...query, ...params };
await handleRequest(request);
request.params = __spreadValues({}, request.params);
request.params = { ...request.params };
return handler(request);

@@ -144,3 +127,4 @@ } else {

file.on("data", (data) => {
request.files = __spreadProps(__spreadValues({}, request.files), {
request.files = {
...request.files,
[name]: {

@@ -153,3 +137,3 @@ name: filename,

}
});
};
});

@@ -160,3 +144,3 @@ file.on("close", () => {

bb.on("field", (name, val) => {
request.params = __spreadProps(__spreadValues({}, request.params), { [name]: val });
request.params = { ...request.params, [name]: val };
});

@@ -163,0 +147,0 @@ bb.end(buffer);

var __defProp = Object.defineProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __spreadValues = (a, b) => {
for (var prop in b || (b = {}))
if (__hasOwnProp.call(b, prop))
__defNormalProp(a, prop, b[prop]);
if (__getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(b)) {
if (__propIsEnum.call(b, prop))
__defNormalProp(a, prop, b[prop]);
}
return a;
};
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
var __export = (target, all) => {

@@ -73,5 +56,6 @@ for (var name in all)

status,
headers: __spreadProps(__spreadValues({}, headers), {
headers: {
...headers,
Location: url
})
}
};

@@ -78,0 +62,0 @@ }

@@ -39,3 +39,3 @@ var __defProp = Object.defineProperty;

}
var compose = (...functions) => (args) => functions.reduceRight((arg, fn) => fn(arg), args);
var compose = (...functions) => (args) => functions.reduce((arg, fn) => fn(arg), args);
var toBuffer = async (stream) => {

@@ -42,0 +42,0 @@ const chunks = [];

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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