Socket
Socket
Sign inDemoInstall

@expo/config

Package Overview
Dependencies
Maintainers
27
Versions
229
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expo/config - npm Package Compare versions

Comparing version 8.5.6 to 9.0.0-beta.0

30

build/Config.js

@@ -130,3 +130,2 @@ "use strict";

function reduceExpoObject(config) {
var _config$expo;
if (!config) return config === undefined ? null : config;

@@ -136,3 +135,3 @@ const {

...expo
} = (_config$expo = config.expo) !== null && _config$expo !== void 0 ? _config$expo : config;
} = config.expo ?? config;
return {

@@ -214,5 +213,4 @@ expo,

if (options.isModdedConfig) {
var _config$mods;
// @ts-ignore: Add the mods back to the object.
configWithDefaultValues.exp.mods = (_config$mods = config.mods) !== null && _config$mods !== void 0 ? _config$mods : null;
configWithDefaultValues.exp.mods = config.mods ?? null;
}

@@ -227,3 +225,2 @@

if (options.isPublicConfig) {
var _configWithDefaultVal, _configWithDefaultVal2, _configWithDefaultVal3, _configWithDefaultVal4;
// TODD(EvanBacon): Drop plugins array after it's been resolved.

@@ -236,10 +233,10 @@

}
if ((_configWithDefaultVal = configWithDefaultValues.exp.ios) !== null && _configWithDefaultVal !== void 0 && _configWithDefaultVal.config) {
if (configWithDefaultValues.exp.ios?.config) {
delete configWithDefaultValues.exp.ios.config;
}
if ((_configWithDefaultVal2 = configWithDefaultValues.exp.android) !== null && _configWithDefaultVal2 !== void 0 && _configWithDefaultVal2.config) {
if (configWithDefaultValues.exp.android?.config) {
delete configWithDefaultValues.exp.android.config;
}
(_configWithDefaultVal3 = configWithDefaultValues.exp.updates) === null || _configWithDefaultVal3 === void 0 ? true : delete _configWithDefaultVal3.codeSigningCertificate;
(_configWithDefaultVal4 = configWithDefaultValues.exp.updates) === null || _configWithDefaultVal4 === void 0 ? true : delete _configWithDefaultVal4.codeSigningMetadata;
delete configWithDefaultValues.exp.updates?.codeSigningCertificate;
delete configWithDefaultValues.exp.updates?.codeSigningMetadata;
}

@@ -394,3 +391,2 @@ return configWithDefaultValues;

}) {
var _exp$name, _exp$slug, _exp$version;
if (!exp) {

@@ -401,3 +397,3 @@ exp = {};

projectRoot,
...(paths !== null && paths !== void 0 ? paths : {}),
...(paths ?? {}),
packageJsonPath

@@ -415,5 +411,5 @@ });

// Defaults for app.json/app.config.js fields
const name = (_exp$name = exp.name) !== null && _exp$name !== void 0 ? _exp$name : pkgName;
const slug = (_exp$slug = exp.slug) !== null && _exp$slug !== void 0 ? _exp$slug : (0, _slugify().default)(name.toLowerCase());
const version = (_exp$version = exp.version) !== null && _exp$version !== void 0 ? _exp$version : pkgVersion;
const name = exp.name ?? pkgName;
const slug = exp.slug ?? (0, _slugify().default)(name.toLowerCase());
const version = exp.version ?? pkgVersion;
let description = exp.description;

@@ -451,3 +447,2 @@ if (!description && typeof pkg.description === 'string') {

function getWebOutputPath(config = {}) {
var _expo$web, _expo$web$build;
if (process.env.WEBPACK_BUILD_OUTPUT_PATH) {

@@ -457,3 +452,3 @@ return process.env.WEBPACK_BUILD_OUTPUT_PATH;

const expo = config.expo || config || {};
return (expo === null || expo === void 0 ? void 0 : (_expo$web = expo.web) === null || _expo$web === void 0 ? void 0 : (_expo$web$build = _expo$web.build) === null || _expo$web$build === void 0 ? void 0 : _expo$web$build.output) || DEFAULT_BUILD_PATH;
return expo?.web?.build?.output || DEFAULT_BUILD_PATH;
}

@@ -476,4 +471,3 @@ function getNameFromConfig(exp = {}) {

function getDefaultTarget(projectRoot, exp) {
var _exp;
(_exp = exp) !== null && _exp !== void 0 ? _exp : exp = getConfig(projectRoot, {
exp ??= getConfig(projectRoot, {
skipSDKVersionRequirement: true

@@ -480,0 +474,0 @@ }).exp;

7

build/Config.types.js

@@ -20,8 +20,7 @@ "use strict";

}
let ProjectPrivacy;
exports.ProjectPrivacy = ProjectPrivacy;
(function (ProjectPrivacy) {
let ProjectPrivacy = exports.ProjectPrivacy = /*#__PURE__*/function (ProjectPrivacy) {
ProjectPrivacy["PUBLIC"] = "public";
ProjectPrivacy["UNLISTED"] = "unlisted";
})(ProjectPrivacy || (exports.ProjectPrivacy = ProjectPrivacy = {}));
return ProjectPrivacy;
}({});
//# sourceMappingURL=Config.types.js.map

@@ -7,4 +7,3 @@ "use strict";

exports.NON_STANDARD_SYMBOL = void 0;
const NON_STANDARD_SYMBOL = Symbol('non-standard');
exports.NON_STANDARD_SYMBOL = NON_STANDARD_SYMBOL;
const NON_STANDARD_SYMBOL = exports.NON_STANDARD_SYMBOL = Symbol('non-standard');
//# sourceMappingURL=environment.js.map

@@ -114,4 +114,3 @@ "use strict";

if (isSyntaxError(error)) {
var _error$stack;
const traces = (_error$stack = error.stack) === null || _error$stack === void 0 ? void 0 : _error$stack.split('\n').filter(line => !line.startsWith(' at '));
const traces = error.stack?.split('\n').filter(line => !line.startsWith(' at '));
if (!traces) return null;

@@ -142,7 +141,6 @@

function resolveConfigExport(result, configFile, request) {
var _request$config, _result, _result2;
// add key to static config that we'll check for after the dynamic is evaluated
// to see if the static config was used in determining the dynamic
const hasBaseStaticConfig = _environment().NON_STANDARD_SYMBOL;
if (request !== null && request !== void 0 && request.config) {
if (request?.config) {
// @ts-ignore

@@ -168,3 +166,3 @@ request.config[hasBaseStaticConfig] = true;

// @ts-ignore
(request === null || request === void 0 ? void 0 : (_request$config = request.config) === null || _request$config === void 0 ? void 0 : _request$config[hasBaseStaticConfig]) && !((_result = result) !== null && _result !== void 0 && _result[hasBaseStaticConfig]);
request?.config?.[hasBaseStaticConfig] && !result?.[hasBaseStaticConfig];
if (result) {

@@ -175,3 +173,3 @@ delete result._hasBaseStaticConfig;

// If the expo object exists, ignore all other values.
if ((_result2 = result) !== null && _result2 !== void 0 && _result2.expo) {
if (result?.expo) {
result = (0, _Serialize().serializeSkippingMods)(result.expo);

@@ -178,0 +176,0 @@ } else {

@@ -24,3 +24,2 @@ "use strict";

function getAccountUsername(manifest = {}) {
var _getUserState$read$au;
// TODO: Must match what's generated in Expo Go.

@@ -32,4 +31,4 @@ const username = manifest.owner || process.env.EXPO_CLI_USERNAME || process.env.EAS_BUILD_USERNAME;

// Statically get the username from the global user state.
return ((_getUserState$read$au = (0, _getUserState().getUserState)().read().auth) === null || _getUserState$read$au === void 0 ? void 0 : _getUserState$read$au.username) || ANONYMOUS_USERNAME;
return (0, _getUserState().getUserState)().read().auth?.username || ANONYMOUS_USERNAME;
}
//# sourceMappingURL=getAccountUsername.js.map

@@ -34,4 +34,3 @@ "use strict";

function getExpoSDKVersion(projectRoot, exp = {}) {
var _exp$sdkVersion;
return (_exp$sdkVersion = exp === null || exp === void 0 ? void 0 : exp.sdkVersion) !== null && _exp$sdkVersion !== void 0 ? _exp$sdkVersion : getExpoSDKVersionFromPackage(projectRoot);
return exp?.sdkVersion ?? getExpoSDKVersionFromPackage(projectRoot);
}

@@ -38,0 +37,0 @@

@@ -37,4 +37,4 @@ "use strict";

}
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -41,0 +41,0 @@ // The ~/.expo directory is used to store authentication sessions,

@@ -113,3 +113,3 @@ "use strict";

const modulePath = _resolveFrom().default.silent(fromDirectory, `${moduleId}.${extension}`);
if (modulePath !== null && modulePath !== void 0 && modulePath.endsWith(extension)) {
if (modulePath?.endsWith(extension)) {
return modulePath;

@@ -116,0 +116,0 @@ }

@@ -28,5 +28,4 @@ "use strict";

const withConfigPlugins = (config, skipPlugins) => {
var _config$plugins;
// @ts-ignore: plugins not on config type yet -- TODO
if (!Array.isArray(config.plugins) || !((_config$plugins = config.plugins) !== null && _config$plugins !== void 0 && _config$plugins.length)) {
if (!Array.isArray(config.plugins) || !config.plugins?.length) {
return config;

@@ -33,0 +32,0 @@ }

@@ -14,3 +14,3 @@ "use strict";

}
const EXPO_DEBUG = (0, _getenv().boolish)('EXPO_DEBUG', false);
const EXPO_DEBUG = exports.EXPO_DEBUG = (0, _getenv().boolish)('EXPO_DEBUG', false);

@@ -23,3 +23,2 @@ /**

*/
exports.EXPO_DEBUG = EXPO_DEBUG;
const withInternal = (config, internals) => {

@@ -26,0 +25,0 @@ if (!config._internal) {

{
"name": "@expo/config",
"version": "8.5.6",
"version": "9.0.0-beta.0",
"description": "A library for interacting with the app.json",

@@ -37,5 +37,5 @@ "main": "build/index.js",

"@babel/code-frame": "~7.10.4",
"@expo/config-plugins": "~7.9.0",
"@expo/config-types": "^50.0.0",
"@expo/json-file": "^8.2.37",
"@expo/config-plugins": "~8.0.0-beta.0",
"@expo/config-types": "^51.0.0-unreleased",
"@expo/json-file": "^8.3.0",
"getenv": "^1.0.0",

@@ -45,3 +45,3 @@ "glob": "7.1.6",

"resolve-from": "^5.0.0",
"semver": "7.5.3",
"semver": "^7.6.0",
"slugify": "^1.3.4",

@@ -57,3 +57,3 @@ "sucrase": "3.34.0"

},
"gitHead": "8be4417d2f8566f65b85bc135e145b0234b6a8aa"
"gitHead": "0546595aefd73806a57a62e6075e2744c6d21cf2"
}

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc