@posthog/core
Advanced tools
| /** | ||
| * Read the release id injected into the bundle by posthog-cli. | ||
| * | ||
| * The CLI prepends a small IIFE to each chunk that sets `globalThis._posthogReleaseId` to the | ||
| * release row's id (a string, first write wins so the first loaded chunk pins the release for the | ||
| * runtime). The SDK emits it on `$exception` events so the server resolves the release with a plain | ||
| * foreign-key lookup. Returns `undefined` when nothing was injected or the value is malformed. | ||
| */ | ||
| export declare function getInjectedReleaseId(): string | undefined; | ||
| //# sourceMappingURL=release.d.ts.map |
| {"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../src/error-tracking/release.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,GAAG,SAAS,CAGzD"} |
| "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__, { | ||
| getInjectedReleaseId: ()=>getInjectedReleaseId | ||
| }); | ||
| function getInjectedReleaseId() { | ||
| const injected = globalThis._posthogReleaseId; | ||
| return 'string' == typeof injected && injected.length > 0 ? injected : void 0; | ||
| } | ||
| exports.getInjectedReleaseId = __webpack_exports__.getInjectedReleaseId; | ||
| for(var __webpack_i__ in __webpack_exports__)if (-1 === [ | ||
| "getInjectedReleaseId" | ||
| ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__]; | ||
| Object.defineProperty(exports, '__esModule', { | ||
| value: true | ||
| }); |
| function getInjectedReleaseId() { | ||
| const injected = globalThis._posthogReleaseId; | ||
| return 'string' == typeof injected && injected.length > 0 ? injected : void 0; | ||
| } | ||
| export { getInjectedReleaseId }; |
| /** | ||
| * Read the release id injected into the bundle by posthog-cli. | ||
| * | ||
| * The CLI prepends a small IIFE to each chunk that sets `globalThis._posthogReleaseId` to the | ||
| * release row's id (a string, first write wins so the first loaded chunk pins the release for the | ||
| * runtime). The SDK emits it on `$exception` events so the server resolves the release with a plain | ||
| * foreign-key lookup. Returns `undefined` when nothing was injected or the value is malformed. | ||
| */ | ||
| export function getInjectedReleaseId(): string | undefined { | ||
| const injected = (globalThis as any)._posthogReleaseId | ||
| return typeof injected === 'string' && injected.length > 0 ? injected : undefined | ||
| } |
@@ -7,2 +7,3 @@ export * from './error-properties-builder'; | ||
| export * from './exception-steps'; | ||
| export * from './release'; | ||
| //# sourceMappingURL=index.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/error-tracking/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,mBAAmB,SAAS,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,mBAAmB,CAAA"} | ||
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/error-tracking/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,mBAAmB,SAAS,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,mBAAmB,CAAA;AACjC,cAAc,WAAW,CAAA"} |
@@ -15,2 +15,5 @@ "use strict"; | ||
| }, | ||
| "./release": function(module) { | ||
| module.exports = require("./release.js"); | ||
| }, | ||
| "./utils?198b": function(module) { | ||
@@ -93,2 +96,8 @@ module.exports = require("./utils.js"); | ||
| __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__); | ||
| var _release__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("./release"); | ||
| var __WEBPACK_REEXPORT_OBJECT__ = {}; | ||
| for(var __WEBPACK_IMPORT_KEY__ in _release__WEBPACK_IMPORTED_MODULE_5__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) { | ||
| return _release__WEBPACK_IMPORTED_MODULE_5__[key]; | ||
| }).bind(0, __WEBPACK_IMPORT_KEY__); | ||
| __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__); | ||
| })(); | ||
@@ -95,0 +104,0 @@ for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__]; |
@@ -6,1 +6,2 @@ export * from "./error-properties-builder.mjs"; | ||
| export * from "./exception-steps.mjs"; | ||
| export * from "./release.mjs"; |
+1
-1
| { | ||
| "name": "@posthog/core", | ||
| "version": "1.45.3", | ||
| "version": "1.46.0", | ||
| "bugs": { | ||
@@ -5,0 +5,0 @@ "url": "https://github.com/PostHog/posthog-js/issues" |
@@ -7,1 +7,2 @@ export * from './error-properties-builder' | ||
| export * from './exception-steps' | ||
| export * from './release' |
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.
1295129
0.29%327
1.55%29959
0.26%