@sveltejs/adapter-node
Advanced tools
Comparing version 1.1.8 to 1.2.0
@@ -12,4 +12,5 @@ import { Adapter } from '@sveltejs/kit'; | ||
envPrefix?: string; | ||
polyfill?: boolean; | ||
} | ||
export default function plugin(options?: AdapterOptions): Adapter; |
10
index.js
@@ -12,3 +12,3 @@ import { readFileSync, writeFileSync } from 'node:fs'; | ||
export default function (opts = {}) { | ||
const { out = 'build', precompress, envPrefix = '' } = opts; | ||
const { out = 'build', precompress, envPrefix = '', polyfill = true } = opts; | ||
@@ -76,8 +76,14 @@ return { | ||
MANIFEST: './server/manifest.js', | ||
SERVER: `./server/index.js`, | ||
SERVER: './server/index.js', | ||
SHIMS: './shims.js', | ||
ENV_PREFIX: JSON.stringify(envPrefix) | ||
} | ||
}); | ||
// If polyfills aren't wanted then clear the file | ||
if (!polyfill) { | ||
writeFileSync(`${out}/shims.js`, '', 'utf-8'); | ||
} | ||
} | ||
}; | ||
} |
{ | ||
"name": "@sveltejs/adapter-node", | ||
"version": "1.1.8", | ||
"version": "1.2.0", | ||
"repository": { | ||
@@ -34,3 +34,3 @@ "type": "git", | ||
"uvu": "^0.5.6", | ||
"@sveltejs/kit": "^1.5.3" | ||
"@sveltejs/kit": "^1.5.6" | ||
}, | ||
@@ -37,0 +37,0 @@ "dependencies": { |
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
820213
9
19504
6