cordova-plugin-peer5
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "cordova-plugin-peer5", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "cordova": { |
var exec = require('cordova/exec'); | ||
exports.coolMethod = function (arg0, success, error) { | ||
exec(success, error, 'Peer5', 'coolMethod', [arg0]); | ||
exports.init = function (arg0, success, error) { | ||
if (typeof Promise !== 'undefined') { | ||
return new Promise(function (resolve, reject) { | ||
exec(success, error, 'Peer5', 'init', [arg0]); | ||
}); | ||
} else { | ||
exec(success, error, 'Peer5', 'init', [arg0]); | ||
} | ||
}; | ||
exports.getStreamUrl = function (arg0, success, error) { | ||
if (typeof Promise !== 'undefined') { | ||
return new Promise(function (resolve, reject) { | ||
exec(success, error, 'Peer5', 'getStreamUrl', [arg0]); | ||
}); | ||
} else { | ||
exec(success, error, 'Peer5', 'getStreamUrl', [arg0]); | ||
} | ||
}; |
Sorry, the diff of this file is not supported yet
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
3141
18
0