|
|
@ -1,6 +1,25 @@ |
|
|
|
(function () { |
|
|
|
(function (exports) { |
|
|
|
'use strict'; |
|
|
|
|
|
|
|
var _index = require('./index.js'); |
|
|
|
|
|
|
|
var Unibabel = _interopRequireWildcard(_index).Unibabel; |
|
|
|
|
|
|
|
function _interopRequireWildcard(obj) { |
|
|
|
if (obj && obj.__esModule) { |
|
|
|
return obj; |
|
|
|
} else { |
|
|
|
var newObj = {}; |
|
|
|
if (obj != null) { |
|
|
|
for (var key in obj) { |
|
|
|
if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; |
|
|
|
} |
|
|
|
} |
|
|
|
newObj.default = obj; |
|
|
|
return newObj; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function bufferToHex(arr) { |
|
|
|
var i; |
|
|
|
var len; |
|
|
@ -40,7 +59,9 @@ function hexToBuffer(hex) { |
|
|
|
} |
|
|
|
|
|
|
|
// Hex Convenience Functions
|
|
|
|
window.Unibabel.hexToBuffer = hexToBuffer; |
|
|
|
window.Unibabel.bufferToHex = bufferToHex; |
|
|
|
Unibabel.hexToBuffer = hexToBuffer; |
|
|
|
Unibabel.bufferToHex = bufferToHex; |
|
|
|
|
|
|
|
exports.Unibabel = Unibabel; |
|
|
|
|
|
|
|
}()); |
|
|
|
}('undefined' !== typeof exports && exports || 'undefined' !== typeof window && window || global)); |
|
|
|