This repository has been archived by the owner on Nov 4, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
import should from './es6/should'; | ||
import * as root from 'root'; | ||
import should from "./es6/should"; | ||
import * as root from "root"; | ||
|
||
var defaultProto = Object.prototype; | ||
var defaultProperty = 'should'; | ||
var defaultProperty = "should"; | ||
|
||
var _root = root; | ||
|
||
//Expose api via `Object#should`. | ||
try { | ||
var prevShould = should.extend(defaultProperty, defaultProto); | ||
should._prevShould = prevShould; | ||
} catch (e) { | ||
//ignore errors | ||
} | ||
|
||
|
||
if (typeof define === 'function' && define.amd) { | ||
define([], function() { return should }); | ||
} else if (typeof module === 'object' && module.exports) { | ||
module.exports = should; | ||
} else { | ||
var _root = root; | ||
|
||
_root.Should = should; | ||
|
||
Object.defineProperty(_root, 'should', { | ||
Object.defineProperty(_root, "should", { | ||
enumerable: false, | ||
configurable: true, | ||
value: should | ||
}); | ||
} catch (e) { | ||
//ignore errors | ||
} | ||
|
||
if (typeof define === "function" && define.amd) { | ||
define([], function() { | ||
return should; | ||
}); | ||
} else if (typeof module === "object" && module.exports) { | ||
module.exports = should; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters