Converted all modules from CommonJS to ES6

This commit is contained in:
n1474335 2017-03-23 17:52:20 +00:00
parent 0f2a5014be
commit 131b3a83c1
75 changed files with 395 additions and 282 deletions

View file

@ -10,7 +10,7 @@
* @constant
* @namespace
*/
var CanvasComponents = module.exports = {
const CanvasComponents = {
drawLine: function(ctx, startX, startY, endX, endY) {
ctx.beginPath();
@ -182,3 +182,5 @@ var CanvasComponents = module.exports = {
},
};
export default CanvasComponents;

View file

@ -24,11 +24,10 @@
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
"use strict";
var Utils = require("../Utils.js");
import Utils from "../Utils.js";
var UAS_parser = {
const UAS_parser = {
parse: function (userAgent) {
var result = {
@ -135,7 +134,7 @@ var UAS_parser = {
}
};
var UAS_cache = {
const UAS_cache = {
version: '20131025-01',
robots: {
'3': {
@ -25816,4 +25815,7 @@ var UAS_cache = {
'35'
]
}
};
};
export {UAS_parser, UAS_cache};
export default UAS_parser;