Socket
Socket
Sign inDemoInstall

@expo/config-plugins

Package Overview
Dependencies
Maintainers
25
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expo/config-plugins - npm Package Compare versions

Comparing version 8.0.8 to 8.0.9-canary-20240719-83ee47b

build/utils/glob.d.ts

8

build/android/Package.js

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

function getCurrentPackageForProjectFile(projectRoot, packageRoot, fileName, type) {
const filePath = (0, _glob().sync)(_path().default.join(projectRoot, `android/app/src/${type}/java/**/${fileName}.@(java|kt)`))[0];
const filePath = (0, _glob().globSync)(_path().default.join(projectRoot, `android/app/src/${type}/java/**/${fileName}.@(java|kt)`))[0];
if (!filePath) {

@@ -162,3 +162,3 @@ return null;

const jniRoot = _path().default.join(projectRoot, 'android', 'app', 'src', type, 'jni');
const filesToUpdate = [...(0, _glob().sync)('**/*', {
const filesToUpdate = [...(0, _glob().globSync)('**/*', {
cwd: jniRoot,

@@ -209,3 +209,3 @@ absolute: true

// Move everything from the old directory over
(0, _glob().sync)('**/*', {
(0, _glob().globSync)('**/*', {
cwd: currentPackagePath

@@ -237,3 +237,3 @@ }).forEach(relativePath => {

}
const filesToUpdate = [...(0, _glob().sync)('**/*', {
const filesToUpdate = [...(0, _glob().globSync)('**/*', {
cwd: newPackagePath,

@@ -240,0 +240,0 @@ absolute: true

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

function getProjectFilePath(projectRoot, name) {
const filePath = (0, _glob().sync)(path().join(projectRoot, `android/app/src/main/java/**/${name}.@(java|kt)`))[0];
const filePath = (0, _glob().globSync)(path().join(projectRoot, `android/app/src/main/java/**/${name}.@(java|kt)`))[0];
(0, _assert().default)(filePath, `Project file "${name}" does not exist in android project for root "${projectRoot}"`);

@@ -70,0 +70,0 @@ return filePath;

@@ -60,2 +60,9 @@ "use strict";

}
function _glob2() {
const data = require("../utils/glob");
_glob2 = function () {
return data;
};
return data;
}
function _warnings() {

@@ -72,7 +79,7 @@ const data = require("../utils/warnings");

function getAppDelegateHeaderFilePath(projectRoot) {
const [using, ...extra] = (0, _glob().sync)('ios/*/AppDelegate.h', {
const [using, ...extra] = (0, _glob2().withSortedGlobResult)((0, _glob().globSync)('ios/*/AppDelegate.h', {
absolute: true,
cwd: projectRoot,
ignore: ignoredPaths
});
}));
if (!using) {

@@ -93,7 +100,7 @@ throw new (_errors().UnexpectedError)(`Could not locate a valid AppDelegate header at root: "${projectRoot}"`);

function getAppDelegateFilePath(projectRoot) {
const [using, ...extra] = (0, _glob().sync)('ios/*/AppDelegate.@(m|mm|swift)', {
const [using, ...extra] = (0, _glob2().withSortedGlobResult)((0, _glob().globSync)('ios/*/AppDelegate.@(m|mm|swift)', {
absolute: true,
cwd: projectRoot,
ignore: ignoredPaths
});
}));
if (!using) {

@@ -114,7 +121,7 @@ throw new (_errors().UnexpectedError)(`Could not locate a valid AppDelegate at root: "${projectRoot}"`);

function getAppDelegateObjcHeaderFilePath(projectRoot) {
const [using, ...extra] = (0, _glob().sync)('ios/*/AppDelegate.h', {
const [using, ...extra] = (0, _glob2().withSortedGlobResult)((0, _glob().globSync)('ios/*/AppDelegate.h', {
absolute: true,
cwd: projectRoot,
ignore: ignoredPaths
});
}));
if (!using) {

@@ -135,7 +142,7 @@ throw new (_errors().UnexpectedError)(`Could not locate a valid AppDelegate.h at root: "${projectRoot}"`);

function getPodfilePath(projectRoot) {
const [using, ...extra] = (0, _glob().sync)('ios/Podfile', {
const [using, ...extra] = (0, _glob2().withSortedGlobResult)((0, _glob().globSync)('ios/Podfile', {
absolute: true,
cwd: projectRoot,
ignore: ignoredPaths
});
}));
if (!using) {

@@ -188,7 +195,7 @@ throw new (_errors().UnexpectedError)(`Could not locate a valid Podfile at root: "${projectRoot}"`);

function findSchemePaths(projectRoot) {
return (0, _glob().sync)('ios/*.xcodeproj/xcshareddata/xcschemes/*.xcscheme', {
return (0, _glob2().withSortedGlobResult)((0, _glob().globSync)('ios/*.xcodeproj/xcshareddata/xcschemes/*.xcscheme', {
absolute: true,
cwd: projectRoot,
ignore: ignoredPaths
});
}));
}

@@ -201,8 +208,8 @@ function findSchemeNames(projectRoot) {

const iosFolder = 'ios';
const pbxprojPaths = (0, _glob().sync)('ios/**/*.xcodeproj', {
const pbxprojPaths = (0, _glob2().withSortedGlobResult)((0, _glob().globSync)('ios/**/*.xcodeproj', {
cwd: projectRoot,
ignore: ignoredPaths
}).filter(project => !/test|example|sample/i.test(project) || path().dirname(project) === iosFolder)
// sort alphabetically to ensure this works the same across different devices (Fail in CI (linux) without this)
.sort().sort((a, b) => {
})
// Drop leading `/` from glob results to mimick glob@<9 behavior
.map(filePath => filePath.replace(/^\//, '')).filter(project => !/test|example|sample/i.test(project) || path().dirname(project) === iosFolder)).sort((a, b) => {
const isAInIos = path().dirname(a) === iosFolder;

@@ -260,7 +267,7 @@ const isBInIos = path().dirname(b) === iosFolder;

function getAllInfoPlistPaths(projectRoot) {
const paths = (0, _glob().sync)('ios/*/Info.plist', {
const paths = (0, _glob2().withSortedGlobResult)((0, _glob().globSync)('ios/*/Info.plist', {
absolute: true,
cwd: projectRoot,
ignore: ignoredPaths
}).sort(
})).sort(
// longer name means more suffixes, we want the shortest possible one to be first.

@@ -287,3 +294,3 @@ (a, b) => a.length - b.length);

function getAllEntitlementsPaths(projectRoot) {
const paths = (0, _glob().sync)('ios/*/*.entitlements', {
const paths = (0, _glob().globSync)('ios/*/*.entitlements', {
absolute: true,

@@ -290,0 +297,0 @@ cwd: projectRoot,

{
"name": "@expo/config-plugins",
"version": "8.0.8",
"version": "8.0.9-canary-20240719-83ee47b",
"description": "A library for Expo config plugins",

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

"dependencies": {
"@expo/config-types": "^51.0.0-unreleased",
"@expo/json-file": "~8.3.0",
"@expo/plist": "^0.1.0",
"@expo/config-types": "52.0.0-canary-20240719-83ee47b",
"@expo/json-file": "8.3.4-canary-20240719-83ee47b",
"@expo/plist": "0.1.4-canary-20240719-83ee47b",
"@expo/sdk-runtime-versions": "^1.0.0",

@@ -45,3 +45,3 @@ "chalk": "^4.1.2",

"getenv": "^1.0.0",
"glob": "7.1.6",
"glob": "^10.4.2",
"resolve-from": "^5.0.0",

@@ -58,3 +58,3 @@ "semver": "^7.5.4",

"@types/xml2js": "~0.4.11",
"expo-module-scripts": "^3.3.0"
"expo-module-scripts": "3.6.0-canary-20240719-83ee47b"
},

@@ -64,3 +64,3 @@ "publishConfig": {

},
"gitHead": "48f1ec9d91c5c38c7684cb98a314e443cbeb2185"
"gitHead": "83ee47b5c89c7f1b1a5101189580eaf3555f5962"
}

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