@scalar/helpers
Advanced tools
| 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 +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'); |
+1
-1
@@ -17,3 +17,3 @@ { | ||
| ], | ||
| "version": "0.5.1", | ||
| "version": "0.5.2", | ||
| "engines": { | ||
@@ -20,0 +20,0 @@ "node": ">=22" |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
209323
0.44%201
1.52%4664
0.15%