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.25 to 1.0.0-next.26

2

files/entry.js
// TODO hardcoding the relative location makes this brittle
import { init, render } from '../output/server/app.js'; // eslint-disable-line import/no-unresolved
import { init, render } from '../../output/server/app.js'; // eslint-disable-line import/no-unresolved
import { isContentTypeTextual } from '@sveltejs/kit/adapter-utils'; // eslint-disable-line import/no-unresolved

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

@@ -30,7 +30,7 @@ import { appendFileSync, existsSync, readFileSync, writeFileSync } from 'fs';

utils.log.minor('Generating serverless function...');
utils.copy(join(files, 'entry.js'), '.svelte-kit/netlify/entry.js');
utils.copy(join(files, 'entry.js'), '.svelte-kit/netlify/intermediate/entry.js');
/** @type {BuildOptions} */
const defaultOptions = {
entryPoints: ['.svelte-kit/netlify/entry.js'],
entryPoints: ['.svelte-kit/netlify/intermediate/entry.js'],
outfile: join(functions, 'render/index.js'),

@@ -37,0 +37,0 @@ bundle: true,

{
"name": "@sveltejs/adapter-netlify",
"version": "1.0.0-next.25",
"type": "module",
"exports": {
"import": "./index.js"
},
"main": "index.js",
"types": "index.d.ts",
"files": [
"files",
"index.d.ts"
],
"dependencies": {
"@iarna/toml": "^2.2.5",
"esbuild": "^0.12.5"
},
"devDependencies": {
"@sveltejs/kit": "1.0.0-next.131",
"typescript": "^4.2.4"
},
"scripts": {
"lint": "eslint --ignore-path .gitignore \"**/*.{ts,js,svelte}\" && npm run check-format",
"format": "prettier --write . --config ../../.prettierrc --ignore-path .gitignore",
"check-format": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore"
}
}
"name": "@sveltejs/adapter-netlify",
"version": "1.0.0-next.26",
"type": "module",
"exports": {
"import": "./index.js"
},
"main": "index.js",
"types": "index.d.ts",
"files": [
"files",
"index.d.ts"
],
"dependencies": {
"@iarna/toml": "^2.2.5",
"esbuild": "^0.12.5"
},
"devDependencies": {
"@sveltejs/kit": "1.0.0-next.140",
"typescript": "^4.3.5"
},
"scripts": {
"lint": "eslint --ignore-path .gitignore \"**/*.{ts,js,svelte}\" && npm run check-format",
"format": "prettier --write . --config ../../.prettierrc --ignore-path .gitignore",
"check-format": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore"
}
}

@@ -11,2 +11,4 @@ # adapter-netlify

> ⚠️ Netlify defaults to Node 12.16. SvelteKit requires Node v12.20 to build. You can pin the Node version with a `.node-version` or [`.nvmrc`](https://github.com/nvm-sh/nvm#nvmrc) file: `echo "14" > .nvmrc` or [set the `NODE_ENV` environment variable](https://docs.netlify.com/configure-builds/manage-dependencies/#node-js-and-javascript).
```bash

@@ -34,7 +36,7 @@ npm i -D @sveltejs/adapter-netlify@next

command = "npm run build"
publish = "build/"
functions = "functions/"
publish = ".svelte-kit/netlify/build/"
functions = ".svelte-kit/netlify/functions/"
```
It's recommended that you add the `build` and `functions` folders (or whichever other folders you specify) to your `.gitignore`.
In this example, we placed the `build` and `functions` folders under `.svelte-kit/netlify`. If you specify another location, you will probably also want to add them to your `.gitignore`.

@@ -41,0 +43,0 @@ ## Netlify alternatives to SvelteKit functionality

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