Skip to content

Commit

Permalink
v1.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioricali committed Aug 28, 2017
1 parent 86c51ae commit de589e0
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 84 deletions.
2 changes: 1 addition & 1 deletion .jsdoc.json
Expand Up @@ -4,7 +4,7 @@
"dictionaries": ["jsdoc"]
},
"source": {
"include": ["./src/asserts", "./src/be.js", "./src/interface.js", "package.json", "doc-home.md"],
"include": ["./src/assertions", "./src/be.js", "./src/interface.js", "package.json", "doc-home.md"],
"includePattern": ".js$",
"excludePattern": "(node_modules/|docs)"
},
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.12.0] - 2017-08-28
## [1.12.1] - 2017-08-28
### Added
- `be.nil`, checks if value is null or undefined

Expand Down
106 changes: 28 additions & 78 deletions dist/be.js
@@ -1,4 +1,4 @@
// [AIV] beJS Build version: 1.11.0
// [AIV] beJS Build version: 1.12.1
var be =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
Expand Down Expand Up @@ -473,6 +473,24 @@ Types['null'] = function (value) {
return Types.classOf(value, 'null');
};

/**
* Check if is null or undefined
*
* **Interfaces**: `all`, `any`, `not`, `err`
*
* @function
* @name nil
* @alias nil
* @param value {Mixed} value
* @returns {boolean}
* @example
* be.nil(null) // true
* be.nil(undefined) // true
*/
Types.nil = function (value) {
return Types.null(value) || Types.undefined(value);
};

/**
* Check if is a object
*
Expand Down Expand Up @@ -1906,7 +1924,7 @@ module.exports = __webpack_require__(6);

var Helpers = __webpack_require__(2);
var Interface = __webpack_require__(0);
var version = '1.11.0';
var version = '1.12.1';

/**
* be class
Expand Down Expand Up @@ -2509,12 +2527,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 @@ -3448,8 +3466,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 @@ -4077,9 +4094,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 @@ -4105,10 +4122,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 @@ -6268,74 +6285,7 @@ module.exports = DOM;
/* 25 */
/***/ (function(module, exports) {

module.exports = {
"name": "bejs",
"version": "1.11.0",
"description": "Simple, light-weight assertions framework for javascript",
"homepage": "https://be.js.org",
"main": "index.js",
"scripts": {
"version:major": "webpack --env.major && npm run-script doc && version-to-tag.sh && npm publish",
"version:minor": "webpack --env.minor && npm run-script doc && version-to-tag.sh && npm publish",
"version:patch": "webpack --env.patch && npm run-script doc && version-to-tag.sh && npm publish",
"build": "webpack --progress",
"doc": "./node_modules/.bin/jsdoc --configure .jsdoc.json --verbose",
"test": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
},
"keywords": [
"asserts",
"test",
"is",
"boolean",
"url",
"number",
"string",
"email",
"object",
"check",
"float",
"alphanumeric",
"mocha",
"testing",
"validation",
"test unit",
"valid",
"type"
],
"author": {
"name": "Fabio Ricali",
"email": "fabio@rica.li"
},
"contributors": [
{
"name": "Davide Polano",
"email": "info@mdslab.org"
}
],
"license": "MIT",
"devDependencies": {
"babel-core": "^6.25.0",
"babel-loader": "^7.1.0",
"babel-preset-es2015": "^6.24.1",
"coveralls": "^2.13.1",
"docdash": "^0.4.0",
"istanbul": "^0.4.5",
"jsdoc": "^3.4.3",
"jsdom": "^11.0.0",
"koa": "^2.3.0",
"minami": "^1.2.3",
"mocha": "^3.4.2",
"mocha-lcov-reporter": "^1.3.0",
"request": "^2.81.0",
"unminified-webpack-plugin": "^1.2.0",
"webpack": "^3.0.0",
"webpack-auto-inject-version": "^0.5.14"
},
"repository": {
"type": "git",
"url": "https://github.com/fabioricali/beJS"
}
};
module.exports = {"name":"bejs","version":"1.12.1","description":"Simple, light-weight assertions framework for javascript","homepage":"https://be.js.org","main":"index.js","scripts":{"version:major":"webpack --env.major && npm run-script doc && version-to-tag.sh && npm publish","version:minor":"webpack --env.minor && npm run-script doc && version-to-tag.sh && npm publish","version:patch":"webpack --env.patch && npm run-script doc && version-to-tag.sh && npm publish","build":"webpack --progress","doc":"./node_modules/.bin/jsdoc --configure .jsdoc.json --verbose","test":"istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"},"keywords":["asserts","assertions","test","is","boolean","url","number","string","email","object","check","float","alphanumeric","mocha","testing","validation","test unit","valid","type"],"author":{"name":"Fabio Ricali","email":"fabio@rica.li"},"contributors":[{"name":"Davide Polano","email":"info@mdslab.org"}],"license":"MIT","devDependencies":{"babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-preset-es2015":"^6.24.1","coveralls":"^2.13.1","docdash":"^0.4.0","istanbul":"^0.4.5","jsdoc":"^3.5.4","jsdom":"^11.2.0","koa":"^2.3.0","minami":"^1.2.3","mocha":"^3.5.0","mocha-lcov-reporter":"^1.3.0","request":"^2.81.0","unminified-webpack-plugin":"^1.2.0","webpack":"^3.5.5","webpack-auto-inject-version":"^0.5.14"},"repository":{"type":"git","url":"https://github.com/fabioricali/beJS"}}

/***/ })
/******/ ]);
4 changes: 2 additions & 2 deletions dist/be.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "bejs",
"version": "1.11.0",
"version": "1.12.1",
"description": "Simple, light-weight assertions framework for javascript",
"homepage": "https://be.js.org",
"main": "index.js",
Expand Down Expand Up @@ -66,4 +66,4 @@
"type": "git",
"url": "https://github.com/fabioricali/beJS"
}
}
}

0 comments on commit de589e0

Please sign in to comment.