Socket
Socket
Sign inDemoInstall

appcenter-link-scripts

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appcenter-link-scripts - npm Package Compare versions

Comparing version 1.12.2 to 1.13.0

4

package.json
{
"name": "appcenter-link-scripts",
"version": "1.12.2",
"version": "1.13.0",
"description": "Node module that contains common functionality needed to link appcenter-* modules",

@@ -27,3 +27,3 @@ "main": "src/index.js",

"which": "^1.2.11",
"xcode": "^1.0.0"
"xcode": "^2.0.0"
},

@@ -30,0 +30,0 @@ "devDependencies": {

@@ -39,15 +39,13 @@ const fs = require('fs');

if (oldCodeMatches) {
this.appDelegateContents = this.appDelegateContents.replace(oldCodeMatches[0], code);
this.appDelegateContents = this.appDelegateContents.replace(oldCodeMatches[0], ` ${code}`);
debug('Replaced code', code, 'to file', this.appDelegatePath);
} else {
const match = this.appDelegateContents.match(/NSURL \*jsCodeLocation;[ \t]*\r*\n/);
/* Find the beginning of the didFinishLaunchingWithOptions method. */
const match = this.appDelegateContents.match(/[^\n]*didFinishLaunchingWithOptions[^{]*{[\s]*/);
if (match === null) {
throw Error(`
Could not find line "NSURL \*jsCodeLocation;" in file AppDelegate.m.
Update AppDelegate.m so that text is present, as we match on it and insert '${code}' after for AppCenter SDK integration.
`);
throw Error('Could not find the start of the didFinishLaunchingWithOptions method in the AppDelegate.m file.');
}
const existingLine = match[0];
this.appDelegateContents = this.appDelegateContents.replace(existingLine, `${existingLine}\n${code}\n`);
this.appDelegateContents = this.appDelegateContents.replace(existingLine, `${existingLine}${code}\n `);
debug('Added code', code, 'to file', this.appDelegatePath);

@@ -54,0 +52,0 @@ }

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