Skip to content

Commit ea38f83

Browse files
package upgrades and minor fixes
1 parent 1765269 commit ea38f83

File tree

10 files changed

+27
-48
lines changed

10 files changed

+27
-48
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
[js-array](http://aureooms.github.io/js-array)
2-
==
1+
#[js-array](http://aureooms.github.io/js-array)
32

4-
array manipulation code bricks for JavaScript
3+
Array manipulation code bricks for JavaScript.
54

65
[![NPM license](http://img.shields.io/npm/l/aureooms-js-array.svg?style=flat)](https://raw.githubusercontent.com/aureooms/js-array/master/LICENSE)
76
[![NPM version](http://img.shields.io/npm/v/aureooms-js-array.svg?style=flat)](https://www.npmjs.org/package/aureooms-js-array)

js/index.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
"name": "aureooms-js-array",
66
"author": "aureooms",
77
"devDependencies": {
8-
"aureooms-node-package": "^1.2.0",
9-
"aureooms-js-operator": "^1.0.0",
10-
"aureooms-js-mem": "^1.0.0",
11-
"aureooms-js-random": "^0.0.3",
12-
"aureooms-js-compare": "^1.0.0"
8+
"aureooms-node-package": "^4.1.0",
9+
"aureooms-js-operator": "^1.0.1",
10+
"aureooms-js-mem": "^1.0.1",
11+
"aureooms-js-random": "^1.0.1",
12+
"aureooms-js-functools": "^1.2.1",
13+
"aureooms-js-operator": "^1.0.1",
14+
"aureooms-js-compare": "^1.4.3"
1315
},
1416
"scripts": {
1517
"doc": "./node_modules/.bin/groc",
@@ -34,4 +36,4 @@
3436
"type": "git",
3537
"url": "https://github.com/aureooms/js-array.git"
3638
}
37-
}
39+
}

pkg.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"ns": "array",
2+
"name": "array",
33
"debug": false,
44
"code": {
55
"main": [
@@ -14,4 +14,4 @@
1414
},
1515
"src": "js/src/",
1616
"out": "js/dist/"
17-
}
17+
}

test/js/src/get.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,15 @@ random = require( "aureooms-js-random" ) ;
55

66
test( "get", function ( ) {
77

8-
var a , i , n , shuffle ;
9-
10-
shuffle = random.__shuffle__( random.__sample__( random.randint ) ) ;
8+
var a , i , n ;
119

1210
n = 10 ;
1311

1412
a = array.alloc( n ) ;
1513

1614
array.iota( a , 0 , n , 0 ) ;
1715

18-
shuffle( a , 0 , n ) ;
16+
random.shuffle( a , 0 , n ) ;
1917

2018
for ( i = 0 ; i < n ; ++i ) {
2119

test/js/src/map/dropwhile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ test( "dropwhile", function () {
2121

2222
one(
2323
array.range( 0, 100, 1, [] ),
24-
functools.rpartial( operator.lt, null, [50] ),
24+
functools.rpartial( operator.lt, [50] ),
2525
array.range( 50, 100, 1, [] )
2626
);
2727

2828
one(
2929
array.range( 0, 100, 1, [] ),
30-
functools.rpartial( operator.lt, null, [100] ),
30+
functools.rpartial( operator.lt, [100] ),
3131
array.range( 0, 0, 1, [] )
3232
);
3333

3434
one(
3535
array.range( 0, 0, 1, [] ),
36-
functools.rpartial( operator.lt, null, [1] ),
36+
functools.rpartial( operator.lt, [1] ),
3737
array.range( 0, 0, 1, [] )
3838
);
3939

test/js/src/map/sorted.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
var one, sort, util, operator;
2+
var one, compare, util, operator;
33

44
util = require( "util" );
55

6-
sort = require( "aureooms-js-sort" );
6+
compare = require( "aureooms-js-compare" );
77

88
operator = require( "aureooms-js-operator" );
99

@@ -35,7 +35,7 @@ one = function ( f, a ) {
3535

3636
test( "sorted", function () {
3737

38-
[sort.increasing, sort.decreasing].forEach( function (f) {
38+
[compare.increasing, compare.decreasing].forEach( function (f) {
3939

4040
var a, i, n;
4141

test/js/src/map/takewhile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ test( "takewhile", function () {
2121

2222
one(
2323
array.range( 0, 100, 1, [] ),
24-
functools.rpartial( operator.lt, null, [50] ),
24+
functools.rpartial( operator.lt, [50] ),
2525
array.range( 0, 50, 1, [] )
2626
);
2727

2828
one(
2929
array.range( 0, 100, 1, [] ),
30-
functools.rpartial( operator.lt, null, [100] ),
30+
functools.rpartial( operator.lt, [100] ),
3131
array.range( 0, 100, 1, [] )
3232
);
3333

3434
one(
3535
array.range( 0, 0, 1, [] ),
36-
functools.rpartial( operator.lt, null, [1] ),
36+
functools.rpartial( operator.lt, [1] ),
3737
array.range( 0, 0, 1, [] )
3838
);
3939

test/js/src/set.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@ random = require( "aureooms-js-random" ) ;
44

55
test( "set", function ( ) {
66

7-
var a , b , i , n , shuffle ;
8-
9-
shuffle = random.__shuffle__( random.__sample__( random.randint ) ) ;
7+
var a , b , i , n ;
108

119
n = 10 ;
1210

1311
a = array.alloc( n ) ;
1412

1513
array.iota( a , 0 , n , 0 ) ;
1614

17-
shuffle( a , 0 , n ) ;
15+
random.shuffle( a , 0 , n ) ;
1816

1917
b = array.alloc( n ) ;
2018

test/js/src/sort.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11

22

3-
var compare, random, sample, shuffle;
3+
var compare , random ;
44

55
random = require( "aureooms-js-random" );
66
compare = require( "aureooms-js-compare" );
7-
sample = random.__sample__( random.randint );
8-
shuffle = random.__shuffle__( sample );
97

108
test( "sort", function () {
119

@@ -17,13 +15,12 @@ test( "sort", function () {
1715

1816
array.iota( a, 0, n, 0 );
1917

20-
shuffle( a, 0, n );
18+
random.shuffle( a, 0, n );
2119

2220
b = array.alloc( n );
2321

2422
array.copy( a, 0, n, b, 0 );
2523

26-
2724
array.sort( compare.increasing, a );
2825

2926
b.sort( compare.increasing );

0 commit comments

Comments
 (0)