@faststats/flags-sdk 0.13.1 → 0.13.2
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.d.ts +1 -3
- package/dist/index.js +1 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Adapter } from "flags";
|
|
2
|
-
//#region src/index.d.ts
|
|
3
2
|
/** Who a flag is evaluated for. Return this from the flag's `identify`. */
|
|
4
3
|
export interface FastStatsEntities {
|
|
5
4
|
/** Stable device, install or server ID. Required unless `userId` is set. */
|
|
@@ -34,5 +33,4 @@ export declare function createFastStatsAdapter(options?: FastStatsAdapterOptions
|
|
|
34
33
|
* Adapter configured from `FASTSTATS_FLAGS_TOKEN` (or `FASTSTATS_TOKEN`) and,
|
|
35
34
|
* optionally, `FASTSTATS_FLAGS_ENDPOINT`.
|
|
36
35
|
*/
|
|
37
|
-
export declare const fastStatsAdapter: <ValueType, EntitiesType extends FastStatsEntities = FastStatsEntities>() => Adapter<ValueType, EntitiesType>;
|
|
38
|
-
//#endregion
|
|
36
|
+
export declare const fastStatsAdapter: <ValueType, EntitiesType extends FastStatsEntities = FastStatsEntities>() => Adapter<ValueType, EntitiesType>;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/index.ts
|
|
2
2
|
const DEFAULT_ENDPOINT = "https://flags.faststats.dev";
|
|
3
3
|
const DEFAULT_TIMEOUT_MS = 3e3;
|
|
4
4
|
const COUNTRY_HEADERS = ["x-vercel-ip-country", "cf-ipcountry"];
|
|
@@ -72,5 +72,4 @@ function createFastStatsAdapter(options = {}) {
|
|
|
72
72
|
* optionally, `FASTSTATS_FLAGS_ENDPOINT`.
|
|
73
73
|
*/
|
|
74
74
|
const fastStatsAdapter = createFastStatsAdapter();
|
|
75
|
-
//#endregion
|
|
76
75
|
export { FastStatsFlagsError, createFastStatsAdapter, fastStatsAdapter };
|