🚀. Socket Launch Week Day 2:Introducing Manifest Alerts.Learn more
Sign In

@scalar/helpers

Package Overview
Dependencies
Maintainers
8
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scalar/helpers - npm Package Compare versions

Comparing version
0.5.1
to
0.5.2
+4
dist/http/scalar-headers.d.ts
export declare const X_SCALAR_COOKIE = "x-scalar-cookie";
export declare const X_SCALAR_SET_COOKIE = "x-scalar-set-cookie";
export declare const X_SCALAR_USER_AGENT = "x-scalar-user-agent";
//# sourceMappingURL=scalar-headers.d.ts.map
{"version":3,"file":"scalar-headers.d.ts","sourceRoot":"","sources":["../../src/http/scalar-headers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,oBAAoB,CAAA;AAChD,eAAO,MAAM,mBAAmB,wBAAwB,CAAA;AACxD,eAAO,MAAM,mBAAmB,wBAAwB,CAAA"}
export const X_SCALAR_COOKIE = 'x-scalar-cookie';
export const X_SCALAR_SET_COOKIE = 'x-scalar-set-cookie';
export const X_SCALAR_USER_AGENT = 'x-scalar-user-agent';
+6
-0
# @scalar/helpers
## 0.5.2
### Patch Changes
- [#8952](https://github.com/scalar/scalar/pull/8952): Export shared Scalar custom header constants from `@scalar/helpers/http/scalar-headers` and consume them in request build/send flows.
## 0.5.1

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

+1
-1

@@ -1,1 +0,1 @@

{"version":3,"file":"normalize-headers.d.ts","sourceRoot":"","sources":["../../src/http/normalize-headers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU,OAAO,EAAE,4BAA0B,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAoErG,CAAA;AAED,mEAAmE;AACnE,eAAO,MAAM,eAAe,GAAI,KAAK,MAAM,WAM7B,CAAA"}
{"version":3,"file":"normalize-headers.d.ts","sourceRoot":"","sources":["../../src/http/normalize-headers.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU,OAAO,EAAE,4BAA0B,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAoErG,CAAA;AAED,mEAAmE;AACnE,eAAO,MAAM,eAAe,GAAI,KAAK,MAAM,WAM7B,CAAA"}

@@ -0,1 +1,2 @@

import { X_SCALAR_SET_COOKIE } from '../http/scalar-headers.js';
/**

@@ -26,3 +27,3 @@ * Normalize headers:

// Remove the custom set-cookie header, we will handle this separately
delete headers['x-scalar-set-cookie'];
delete headers[X_SCALAR_SET_COOKIE];
/** Exact key of the modified headers header */

@@ -29,0 +30,0 @@ const modifiedHeaderKey = Object.keys(headers).find((key) => key.toLowerCase() === 'x-scalar-modified-headers');

@@ -17,3 +17,3 @@ {

],
"version": "0.5.1",
"version": "0.5.2",
"engines": {

@@ -20,0 +20,0 @@ "node": ">=22"