Skip to content

Commit af58b30

Browse files
committedFeb 10, 2019
Rename package variables
1 parent 2bc4e51 commit af58b30

File tree

22 files changed

+55
-55
lines changed

22 files changed

+55
-55
lines changed
 

‎docs/editors/sublime-text/scripts/license_header_snippets.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
var resolve = require( 'path' ).resolve;
2626
var join = require( 'path' ).join;
2727
var logger = require( 'debug' );
28-
var getKeys = require( '@stdlib/utils/keys' );
28+
var objectKeys = require( '@stdlib/utils/keys' );
2929
var readFileSync = require( '@stdlib/fs/read-file' ).sync;
3030
var writeFileSync = require( '@stdlib/fs/write-file' ).sync;
3131
var replace = require( '@stdlib/string/replace' );
@@ -197,7 +197,7 @@ function main() {
197197
var len;
198198
var i;
199199

200-
keys = getKeys( LANGS );
200+
keys = objectKeys( LANGS );
201201
len = keys.length;
202202

203203
debug( 'Generating %d license header snippets...', len );

‎lib/node_modules/@stdlib/_tools/eslint/rules/examples/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
'use strict';
2020

21-
var getKeys = require( '@stdlib/utils/keys' );
21+
var objectKeys = require( '@stdlib/utils/keys' );
2222
var rules = require( './../lib' );
2323

24-
console.log( getKeys( rules ) );
24+
console.log( objectKeys( rules ) );

‎lib/node_modules/@stdlib/_tools/eslint/rules/require-order/test/fixtures/valid.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ test = {
8585
'// MODULES //',
8686
'',
8787
'var resolve = require( \'path\' ).resolve;',
88-
'var getKeys = require( \'object-keys\' );',
88+
'var objectKeys = require( \'object-keys\' );',
8989
'var isString = require( \'@stdlib/assert/is-string\' ).isPrimitive;',
9090
'var isFunction = require( \'@stdlib/assert/is-function\' );',
9191
'var readJSON = require( \'@stdlib/fs/read-json\' );',
@@ -101,7 +101,7 @@ test = {
101101
'// MODULES //',
102102
'',
103103
'var resolve = require( \'path\' ).resolve;',
104-
'var getKeys = require( \'object-keys\' );',
104+
'var objectKeys = require( \'object-keys\' );',
105105
'var isString = require( \'@stdlib/assert/is-string\' ).isPrimitive;',
106106
'var isFunction = require( \'@stdlib/assert/is-function\' );',
107107
'var readJSON = require( \'@stdlib/fs/read-json\' );',

‎lib/node_modules/@stdlib/_tools/eslint/rules/test/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var getKeys = require( '@stdlib/utils/keys' );
24+
var objectKeys = require( '@stdlib/utils/keys' );
2525
var ns = require( './../lib' );
2626

2727

@@ -34,7 +34,7 @@ tape( 'main export is an object', function test( t ) {
3434
});
3535

3636
tape( 'the exported object contains ESLint rules', function test( t ) {
37-
var keys = getKeys( ns );
37+
var keys = objectKeys( ns );
3838
t.equal( keys.length > 0, true, 'has keys' );
3939
t.end();
4040
});

‎lib/node_modules/@stdlib/_tools/test-cov/tape-istanbul/lib/runner.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var resolve = require( 'path' ).resolve;
2424
var glob = require( 'glob' );
2525
var tape = require( 'tape' );
26-
var getKeys = require( '@stdlib/utils/keys' );
26+
var objectKeys = require( '@stdlib/utils/keys' );
2727
var isFunction = require( '@stdlib/assert/is-function' );
2828
var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
2929
var copy = require( '@stdlib/utils/copy' );
@@ -197,7 +197,7 @@ function runner() {
197197
var keys;
198198
var key;
199199
var i;
200-
keys = getKeys( code );
200+
keys = objectKeys( code );
201201
for ( i = 0; i < keys.length; i++ ) {
202202
key = keys[ i ];
203203
code[ key ] = compile( key, code[ key ] );
@@ -222,7 +222,7 @@ function runner() {
222222
tape.onFinish( done );
223223

224224
// Run the compiled code...
225-
keys = getKeys( code );
225+
keys = objectKeys( code );
226226
for ( i = 0; i < keys.length; i++ ) {
227227
filename = keys[ i ];
228228
fcn = code[ filename ];

‎lib/node_modules/@stdlib/datasets/cmudict/lib/browser.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var getKeys = require( '@stdlib/utils/keys' );
23+
var objectKeys = require( '@stdlib/utils/keys' );
2424
var copy = require( '@stdlib/utils/copy' );
2525
var hasOwnProp = require( '@stdlib/assert/has-own-property' );
2626
var validate = require( './validate.js' );
@@ -61,7 +61,7 @@ function cmudict( options ) {
6161
}
6262
if ( opts.data ) {
6363
if ( !hasOwnProp( dataCMU, opts.data ) ) {
64-
throw new RangeError( 'invalid option. `data` option must be one of the following values: `'+getKeys( dataCMU ).join(',')+'`. Option: `'+opts.data+'`.' );
64+
throw new RangeError( 'invalid option. `data` option must be one of the following values: `'+objectKeys( dataCMU ).join(',')+'`. Option: `'+opts.data+'`.' );
6565
}
6666
return copy( dataCMU[ opts.data ] );
6767
}

‎lib/node_modules/@stdlib/datasets/minard-napoleons-march/lib/browser.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var getKeys = require( '@stdlib/utils/keys' );
23+
var objectKeys = require( '@stdlib/utils/keys' );
2424
var copy = require( '@stdlib/utils/copy' );
2525
var hasOwnProp = require( '@stdlib/assert/has-own-property' );
2626
var validate = require( './validate.js' );
@@ -61,7 +61,7 @@ function minard( options ) {
6161
}
6262
if ( opts.data ) {
6363
if ( !hasOwnProp( minardData, opts.data ) ) {
64-
throw new RangeError( 'invalid option. `data` option must be one of the following values: `'+getKeys( minardData ).join(',')+'`. Option: `'+opts.data+'`.' );
64+
throw new RangeError( 'invalid option. `data` option must be one of the following values: `'+objectKeys( minardData ).join(',')+'`. Option: `'+opts.data+'`.' );
6565
}
6666
return copy( minardData[ opts.data ] );
6767
}

‎lib/node_modules/@stdlib/datasets/sotu/lib/union.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var getKeys = require( '@stdlib/utils/keys' );
23+
var objectKeys = require( '@stdlib/utils/keys' );
2424
var hasOwnProp = require( '@stdlib/assert/has-own-property' );
2525

2626

@@ -47,7 +47,7 @@ function union() {
4747
}
4848
}
4949
}
50-
return getKeys( cache );
50+
return objectKeys( cache );
5151
}
5252

5353

‎lib/node_modules/@stdlib/math/base/complex/examples/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
'use strict';
2020

21-
var getKeys = require( '@stdlib/utils/keys' );
21+
var objectKeys = require( '@stdlib/utils/keys' );
2222
var ns = require( './../lib' );
2323

24-
console.log( getKeys( ns ) );
24+
console.log( objectKeys( ns ) );

‎lib/node_modules/@stdlib/math/base/complex/test/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var getKeys = require( '@stdlib/utils/keys' );
24+
var objectKeys = require( '@stdlib/utils/keys' );
2525
var ns = require( './../lib' );
2626

2727

@@ -34,7 +34,7 @@ tape( 'main export is an object', function test( t ) {
3434
});
3535

3636
tape( 'the exported object contains key-value pairs', function test( t ) {
37-
var keys = getKeys( ns );
37+
var keys = objectKeys( ns );
3838
t.strictEqual( keys.length > 0, true, 'has keys' );
3939
t.end();
4040
});

‎lib/node_modules/@stdlib/math/base/examples/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
'use strict';
2020

21-
var getKeys = require( '@stdlib/utils/keys' );
21+
var objectKeys = require( '@stdlib/utils/keys' );
2222
var ns = require( './../lib' );
2323

24-
console.log( getKeys( ns ) );
24+
console.log( objectKeys( ns ) );

‎lib/node_modules/@stdlib/math/base/special/examples/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
'use strict';
2020

21-
var getKeys = require( '@stdlib/utils/keys' );
21+
var objectKeys = require( '@stdlib/utils/keys' );
2222
var special = require( './../lib' );
2323

24-
console.log( getKeys( special ) );
24+
console.log( objectKeys( special ) );

‎lib/node_modules/@stdlib/math/base/special/expm1/lib/expm1.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
// MODULES //
3636

3737
var isnan = require( '@stdlib/math/base/assert/is-nan' );
38-
var highWord = require( '@stdlib/number/float64/base/get-high-word' );
38+
var getHighWord = require( '@stdlib/number/float64/base/get-high-word' );
3939
var setHighWord = require( '@stdlib/number/float64/base/set-high-word' );
4040
var PINF = require( '@stdlib/constants/math/float64-pinf' );
4141
var NINF = require( '@stdlib/constants/math/float64-ninf' );
42-
var BIAS = require( '@stdlib/constants/math/float64-exponent-bias' );
43-
var LN2_HALF = require( '@stdlib/constants/math/float64-half-ln-two' );
42+
var FLOAT64_EXPONENT_BIAS = require( '@stdlib/constants/math/float64-exponent-bias' );
43+
var HALF_LN2 = require( '@stdlib/constants/math/float64-half-ln-two' );
4444
var polyval = require( './polyval_q.js' );
4545

4646

@@ -269,10 +269,10 @@ function expm1( x ) {
269269
}
270270
}
271271
// Extract the more significant bits from |x|:
272-
hx = highWord( y )|0; // asm type annotation
272+
hx = getHighWord( y )|0; // asm type annotation
273273

274274
// Argument reduction...
275-
if ( y > LN2_HALF ) { // if |x| > 0.5*ln(2)
275+
if ( y > HALF_LN2 ) { // if |x| > 0.5*ln(2)
276276
if ( y < LN2_HALFX3 ) { // if |x| < 1.5*ln(2)
277277
if ( sign ) {
278278
hi = x + LN2_HI;
@@ -330,7 +330,7 @@ function expm1( x ) {
330330
y = 1.0 - (e-x);
331331

332332
// Add k to y's exponent:
333-
hi = (highWord( y ) + (k<<20))|0; // asm type annotation
333+
hi = (getHighWord( y ) + (k<<20))|0; // asm type annotation
334334
y = setHighWord( y, hi );
335335

336336
return y - 1.0;
@@ -342,13 +342,13 @@ function expm1( x ) {
342342
t = setHighWord( t, hi ); // t=1-2^-k
343343
y = t - (e-x);
344344
} else {
345-
hi = ( (BIAS-k)<<20 )|0; // asm type annotation
345+
hi = ( (FLOAT64_EXPONENT_BIAS-k)<<20 )|0; // asm type annotation
346346
t = setHighWord( t, hi ); // t=2^-k
347347
y = x - (e+t);
348348
y += 1.0;
349349
}
350350
// Add k to y's exponent:
351-
hi = (highWord( y ) + (k<<20))|0; // asm type annotation
351+
hi = (getHighWord( y ) + (k<<20))|0; // asm type annotation
352352
return setHighWord( y, hi );
353353
}
354354

‎lib/node_modules/@stdlib/math/base/special/log1p/lib/log1p.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
// MODULES //
3636

3737
var isnan = require( '@stdlib/math/base/assert/is-nan' );
38-
var highWord = require( '@stdlib/number/float64/base/get-high-word' );
38+
var getHighWord = require( '@stdlib/number/float64/base/get-high-word' );
3939
var setHighWord = require( '@stdlib/number/float64/base/set-high-word' );
4040
var PINF = require( '@stdlib/constants/math/float64-pinf' );
4141
var NINF = require( '@stdlib/constants/math/float64-ninf' );
42-
var BIAS = require( '@stdlib/constants/math/float64-exponent-bias' );
42+
var FLOAT64_EXPONENT_BIAS = require( '@stdlib/constants/math/float64-exponent-bias' );
4343
var polyval = require( './polyval_lp.js' );
4444

4545

@@ -293,10 +293,10 @@ function log1p( x ) {
293293
if ( k !== 0 ) {
294294
if ( y < TWO53 ) {
295295
u = 1.0 + x;
296-
hu = highWord( u );
296+
hu = getHighWord( u );
297297

298298
// Bit shift to isolate the exponent and then subtract the bias:
299-
k = (hu>>20) - BIAS;
299+
k = (hu>>20) - FLOAT64_EXPONENT_BIAS;
300300

301301
// Correction term...
302302
if ( k > 0 ) { // positive unbiased exponent
@@ -307,10 +307,10 @@ function log1p( x ) {
307307
c /= u;
308308
} else {
309309
u = x;
310-
hu = highWord( u );
310+
hu = getHighWord( u );
311311

312312
// Bit shift to isolate the exponent and then subtract the bias:
313-
k = (hu>>20) - BIAS;
313+
k = (hu>>20) - FLOAT64_EXPONENT_BIAS;
314314

315315
// Correction term is zero:
316316
c = 0;

‎lib/node_modules/@stdlib/math/base/special/test/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var getKeys = require( '@stdlib/utils/keys' );
24+
var objectKeys = require( '@stdlib/utils/keys' );
2525
var special = require( './../lib' );
2626

2727

@@ -34,7 +34,7 @@ tape( 'main export is an object', function test( t ) {
3434
});
3535

3636
tape( 'the exported object contains special functions', function test( t ) {
37-
var keys = getKeys( special );
37+
var keys = objectKeys( special );
3838
t.equal( keys.length > 0, true, 'has keys' );
3939
t.end();
4040
});

‎lib/node_modules/@stdlib/math/base/test/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var getKeys = require( '@stdlib/utils/keys' );
24+
var objectKeys = require( '@stdlib/utils/keys' );
2525
var ns = require( './../lib' );
2626

2727

@@ -34,7 +34,7 @@ tape( 'main export is an object', function test( t ) {
3434
});
3535

3636
tape( 'the exported object contains key-value pairs', function test( t ) {
37-
var keys = getKeys( ns );
37+
var keys = objectKeys( ns );
3838
t.equal( keys.length > 0, true, 'has keys' );
3939
t.end();
4040
});

‎lib/node_modules/@stdlib/math/base/tools/examples/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
'use strict';
2020

21-
var getKeys = require( '@stdlib/utils/keys' );
21+
var objectKeys = require( '@stdlib/utils/keys' );
2222
var tools = require( './../lib' );
2323

24-
console.log( getKeys( tools ) );
24+
console.log( objectKeys( tools ) );

‎lib/node_modules/@stdlib/math/base/tools/test/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var getKeys = require( '@stdlib/utils/keys' );
24+
var objectKeys = require( '@stdlib/utils/keys' );
2525
var tools = require( './../lib' );
2626

2727

@@ -34,7 +34,7 @@ tape( 'main export is an object', function test( t ) {
3434
});
3535

3636
tape( 'the exported object contains base math tools', function test( t ) {
37-
var keys = getKeys( tools );
37+
var keys = objectKeys( tools );
3838
t.equal( keys.length > 0, true, 'has keys' );
3939
t.end();
4040
});

‎lib/node_modules/@stdlib/math/base/utils/examples/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
'use strict';
2020

21-
var getKeys = require( '@stdlib/utils/keys' );
21+
var objectKeys = require( '@stdlib/utils/keys' );
2222
var utils = require( './../lib' );
2323

24-
console.log( getKeys( utils ) );
24+
console.log( objectKeys( utils ) );

‎lib/node_modules/@stdlib/math/base/utils/test/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var getKeys = require( '@stdlib/utils/keys' );
24+
var objectKeys = require( '@stdlib/utils/keys' );
2525
var utils = require( './../lib' );
2626

2727

@@ -34,7 +34,7 @@ tape( 'main export is an object', function test( t ) {
3434
});
3535

3636
tape( 'the exported object contains base math utilities', function test( t ) {
37-
var keys = getKeys( utils );
37+
var keys = objectKeys( utils );
3838
t.equal( keys.length > 0, true, 'has keys' );
3939
t.end();
4040
});

‎lib/node_modules/@stdlib/math/examples/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
'use strict';
2020

21-
var getKeys = require( '@stdlib/utils/keys' );
21+
var objectKeys = require( '@stdlib/utils/keys' );
2222
var math = require( './../lib' );
2323

24-
console.log( getKeys( math ) );
24+
console.log( objectKeys( math ) );

‎lib/node_modules/@stdlib/math/test/test.js

+2-2
Original file line numberDiff line numberDiff line change

0 commit comments

Comments
 (0)
Please sign in to comment.