@expo/config
Advanced tools
Comparing version 2.4.0 to 2.5.0
@@ -6,7 +6,2 @@ import { JSONObject } from '@expo/json-file'; | ||
export declare function fileExists(file: string): boolean; | ||
export declare function findConfigFileAsync(projectRoot: string): Promise<{ | ||
configPath: string; | ||
configName: string; | ||
configNamespace: 'expo'; | ||
}>; | ||
export declare function findConfigFile(projectRoot: string): { | ||
@@ -17,3 +12,2 @@ configPath: string; | ||
}; | ||
export declare function configFilenameAsync(projectRoot: string): Promise<string>; | ||
export declare function configFilename(projectRoot: string): string; | ||
@@ -20,0 +14,0 @@ export declare function readExpRcAsync(projectRoot: string): Promise<ExpRc>; |
@@ -37,3 +37,4 @@ "use strict"; | ||
const DEFAULT_DISPLAY = 'standalone'; | ||
const DEFAULT_STATUS_BAR = 'default'; | ||
// Enable full-screen iOS PWAs | ||
const DEFAULT_STATUS_BAR = 'black-translucent'; | ||
const DEFAULT_LANG_DIR = 'auto'; | ||
@@ -74,9 +75,2 @@ const DEFAULT_ORIENTATION = 'any'; | ||
exports.fileExists = fileExists; | ||
// DEPRECATED: Use findConfigFile | ||
function findConfigFileAsync(projectRoot) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return findConfigFile(projectRoot); | ||
}); | ||
} | ||
exports.findConfigFileAsync = findConfigFileAsync; | ||
function findConfigFile(projectRoot) { | ||
@@ -93,9 +87,2 @@ let configPath; | ||
exports.findConfigFile = findConfigFile; | ||
// DEPRECATED: Use configFilename | ||
function configFilenameAsync(projectRoot) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return findConfigFile(projectRoot).configName; | ||
}); | ||
} | ||
exports.configFilenameAsync = configFilenameAsync; | ||
function configFilename(projectRoot) { | ||
@@ -102,0 +89,0 @@ return findConfigFile(projectRoot).configName; |
@@ -15,6 +15,6 @@ "use strict"; | ||
for (const workflow of [...workflows, '']) { | ||
// Support both TypeScript and JavaScript | ||
for (const extension of extensions) { | ||
// Ensure order is correct: [platformA.js, platformB.js, js] | ||
for (const platform of [...platforms, '']) { | ||
// Ensure order is correct: [platformA.js, platformB.js, js] | ||
for (const platform of [...platforms, '']) { | ||
// Support both TypeScript and JavaScript | ||
for (const extension of extensions) { | ||
fileExtensions.push([platform, workflow, extension].filter(Boolean).join('.')); | ||
@@ -21,0 +21,0 @@ } |
{ | ||
"name": "@expo/config", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"description": "A library for interacting with the app.json", | ||
@@ -43,3 +43,4 @@ "main": "build/Config.js", | ||
"files": [ | ||
"build" | ||
"build", | ||
"paths" | ||
], | ||
@@ -46,0 +47,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23
88447
790
1