posthog-js
Advanced tools
Comparing version 1.155.4 to 1.155.5
@@ -13,3 +13,3 @@ import RageClick from './extensions/rageclick'; | ||
private get config(); | ||
private _addDomEventHandlers; | ||
_addDomEventHandlers(): void; | ||
startIfEnabled(): void; | ||
@@ -16,0 +16,0 @@ afterDecideResponse(response: DecideResponse): void; |
import type { blockClass, eventWithTime, hooksParam, KeepIframeSrcFn, listenerHandler, maskTextClass, RecordPlugin, SamplingStrategy } from '@rrweb/types'; | ||
import type { DataURLOptions, MaskInputFn, MaskInputOptions, MaskTextFn, Mirror, SlimDOMOptions } from 'rrweb-snapshot'; | ||
import { SnapshotBuffer } from './sessionrecording'; | ||
export declare function circularReferenceReplacer(): (this: any, _key: string, value: any) => any; | ||
export declare function estimateSize(sizeable: unknown): number; | ||
@@ -5,0 +6,0 @@ export declare const replacementImageURI = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg=="; |
@@ -12,3 +12,3 @@ import RageClick from './extensions/rageclick'; | ||
_initialized: boolean; | ||
_mouseMoveTimeout: number | undefined; | ||
_mouseMoveTimeout: ReturnType<typeof setTimeout> | undefined; | ||
private buffer; | ||
@@ -15,0 +15,0 @@ private _flushInterval; |
@@ -88,3 +88,3 @@ import { PostHogFeatureFlags } from './posthog-featureflags'; | ||
*/ | ||
init(token: string, config?: OnlyValidKeys<Partial<PostHogConfig>, Partial<PostHogConfig>>, name?: string): PostHog | void; | ||
init(token: string, config?: OnlyValidKeys<Partial<PostHogConfig>, Partial<PostHogConfig>>, name?: string): PostHog | undefined; | ||
_init(token: string, config?: Partial<PostHogConfig>, name?: string): PostHog; | ||
@@ -143,3 +143,3 @@ _afterDecideResponse(response: DecideResponse): void; | ||
*/ | ||
capture(event_name: string, properties?: Properties | null, options?: CaptureOptions): CaptureResult | void; | ||
capture(event_name: string, properties?: Properties | null, options?: CaptureOptions): CaptureResult | undefined; | ||
_addCaptureHook(callback: (eventName: string, eventPayload?: CaptureResult) => void): void; | ||
@@ -146,0 +146,0 @@ _calculate_event_properties(event_name: string, event_properties: Properties, timestamp?: Date): Properties; |
{ | ||
"name": "posthog-js", | ||
"version": "1.155.4", | ||
"version": "1.155.5", | ||
"description": "Posthog-js allows you to automatically capture usage and send events to PostHog.", | ||
@@ -22,2 +22,4 @@ "repository": "https://github.com/PostHog/posthog-js", | ||
"test-watch": "jest --watch src", | ||
"test:typecheck": "cd src/__tests__ && tsc --noEmit --project tsconfig.json", | ||
"typecheck": "tsc --noEmit --project tsconfig.json", | ||
"cypress": "cypress open", | ||
@@ -37,2 +39,3 @@ "prepare": "husky install", | ||
"dependencies": { | ||
"@types/web": "^0.0.154", | ||
"fflate": "^0.4.8", | ||
@@ -39,0 +42,0 @@ "preact": "^10.19.3", |
@@ -65,3 +65,5 @@ var __assign = (this && this.__assign) || function () { | ||
className = | ||
('baseVal' in el.className ? el.className.baseVal : null) || el.getAttribute('class') || ''; | ||
(el.className && 'baseVal' in el.className ? el.className.baseVal : null) || | ||
el.getAttribute('class') || | ||
''; | ||
break; | ||
@@ -68,0 +70,0 @@ default: |
@@ -13,3 +13,3 @@ import RageClick from './extensions/rageclick'; | ||
private get config(); | ||
private _addDomEventHandlers; | ||
_addDomEventHandlers(): void; | ||
startIfEnabled(): void; | ||
@@ -16,0 +16,0 @@ afterDecideResponse(response: DecideResponse): void; |
@@ -81,3 +81,3 @@ import { window } from '../../utils/globals'; | ||
} | ||
this.instance.requestRouter.loadScript(this.instance.requestRouter.endpointFor('assets', "/static/exception-autocapture.js?v=".concat(Config.LIB_VERSION)), function (err) { | ||
this.instance.requestRouter.loadScript("/static/exception-autocapture.js?v=".concat(Config.LIB_VERSION), function (err) { | ||
if (err) { | ||
@@ -84,0 +84,0 @@ return logger.error(LOGGER_PREFIX + ' failed to load script', err); |
import type { blockClass, eventWithTime, hooksParam, KeepIframeSrcFn, listenerHandler, maskTextClass, RecordPlugin, SamplingStrategy } from '@rrweb/types'; | ||
import type { DataURLOptions, MaskInputFn, MaskInputOptions, MaskTextFn, Mirror, SlimDOMOptions } from 'rrweb-snapshot'; | ||
import { SnapshotBuffer } from './sessionrecording'; | ||
export declare function circularReferenceReplacer(): (this: any, _key: string, value: any) => any; | ||
export declare function estimateSize(sizeable: unknown): number; | ||
@@ -5,0 +6,0 @@ export declare const replacementImageURI = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg=="; |
@@ -14,3 +14,3 @@ var __values = (this && this.__values) || function(o) { | ||
// taken from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Cyclic_object_value#circular_references | ||
function circularReferenceReplacer() { | ||
export function circularReferenceReplacer() { | ||
var ancestors = []; | ||
@@ -21,3 +21,2 @@ return function (_key, value) { | ||
// i.e., its direct parent. | ||
// @ts-expect-error - TS was unhappy with `this` on the next line but the code is copied in from MDN | ||
while (ancestors.length > 0 && ancestors.at(-1) !== this) { | ||
@@ -24,0 +23,0 @@ ancestors.pop(); |
@@ -47,3 +47,3 @@ var __assign = (this && this.__assign) || function () { | ||
} | ||
_this.buffer = _this.buffer || {}; | ||
_this.buffer = _this.buffer || { url: undefined, metrics: [], firstMetricTimestamp: undefined }; | ||
var $currentUrl = _this._currentURL(); | ||
@@ -146,3 +146,3 @@ if (isUndefined($currentUrl)) { | ||
} | ||
this.instance.requestRouter.loadScript(this.instance.requestRouter.endpointFor('assets', "/static/web-vitals.js?v=".concat(Config.LIB_VERSION)), function (err) { | ||
this.instance.requestRouter.loadScript("/static/web-vitals.js?v=".concat(Config.LIB_VERSION), function (err) { | ||
if (err) { | ||
@@ -149,0 +149,0 @@ logger.error(LOGGER_PREFIX + ' failed to load script', err); |
@@ -12,3 +12,3 @@ import RageClick from './extensions/rageclick'; | ||
_initialized: boolean; | ||
_mouseMoveTimeout: number | undefined; | ||
_mouseMoveTimeout: ReturnType<typeof setTimeout> | undefined; | ||
private buffer; | ||
@@ -15,0 +15,0 @@ private _flushInterval; |
@@ -88,3 +88,3 @@ import { PostHogFeatureFlags } from './posthog-featureflags'; | ||
*/ | ||
init(token: string, config?: OnlyValidKeys<Partial<PostHogConfig>, Partial<PostHogConfig>>, name?: string): PostHog | void; | ||
init(token: string, config?: OnlyValidKeys<Partial<PostHogConfig>, Partial<PostHogConfig>>, name?: string): PostHog | undefined; | ||
_init(token: string, config?: Partial<PostHogConfig>, name?: string): PostHog; | ||
@@ -143,3 +143,3 @@ _afterDecideResponse(response: DecideResponse): void; | ||
*/ | ||
capture(event_name: string, properties?: Properties | null, options?: CaptureOptions): CaptureResult | void; | ||
capture(event_name: string, properties?: Properties | null, options?: CaptureOptions): CaptureResult | undefined; | ||
_addCaptureHook(callback: (eventName: string, eventPayload?: CaptureResult) => void): void; | ||
@@ -146,0 +146,0 @@ _calculate_event_properties(event_name: string, event_properties: Properties, timestamp?: Date): Properties; |
{ | ||
"name": "posthog-js", | ||
"version": "1.155.4", | ||
"version": "1.155.5", | ||
"description": "Posthog-js allows you to automatically capture usage and send events to PostHog.", | ||
@@ -22,2 +22,4 @@ "repository": "https://github.com/PostHog/posthog-js", | ||
"test-watch": "jest --watch src", | ||
"test:typecheck": "cd src/__tests__ && tsc --noEmit --project tsconfig.json", | ||
"typecheck": "tsc --noEmit --project tsconfig.json", | ||
"cypress": "cypress open", | ||
@@ -37,2 +39,3 @@ "prepare": "husky install", | ||
"dependencies": { | ||
"@types/web": "^0.0.154", | ||
"fflate": "^0.4.8", | ||
@@ -39,0 +42,0 @@ "preact": "^10.19.3", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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 not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25292
7819824
4
+ Added@types/web@^0.0.154
+ Added@types/web@0.0.154(transitive)