This repository was archived by the owner on Nov 4, 2020. It is now read-only.
File tree 2 files changed +11
-7
lines changed 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
1
import should from './es6/should' ;
2
- import root from 'root' ;
2
+ import * as root from 'root' ;
3
3
4
4
var defaultProto = Object . prototype ;
5
5
var defaultProperty = 'should' ;
@@ -12,14 +12,17 @@ try {
12
12
//ignore errors
13
13
}
14
14
15
+
15
16
if ( typeof define === 'function' && define . amd ) {
16
17
define ( [ ] , function ( ) { return should } ) ;
17
18
} else if ( typeof module === 'object' && module . exports ) {
18
19
module . exports = should ;
19
20
} else {
20
- root . Should = should ;
21
+ var _root = root ;
22
+
23
+ _root . Should = should ;
21
24
22
- Object . defineProperty ( root , 'should' , {
25
+ Object . defineProperty ( _root , 'should' , {
23
26
enumerable : false ,
24
27
configurable : true ,
25
28
value : should
Original file line number Diff line number Diff line change 9
9
( function ( root ) {
10
10
'use strict' ;
11
11
12
- root = 'default' in root ? root [ 'default' ] : root ;
13
-
14
12
var types = {
15
13
NUMBER : 'number' ,
16
14
UNDEFINED : 'undefined' ,
3810
3808
//ignore errors
3811
3809
}
3812
3810
3811
+
3813
3812
if ( typeof define === 'function' && define . amd ) {
3814
3813
define ( [ ] , function ( ) { return should } ) ;
3815
3814
} else if ( typeof module === 'object' && module . exports ) {
3816
3815
module . exports = should ;
3817
3816
} else {
3818
- root . Should = should ;
3817
+ var _root = root ;
3818
+
3819
+ _root . Should = should ;
3819
3820
3820
- Object . defineProperty ( root , 'should' , {
3821
+ Object . defineProperty ( _root , 'should' , {
3821
3822
enumerable : false ,
3822
3823
configurable : true ,
3823
3824
value : should
You can’t perform that action at this time.
0 commit comments