Socket
Socket
Sign inDemoInstall

@sveltejs/adapter-vercel

Package Overview
Dependencies
Maintainers
4
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sveltejs/adapter-vercel - npm Package Compare versions

Comparing version 5.3.1 to 5.3.2

12

index.d.ts

@@ -33,7 +33,2 @@ import { Adapter } from '@sveltejs/kit';

/**
* https://vercel.com/docs/build-output-api/v3/configuration#images
*/
images?: ImagesConfig;
/**
* [Incremental Static Regeneration](https://vercel.com/docs/concepts/incremental-static-regeneration/overview) configuration.

@@ -104,3 +99,8 @@ * Serverless only.

export type Config = EdgeConfig | ServerlessConfig;
export type Config = (EdgeConfig | ServerlessConfig) & {
/**
* https://vercel.com/docs/build-output-api/v3/configuration#images
*/
images?: ImagesConfig;
};

@@ -107,0 +107,0 @@ // we copy the RequestContext interface from `@vercel/edge` because that package can't co-exist with `@types/node`.

@@ -25,3 +25,3 @@ import fs from 'node:fs';

/** @type {import('.').default} **/
/** @type {import('./index.js').default} **/
const plugin = function (defaults = {}) {

@@ -73,4 +73,4 @@ if ('edge' in defaults) {

* @param {string} name
* @param {import('.').ServerlessConfig} config
* @param {import('@sveltejs/kit').RouteDefinition<import('.').Config>[]} routes
* @param {import('./index.js').ServerlessConfig} config
* @param {import('@sveltejs/kit').RouteDefinition<import('./index.js').Config>[]} routes
*/

@@ -104,4 +104,4 @@ async function generate_serverless_function(name, config, routes) {

* @param {string} name
* @param {import('.').EdgeConfig} config
* @param {import('@sveltejs/kit').RouteDefinition<import('.').EdgeConfig>[]} routes
* @param {import('./index.js').EdgeConfig} config
* @param {import('@sveltejs/kit').RouteDefinition<import('./index.js').EdgeConfig>[]} routes
*/

@@ -152,3 +152,4 @@ async function generate_edge_function(name, config, routes) {

}
} catch (error) {
} catch (err) {
const error = /** @type {import('esbuild').BuildFailure} */ (err);
for (const e of error.errors) {

@@ -199,3 +200,3 @@ for (const node of e.notes) {

/** @type {Map<string, { i: number, config: import('.').Config, routes: import('@sveltejs/kit').RouteDefinition<import('.').Config>[] }>} */
/** @type {Map<string, { i: number, config: import('./index.js').Config, routes: import('@sveltejs/kit').RouteDefinition<import('./index.js').Config>[] }>} */
const groups = new Map();

@@ -209,3 +210,3 @@

/** @type {Map<import('@sveltejs/kit').RouteDefinition<import('.').Config>, { expiration: number | false, bypassToken: string | undefined, allowQuery: string[], group: number, passQuery: true }>} */
/** @type {Map<import('@sveltejs/kit').RouteDefinition<import('./index.js').Config>, { expiration: number | false, bypassToken: string | undefined, allowQuery: string[], group: number, passQuery: true }>} */
const isr_config = new Map();

@@ -229,3 +230,3 @@

const node_runtime = /nodejs([0-9]+)\.x/.exec(runtime);
if (runtime !== 'edge' && (!node_runtime || node_runtime[1] < 18)) {
if (runtime !== 'edge' && (!node_runtime || parseInt(node_runtime[1]) < 18)) {
throw new Error(

@@ -405,3 +406,3 @@ `Invalid runtime '${runtime}' for route ${route.id}. Valid runtimes are 'edge' and 'nodejs18.x' or higher ` +

/** @param {import('.').EdgeConfig & import('.').ServerlessConfig} config */
/** @param {import('./index.js').EdgeConfig & import('./index.js').ServerlessConfig} config */
function hash_config(config) {

@@ -435,3 +436,3 @@ return [

* @param {import('@sveltejs/kit').Builder} builder
* @param {import('.').Config} config
* @param {import('./index.js').Config} config
* @param {string} dir

@@ -446,3 +447,3 @@ */

/** @type {import('./index').ImagesConfig} */
/** @type {import('./index.js').ImagesConfig | undefined} */
const images = config.images;

@@ -544,3 +545,3 @@

* @param {string} dir
* @param {import('.').ServerlessConfig} config
* @param {import('./index.js').ServerlessConfig} config
*/

@@ -547,0 +548,0 @@ async function create_function_bundle(builder, entry, dir, config) {

{
"name": "@sveltejs/adapter-vercel",
"version": "5.3.1",
"version": "5.3.2",
"description": "A SvelteKit adapter that creates a Vercel app",
"keywords": [
"adapter",
"deploy",
"hosting",
"svelte",
"sveltekit",
"vercel"
],
"repository": {

@@ -35,4 +43,4 @@ "type": "git",

"typescript": "^5.3.3",
"vitest": "^1.5.0",
"@sveltejs/kit": "^2.5.10"
"vitest": "^1.6.0",
"@sveltejs/kit": "^2.5.11"
},

@@ -39,0 +47,0 @@ "peerDependencies": {

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