Skip to content

Commit

Permalink
v1.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioricali committed Jul 25, 2017
1 parent e68a397 commit dea8b13
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 52 deletions.
93 changes: 44 additions & 49 deletions dist/be.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// [AIV] beJS Build version: 1.7.1
// [AIV] beJS Build version: 1.7.2
var be =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
Expand Down Expand Up @@ -1787,7 +1787,7 @@ module.exports = __webpack_require__(6);

var Helpers = __webpack_require__(2);
var Interface = __webpack_require__(0);
var version = '1.7.1';
var version = '1.7.2';

/**
* be class
Expand Down Expand Up @@ -1856,53 +1856,49 @@ be.set = function (name, func) {
};

/**
* Create interfaces
* Add all methods to "be"
*/
(function () {
var _loop = function _loop(c) {
if (Checks.hasOwnProperty(c)) {
var _loop2 = function _loop2(f) {
if (Checks[c].hasOwnProperty(f) && Checks.Types.function(Checks[c][f])) {
be[f] = function () {
for (var _len = arguments.length, params = Array(_len), _key = 0; _key < _len; _key++) {
params[_key] = arguments[_key];
}

return Checks[c][f].apply(null, params);
};
}
};

for (var f in Checks[c]) {
_loop2(f);
var _loop = function _loop(c) {
if (Checks.hasOwnProperty(c)) {
var _loop2 = function _loop2(f) {
if (Checks[c].hasOwnProperty(f) && Checks.Types.function(Checks[c][f])) {
be[f] = function () {
for (var _len = arguments.length, params = Array(_len), _key = 0; _key < _len; _key++) {
params[_key] = arguments[_key];
}

return Checks[c][f].apply(null, params);
};
}
}
};
};

/**
* Add all methods to "be"
*/
for (var c in Checks) {
_loop(c);
for (var f in Checks[c]) {
_loop2(f);
}
}
};

/**
* @ignore
* @type {be}
*/
be = Interface.create(be);
for (var c in Checks) {
_loop(c);
}

/**
* After add checks class
*/
for (var m in Checks) {
if (Checks.hasOwnProperty(m)) {
be[m] = Checks[m];
}
/**
* @ignore
* @type {be}
*/
be = Interface.create(be);

/**
* After add checks class
*/
for (var m in Checks) {
if (Checks.hasOwnProperty(m)) {
be[m] = Checks[m];
}
}

module.exports = be;
})();
module.exports = be;

/***/ }),
/* 7 */
Expand Down Expand Up @@ -2319,12 +2315,12 @@ exports.INSPECT_MAX_BYTES = 50;
* We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
* get the Object implementation, which is slower but behaves correctly.
*/
Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined ? global.TYPED_ARRAY_SUPPORT : typedArraySupport
Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined ? global.TYPED_ARRAY_SUPPORT : typedArraySupport();

/*
* Export kMaxLength after typed array support is determined.
*/
();exports.kMaxLength = kMaxLength();
exports.kMaxLength = kMaxLength();

function typedArraySupport() {
try {
Expand Down Expand Up @@ -3258,8 +3254,7 @@ var MAX_ARGUMENTS_LENGTH = 0x1000;
function decodeCodePointsArray(codePoints) {
var len = codePoints.length;
if (len <= MAX_ARGUMENTS_LENGTH) {
return String.fromCharCode.apply(String, codePoints // avoid extra slice()
);
return String.fromCharCode.apply(String, codePoints); // avoid extra slice()
}

// Decode in chunks to avoid "call stack size exceeded".
Expand Down Expand Up @@ -3887,9 +3882,9 @@ var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g;

function base64clean(str) {
// Node strips out invalid characters like \n and \t from the string, base64-js does not
str = stringtrim(str).replace(INVALID_BASE64_RE, ''
str = stringtrim(str).replace(INVALID_BASE64_RE, '');
// Node converts strings with length < 2 to ''
);if (str.length < 2) return '';
if (str.length < 2) return '';
// Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
while (str.length % 4 !== 0) {
str = str + '=';
Expand All @@ -3915,10 +3910,10 @@ function utf8ToBytes(string, units) {
var bytes = [];

for (var i = 0; i < length; ++i) {
codePoint = string.charCodeAt(i
codePoint = string.charCodeAt(i);

// is surrogate component
);if (codePoint > 0xD7FF && codePoint < 0xE000) {
if (codePoint > 0xD7FF && codePoint < 0xE000) {
// last char was a lead
if (!leadSurrogate) {
// no lead yet
Expand Down Expand Up @@ -6018,7 +6013,7 @@ module.exports = DOM;

module.exports = {
"name": "bejs",
"version": "1.7.1",
"version": "1.7.2",
"description": "Simple, light-weight assertions framework for javascript",
"homepage": "https://be.js.org",
"main": "index.js",
Expand Down
4 changes: 2 additions & 2 deletions dist/be.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bejs",
"version": "1.7.1",
"version": "1.7.2",
"description": "Simple, light-weight assertions framework for javascript",
"homepage": "https://be.js.org",
"main": "index.js",
Expand Down

0 comments on commit dea8b13

Please sign in to comment.