cordova-plugin-googleplus
Advanced tools
Comparing version 8.5.0 to 8.5.1
@@ -14,2 +14,10 @@ #!/usr/bin/env node | ||
}; | ||
var getPreferenceValueFromPackageJson = function (config, name) { | ||
var value = config.match(new RegExp('"' + name + '":\\s"(.*?)"', "i")); | ||
if (value && value[1]) { | ||
return value[1] | ||
} else { | ||
return null | ||
} | ||
}; | ||
@@ -23,2 +31,6 @@ var WEB_APPLICATION_CLIENT_ID = ''; | ||
WEB_APPLICATION_CLIENT_ID = getPreferenceValue(config, "WEB_APPLICATION_CLIENT_ID"); | ||
if (!WEB_APPLICATION_CLIENT_ID) { | ||
var packageJson = fs.readFileSync("package.json").toString(); | ||
WEB_APPLICATION_CLIENT_ID = getPreferenceValueFromPackageJson(packageJson, "WEB_APPLICATION_CLIENT_ID"); | ||
} | ||
} | ||
@@ -25,0 +37,0 @@ |
{ | ||
"version": "8.5.0", | ||
"version": "8.5.1", | ||
"name": "cordova-plugin-googleplus", | ||
@@ -7,4 +7,10 @@ "cordova_name": "Google SignIn", | ||
"license": "MIT", | ||
"repo": "https://github.com/EddyVerbruggen/cordova-plugin-googleplus.git", | ||
"issue": "https://github.com/EddyVerbruggen/cordova-plugin-googleplus/issues", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/EddyVerbruggen/cordova-plugin-googleplus.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/EddyVerbruggen/cordova-plugin-googleplus/issues" | ||
}, | ||
"homepage": "https://github.com/EddyVerbruggen/cordova-plugin-googleplus#readme", | ||
"keywords": [ | ||
@@ -11,0 +17,0 @@ "Google", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
72095
378
1
0
1