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.10 to 1.0.0-next.11

10

CHANGELOG.md
# @sveltejs/adapter-netlify
## 1.0.0-next.11
### Patch Changes
- c6fde99: Convert to ESM
- Updated dependencies [694f5de]
- Updated dependencies [0befffb]
- Updated dependencies [c6fde99]
- @sveltejs/kit@1.0.0-next.97
## 1.0.0-next.10

@@ -4,0 +14,0 @@

19

index.js

@@ -1,7 +0,8 @@

const { existsSync, readFileSync, writeFileSync } = require('fs');
const { join } = require('path');
const esbuild = require('esbuild');
const toml = require('toml');
import { existsSync, readFileSync, writeFileSync } from 'fs';
import { join } from 'path';
import { fileURLToPath } from 'url';
import esbuild from 'esbuild';
import toml from 'toml';
module.exports = function () {
export default function () {
/** @type {import('@sveltejs/kit').Adapter} */

@@ -17,9 +18,9 @@ const adapter = {

const files = join(__dirname, 'files');
const files = fileURLToPath(new URL('./files', import.meta.url));
utils.log.minor('Generating serverless function...');
utils.copy(join(files, 'entry.js'), '.svelte/netlify/entry.js');
utils.copy(join(files, 'entry.js'), '.svelte-kit/netlify/entry.js');
await esbuild.build({
entryPoints: ['.svelte/netlify/entry.js'],
entryPoints: ['.svelte-kit/netlify/entry.js'],
outfile: join(functions, 'render/index.js'),

@@ -47,3 +48,3 @@ bundle: true,

return adapter;
};
}

@@ -50,0 +51,0 @@ function validate_config() {

{
"name": "@sveltejs/adapter-netlify",
"version": "1.0.0-next.10",
"version": "1.0.0-next.11",
"type": "module",
"exports": {
"import": "./index.js"
},
"main": "index.js",

@@ -11,3 +15,3 @@ "types": "index.d.ts",

"dependencies": {
"@sveltejs/kit": "1.0.0-next.91",
"@sveltejs/kit": "1.0.0-next.98",
"esbuild": "^0.11.12",

@@ -17,3 +21,3 @@ "toml": "^3.0.0"

"devDependencies": {
"typescript": "^4.2.3"
"typescript": "^4.2.4"
},

@@ -20,0 +24,0 @@ "scripts": {

@@ -15,7 +15,8 @@ # adapter-netlify

You can then configure it inside of `svelte.config.cjs`:
You can then configure it inside of `svelte.config.js`:
```js
const adapter = require('@sveltejs/adapter-netlify');
module.exports = {
import adapter from '@sveltejs/adapter-netlify';
export default {
kit: {

@@ -22,0 +23,0 @@ adapter: adapter(), // currently the adapter does not take any options

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