Socket
Socket
Sign inDemoInstall

@sveltejs/adapter-node

Package Overview
Dependencies
Maintainers
4
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sveltejs/adapter-node - npm Package Compare versions

Comparing version 1.1.8 to 1.2.0

files/shims.js

1

index.d.ts

@@ -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

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