@instantdb/platform 0.22.95 → 0.22.96-experimental.add-posthog-frontend.20387039167.1
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/.turbo/turbo-build.log +8 -8
- package/dist/commonjs/api.d.ts.map +1 -1
- package/dist/commonjs/api.js +1 -1
- package/dist/commonjs/api.js.map +1 -1
- package/dist/esm/api.d.ts.map +1 -1
- package/dist/esm/api.js +1 -1
- package/dist/esm/api.js.map +1 -1
- package/dist/standalone/index.js +109 -107
- package/dist/standalone/index.umd.cjs +6 -6
- package/package.json +3 -3
- package/src/api.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instantdb/platform",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.96-experimental.add-posthog-frontend.20387039167.1",
|
|
4
4
|
"description": "Instant's platform package for managing Instant apps.",
|
|
5
5
|
"homepage": "https://github.com/instantdb/instant/tree/main/client/packages/platform",
|
|
6
6
|
"repository": {
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@babel/parser": "^8.0.0-beta.0",
|
|
56
56
|
"@babel/types": "^8.0.0-beta.0",
|
|
57
|
-
"@instantdb/core": "0.22.
|
|
58
|
-
"@instantdb/version": "0.22.
|
|
57
|
+
"@instantdb/core": "0.22.96-experimental.add-posthog-frontend.20387039167.1",
|
|
58
|
+
"@instantdb/version": "0.22.96-experimental.add-posthog-frontend.20387039167.1"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"test": "vitest",
|
package/src/api.ts
CHANGED
|
@@ -303,6 +303,8 @@ async function jsonFetch<T>(
|
|
|
303
303
|
...(init?.headers || {}),
|
|
304
304
|
'Instant-Platform-Version': version,
|
|
305
305
|
'Instant-Core-Version': coreVersion,
|
|
306
|
+
'X-Instant-Source': 'platform-sdk',
|
|
307
|
+
'X-Instant-Version': version,
|
|
306
308
|
};
|
|
307
309
|
const res = await fetch(input, { ...init, headers });
|
|
308
310
|
if (res.status === 200) {
|