Socket
Socket
Sign inDemoInstall

@jill64/sentry-sveltekit-edge

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jill64/sentry-sveltekit-edge - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

dist/sentry-javascript/packages/sveltekit/src/client/browserTracingIntegration.d.ts

1

dist/sentry-javascript/packages/sveltekit/src/client/index.d.ts

@@ -5,1 +5,2 @@ export * from '@sentry/svelte';

export { wrapLoadWithSentry } from './load';
export { browserTracingIntegration } from './browserTracingIntegration';

@@ -11,3 +11,6 @@ import type { Transaction, TransactionContext } from '@sentry/types';

* @param startTransactionOnLocationChange controls if navigation transactions should be created (defauls to `true`)
*
* @deprecated use `browserTracingIntegration()` instead which includes SvelteKit-specific routing instrumentation out of the box.
* Therefore, this function will be removed in v8.
*/
export declare function svelteKitRoutingInstrumentation<T extends Transaction>(startTransactionFn: (context: TransactionContext) => T | undefined, startTransactionOnPageLoad?: boolean, startTransactionOnLocationChange?: boolean): void;
import type { Handle, ResolveOptions } from '@sveltejs/kit';
export type SentryHandleOptions = {
/**
* Controls whether the SDK should capture errors and traces in requests that don't belong to a
* route defined in your SvelteKit application.
*
* By default, this option is set to `false` to reduce noise (e.g. bots sending random requests to your server).
*
* Set this option to `true` if you want to monitor requests events without a route. This might be useful in certain
* scenarios, for instance if you registered other handlers that handle these requests.
* If you set this option, you might want adjust the the transaction name in the `beforeSendTransaction`
* callback of your server-side `Sentry.init` options. You can also use `beforeSendTransaction` to filter out
* transactions that you still don't want to be sent to Sentry.
*
* @default false
*/
handleUnknownRoutes?: boolean;
/**
* Controls if `sentryHandle` should inject a script tag into the page that enables instrumentation
* of `fetch` calls in `load` functions.
*
* @default true
*/
injectFetchProxyScript?: boolean;
/**
* If this option is set, the `sentryHandle` handler will add a nonce attribute to the script
* tag it injects into the page. This script is used to enable instrumentation of `fetch` calls
* in `load` functions.
*
* Use this if your CSP policy blocks the fetch proxy script injected by `sentryHandle`.
*/
fetchProxyScriptNonce?: string;
};
export declare const transformPageChunk: NonNullable<ResolveOptions['transformPageChunk']>;
/**
* Exported only for testing
*/
export declare const FETCH_PROXY_SCRIPT = "\n const f = window.fetch;\n if(f){\n window._sentryFetchProxy = function(...a){return f(...a)}\n window.fetch = function(...a){return window._sentryFetchProxy(...a)}\n }\n";
/**
* Adds Sentry tracing <meta> tags to the returned html page.
* Adds Sentry fetch proxy script to the returned html page if enabled in options.
* Also adds a nonce attribute to the script tag if users specified one for CSP.
*
* Exported only for testing
*/
export declare function addSentryCodeToPage(options: SentryHandleOptions): NonNullable<ResolveOptions['transformPageChunk']>;
/**
* A SvelteKit handle function that wraps the request for Sentry error and
* performance monitoring.
*
* Usage:
* ```
* // src/hooks.server.ts
* import { sentryHandle } from '@sentry/sveltekit';
*
* export const handle = sentryHandle();
*
* // Optionally use the `sequence` function to add additional handlers.
* // export const handle = sequence(sentryHandle(), yourCustomHandler);
* ```
*/
export declare function sentryHandle(handlerOptions?: SentryHandleOptions): Handle;

2

dist/server/server/node/sdk.d.ts

@@ -1,2 +0,2 @@

import type { NodeOptions } from '@sentry/node/types/index.js';
import type { NodeOptions } from '@sentry/node/types/types.js';
export declare function init(options?: NodeOptions): void;

@@ -1,2 +0,2 @@

import type { NodeOptions } from '@sentry/node/types/index.js';
import type { NodeOptions } from '@sentry/node';
export declare function init(options: NodeOptions): void;

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

import type { StackFrame } from '@sentry/types';
import { tracingContextFromHeaders } from '@sentry/utils';
import type { RequestEvent } from '@sveltejs/kit';
/**
* Takes a request event and extracts traceparent and DSC data
* from the `sentry-trace` and `baggage` DSC headers.
*
* Sets propagation context as a side effect.
*/
export declare function getTracePropagationData(event: RequestEvent): ReturnType<typeof tracingContextFromHeaders>;
export declare function rewriteFramesIteratee(frame: StackFrame): StackFrame;
{
"name": "@jill64/sentry-sveltekit-edge",
"version": "1.2.4",
"version": "1.2.5",
"description": "♟️ Unofficial Sentry integration for SvelteKit edge runtime",

@@ -71,10 +71,10 @@ "type": "module",

"devDependencies": {
"@jill64/eslint-config-ts": "1.0.17",
"@jill64/eslint-config-ts": "1.1.0",
"@jill64/playwright-config": "2.2.3",
"@jill64/prettier-config": "1.0.0",
"@playwright/test": "1.40.1",
"@sentry/core": "7.91.0",
"@sentry/integrations": "7.91.0",
"@sentry/types": "7.91.0",
"@sentry/utils": "7.91.0",
"@playwright/test": "1.41.2",
"@sentry/core": "7.100.1",
"@sentry/integrations": "7.100.1",
"@sentry/types": "7.100.1",
"@sentry/utils": "7.100.1",
"@sveltejs/kit": "2.5.0",

@@ -86,5 +86,5 @@ "@types/node": "20.11.16",

"dependencies": {
"@sentry/node": "7.91.0",
"@sentry/svelte": "7.91.0"
"@sentry/node": "7.100.1",
"@sentry/svelte": "7.100.1"
}
}
}

@@ -5,8 +5,8 @@ <!----- BEGIN GHOST DOCS HEADER ----->

<!----- BEGIN GHOST DOCS BADGES ----->
<!----- BEGIN GHOST DOCS BADGES ----->
<a href="https://npmjs.com/package/@jill64/sentry-sveltekit-edge"><img src="https://img.shields.io/npm/v/@jill64/sentry-sveltekit-edge" alt="npm-version" /></a> <a href="https://npmjs.com/package/@jill64/sentry-sveltekit-edge"><img src="https://img.shields.io/npm/l/@jill64/sentry-sveltekit-edge" alt="npm-license" /></a> <a href="https://npmjs.com/package/@jill64/sentry-sveltekit-edge"><img src="https://img.shields.io/npm/dm/@jill64/sentry-sveltekit-edge" alt="npm-download-month" /></a> <a href="https://npmjs.com/package/@jill64/sentry-sveltekit-edge"><img src="https://img.shields.io/bundlephobia/min/@jill64/sentry-sveltekit-edge" alt="npm-min-size" /></a> <a href="https://github.com/jill64/sentry-sveltekit-edge/actions/workflows/ci.yml"><img src="https://github.com/jill64/sentry-sveltekit-edge/actions/workflows/ci.yml/badge.svg" alt="ci.yml" /></a>
<!----- END GHOST DOCS BADGES ----->
♟️ Unofficial Sentry integration for SvelteKit edge runtime

@@ -149,4 +149,4 @@

MIT
[MIT](LICENSE)
<!----- END GHOST DOCS FOOTER ----->

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

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

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

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

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