@optimizely/edge-delivery
Advanced tools
| import { ExperienceConfig, ExperienceQueue, ExperienceResults } from './models'; | ||
| export declare function getWebSdkValue(queue: ExperienceQueue, results: ExperienceResults): string; | ||
| export declare function recalculateDefines(baseDefines: Object, config: ExperienceConfig, queue: ExperienceQueue, results: ExperienceResults, include_all?: boolean): Record<string, any>; | ||
@@ -3,0 +4,0 @@ /** |
+1
-1
| export declare function getData(accountId: number, snippetId: string, isProd: boolean | undefined, ttl: number | undefined, logger: any): Promise<Object>; | ||
| export declare function getSnippetUrl(accountId: number | undefined, snippetId: string | number, isProd?: boolean): string; | ||
| export declare function getSnippetUrl(accountId: string | number | undefined, snippetId: string | number, isProd?: boolean, edgeDeliveryMode?: boolean): string; |
+2
-1
@@ -251,4 +251,5 @@ /// <reference types="@cloudflare/workers-types" /> | ||
| DATA?: any; | ||
| useEdgeDeliverySnippet?: boolean; | ||
| logLevel?: 'debug' | 'info' | 'warning' | 'warn' | 'error'; | ||
| constructor({ accountId, snippetId, isProd, isSnippetless, nonce, position, cacheTTLs, deployId, fallback, existingSnippet, kvNamespace, webhookSecret, control, rewriter, environment, dev_host, dev_protocol, dev_port, dev_pathname, DATA, logLevel, }: Options); | ||
| constructor({ accountId, snippetId, isProd, isSnippetless, nonce, position, cacheTTLs, deployId, fallback, existingSnippet, kvNamespace, webhookSecret, control, rewriter, environment, dev_host, dev_protocol, dev_port, dev_pathname, DATA, logLevel, useEdgeDeliverySnippet, }: Options); | ||
| } | ||
@@ -255,0 +256,0 @@ export type VisitorProfile = { |
+5
-2
@@ -17,2 +17,4 @@ /// <reference types="@cloudflare/workers-types" /> | ||
| additionalHeaders: Record<string, string>; | ||
| accountId?: number; | ||
| snippetId?: string; | ||
| inputs: Inputs; | ||
@@ -32,4 +34,5 @@ stickyProcessor?: StickyProcesor; | ||
| shouldDeferBrowserJs(): boolean; | ||
| applyBrowserJs(rewriter: HTMLRewriter, cacheTTL: number, position: string, nonce: string): Promise<HTMLRewriter>; | ||
| insertJquery(rewriter: HTMLRewriter, element: string, nonce: string, tagPosition: 'prepend' | 'append' | 'after'): void; | ||
| applyBrowserJs(rewriter: HTMLRewriter, cacheTTL?: number, position?: string, nonce?: string, isProd?: boolean, useEdgeDeliverySnippet?: boolean): Promise<HTMLRewriter>; | ||
| insertJquery(rewriter: HTMLRewriter, element: string, nonce?: string, tagPosition?: 'prepend' | 'append' | 'after'): void; | ||
| getJqueryUrl(version: string): string; | ||
| computeBrowserJS(cacheTTL?: number): Promise<string>; | ||
@@ -36,0 +39,0 @@ removeSnippetChange(existingSnippetParam: string): Change; |
+1
-1
| { | ||
| "name": "@optimizely/edge-delivery", | ||
| "license": "Apache-2.0", | ||
| "version": "1.0.6", | ||
| "version": "1.0.7", | ||
| "description": "Optimizely's Edge Delivery, a library for executing Web Experiments utilizing Cloudflare's HTMLRewriter technology.", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
813765
0.21%4599
0.24%