@luxexchange/config 1.0.0 → 1.0.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/package.json +4 -4
- package/project.json +1 -1
- package/src/getConfig.native.ts +1 -1
- package/src/getConfig.ts +1 -1
- package/src/getConfig.web.ts +1 -1
- package/.depcheckrc +0 -9
- package/.eslintrc.js +0 -20
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luxexchange/config",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"react-native-dotenv": "3.2.0",
|
|
6
|
-
"@luxfi/utilities": "
|
|
6
|
+
"@luxfi/utilities": "workspace:^"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
"@types/node": "22.13.1",
|
|
10
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
11
|
-
"@luxfi/eslint-config": "
|
|
10
|
+
"@typescript/native-preview": "7.0.0-dev.20260311.1",
|
|
11
|
+
"@luxfi/eslint-config": "workspace:^",
|
|
12
12
|
"depcheck": "1.4.7",
|
|
13
13
|
"eslint": "8.57.1",
|
|
14
14
|
"typescript": "5.8.3"
|
package/project.json
CHANGED
package/src/getConfig.native.ts
CHANGED
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
WALLETCONNECT_PROJECT_ID_BETA,
|
|
37
37
|
WALLETCONNECT_PROJECT_ID_DEV,
|
|
38
38
|
} from 'react-native-dotenv'
|
|
39
|
-
import { isNonTestDev } from '
|
|
39
|
+
import { isNonTestDev } from 'utilities/src/environment/constants'
|
|
40
40
|
|
|
41
41
|
// Module-level cache for config to avoid recomputing on every call
|
|
42
42
|
let cachedConfig: Config | undefined
|
package/src/getConfig.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Config } from '@luxfi/config/src/config-types'
|
|
2
|
-
import { PlatformSplitStubError } from '
|
|
2
|
+
import { PlatformSplitStubError } from 'utilities/src/errors'
|
|
3
3
|
|
|
4
4
|
export function getConfig(): Config {
|
|
5
5
|
throw new PlatformSplitStubError('Use the correct getConfig for your platform')
|
package/src/getConfig.web.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Config } from '@luxfi/config/src/config-types'
|
|
2
|
-
import { isNonTestDev } from '
|
|
2
|
+
import { isNonTestDev } from 'utilities/src/environment/constants'
|
|
3
3
|
|
|
4
4
|
// Module-level cache for config to avoid recomputing on every call
|
|
5
5
|
let cachedConfig: Config | undefined
|
package/.depcheckrc
DELETED
package/.eslintrc.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extends: ['@luxfi/eslint-config/lib'],
|
|
3
|
-
parserOptions: {
|
|
4
|
-
tsconfigRootDir: __dirname,
|
|
5
|
-
},
|
|
6
|
-
overrides: [
|
|
7
|
-
{
|
|
8
|
-
files: ['*.ts', '*.tsx'],
|
|
9
|
-
rules: {
|
|
10
|
-
'no-relative-import-paths/no-relative-import-paths': [
|
|
11
|
-
'error',
|
|
12
|
-
{
|
|
13
|
-
allowSameFolder: false,
|
|
14
|
-
prefix: '@luxfi/config',
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
}
|