[Pkg-javascript-commits] [science.js] 62/87: exports line for using science.js with node console
bhuvan krishna
bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:12:00 UTC 2016
This is an automated email from the git hooks/post-receive script.
bhuvan-guest pushed a commit to branch master
in repository science.js.
commit c3c20d17b658ada0e3952f3db888f81463b63a31
Author: Kristofer Monisit <kmonisit at gmail.com>
Date: Tue Mar 20 12:52:56 2012 +0800
exports line for using science.js with node console
---
Makefile | 3 ++-
science.js | 1 +
science.min.js | 2 +-
src/export.js | 1 +
4 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 15aff31..1680b7f 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,8 @@ all: \
.INTERMEDIATE science.js: \
src/start.js \
science.core.js \
- src/end.js
+ src/end.js \
+ src/export.js
science.core.js: \
src/core/core.js \
diff --git a/science.js b/science.js
index fc30663..c34933d 100644
--- a/science.js
+++ b/science.js
@@ -70,3 +70,4 @@ science.zeroes = function(n) {
return a;
};
})();
+exports.science = science;
diff --git a/science.min.js b/science.min.js
index 3c29d3e..bfcb2a2 100644
--- a/science.min.js
+++ b/science.min.js
@@ -1 +1 @@
-(function(){science={version:"1.8.0"},science.ascending=function(a,b){return a-b},science.EULER=.5772156649015329,science.expm1=function(a){return a<1e-5&&a>-0.00001?a+.5*a*a:Math.exp(a)-1},science.functor=function(a){return typeof a=="function"?a:function(){return a}},science.hypot=function(a,b){a=Math.abs(a),b=Math.abs(b);var c,d;a>b?(c=a,d=b):(c=b,d=a);var e=d/c;return c*Math.sqrt(1+e*e)},science.quadratic=function(){function b(b,c,d){var e=c*c-4*b*d;return e>0?(e=Math.sqrt(e)/(2*b),a [...]
\ No newline at end of file
+(function(){science={version:"1.8.0"},science.ascending=function(a,b){return a-b},science.EULER=.5772156649015329,science.expm1=function(a){return a<1e-5&&a>-0.00001?a+.5*a*a:Math.exp(a)-1},science.functor=function(a){return typeof a=="function"?a:function(){return a}},science.hypot=function(a,b){a=Math.abs(a),b=Math.abs(b);var c,d;a>b?(c=a,d=b):(c=b,d=a);var e=d/c;return c*Math.sqrt(1+e*e)},science.quadratic=function(){function b(b,c,d){var e=c*c-4*b*d;return e>0?(e=Math.sqrt(e)/(2*b),a [...]
\ No newline at end of file
diff --git a/src/export.js b/src/export.js
new file mode 100644
index 0000000..747c22d
--- /dev/null
+++ b/src/export.js
@@ -0,0 +1 @@
+exports.science = science;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/science.js.git
More information about the Pkg-javascript-commits
mailing list