Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@expo/xcpretty

Package Overview
Dependencies
Maintainers
23
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@expo/xcpretty - npm Package Compare versions

Comparing version 4.1.1 to 4.1.2

15

build/Formatter.d.ts

@@ -79,2 +79,16 @@ import { Failure, Parser } from './Parser';

formatError(message: string): string;
/**
* In: `error: Provisioning profile "iOS Team Provisioning Profile: *" doesn't support the Push Notifications capability. (in target 'yolo90' from project 'yolo90')`
* Out: `❌ yolo90/yolo90: Provisioning Profile "iOS Team Provisioning Profile: *" does not support the Push Notifications capability.`
*
* In: `error: Provisioning profile "iOS Team Provisioning Profile: *" doesn't include the aps-environment entitlement. (in target 'yolo90' from project 'yolo90')`
* Out: `❌ yolo90/yolo90: Entitlements file defines the value "aps-environment" which is not registered for profile "iOS Team Provisioning Profile: *".`
*
* @param profileName `"iOS Team Provisioning Profile: *"`
* @param entitlementName `Push Notifications` | `aps-environment`
* @param entitlementType `capability` | `entitlement`
* @param target boost-for-react-native
* @param project Pods
*/
formatUnsupportedEntitlementError(profileName: string, entitlementName: string, entitlementType: 'capability' | 'entitlement', target?: string, project?: string): string;
formatFileMissingError(reason: string, filePath: string): string;

@@ -139,2 +153,3 @@ formatLdWarning(reason: string): string;

formatMissingFileCompilerWarning(filePath: string): string;
formatGenericError(message: string): string;
formatGenericWarning(message: string): string;

@@ -141,0 +156,0 @@ formatWarning(message: string): string;

34

build/Formatter.js

@@ -279,6 +279,35 @@ "use strict";

formatError(message) {
const results = `\n${chalk_1.default.red(symbols_1.ERROR + ' ' + message)}\n\n`;
const results = switchRegex_1.switchRegex(message, [
[
Matchers_1.Matchers.Errors.UNSUPPORTED_ENTITLEMENT_MATCHER,
([, $1, $2, $3, $4, $5]) => {
return this.formatUnsupportedEntitlementError($1, $2, $3, $4, $5);
},
],
[null, () => this.formatGenericError(message)],
]);
this.errors.push(results);
return results;
}
/**
* In: `error: Provisioning profile "iOS Team Provisioning Profile: *" doesn't support the Push Notifications capability. (in target 'yolo90' from project 'yolo90')`
* Out: `❌ yolo90/yolo90: Provisioning Profile "iOS Team Provisioning Profile: *" does not support the Push Notifications capability.`
*
* In: `error: Provisioning profile "iOS Team Provisioning Profile: *" doesn't include the aps-environment entitlement. (in target 'yolo90' from project 'yolo90')`
* Out: `❌ yolo90/yolo90: Entitlements file defines the value "aps-environment" which is not registered for profile "iOS Team Provisioning Profile: *".`
*
* @param profileName `"iOS Team Provisioning Profile: *"`
* @param entitlementName `Push Notifications` | `aps-environment`
* @param entitlementType `capability` | `entitlement`
* @param target boost-for-react-native
* @param project Pods
*/
formatUnsupportedEntitlementError(profileName, entitlementName, entitlementType, target, project) {
const packageName = [project, target].join('/');
const platform = chalk_1.default.red.bold(`${packageName}:`);
if (entitlementType === 'capability') {
return chalk_1.default `${symbols_1.ERROR} ${platform} Provisioning Profile ${profileName} does not support the {red ${entitlementName}} capability.`;
}
return chalk_1.default `${symbols_1.ERROR} ${platform} Entitlements file defines the value {red "${entitlementName}"} which is not registered for profile ${profileName}.`;
}
formatFileMissingError(reason, filePath) {

@@ -422,2 +451,5 @@ const results = `\n${chalk_1.default.red(symbols_1.ERROR + ' ' + reason)} ${filePath}\n\n`;

}
formatGenericError(message) {
return `\n${chalk_1.default.red(symbols_1.ERROR + ' ' + message)}\n\n`;
}
formatGenericWarning(message) {

@@ -424,0 +456,0 @@ return symbols_1.INDENT + chalk_1.default.yellow(message);

@@ -300,2 +300,12 @@ export declare const Matchers: {

* @regex Captured groups
* `$0` = whole error
* `$1` = profile name
* `$2` = entitlement name
* `$3` = entitlement type <capability|entitlement>
* `$4` = native target
* `$5` = native project
*/
UNSUPPORTED_ENTITLEMENT_MATCHER: RegExp;
/**
* @regex Captured groups
* `$1` = whole error

@@ -302,0 +312,0 @@ */

@@ -303,2 +303,12 @@ "use strict";

* @regex Captured groups
* `$0` = whole error
* `$1` = profile name
* `$2` = entitlement name
* `$3` = entitlement type <capability|entitlement>
* `$4` = native target
* `$5` = native project
*/
UNSUPPORTED_ENTITLEMENT_MATCHER: /^error: Provisioning profile (.*) doesn't (?:support|include) the (.*) (capability|entitlement)\.(?:\s\(in\s.*target '([^']*)'.*project '([^']*)'\)$)?/m,
/**
* @regex Captured groups
* `$1` = whole error

@@ -305,0 +315,0 @@ */

2

package.json
{
"name": "@expo/xcpretty",
"description": "Parse and format xcodebuild logs",
"version": "4.1.1",
"version": "4.1.2",
"main": "build/index.js",

@@ -6,0 +6,0 @@ "types": "build/index.d.ts",

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