New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sveltejs/adapter-vercel

Package Overview
Dependencies
Maintainers
4
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sveltejs/adapter-vercel - npm Package Compare versions

Comparing version 1.0.0-next.62 to 1.0.0-next.63

35

index.js

@@ -155,2 +155,3 @@ import fs from 'fs';

await create_function_bundle(
builder,
`${tmp}/index.js`,

@@ -292,2 +293,3 @@ `${dirs.functions}/${name}.func`,

/**
* @param {import('@sveltejs/kit').Builder} builder
* @param {string} entry

@@ -297,3 +299,3 @@ * @param {string} dir

*/
async function create_function_bundle(entry, dir, runtime) {
async function create_function_bundle(builder, entry, dir, runtime) {
let base = entry;

@@ -304,8 +306,37 @@ while (base !== (base = path.dirname(base)));

/** @type {Map<string, string[]>} */
const resolution_failures = new Map();
traced.warnings.forEach((error) => {
// pending https://github.com/vercel/nft/issues/284
if (error.message.startsWith('Failed to resolve dependency node:')) return;
console.error(error);
if (error.message.startsWith('Failed to resolve dependency')) {
const match = /Cannot find module '(.+?)' loaded from (.+)/;
const [, module, importer] = match.exec(error.message);
if (!resolution_failures.has(importer)) {
resolution_failures.set(importer, []);
}
resolution_failures.get(importer).push(module);
} else {
throw error;
}
});
if (resolution_failures.size > 0) {
const cwd = process.cwd();
builder.log.warn(
'The following modules failed to locate dependencies that may (or may not) be required for your app to work:'
);
for (const [importer, modules] of resolution_failures) {
console.error(` ${path.relative(cwd, importer)}`);
for (const module of modules) {
console.error(` - \u001B[1m\u001B[36m${module}\u001B[39m\u001B[22m`);
}
}
}
// find common ancestor directory

@@ -312,0 +343,0 @@ let common_parts;

4

package.json
{
"name": "@sveltejs/adapter-vercel",
"version": "1.0.0-next.62",
"version": "1.0.0-next.63",
"repository": {

@@ -30,3 +30,3 @@ "type": "git",

"devDependencies": {
"@sveltejs/kit": "1.0.0-next.373",
"@sveltejs/kit": "1.0.0-next.377",
"@types/node": "^16.11.36",

@@ -33,0 +33,0 @@ "typescript": "^4.7.4"

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