@posthog/browser-common
Advanced tools
| export type MaybePromise<T> = T | Promise<T>; | ||
| /** Chain sync and async values without deferring synchronous work to a microtask. */ | ||
| export declare const continueWith: <T, R>(result: MaybePromise<T>, callback: (value: T) => MaybePromise<R>) => MaybePromise<R>; |
| "use strict"; | ||
| var __webpack_require__ = {}; | ||
| (()=>{ | ||
| __webpack_require__.d = (exports1, definition)=>{ | ||
| for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, { | ||
| enumerable: true, | ||
| get: definition[key] | ||
| }); | ||
| }; | ||
| })(); | ||
| (()=>{ | ||
| __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop); | ||
| })(); | ||
| (()=>{ | ||
| __webpack_require__.r = (exports1)=>{ | ||
| if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, { | ||
| value: 'Module' | ||
| }); | ||
| Object.defineProperty(exports1, '__esModule', { | ||
| value: true | ||
| }); | ||
| }; | ||
| })(); | ||
| var __webpack_exports__ = {}; | ||
| __webpack_require__.r(__webpack_exports__); | ||
| __webpack_require__.d(__webpack_exports__, { | ||
| continueWith: ()=>continueWith | ||
| }); | ||
| const continueWith = (result, callback)=>{ | ||
| const promise = result; | ||
| return promise?.then ? promise.then(callback) : callback(result); | ||
| }; | ||
| exports.continueWith = __webpack_exports__.continueWith; | ||
| for(var __webpack_i__ in __webpack_exports__)if (-1 === [ | ||
| "continueWith" | ||
| ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__]; | ||
| Object.defineProperty(exports, '__esModule', { | ||
| value: true | ||
| }); |
| const continueWith = (result, callback)=>{ | ||
| const promise = result; | ||
| return promise?.then ? promise.then(callback) : callback(result); | ||
| }; | ||
| export { continueWith }; |
+1
-1
@@ -30,3 +30,3 @@ import type { Logger } from '@posthog/core'; | ||
| export interface CaptureOptions { | ||
| /** Override the event timestamp sent to PostHog. */ | ||
| /** Override the event timestamp sent to PostHog. UTC is preferred; non-UTC input is converted to UTC. */ | ||
| timestamp?: Date; | ||
@@ -33,0 +33,0 @@ /** Override the event UUID used for de-duplication. */ |
+1
-1
@@ -29,3 +29,3 @@ "use strict"; | ||
| }); | ||
| const packageVersion = "0.5.0"; | ||
| const packageVersion = "0.5.1"; | ||
| const Config = { | ||
@@ -32,0 +32,0 @@ DEBUG: false, |
+1
-1
@@ -1,2 +0,2 @@ | ||
| const packageVersion = "0.5.0"; | ||
| const packageVersion = "0.5.1"; | ||
| const Config = { | ||
@@ -3,0 +3,0 @@ DEBUG: false, |
+3
-3
| { | ||
| "name": "@posthog/browser-common", | ||
| "version": "0.5.0", | ||
| "version": "0.5.1", | ||
| "description": "Internal shared browser utilities and extension primitives for PostHog Browser SDKs", | ||
@@ -68,4 +68,4 @@ "license": "MIT", | ||
| "dependencies": { | ||
| "@posthog/core": "^1.47.0", | ||
| "@posthog/types": "^1.402.2" | ||
| "@posthog/core": "^1.48.10", | ||
| "@posthog/types": "^1.405.2" | ||
| }, | ||
@@ -72,0 +72,0 @@ "devDependencies": { |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
250395
0.74%115
2.68%5790
0.82%Updated
Updated