expo-modules-core
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -50,19 +50,27 @@ import type { EventEmitter } from './EventEmitter'; | ||
}; | ||
export interface ExpoProcessEnv { | ||
NODE_ENV: string; | ||
/** Used in `@expo/metro-runtime`. */ | ||
EXPO_DEV_SERVER_ORIGIN?: string; | ||
EXPO_ROUTER_IMPORT_MODE?: string; | ||
EXPO_ROUTER_ABS_APP_ROOT?: string; | ||
EXPO_ROUTER_APP_ROOT?: string; | ||
/** Maps to the `experiments.baseUrl` property in the project Expo config. This is injected by `babel-preset-expo` and supports automatic cache invalidation. */ | ||
EXPO_BASE_URL?: string; | ||
/** Build-time representation of the `Platform.OS` value that the current JavaScript was bundled for. Does not support platform shaking wrapped require statements. */ | ||
EXPO_OS?: string; | ||
[key: string]: any; | ||
} | ||
export interface ExpoProcess { | ||
env: { | ||
NODE_ENV: string; | ||
/** Used in `@expo/metro-runtime`. */ | ||
EXPO_DEV_SERVER_ORIGIN?: string; | ||
EXPO_ROUTER_IMPORT_MODE?: string; | ||
EXPO_ROUTER_ABS_APP_ROOT?: string; | ||
EXPO_ROUTER_APP_ROOT?: string; | ||
/** Maps to the `experiments.baseUrl` property in the project Expo config. This is injected by `babel-preset-expo` and supports automatic cache invalidation. */ | ||
EXPO_BASE_URL?: string; | ||
/** Build-time representation of the `Platform.OS` value that the current JavaScript was bundled for. Does not support platform shaking wrapped require statements. */ | ||
EXPO_OS?: string; | ||
[key: string]: any; | ||
}; | ||
env: ExpoProcessEnv; | ||
[key: string]: any; | ||
} | ||
declare global { | ||
namespace NodeJS { | ||
interface ProcessEnv extends ExpoProcessEnv { | ||
} | ||
interface Process extends ExpoProcess { | ||
env: ProcessEnv; | ||
} | ||
} | ||
/** | ||
@@ -73,3 +81,3 @@ * Global object containing all the native bindings installed by Expo. | ||
var expo: ExpoGlobal; | ||
var process: ExpoProcess; | ||
var process: NodeJS.Process; | ||
/** | ||
@@ -76,0 +84,0 @@ * ExpoDomWebView is defined in `@expo/dom-webview` runtime. |
{ | ||
"name": "expo-modules-core", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "The core of Expo Modules architecture", | ||
@@ -47,3 +47,3 @@ "main": "src/index.ts", | ||
}, | ||
"gitHead": "986a4689b91f3efc527f7178a320b987c0005842" | ||
"gitHead": "0a0c6d35a691fc59c0d94675d159ac9e3dfd6f26" | ||
} |
@@ -63,26 +63,35 @@ import type { EventEmitter } from './EventEmitter'; | ||
export interface ExpoProcess { | ||
env: { | ||
NODE_ENV: string; | ||
/** Used in `@expo/metro-runtime`. */ | ||
EXPO_DEV_SERVER_ORIGIN?: string; | ||
export interface ExpoProcessEnv { | ||
NODE_ENV: string; | ||
/** Used in `@expo/metro-runtime`. */ | ||
EXPO_DEV_SERVER_ORIGIN?: string; | ||
EXPO_ROUTER_IMPORT_MODE?: string; | ||
EXPO_ROUTER_ABS_APP_ROOT?: string; | ||
EXPO_ROUTER_APP_ROOT?: string; | ||
EXPO_ROUTER_IMPORT_MODE?: string; | ||
EXPO_ROUTER_ABS_APP_ROOT?: string; | ||
EXPO_ROUTER_APP_ROOT?: string; | ||
/** Maps to the `experiments.baseUrl` property in the project Expo config. This is injected by `babel-preset-expo` and supports automatic cache invalidation. */ | ||
EXPO_BASE_URL?: string; | ||
/** Maps to the `experiments.baseUrl` property in the project Expo config. This is injected by `babel-preset-expo` and supports automatic cache invalidation. */ | ||
EXPO_BASE_URL?: string; | ||
/** Build-time representation of the `Platform.OS` value that the current JavaScript was bundled for. Does not support platform shaking wrapped require statements. */ | ||
EXPO_OS?: string; | ||
/** Build-time representation of the `Platform.OS` value that the current JavaScript was bundled for. Does not support platform shaking wrapped require statements. */ | ||
EXPO_OS?: string; | ||
[key: string]: any; | ||
}; | ||
[key: string]: any; | ||
} | ||
export interface ExpoProcess { | ||
env: ExpoProcessEnv; | ||
[key: string]: any; | ||
} | ||
/* eslint-disable no-var */ | ||
declare global { | ||
namespace NodeJS { | ||
export interface ProcessEnv extends ExpoProcessEnv {} | ||
export interface Process extends ExpoProcess { | ||
env: ProcessEnv; | ||
} | ||
} | ||
/** | ||
@@ -94,4 +103,3 @@ * Global object containing all the native bindings installed by Expo. | ||
// @ts-ignore - Suppress incompatible `NodeJS.Process` type if people include process type from `@types/node` | ||
var process: ExpoProcess; | ||
var process: NodeJS.Process; | ||
@@ -98,0 +106,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1720010
784
4325