Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sveltejs/kit

Package Overview
Dependencies
Maintainers
3
Versions
816
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sveltejs/kit - npm Package Compare versions

Comparing version 1.0.0-next.45 to 1.0.0-next.46

3

assets/runtime/app/navigation.js
import { router, renderer } from '../internal/singletons.js';
import { g as get_base_uri } from '../chunks/utils.js';
/**
* @param {string} name
*/
function guard(name) {

@@ -5,0 +8,0 @@ return () => {

7

assets/runtime/chunks/utils.js

@@ -1,5 +0,8 @@

/** @param {Node} node */
/**
* @param {Node} node
* @returns {HTMLAnchorElement | SVGAElement}
*/
function find_anchor(node) {
while (node && node.nodeName.toUpperCase() !== 'A') node = node.parentNode; // SVG <a> elements have a lowercase name
return node;
return /** @type {HTMLAnchorElement | SVGAElement} */ (node);
}

@@ -6,0 +9,0 @@

@@ -1,5 +0,5 @@

/** @type {any} */
/** @type {import('./router').Router} */
let router;
/** @type {any} */
/** @type {import('./renderer').Renderer} */
let renderer;

@@ -6,0 +6,0 @@

@@ -89,4 +89,3 @@ import Root from '../../generated/root.svelte';

/** @type {HTMLAnchorElement | SVGAElement} */
const a = find_anchor(event.target);
const a = find_anchor(/** @type {Node} */ (event.target));
if (!a) return;

@@ -99,3 +98,3 @@

const svg = typeof a.href === 'object' && a.href.constructor.name === 'SVGAnimatedString';
const href = String(svg ? a.href.baseVal : a.href);
const href = String(svg ? /** @type {SVGAElement} */ (a).href.baseVal : a.href);

@@ -113,3 +112,3 @@ if (href === location.href) {

// Ignore if <a> has a target
if (svg ? a.target.baseVal : a.target) return;
if (svg ? /** @type {SVGAElement} */ (a).target.baseVal : a.target) return;

@@ -367,7 +366,5 @@ const url = new URL(href);

const trigger_prefetch = (event) => {
/** @type {HTMLAnchorElement | SVGAElement} */
const a = find_anchor(event.target);
const a = find_anchor(/** @type {Node} */ (event.target));
if (a && a.hasAttribute('sveltekit:prefetch')) {
this.prefetch(new URL(a.href));
this.prefetch(new URL(/** @type {string} */ (a.href)));
}

@@ -497,2 +494,6 @@ };

/**
* @param {string} url
* @param {RequestInit} opts
*/
const fetcher = (url, opts) => {

@@ -499,0 +500,0 @@ if (this.initial) {

# @sveltejs/kit
## 1.0.0-next.46
### Patch Changes
- f35a5cd: Change adapter signature
## 1.0.0-next.45

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

@@ -403,2 +403,5 @@ import fs from 'fs';

],
// this API is marked as @alpha https://github.com/vitejs/vite/blob/27785f7fcc5b45987b5f0bf308137ddbdd9f79ea/packages/vite/src/node/config.ts#L129
// it's not exposed in the typescript definitions as a result
// so we need to ignore the fact that it's missing
ssr: {

@@ -405,0 +408,0 @@ noExternal: ['svelte', '@sveltejs/kit']

@@ -745,7 +745,7 @@ import { $ } from '../cli.js';

const [adapter, options] = config.kit.adapter;
const [name, options] = config.kit.adapter;
const log = logger({ verbose });
console.log($.bold().cyan(`\n> Using ${adapter}`));
console.log($.bold().cyan(`\n> Using ${name}`));

@@ -755,6 +755,8 @@ const builder = new Builder({ cwd, config, log });

const require = createRequire(import.meta.url);
const resolved = require.resolve(adapter, { paths: [pathToFileURL(process.cwd()).href] });
const fn = (await import(pathToFileURL(resolved).href)).default;
await fn(builder, options);
const resolved = require.resolve(name, { paths: [pathToFileURL(process.cwd()).href] });
const mod = await import(pathToFileURL(resolved).href);
const adapter = mod.default(options);
await adapter.adapt(builder);
log.success('done');

@@ -761,0 +763,0 @@ }

@@ -453,3 +453,3 @@ import { existsSync } from 'fs';

const prog = sade('svelte-kit').version('1.0.0-next.45');
const prog = sade('svelte-kit').version('1.0.0-next.46');

@@ -456,0 +456,0 @@ prog

{
"name": "@sveltejs/kit",
"version": "1.0.0-next.45",
"version": "1.0.0-next.46",
"type": "module",

@@ -50,3 +50,4 @@ "dependencies": {

"lint": "eslint --ignore-path .gitignore \"src/**/*.{ts,mjs,js,svelte}\" && npm run check-format",
"check": "npx tsc",
"check": "npx tsc -p tsconfig.enforced.json",
"check-all": "npx tsc -p tsconfig.all.json",
"format": "prettier --write . --config ../../.prettierrc --ignore-path .gitignore",

@@ -60,2 +61,3 @@ "check-format": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore",

"exports": {
"./package.json": "./package.json",
"./ssr": {

@@ -62,0 +64,0 @@ "import": "./dist/ssr.js"

Sorry, the diff of this file is too big to display

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