@account-kit/logging 4.0.0-beta.10 → 4.0.0
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/esm/fetchRemoteWriteKey.js +2 -6
- package/dist/esm/fetchRemoteWriteKey.js.map +1 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/types/fetchRemoteWriteKey.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/version.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/fetchRemoteWriteKey.ts +4 -10
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
export async function fetchRemoteWriteKey() {
|
|
2
2
|
try {
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
ContentType: "application/json",
|
|
6
|
-
},
|
|
7
|
-
mode: "no-cors",
|
|
8
|
-
}).then((res) => res.json());
|
|
3
|
+
const res = await fetch("https://ws-accounkit-assets.s3.us-west-1.amazonaws.com/logger_config_v1.json");
|
|
4
|
+
const json = await res.json();
|
|
9
5
|
return json.writeKey;
|
|
10
6
|
}
|
|
11
7
|
catch (e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchRemoteWriteKey.js","sourceRoot":"","sources":["../../src/fetchRemoteWriteKey.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,mBAAmB;IACvC,IAAI,CAAC;QACH,MAAM,
|
|
1
|
+
{"version":3,"file":"fetchRemoteWriteKey.js","sourceRoot":"","sources":["../../src/fetchRemoteWriteKey.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,mBAAmB;IACvC,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,MAAM,KAAK,CACrB,8EAA8E,CAC/E,CAAC;QACF,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;QAC9B,OAAO,IAAI,CAAC,QAA8B,CAAC;IAC7C,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;QAC1C,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC","sourcesContent":["export async function fetchRemoteWriteKey(): Promise<string | undefined> {\n try {\n const res = await fetch(\n \"https://ws-accounkit-assets.s3.us-west-1.amazonaws.com/logger_config_v1.json\"\n );\n const json = await res.json();\n return json.writeKey as string | undefined;\n } catch (e) {\n console.warn(\"failed to fetch write key\");\n return undefined;\n }\n}\n"]}
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "4.0.0
|
|
1
|
+
export declare const VERSION = "4.0.0";
|
package/dist/esm/version.js
CHANGED
package/dist/esm/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,yBAAyB;AACzB,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,yBAAyB;AACzB,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"4.0.0\";\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchRemoteWriteKey.d.ts","sourceRoot":"","sources":["../../src/fetchRemoteWriteKey.ts"],"names":[],"mappings":"AAAA,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"fetchRemoteWriteKey.d.ts","sourceRoot":"","sources":["../../src/fetchRemoteWriteKey.ts"],"names":[],"mappings":"AAAA,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAWvE"}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.0.0
|
|
1
|
+
export declare const VERSION = "4.0.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@account-kit/logging",
|
|
3
|
-
"version": "4.0.0
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Core logging library for Account Kit packages",
|
|
5
5
|
"author": "Alchemy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"@segment/analytics-next": "^1.74.0",
|
|
62
62
|
"uuidv4": "^6.2.13"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "f3489aa0739d3ff497c3fc1194c96778a1adfbad"
|
|
65
65
|
}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
export async function fetchRemoteWriteKey(): Promise<string | undefined> {
|
|
2
2
|
try {
|
|
3
|
-
const
|
|
4
|
-
"https://
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
ContentType: "application/json",
|
|
8
|
-
},
|
|
9
|
-
mode: "no-cors",
|
|
10
|
-
}
|
|
11
|
-
).then((res) => res.json());
|
|
12
|
-
|
|
3
|
+
const res = await fetch(
|
|
4
|
+
"https://ws-accounkit-assets.s3.us-west-1.amazonaws.com/logger_config_v1.json"
|
|
5
|
+
);
|
|
6
|
+
const json = await res.json();
|
|
13
7
|
return json.writeKey as string | undefined;
|
|
14
8
|
} catch (e) {
|
|
15
9
|
console.warn("failed to fetch write key");
|