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

@sveltejs/adapter-netlify

Package Overview
Dependencies
Maintainers
4
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sveltejs/adapter-netlify - npm Package Compare versions

Comparing version 1.0.0-next.24 to 1.0.0-next.25

6

CHANGELOG.md
# @sveltejs/adapter-netlify
## 1.0.0-next.25
### Patch Changes
- e9f78999: fix: include esbuild config in adapter type definition
## 1.0.0-next.24

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

5

index.d.ts

@@ -1,3 +0,6 @@

declare function plugin(): import('@sveltejs/kit').Adapter;
type BuildOptions = import('esbuild').BuildOptions;
declare function plugin(options?: {
esbuild?: (defaultOptions: BuildOptions) => Promise<BuildOptions> | BuildOptions;
}): import('@sveltejs/kit').Adapter;
export = plugin;

12

index.js

@@ -14,5 +14,5 @@ import { appendFileSync, existsSync, readFileSync, writeFileSync } from 'fs';

* esbuild?: (defaultOptions: BuildOptions) => Promise<BuildOptions> | BuildOptions;
* }} options
* }} [options]
**/
export default function (options = { esbuild: (opts) => opts }) {
export default function (options) {
/** @type {import('@sveltejs/kit').Adapter} */

@@ -33,3 +33,4 @@ const adapter = {

const buildOptions = await options.esbuild({
/** @type {BuildOptions} */
const defaultOptions = {
entryPoints: ['.svelte-kit/netlify/entry.js'],

@@ -40,4 +41,7 @@ outfile: join(functions, 'render/index.js'),

platform: 'node'
});
};
const buildOptions =
options && options.esbuild ? await options.esbuild(defaultOptions) : defaultOptions;
await esbuild.build(buildOptions);

@@ -44,0 +48,0 @@

{
"name": "@sveltejs/adapter-netlify",
"version": "1.0.0-next.24",
"version": "1.0.0-next.25",
"type": "module",

@@ -5,0 +5,0 @@ "exports": {

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