@luxexchange/gating 1.0.1 → 1.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxexchange/gating",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "dependencies": {
5
5
  "@statsig/client-core": "3.12.2",
6
6
  "@statsig/js-client": "3.12.2",
package/project.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@luxfi/gating",
3
3
  "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
- "sourceRoot": "packages/gating/src",
4
+ "sourceRoot": "pkgs/gating/src",
5
5
  "projectType": "library",
6
6
  "tags": ["scope:gating", "type:lib"],
7
7
  "targets": {
package/src/flags.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { logger } from 'utilities/src/logger/logger'
2
- import { isWebApp } from 'utilities/src/platform'
1
+ import { logger } from '@luxfi/utilities/src/logger/logger'
2
+ import { isWebApp } from '@luxfi/utilities/src/platform'
3
3
 
4
4
  // only disable for this enum
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { FeatureFlags } from '@universe/gating/src/flags'
2
- import { getFeatureFlag, useFeatureFlag } from '@universe/gating/src/hooks'
1
+ import { FeatureFlags } from '@luxexchange/gating/src/flags'
2
+ import { getFeatureFlag, useFeatureFlag } from '@luxexchange/gating/src/hooks'
3
3
 
4
4
  function getIsHashcashSolverEnabled(): boolean {
5
5
  return getFeatureFlag(FeatureFlags.HashcashSolverEnabled)
@@ -1,5 +1,5 @@
1
- import { FeatureFlags } from '@universe/gating/src/flags'
2
- import { getFeatureFlag, useFeatureFlag } from '@universe/gating/src/hooks'
1
+ import { FeatureFlags } from '@luxexchange/gating/src/flags'
2
+ import { getFeatureFlag, useFeatureFlag } from '@luxexchange/gating/src/hooks'
3
3
 
4
4
  /**
5
5
  * Returns whether sessions performance tracking is enabled.
@@ -1,5 +1,5 @@
1
- import { FeatureFlags } from '@universe/gating/src/flags'
2
- import { getFeatureFlag, useFeatureFlag } from '@universe/gating/src/hooks'
1
+ import { FeatureFlags } from '@luxexchange/gating/src/flags'
2
+ import { getFeatureFlag, useFeatureFlag } from '@luxexchange/gating/src/hooks'
3
3
 
4
4
  function getIsTurnstileSolverEnabled(): boolean {
5
5
  return getFeatureFlag(FeatureFlags.TurnstileSolverEnabled)
@@ -1,5 +1,5 @@
1
- import { isBetaEnv, isProdEnv } from 'utilities/src/environment/env'
2
- import { isWebApp } from 'utilities/src/platform'
1
+ import { isBetaEnv, isProdEnv } from '@luxfi/utilities/src/environment/env'
2
+ import { isWebApp } from '@luxfi/utilities/src/platform'
3
3
 
4
4
  export enum StatsigEnvName {
5
5
  Beta = 'beta', // mobile and extension environment-specific
package/src/hooks.ts CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  useStatsigClient,
14
14
  } from '@luxfi/gating/src/sdk/statsig'
15
15
  import { useEffect, useMemo, useState } from 'react'
16
- import { logger } from 'utilities/src/logger/logger'
16
+ import { logger } from '@luxfi/utilities/src/logger/logger'
17
17
 
18
18
  export function useFeatureFlag(flag: FeatureFlags): boolean {
19
19
  const name = getFeatureFlagName(flag)
package/src/index.ts CHANGED
@@ -9,7 +9,7 @@ export type {
9
9
  GasStrategyWithConditions,
10
10
  UwULinkAllowlist,
11
11
  UwULinkAllowlistItem,
12
- } from '@universe/gating/src/configs'
12
+ } from '@luxexchange/gating/src/configs'
13
13
  export {
14
14
  AllowedV4WethHookAddressesConfigKey,
15
15
  BlockedAsyncSubmissionChainIdsConfigKey,
@@ -30,9 +30,9 @@ export {
30
30
  SyncTransactionSubmissionChainIdsConfigKey,
31
31
  UwuLinkConfigKey,
32
32
  VerifiedAuctionsConfigKey,
33
- } from '@universe/gating/src/configs'
34
- export { StatsigCustomAppValue } from '@universe/gating/src/constants'
35
- export type { ExperimentProperties } from '@universe/gating/src/experiments'
33
+ } from '@luxexchange/gating/src/configs'
34
+ export { StatsigCustomAppValue } from '@luxexchange/gating/src/constants'
35
+ export type { ExperimentProperties } from '@luxexchange/gating/src/experiments'
36
36
  export {
37
37
  EthAsErc20DEXProperties,
38
38
  Experiments,
@@ -43,26 +43,26 @@ export {
43
43
  PriceUxUpdateProperties,
44
44
  PrivateRpcProperties,
45
45
  UnichainFlashblocksProperties,
46
- } from '@universe/gating/src/experiments'
46
+ } from '@luxexchange/gating/src/experiments'
47
47
  export {
48
48
  FeatureFlagClient,
49
49
  FeatureFlags,
50
50
  getFeatureFlagName,
51
51
  WALLET_FEATURE_FLAG_NAMES,
52
52
  WEB_FEATURE_FLAG_NAMES,
53
- } from '@universe/gating/src/flags'
54
- export { getIsHashcashSolverEnabled, useIsHashcashSolverEnabled } from '@universe/gating/src/getIsHashcashSolverEnabled'
53
+ } from '@luxexchange/gating/src/flags'
54
+ export { getIsHashcashSolverEnabled, useIsHashcashSolverEnabled } from '@luxexchange/gating/src/getIsHashcashSolverEnabled'
55
55
  export {
56
56
  getIsSessionsPerformanceTrackingEnabled,
57
57
  useIsSessionsPerformanceTrackingEnabled,
58
- } from '@universe/gating/src/getIsPerformanceTrackingEnabled'
59
- export { getIsSessionServiceEnabled, useIsSessionServiceEnabled } from '@universe/gating/src/getIsSessionServiceEnabled'
60
- export { getIsSessionUpgradeAutoEnabled } from '@universe/gating/src/getIsSessionUpgradeAutoEnabled'
58
+ } from '@luxexchange/gating/src/getIsPerformanceTrackingEnabled'
59
+ export { getIsSessionServiceEnabled, useIsSessionServiceEnabled } from '@luxexchange/gating/src/getIsSessionServiceEnabled'
60
+ export { getIsSessionUpgradeAutoEnabled } from '@luxexchange/gating/src/getIsSessionUpgradeAutoEnabled'
61
61
  export {
62
62
  getIsTurnstileSolverEnabled,
63
63
  useIsTurnstileSolverEnabled,
64
- } from '@universe/gating/src/getIsTurnstileSolverEnabled'
65
- export { getStatsigEnvName } from '@universe/gating/src/getStatsigEnvName'
64
+ } from '@luxexchange/gating/src/getIsTurnstileSolverEnabled'
65
+ export { getStatsigEnvName } from '@luxexchange/gating/src/getStatsigEnvName'
66
66
  export {
67
67
  getDynamicConfigValue,
68
68
  getExperimentValue,
@@ -76,13 +76,13 @@ export {
76
76
  useFeatureFlagWithExposureLoggingDisabled,
77
77
  useFeatureFlagWithLoading,
78
78
  useStatsigClientStatus,
79
- } from '@universe/gating/src/hooks'
80
- export { LocalOverrideAdapterWrapper } from '@universe/gating/src/LocalOverrideAdapterWrapper'
79
+ } from '@luxexchange/gating/src/hooks'
80
+ export { LocalOverrideAdapterWrapper } from '@luxexchange/gating/src/LocalOverrideAdapterWrapper'
81
81
  export type {
82
82
  StatsigOptions,
83
83
  StatsigUser,
84
84
  StorageProvider,
85
- } from '@universe/gating/src/sdk/statsig'
85
+ } from '@luxexchange/gating/src/sdk/statsig'
86
86
  export {
87
87
  getOverrideAdapter,
88
88
  getStatsigClient,
@@ -93,5 +93,5 @@ export {
93
93
  useClientAsyncInit,
94
94
  useExperiment,
95
95
  useLayer,
96
- } from '@universe/gating/src/sdk/statsig'
97
- export { getOverrides } from '@universe/gating/src/utils'
96
+ } from '@luxexchange/gating/src/sdk/statsig'
97
+ export { getOverrides } from '@luxexchange/gating/src/utils'
@@ -1,7 +1,7 @@
1
1
  import { StatsigClient } from '@statsig/react-bindings'
2
2
  import { getConfig } from '@luxfi/config'
3
3
  import { LocalOverrideAdapterWrapper } from '@luxfi/gating/src/LocalOverrideAdapterWrapper'
4
- import { isTestEnv } from 'utilities/src/environment/env'
4
+ import { isTestEnv } from '@luxfi/utilities/src/environment/env'
5
5
 
6
6
  export {
7
7
  StatsigClient,