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

@ -1,6 +1,6 @@
var Utils = require("../Utils.js"),
Checksum = require("./Checksum.js"),
BigInteger = require("jsbn").BigInteger;
import Utils from "../Utils.js";
import Checksum from "./Checksum.js";
import {BigInteger} from "jsbn";
/**
@ -12,7 +12,7 @@ var Utils = require("../Utils.js"),
*
* @namespace
*/
var IP = module.exports = {
const IP = {
/**
* @constant
@ -1060,5 +1060,6 @@ var IP = module.exports = {
255: {keyword: "Reserved", protocol: ""}
},
};
export default IP;