cordova-plugin-localization-strings
Advanced tools
Comparing version 5.0.4 to 5.0.5
{ | ||
"name": "cordova-plugin-localization-strings", | ||
"version": "5.0.4", | ||
"version": "5.0.5", | ||
"description": "Cordova Plugin for handling localization strings on InfoPlist.strings and Localizable.strings on iOS, strings.xml on Android", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -225,6 +225,10 @@ var fs = require("fs"); | ||
); | ||
var projectFileApi = require(path.join( | ||
var projectFilePath = path.join( | ||
platformPath, | ||
"/cordova/lib/projectFile.js" | ||
)); | ||
); | ||
var projectFileExists = fs.existsSync(projectFilePath); | ||
// Starting cordova-ios@7.0.0, projectFile.js is not part of the platform folder anymore and has to be grabbed from node_modules | ||
var projectFileApi = projectFileExists ? require(projectFilePath) : require("cordova-ios/lib/projectFile"); | ||
projectFileApi.purgeProjectFileCache(platformPath); | ||
@@ -231,0 +235,0 @@ |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
24310
430