posthog-js 1.231.2 → 1.231.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/array.full.es5.js +1 -1
- package/dist/array.full.es5.js.map +1 -1
- package/dist/array.full.js +1 -1
- package/dist/array.full.js.map +1 -1
- package/dist/array.full.no-external.js +1 -1
- package/dist/array.full.no-external.js.map +1 -1
- package/dist/array.js +1 -1
- package/dist/array.js.map +1 -1
- package/dist/array.no-external.js +1 -1
- package/dist/array.no-external.js.map +1 -1
- package/dist/customizations.full.js +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/module.full.js +1 -1
- package/dist/module.full.js.map +1 -1
- package/dist/module.full.no-external.js +1 -1
- package/dist/module.full.no-external.js.map +1 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/module.no-external.js +1 -1
- package/dist/module.no-external.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/src/posthog-core.js +4 -0
- package/lib/src/posthog-core.js.map +1 -1
- package/package.json +1 -1
package/lib/package.json
CHANGED
package/lib/src/posthog-core.js
CHANGED
|
@@ -714,6 +714,10 @@ var PostHog = /** @class */ (function () {
|
|
|
714
714
|
logger.critical('This capture call is ignored due to client rate limiting.');
|
|
715
715
|
return;
|
|
716
716
|
}
|
|
717
|
+
if ((properties === null || properties === void 0 ? void 0 : properties.$current_url) && !isString(properties === null || properties === void 0 ? void 0 : properties.$current_url)) {
|
|
718
|
+
logger.error('Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value.');
|
|
719
|
+
properties === null || properties === void 0 ? true : delete properties.$current_url;
|
|
720
|
+
}
|
|
717
721
|
// update persistence
|
|
718
722
|
this.sessionPersistence.update_search_keyword();
|
|
719
723
|
// The initial campaign/referrer props need to be stored in the regular persistence, as they are there to mimic
|