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

@vercel/edge

Package Overview
Dependencies
Maintainers
9
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/edge - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

9

dist/index.d.ts

@@ -139,2 +139,6 @@ interface ModifiedRequest {

/**
* Postal code of the original client IP calculated by Vercel Proxy.
*/
declare const POSTAL_CODE_HEADER_NAME = "x-vercel-ip-postal-code";
/**
* The request ID for each request generated by Vercel Proxy.

@@ -176,2 +180,4 @@ */

longitude?: string;
/** The postal code of the client. */
postalCode?: string;
}

@@ -193,2 +199,3 @@ /**

* @see {@link LONGITUDE_HEADER_NAME}
* @see {@link POSTAL_CODE_HEADER_NAME}
* @param request The incoming request object which provides the geolocation data

@@ -279,2 +286,2 @@ */

export { CITY_HEADER_NAME, COUNTRY_HEADER_NAME, EMOJI_FLAG_UNICODE_STARTING_POSITION, ExtraResponseInit, Geo, IP_HEADER_NAME, LATITUDE_HEADER_NAME, LONGITUDE_HEADER_NAME, ModifiedRequest, REGION_HEADER_NAME, REQUEST_ID_HEADER_NAME, RequestContext, geolocation, ipAddress, json, next, rewrite };
export { CITY_HEADER_NAME, COUNTRY_HEADER_NAME, EMOJI_FLAG_UNICODE_STARTING_POSITION, ExtraResponseInit, Geo, IP_HEADER_NAME, LATITUDE_HEADER_NAME, LONGITUDE_HEADER_NAME, ModifiedRequest, POSTAL_CODE_HEADER_NAME, REGION_HEADER_NAME, REQUEST_ID_HEADER_NAME, RequestContext, geolocation, ipAddress, json, next, rewrite };

@@ -29,2 +29,3 @@ "use strict";

LONGITUDE_HEADER_NAME: () => LONGITUDE_HEADER_NAME,
POSTAL_CODE_HEADER_NAME: () => POSTAL_CODE_HEADER_NAME,
REGION_HEADER_NAME: () => REGION_HEADER_NAME,

@@ -80,2 +81,3 @@ REQUEST_ID_HEADER_NAME: () => REQUEST_ID_HEADER_NAME,

var REGION_HEADER_NAME = "x-vercel-ip-country-region";
var POSTAL_CODE_HEADER_NAME = "x-vercel-ip-postal-code";
var REQUEST_ID_HEADER_NAME = "x-vercel-id";

@@ -117,3 +119,4 @@ var EMOJI_FLAG_UNICODE_STARTING_POSITION = 127397;

latitude: getHeader(request, LATITUDE_HEADER_NAME),
longitude: getHeader(request, LONGITUDE_HEADER_NAME)
longitude: getHeader(request, LONGITUDE_HEADER_NAME),
postalCode: getHeader(request, POSTAL_CODE_HEADER_NAME)
};

@@ -134,2 +137,3 @@ }

LONGITUDE_HEADER_NAME,
POSTAL_CODE_HEADER_NAME,
REGION_HEADER_NAME,

@@ -136,0 +140,0 @@ REQUEST_ID_HEADER_NAME,

2

package.json
{
"name": "@vercel/edge",
"version": "1.1.3",
"version": "1.1.4",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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