Skip to content

Commit f81c78f

Browse files
committed
Use project pkg for resolving the global object
1 parent 706d20e commit f81c78f

File tree

4 files changed

+13
-16
lines changed

4 files changed

+13
-16
lines changed

lib/node_modules/@stdlib/os/num-cpus/test/test.navigator.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,20 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var systemGlobal = require( 'system.global' );
2524
var proxyquire = require( 'proxyquire' );
25+
var getGlobal = require( '@stdlib/utils/global' );
2626
var isBrowser = require( '@stdlib/assert/is-browser' );
2727
var nav = require( './../lib/navigator.js' );
2828

2929

3030
// VARIABLES //
3131

32-
var Global = systemGlobal();
32+
var Global = getGlobal();
3333

3434

3535
// FIXTURES //
3636

37-
if (
38-
isBrowser &&
39-
typeof Global.global === 'undefined'
40-
) {
37+
if ( isBrowser && typeof Global.global === 'undefined' ) {
4138
// Global is `window`, so, if not present, add `global` to global namespace:
4239
Global.global = {};
4340
}

lib/node_modules/@stdlib/time/tic/lib/browser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var systemGlobal = require( 'system.global' );
23+
var getGlobal = require( '@stdlib/utils/global' );
2424
var isObject = require( '@stdlib/assert/is-object' );
2525
var modf = require( '@stdlib/math/base/special/modf' );
2626
var round = require( '@stdlib/math/base/special/round' );
@@ -29,7 +29,7 @@ var now = require( './now.js' );
2929

3030
// VARIABLES //
3131

32-
var Global = systemGlobal();
32+
var Global = getGlobal();
3333
var ts;
3434
var ns;
3535

lib/node_modules/@stdlib/time/tic/test/test.browser.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ tape( 'the function returns a nonnegative integer array', function test( t ) {
4747

4848
tape( 'if available, the module uses the `performance` API', function test( t ) {
4949
var tic = proxyquire( './../lib/browser.js', {
50-
'system.global': getGlobal
50+
'@stdlib/utils/global': getGlobal
5151
});
5252
t.strictEqual( tic.length, 0, 'number of parameters is equal to zero' );
5353
t.strictEqual( isNonNegativeIntegerArray( tic() ), true, 'returns a nonnegative integer array' );
@@ -64,7 +64,7 @@ tape( 'if available, the module uses the `performance` API', function test( t )
6464

6565
tape( 'the module accommodates browser environments lacking a `performance` API', function test( t ) {
6666
var tic = proxyquire( './../lib/browser.js', {
67-
'system.global': getGlobal
67+
'@stdlib/utils/global': getGlobal
6868
});
6969
t.strictEqual( tic.length, 0, 'number of parameters is equal to zero' );
7070
t.strictEqual( isNonNegativeIntegerArray( tic() ), true, 'returns a nonnegative integer array' );
@@ -77,7 +77,7 @@ tape( 'the module accommodates browser environments lacking a `performance` API'
7777

7878
tape( 'the module accommodates older Firefox environments', function test( t ) {
7979
var tic = proxyquire( './../lib/browser.js', {
80-
'system.global': getGlobal
80+
'@stdlib/utils/global': getGlobal
8181
});
8282
t.strictEqual( tic.length, 0, 'number of parameters is equal to zero' );
8383
t.strictEqual( isNonNegativeIntegerArray( tic() ), true, 'returns a nonnegative integer array' );
@@ -94,7 +94,7 @@ tape( 'the module accommodates older Firefox environments', function test( t ) {
9494

9595
tape( 'the module accommodates older IE environments', function test( t ) {
9696
var tic = proxyquire( './../lib/browser.js', {
97-
'system.global': getGlobal
97+
'@stdlib/utils/global': getGlobal
9898
});
9999
t.strictEqual( tic.length, 0, 'number of parameters is equal to zero' );
100100
t.strictEqual( isNonNegativeIntegerArray( tic() ), true, 'returns a nonnegative integer array' );
@@ -111,7 +111,7 @@ tape( 'the module accommodates older IE environments', function test( t ) {
111111

112112
tape( 'the module accommodates older Opera environments', function test( t ) {
113113
var tic = proxyquire( './../lib/browser.js', {
114-
'system.global': getGlobal
114+
'@stdlib/utils/global': getGlobal
115115
});
116116
t.strictEqual( tic.length, 0, 'number of parameters is equal to zero' );
117117
t.strictEqual( isNonNegativeIntegerArray( tic() ), true, 'returns a nonnegative integer array' );
@@ -128,7 +128,7 @@ tape( 'the module accommodates older Opera environments', function test( t ) {
128128

129129
tape( 'the module accommodates older Webkit environments', function test( t ) {
130130
var tic = proxyquire( './../lib/browser.js', {
131-
'system.global': getGlobal
131+
'@stdlib/utils/global': getGlobal
132132
});
133133
t.strictEqual( tic.length, 0, 'number of parameters is equal to zero' );
134134
t.strictEqual( isNonNegativeIntegerArray( tic() ), true, 'returns a nonnegative integer array' );

lib/node_modules/@stdlib/utils/type-of/lib/fixtures/nodelist.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020

2121
// MODULES //
2222

23-
var systemGlobal = require( 'system.global' );
23+
var getGlobal = require( '@stdlib/utils/global' );
2424

2525

2626
// MAIN //
2727

28-
var root = systemGlobal(); // eslint-disable-line stdlib/no-redeclare
28+
var root = getGlobal(); // eslint-disable-line stdlib/no-redeclare
2929
var nodeList = root.document && root.document.childNodes;
3030

3131

0 commit comments

Comments
 (0)