/trunk/dist/was.js |
@@ -1,4 +1,4 @@ |
/*! was.js - v1.0.3 - 2019-08-01 |
/*! was.js - v1.0.4 - 2019-08-03 |
* http://grimore.org |
* Copyright (c) 2019 [object Object]; Licensed GPL-3.0 */ |
/* Copyright (C) 2017 Wizardry and Steamworks - License: GNU GPLv3 */ |
@@ -113,7 +113,7 @@ |
/*************************************************************************/ |
/* Node.JS package export. */ |
/*************************************************************************/ |
if(typeof variable !== 'undefined') { |
if(typeof module !== 'undefined' && typeof module.exports !== 'undefined') { |
module.exports.collections = { |
product: wasProduct, |
stride: wasStride, |
@@ -178,13 +178,18 @@ |
return csv.join(); |
} |
|
/*************************************************************************/ |
/* Node.JS package export. */ |
/*************************************************************************/ |
if(typeof variable !== 'undefined') { |
if(typeof module !== 'undefined' && typeof module.exports !== 'undefined') { |
/* global wasCSVToArray, wasArrayToCSV, wasKeyValueToObject */ |
module.exports.formats = { |
CSVToArray: wasCSVToArray, |
ArrayToCSV: wasArrayToCSV |
csv: { |
CSVToArray: wasCSVToArray, |
ArrayToCSV: wasArrayToCSV |
}, |
kvp: { |
KeyValueToObject: wasKeyValueToObject |
} |
}; |
} |
|
@@ -205,15 +210,6 @@ |
return o; |
} |
|
/*************************************************************************/ |
/* Node.JS package export. */ |
/*************************************************************************/ |
if(typeof variable !== 'undefined') { |
module.exports.formats = { |
KeyValueToObject: wasKeyValueToObject |
}; |
} |
|
/* Copyright (C) 2017 Wizardry and Steamworks - License: GNU GPLv3 */ |
/*************************************************************************/ |
/* fuss/lambda_calculus/functional_programming/aggregators @ grimore.org */ |
@@ -255,7 +251,7 @@ |
/*************************************************************************/ |
/* Node.JS package export. */ |
/*************************************************************************/ |
if(typeof variable !== 'undefined') { |
if(typeof module !== 'undefined' && typeof module.exports !== 'undefined') { |
module.exports.lambda = { |
switch: wasSwitch |
}; |
@@ -272,7 +268,7 @@ |
/*************************************************************************/ |
/* Node.JS package export. */ |
/*************************************************************************/ |
if(typeof variable !== 'undefined') { |
if(typeof module !== 'undefined' && typeof module.exports !== 'undefined') { |
module.exports.mathematics = { |
MapValueToRange: wasMapValueToRange |
}; |
@@ -312,7 +308,7 @@ |
/*************************************************************************/ |
/* Node.JS package export. */ |
/*************************************************************************/ |
if(typeof variable !== 'undefined') { |
if(typeof module !== 'undefined' && typeof module.exports !== 'undefined') { |
module.exports.physics = { |
HexToRGB: wasHexToRGB, |
RGBToHex: wasRGBToHex |