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

@divine/headers

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@divine/headers - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

9

build/src/content-headers.js

@@ -59,3 +59,8 @@ "use strict";

const safe = param.value.replace(/[^\u0020-\u007e]/g, '_');
params += `;${param.name}="${safe.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}"`;
if (/^[a-zA-Z0-9!#$%&'*+.^_`|~-]+$/.test(safe)) { // "any VCHAR, except delimiters"
params += `;${param.name}=${safe}`;
}
else {
params += `;${param.name}="${safe.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}"`;
}
if (safe !== param.value) {

@@ -132,2 +137,2 @@ params += `;${param.name}*=utf-8''${percentEncode(param.value)}`;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1oZWFkZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnRlbnQtaGVhZGVycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFJQSxNQUFzQixhQUFhO0lBSS9CLFlBQVksUUFBZ0MsRUFBa0IsVUFBbUI7UUFBbkIsZUFBVSxHQUFWLFVBQVUsQ0FBUztRQUZ4RSxXQUFNLEdBQXdCLEVBQUUsQ0FBQztRQUd0QyxJQUFJLFFBQVEsWUFBWSxhQUFhLEVBQUU7WUFDbkMsSUFBSSxDQUFDLEtBQUssR0FBSSxRQUFRLENBQUMsS0FBSyxDQUFDO1lBQzdCLElBQUksQ0FBQyxNQUFNLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLFFBQVEsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDO1lBQzFELE9BQU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ENBQUMsS0FBSyxDQUFDLENBQUM7SUFDakUsQ0FBQztJQUVELFlBQVksUUFBOEIsRUFBRSxPQUFnQjtRQUN4RCxLQUFLLENBQUMsUUFBUSxFQUFFLGNBQWMsQ0FBQyxDQUFDO1FBRWhDLElBQUksT0FBTyxLQUFLLFNBQVMsRUFBRTtZQUN2QixJQUFJLENBQUMsUUFBUSxDQUFDLFNBQVMsRUFBRSxPQUFPLENBQUMsQ0FBQztTQUNyQztJQUNMLENBQUM7SUFFRCxJQUFJLFFBQVE7UUFDUixPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQ25DLENBQUM7SUFFRCxJQUFJLE9BQU87UUFDUCxPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQ25DLENBQUM7SUFFRCxJQUFJLE9BQU87UUFDUCxPQUFPLElBQUksQ0FBQyxLQUFLLENBQUMsU0FBUyxDQUFDLENBQUM7SUFDakMsQ0FBQztDQUNKO0FBdkNELGtDQXVDQztBQUVELGtGQUFrRjtBQUNsRixTQUFTLGFBQWEsQ0FBQyxHQUFXO0lBQzlCLE9BQU8sa0JBQWtCLENBQUMsR0FBRyxDQUFDO1NBQ3pCLE9BQU8sQ0FBQyxTQUFTLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxHQUFHLEdBQUcsQ0FBQyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsRUFBRSxDQUFDLENBQUMsV0FBVyxFQUFFLENBQUMsQ0FBQztBQUNuRixDQUFDIn0=
# @divine/headers
## 2.0.4
### Patch Changes
- 53cbbf1: Don't quote content-header parameters unless required.
## 2.0.3

@@ -4,0 +10,0 @@

{
"name": "@divine/headers",
"version": "2.0.3",
"version": "2.0.4",
"description": "The Divine HTTP Header Library",

@@ -5,0 +5,0 @@ "author": "Martin Blom <martin@blom.org>",

@@ -76,3 +76,7 @@ export interface ContentHeaderParams {

params += `;${param!.name}="${safe.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}"`;
if (/^[a-zA-Z0-9!#$%&'*+.^_`|~-]+$/.test(safe)) { // "any VCHAR, except delimiters"
params += `;${param!.name}=${safe}`;
} else {
params += `;${param!.name}="${safe.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}"`;
}

@@ -79,0 +83,0 @@ if (safe !== param!.value) {

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