one 1.2.61 → 1.2.62
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/env.d.ts +43 -0
- package/package.json +15 -11
- package/server.js +9 -0
- package/types/env.d.ts +30 -0
- package/types/env.d.ts.map +1 -0
package/env.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
|
|
3
|
+
interface OneEnvVariables {
|
|
4
|
+
// Core One variables
|
|
5
|
+
/** Random number for each production build, or stable per dev server run. Useful for cache keys. */
|
|
6
|
+
ONE_CACHE_KEY: string
|
|
7
|
+
/** Your app.key setting from vite.config */
|
|
8
|
+
ONE_APP_NAME: string
|
|
9
|
+
/** Current running server URL in development, e.g. "http://0.0.0.0:8081". Set this yourself for production. */
|
|
10
|
+
ONE_SERVER_URL: string
|
|
11
|
+
/** "ssr", "ssg", or "spa" based on your defaultRenderMode setting */
|
|
12
|
+
ONE_DEFAULT_RENDER_MODE: 'ssr' | 'ssg' | 'spa'
|
|
13
|
+
|
|
14
|
+
// Platform detection
|
|
15
|
+
/** "client" for client-side web, "ssr" for server-side web, "ios" or "android" for native */
|
|
16
|
+
VITE_ENVIRONMENT: 'client' | 'ssr' | 'ios' | 'android'
|
|
17
|
+
/** "web" for all web builds (client and SSR), "native" for native platforms (iOS and Android) */
|
|
18
|
+
VITE_PLATFORM: 'web' | 'native'
|
|
19
|
+
/** "web" for web builds, "ios" or "android" for native. Matches Expo convention. */
|
|
20
|
+
EXPO_OS: 'web' | 'ios' | 'android'
|
|
21
|
+
|
|
22
|
+
// React Native (available in native builds)
|
|
23
|
+
/** The React Native version string */
|
|
24
|
+
REACT_NATIVE_VERSION: string
|
|
25
|
+
/** "ios" or "android" in native builds */
|
|
26
|
+
REACT_NATIVE_PLATFORM: 'ios' | 'android'
|
|
27
|
+
/** Dev server port for React Native */
|
|
28
|
+
REACT_NATIVE_SERVER_PUBLIC_PORT: string
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare global {
|
|
32
|
+
namespace NodeJS {
|
|
33
|
+
interface ProcessEnv extends Partial<OneEnvVariables> {}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface ImportMetaEnv extends Partial<OneEnvVariables> {}
|
|
38
|
+
|
|
39
|
+
interface ImportMeta {
|
|
40
|
+
readonly env: ImportMetaEnv
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "one",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.62",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"setup.mjs",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"import": "./metro-entry.js"
|
|
86
86
|
},
|
|
87
87
|
"./env": {
|
|
88
|
-
"types": "./
|
|
88
|
+
"types": "./env.d.ts"
|
|
89
89
|
},
|
|
90
90
|
"./image": {
|
|
91
91
|
"types": "./types/image.d.ts",
|
|
@@ -103,9 +103,13 @@
|
|
|
103
103
|
"types",
|
|
104
104
|
"dist",
|
|
105
105
|
"vendor",
|
|
106
|
+
"run.mjs",
|
|
107
|
+
"env.d.ts",
|
|
108
|
+
"server.js",
|
|
106
109
|
"metro-entry.js",
|
|
107
110
|
"metro-entry-ctx.js",
|
|
108
|
-
"LICENSE"
|
|
111
|
+
"LICENSE",
|
|
112
|
+
"README.md"
|
|
109
113
|
],
|
|
110
114
|
"scripts": {
|
|
111
115
|
"build": "tamagui-build",
|
|
@@ -135,17 +139,17 @@
|
|
|
135
139
|
"@react-navigation/routers": "~7.5.1",
|
|
136
140
|
"@swc/core": "^1.14.0",
|
|
137
141
|
"@ungap/structured-clone": "^1.2.0",
|
|
138
|
-
"@vxrn/color-scheme": "1.2.
|
|
139
|
-
"@vxrn/compiler": "1.2.
|
|
140
|
-
"@vxrn/resolve": "1.2.
|
|
141
|
-
"@vxrn/tslib-lite": "1.2.
|
|
142
|
-
"@vxrn/use-isomorphic-layout-effect": "1.2.
|
|
143
|
-
"@vxrn/vite-plugin-metro": "1.2.
|
|
142
|
+
"@vxrn/color-scheme": "1.2.62",
|
|
143
|
+
"@vxrn/compiler": "1.2.62",
|
|
144
|
+
"@vxrn/resolve": "1.2.62",
|
|
145
|
+
"@vxrn/tslib-lite": "1.2.62",
|
|
146
|
+
"@vxrn/use-isomorphic-layout-effect": "1.2.62",
|
|
147
|
+
"@vxrn/vite-plugin-metro": "1.2.62",
|
|
144
148
|
"babel-dead-code-elimination": "1.0.10",
|
|
145
149
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
146
150
|
"citty": "^0.1.6",
|
|
147
151
|
"core-js": "^3.38.1",
|
|
148
|
-
"create-vxrn": "1.2.
|
|
152
|
+
"create-vxrn": "1.2.62",
|
|
149
153
|
"escape-string-regexp": "^5.0.0",
|
|
150
154
|
"expo-linking": "~8.0.8",
|
|
151
155
|
"expo-modules-core": "~3.0.24",
|
|
@@ -173,7 +177,7 @@
|
|
|
173
177
|
"vite": "7.1.12",
|
|
174
178
|
"vite-plugin-barrel": "^0.4.1",
|
|
175
179
|
"vite-tsconfig-paths": "^5.1.4",
|
|
176
|
-
"vxrn": "1.2.
|
|
180
|
+
"vxrn": "1.2.62",
|
|
177
181
|
"ws": "^8.18.0",
|
|
178
182
|
"xxhashjs": "^0.2.2"
|
|
179
183
|
},
|
package/server.js
ADDED
package/types/env.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
interface OneEnvVariables {
|
|
2
|
+
/** Random number for each production build, or stable per dev server run. Useful for cache keys. */
|
|
3
|
+
ONE_CACHE_KEY: string;
|
|
4
|
+
/** Your app.key setting from vite.config */
|
|
5
|
+
ONE_APP_NAME: string;
|
|
6
|
+
/** Current running server URL in development, e.g. "http://0.0.0.0:8081". Set this yourself for production. */
|
|
7
|
+
ONE_SERVER_URL: string;
|
|
8
|
+
/** "ssr", "ssg", or "spa" based on your defaultRenderMode setting */
|
|
9
|
+
ONE_DEFAULT_RENDER_MODE: 'ssr' | 'ssg' | 'spa';
|
|
10
|
+
/** "client" for client-side web, "ssr" for server-side web, "ios" or "android" for native */
|
|
11
|
+
VITE_ENVIRONMENT: 'client' | 'ssr' | 'ios' | 'android';
|
|
12
|
+
/** "web" for all web builds (client and SSR), "native" for native platforms (iOS and Android) */
|
|
13
|
+
VITE_PLATFORM: 'web' | 'native';
|
|
14
|
+
/** "web" for web builds, "ios" or "android" for native. Matches Expo convention. */
|
|
15
|
+
EXPO_OS: 'web' | 'ios' | 'android';
|
|
16
|
+
/** The React Native version string */
|
|
17
|
+
REACT_NATIVE_VERSION: string;
|
|
18
|
+
/** "ios" or "android" in native builds */
|
|
19
|
+
REACT_NATIVE_PLATFORM: 'ios' | 'android';
|
|
20
|
+
/** Dev server port for React Native */
|
|
21
|
+
REACT_NATIVE_SERVER_PUBLIC_PORT: string;
|
|
22
|
+
}
|
|
23
|
+
declare global {
|
|
24
|
+
namespace NodeJS {
|
|
25
|
+
interface ProcessEnv extends Partial<OneEnvVariables> {
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=env.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../src/env.ts"],"names":[],"mappings":"AAEA,UAAU,eAAe;IAEvB,oGAAoG;IACpG,aAAa,EAAE,MAAM,CAAA;IACrB,4CAA4C;IAC5C,YAAY,EAAE,MAAM,CAAA;IACpB,+GAA+G;IAC/G,cAAc,EAAE,MAAM,CAAA;IACtB,qEAAqE;IACrE,uBAAuB,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,CAAA;IAG9C,6FAA6F;IAC7F,gBAAgB,EAAE,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,SAAS,CAAA;IACtD,iGAAiG;IACjG,aAAa,EAAE,KAAK,GAAG,QAAQ,CAAA;IAC/B,oFAAoF;IACpF,OAAO,EAAE,KAAK,GAAG,KAAK,GAAG,SAAS,CAAA;IAGlC,sCAAsC;IACtC,oBAAoB,EAAE,MAAM,CAAA;IAC5B,0CAA0C;IAC1C,qBAAqB,EAAE,KAAK,GAAG,SAAS,CAAA;IACxC,uCAAuC;IACvC,+BAA+B,EAAE,MAAM,CAAA;CACxC;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM,CAAC;QACf,UAAU,UAAW,SAAQ,OAAO,CAAC,eAAe,CAAC;SAAG;KACzD;CACF;AAQD,OAAO,EAAE,CAAA"}
|