fjl-error-throwing
Advanced tools
Comparing version 0.7.5 to 0.7.6
@@ -11,8 +11,8 @@ define(['exports'], function (exports) { | ||
* @note Content generated by '{project-root}/node-scripts/VersionNumberReadStream.js'. | ||
* @generated Tue Nov 21 2017 11:56:13 GMT-0500 (Eastern Standard Time) | ||
* @generated Tue Jan 02 2018 18:20:18 GMT-0500 (Eastern Standard Time) | ||
*/ | ||
let version = exports.version = '0.7.5'; | ||
let version = exports.version = '0.7.6'; | ||
exports.default = version; | ||
}); |
@@ -10,7 +10,7 @@ 'use strict'; | ||
* @note Content generated by '{project-root}/node-scripts/VersionNumberReadStream.js'. | ||
* @generated Tue Nov 21 2017 11:56:13 GMT-0500 (Eastern Standard Time) | ||
* @generated Tue Jan 02 2018 18:20:18 GMT-0500 (Eastern Standard Time) | ||
*/ | ||
var version = exports.version = '0.7.5'; | ||
var version = exports.version = '0.7.6'; | ||
exports.default = version; |
@@ -7,6 +7,6 @@ import { _isType, curry, curry4, intercalate, isArray, isFunction, isString, isset, length, map, typeOf } from 'fjl'; | ||
* @note Content generated by '{project-root}/node-scripts/VersionNumberReadStream.js'. | ||
* @generated Tue Nov 21 2017 11:56:13 GMT-0500 (Eastern Standard Time) | ||
* @generated Tue Jan 02 2018 18:20:18 GMT-0500 (Eastern Standard Time) | ||
*/ | ||
let version = '0.7.5'; | ||
let version = '0.7.6'; | ||
@@ -13,0 +13,0 @@ /** |
@@ -9,6 +9,6 @@ this.fjl = this.fjl || {}; | ||
* @note Content generated by '{project-root}/node-scripts/VersionNumberReadStream.js'. | ||
* @generated Tue Nov 21 2017 11:56:13 GMT-0500 (Eastern Standard Time) | ||
* @generated Tue Jan 02 2018 18:20:18 GMT-0500 (Eastern Standard Time) | ||
*/ | ||
var version = '0.7.5'; | ||
var version = '0.7.6'; | ||
@@ -15,0 +15,0 @@ /** |
@@ -1,1 +0,1 @@ | ||
/**! fjl.errorThrowing.js 0.7.5 | License: ISC | md5checksum: cb119c2167de6a4b3ac1c258577a9cbd | Built-on: Tue Nov 21 2017 11:56:14 GMT-0500 (Eastern Standard Time) **/this.fjl=this.fjl||{},this.fjl.errorThrowing=function(e,r){"use strict";var t=function(e){return r.isString(e)||r.isFunction(e)},o=function(e,o){if(!t(o))throw new Error(e+" expects Types to be checked against to be of type `String` or `Function`. Type received `"+r.typeOf(o)+"`. Value `"+o+"`.");return o},n=function(e){return o("getTypeName",e)&&r.isString(e)?e:e.name},f=function(e,t){return r._isType(n(e),t)||r.isFunction(e)&&r.isset(t)&&t instanceof e},u=function(e){return r.length(e)?r.intercalate(", ",r.map(function(e){return"`"+n(e)+"`"},e)):""},a=function(e){var t=e.contextName,o=e.valueName,n=e.value,f=e.expectedTypeName,a=e.foundTypeName,i=e.messageSuffix,p=r.isArray(f),y=p?"of type":"of one of the types",T=p?u(f):f;return(t?"`"+t+".":"`")+o+"` is not "+y+": "+T+". Type received: "+a+". Value: "+n+";"+(i?" "+i+";":"")},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;return function(o,f,u,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,p=n(o),y=r.typeOf(a);if(!t(o,a))throw new Error(e({contextName:f,valueName:u,value:a,expectedTypeName:p,foundTypeName:y,messageSuffix:i}))}},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;return function(o,f,u,a){var i=o.map(n),p=o.some(function(e){return t(e,a)}),y=r.typeOf(a);if(!p)throw new Error(e({contextName:f,valueName:u,value:a,expectedTypeName:i,foundTypeName:y}))}},y=i(a),T=p(a),c=r.curry(f),s=r.curry(y),l=r.curry4(T),N=function(e){return r.curry(i(e))},h=function(e){return r.curry4(p(e))},g={defaultTypeChecker$:f,defaultTypeChecker:c,getTypeName:n,multiTypesToString:u,defaultErrorMessageCall:a,errorIfNotType$:y,errorIfNotType:s,errorIfNotTypes$:T,errorIfNotTypes:l,getErrorIfNotTypeThrower$:i,getErrorIfNotTypeThrower:N,getErrorIfNotTypesThrower$:p,getErrorIfNotTypesThrower:h};return e.isCheckableType=t,e.errorIfNotCheckableType=o,e.getTypeName=n,e.defaultTypeChecker$=f,e.multiTypesToString=u,e.defaultErrorMessageCall=a,e.getErrorIfNotTypeThrower$=i,e.getErrorIfNotTypesThrower$=p,e.errorIfNotType$=y,e.errorIfNotTypes$=T,e.defaultTypeChecker=c,e.errorIfNotType=s,e.errorIfNotTypes=l,e.getErrorIfNotTypeThrower=N,e.getErrorIfNotTypesThrower=h,e.default=g,e.version="0.7.5",e}({},fjl); | ||
/**! fjl.errorThrowing.js 0.7.6 | License: BSD | md5checksum: 65b464b4e53921cd3571a5c7f4448899 | Built-on: Tue Jan 02 2018 18:20:19 GMT-0500 (Eastern Standard Time) **/this.fjl=this.fjl||{},this.fjl.errorThrowing=function(e,r){"use strict";var t=function(e){return r.isString(e)||r.isFunction(e)},o=function(e,o){if(!t(o))throw new Error(e+" expects Types to be checked against to be of type `String` or `Function`. Type received `"+r.typeOf(o)+"`. Value `"+o+"`.");return o},n=function(e){return o("getTypeName",e)&&r.isString(e)?e:e.name},f=function(e,t){return r._isType(n(e),t)||r.isFunction(e)&&r.isset(t)&&t instanceof e},u=function(e){return r.length(e)?r.intercalate(", ",r.map(function(e){return"`"+n(e)+"`"},e)):""},a=function(e){var t=e.contextName,o=e.valueName,n=e.value,f=e.expectedTypeName,a=e.foundTypeName,i=e.messageSuffix,p=r.isArray(f),y=p?"of type":"of one of the types",T=p?u(f):f;return(t?"`"+t+".":"`")+o+"` is not "+y+": "+T+". Type received: "+a+". Value: "+n+";"+(i?" "+i+";":"")},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;return function(o,f,u,a){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,p=n(o),y=r.typeOf(a);if(!t(o,a))throw new Error(e({contextName:f,valueName:u,value:a,expectedTypeName:p,foundTypeName:y,messageSuffix:i}))}},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;return function(o,f,u,a){var i=o.map(n),p=o.some(function(e){return t(e,a)}),y=r.typeOf(a);if(!p)throw new Error(e({contextName:f,valueName:u,value:a,expectedTypeName:i,foundTypeName:y}))}},y=i(a),T=p(a),c=r.curry(f),s=r.curry(y),l=r.curry4(T),N=function(e){return r.curry(i(e))},h=function(e){return r.curry4(p(e))},g={defaultTypeChecker$:f,defaultTypeChecker:c,getTypeName:n,multiTypesToString:u,defaultErrorMessageCall:a,errorIfNotType$:y,errorIfNotType:s,errorIfNotTypes$:T,errorIfNotTypes:l,getErrorIfNotTypeThrower$:i,getErrorIfNotTypeThrower:N,getErrorIfNotTypesThrower$:p,getErrorIfNotTypesThrower:h};return e.isCheckableType=t,e.errorIfNotCheckableType=o,e.getTypeName=n,e.defaultTypeChecker$=f,e.multiTypesToString=u,e.defaultErrorMessageCall=a,e.getErrorIfNotTypeThrower$=i,e.getErrorIfNotTypesThrower$=p,e.errorIfNotType$=y,e.errorIfNotTypes$=T,e.defaultTypeChecker=c,e.errorIfNotType=s,e.errorIfNotTypes=l,e.getErrorIfNotTypeThrower=N,e.getErrorIfNotTypesThrower=h,e.default=g,e.version="0.7.6",e}({},fjl); |
@@ -23,8 +23,8 @@ (function (global, factory) { | ||
* @note Content generated by '{project-root}/node-scripts/VersionNumberReadStream.js'. | ||
* @generated Tue Nov 21 2017 11:56:13 GMT-0500 (Eastern Standard Time) | ||
* @generated Tue Jan 02 2018 18:20:18 GMT-0500 (Eastern Standard Time) | ||
*/ | ||
var version = exports.version = '0.7.5'; | ||
var version = exports.version = '0.7.6'; | ||
exports.default = version; | ||
}); |
{ | ||
"name": "fjl-error-throwing", | ||
"version": "0.7.5", | ||
"version": "0.7.6", | ||
"description": "Error throwing helpers for quickly throwing errors when a value doesn't match a type.", | ||
@@ -11,2 +11,3 @@ "main": "dist/cjs/fjl.errorThrowing.js", | ||
"scripts": { | ||
"pre-publish": "npm test && npm run build && npm run build-docs", | ||
"build": "gulp clean && gulp build && npm run test-builds", | ||
@@ -23,3 +24,3 @@ "build-docs": "gulp jsdoc", | ||
"author": "Ely De La Cruz <elycruz@elycruz.com>", | ||
"license": "ISC", | ||
"license": "BSD", | ||
"devDependencies": { | ||
@@ -26,0 +27,0 @@ "babel-plugin-add-module-exports": "^0.2.1", |
@@ -5,8 +5,8 @@ /** | ||
* @note Content generated by '{project-root}/node-scripts/VersionNumberReadStream.js'. | ||
* @generated Tue Nov 21 2017 11:56:13 GMT-0500 (Eastern Standard Time) | ||
* @generated Tue Jan 02 2018 18:20:18 GMT-0500 (Eastern Standard Time) | ||
*/ | ||
export let version = '0.7.5'; | ||
export let version = '0.7.6'; | ||
export default version; | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
56
1
100
2372
1211825
1