@leanbase.com/js 0.1.2 → 0.1.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/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/dist/leanbase.iife.js +4 -2
- package/dist/leanbase.iife.js.map +1 -1
- package/package.json +45 -44
- package/src/constants.ts +10 -0
- package/src/version.ts +1 -1
- package/LICENSE +0 -37
package/package.json
CHANGED
|
@@ -1,45 +1,46 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
2
|
+
"name": "@leanbase.com/js",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"description": "Leanbase browser SDK - event tracking, autocapture, and session replay",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"directory": "packages/leanbase"
|
|
8
|
+
},
|
|
9
|
+
"author": "leanbase",
|
|
10
|
+
"license": "Copyrighted by Leanflag Limited",
|
|
11
|
+
"main": "dist/index.cjs",
|
|
12
|
+
"module": "dist/index.mjs",
|
|
13
|
+
"types": "dist/index.d.ts",
|
|
14
|
+
"unpkg": "dist/leanbase.iife.js",
|
|
15
|
+
"jsdelivr": "dist/leanbase.iife.js",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"clean": "rimraf dist coverage",
|
|
18
|
+
"test:unit": "jest -c jest.config.js",
|
|
19
|
+
"lint": "eslint src test",
|
|
20
|
+
"lint:fix": "eslint src test --fix",
|
|
21
|
+
"prebuild": "node -p \"'export const version = \\'' + require('./package.json').version + '\\''\" > src/version.ts",
|
|
22
|
+
"build": "rollup -c",
|
|
23
|
+
"dev": "rollup -c -w",
|
|
24
|
+
"prepublishOnly": "pnpm lint && pnpm test:unit && pnpm build",
|
|
25
|
+
"package": "mkdir -p ../../target && pnpm pack --pack-destination ../../target"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist",
|
|
29
|
+
"src",
|
|
30
|
+
"README.md"
|
|
31
|
+
],
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@posthog/core": "1.3.1"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"jest": "^29.7.0",
|
|
40
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
41
|
+
"rollup": "^4.44.1",
|
|
42
|
+
"rimraf": "^6.0.1",
|
|
43
|
+
"@posthog-tooling/tsconfig-base": "1.0.0",
|
|
44
|
+
"@posthog-tooling/rollup-utils": "1.0.0"
|
|
45
|
+
}
|
|
46
|
+
}
|
package/src/constants.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* Constants
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { PostHogPersistedProperty } from '@posthog/core'
|
|
6
|
+
|
|
5
7
|
/* PROPERTY KEYS */
|
|
6
8
|
|
|
7
9
|
// This key is deprecated, but we want to check for it to see whether aliasing is allowed.
|
|
@@ -93,6 +95,14 @@ export const PERSISTENCE_RESERVED_PROPERTIES = [
|
|
|
93
95
|
INITIAL_REFERRER_INFO,
|
|
94
96
|
ENABLE_PERSON_PROCESSING,
|
|
95
97
|
INITIAL_PERSON_INFO,
|
|
98
|
+
// Ignore posthog persisted properties
|
|
99
|
+
PostHogPersistedProperty.Queue,
|
|
100
|
+
PostHogPersistedProperty.FeatureFlagDetails,
|
|
101
|
+
PostHogPersistedProperty.FlagsEndpointWasHit,
|
|
102
|
+
PostHogPersistedProperty.AnonymousId,
|
|
103
|
+
PostHogPersistedProperty.RemoteConfig,
|
|
104
|
+
PostHogPersistedProperty.Surveys,
|
|
105
|
+
PostHogPersistedProperty.FeatureFlags,
|
|
96
106
|
]
|
|
97
107
|
|
|
98
108
|
export const SURVEYS_REQUEST_TIMEOUT_MS = 10000
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.1.
|
|
1
|
+
export const version = '0.1.3'
|
package/LICENSE
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
Copyright 2025 Leanflag Limited
|
|
2
|
-
This project is a fork of PostHog/posthog-js.
|
|
3
|
-
|
|
4
|
-
All rights reserved. This software is proprietary to Leanflag Limited and may only be used for Leanflag Limited products and internal purposes. Redistribution, modification, or commercial use outside of Leanflag Limited is strictly prohibited without explicit written permission from Leanflag Limited.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
Copyright 2020 Posthog / Hiberly, Inc.
|
|
10
|
-
|
|
11
|
-
Copyright 2015 Mixpanel, Inc.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Some files in this codebase contain code from getsentry/sentry-javascript by Software, Inc. dba Sentry.
|
|
15
|
-
In such cases it is explicitly stated in the file header. This license only applies to the relevant code in such cases.
|
|
16
|
-
|
|
17
|
-
MIT License
|
|
18
|
-
|
|
19
|
-
Copyright (c) 2012 Functional Software, Inc. dba Sentry
|
|
20
|
-
|
|
21
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
22
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
23
|
-
the Software without restriction, including without limitation the rights to
|
|
24
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
25
|
-
of the Software, and to permit persons to whom the Software is furnished to do
|
|
26
|
-
so, subject to the following conditions:
|
|
27
|
-
|
|
28
|
-
The above copyright notice and this permission notice shall be included in all
|
|
29
|
-
copies or substantial portions of the Software.
|
|
30
|
-
|
|
31
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
32
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
33
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
34
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
35
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
36
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
37
|
-
SOFTWARE.
|