[Pkg-javascript-commits] [science.js] 64/87: Remodeled node exports after square/tesseract style

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 f39007bfef06f071598a378c23700f73d08d6214
Author: Kristofer Monisit <kmonisit at gmail.com>
Date:   Tue Mar 20 19:34:43 2012 +0800

    Remodeled node exports after square/tesseract style
---
 Makefile         | 3 +--
 science.js       | 7 ++++---
 science.min.js   | 2 +-
 src/core/core.js | 1 +
 src/end.js       | 2 +-
 src/export.js    | 1 -
 src/start.js     | 2 +-
 7 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/Makefile b/Makefile
index e3d69cd..6cc56d6 100644
--- a/Makefile
+++ b/Makefile
@@ -15,8 +15,7 @@ all: \
 	science.core.js \
 	science.lin.js \
 	science.stats.js \
-	src/end.js \
-	src/export.js
+	src/end.js
 
 science.core.js: \
 	src/core/core.js \
diff --git a/science.js b/science.js
index db942e8..81dda5b 100644
--- a/science.js
+++ b/science.js
@@ -1,4 +1,6 @@
-(function(){science = {version: "1.8.0"}; // semver
+(function(exports){
+science = {version: "1.8.0"}; // semver
+exports.science = science;
 science.ascending = function(a, b) {
   return a - b;
 };
@@ -1732,5 +1734,4 @@ science.stats.distribution.gaussian = function() {
 };
 
 science_stats_distribution_gaussianConstant = 1 / Math.sqrt(2 * Math.PI);
-})();
-exports.science = science;
+})(this);
diff --git a/science.min.js b/science.min.js
index 6ac785f..a803dd6 100644
--- a/science.min.js
+++ b/science.min.js
@@ -1 +1 @@
-(function(){function a(a,b,c){var d=c.length;for(var e=0;e<d;e++)a[e]=c[d-1][e];for(var f=d-1;f>0;f--){var g=0,h=0;for(var i=0;i<f;i++)g+=Math.abs(a[i]);if(g===0){b[f]=a[f-1];for(var e=0;e<f;e++)a[e]=c[f-1][e],c[f][e]=0,c[e][f]=0}else{for(var i=0;i<f;i++)a[i]/=g,h+=a[i]*a[i];var j=a[f-1],k=Math.sqrt(h);j>0&&(k=-k),b[f]=g*k,h-=j*k,a[f-1]=j-k;for(var e=0;e<f;e++)b[e]=0;for(var e=0;e<f;e++){j=a[e],c[e][f]=j,k=b[e]+c[e][e]*j;for(var i=e+1;i<=f-1;i++)k+=c[i][e]*a[i],b[i]+=c[i][e]*j;b[e]=k}j=0 [...]
\ No newline at end of file
+(function(a){function b(a,b,c){var d=c.length;for(var e=0;e<d;e++)a[e]=c[d-1][e];for(var f=d-1;f>0;f--){var g=0,h=0;for(var i=0;i<f;i++)g+=Math.abs(a[i]);if(g===0){b[f]=a[f-1];for(var e=0;e<f;e++)a[e]=c[f-1][e],c[f][e]=0,c[e][f]=0}else{for(var i=0;i<f;i++)a[i]/=g,h+=a[i]*a[i];var j=a[f-1],k=Math.sqrt(h);j>0&&(k=-k),b[f]=g*k,h-=j*k,a[f-1]=j-k;for(var e=0;e<f;e++)b[e]=0;for(var e=0;e<f;e++){j=a[e],c[e][f]=j,k=b[e]+c[e][e]*j;for(var i=e+1;i<=f-1;i++)k+=c[i][e]*a[i],b[i]+=c[i][e]*j;b[e]=k}j= [...]
\ No newline at end of file
diff --git a/src/core/core.js b/src/core/core.js
index 10ac4ae..cd54726 100644
--- a/src/core/core.js
+++ b/src/core/core.js
@@ -1 +1,2 @@
 science = {version: "1.8.0"}; // semver
+exports.science = science;
diff --git a/src/end.js b/src/end.js
index 0319a0f..9fda258 100644
--- a/src/end.js
+++ b/src/end.js
@@ -1 +1 @@
-})();
+})(this);
diff --git a/src/export.js b/src/export.js
deleted file mode 100644
index 747c22d..0000000
--- a/src/export.js
+++ /dev/null
@@ -1 +0,0 @@
-exports.science = science;
diff --git a/src/start.js b/src/start.js
index 2f4bb35..d43e599 100644
--- a/src/start.js
+++ b/src/start.js
@@ -1 +1 @@
-(function(){
\ No newline at end of file
+(function(exports){

-- 
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