@sveltejs/adapter-netlify
Advanced tools
Comparing version 2.0.3 to 2.0.4
11
index.js
@@ -1,4 +0,4 @@ | ||
import { appendFileSync, existsSync, readdirSync, readFileSync, writeFileSync } from 'fs'; | ||
import { dirname, join, resolve, posix } from 'path'; | ||
import { fileURLToPath } from 'url'; | ||
import { appendFileSync, existsSync, readdirSync, readFileSync, writeFileSync } from 'node:fs'; | ||
import { dirname, join, resolve, posix } from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
import esbuild from 'esbuild'; | ||
@@ -234,4 +234,5 @@ import toml from '@iarna/toml'; | ||
redirects.push(`${pattern} /.netlify/functions/${name} 200`); | ||
redirects.push(`${pattern}/__data.json /.netlify/functions/${name} 200`); | ||
const redirect = `/.netlify/functions/${name} 200`; | ||
redirects.push(`${pattern} ${redirect}`); | ||
redirects.push(`${pattern === '/' ? '' : pattern}/__data.json ${redirect}`); | ||
} | ||
@@ -238,0 +239,0 @@ } else { |
{ | ||
"name": "@sveltejs/adapter-netlify", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"repository": { | ||
@@ -41,3 +41,3 @@ "type": "git", | ||
"uvu": "^0.5.6", | ||
"@sveltejs/kit": "^1.5.3" | ||
"@sveltejs/kit": "^1.5.6" | ||
}, | ||
@@ -44,0 +44,0 @@ "peerDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
797411
18719
15