We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b2d49f3 + ce29fcf commit 1758294Copy full SHA for 1758294
base64.js
@@ -1,9 +1,16 @@
1
;(function () {
2
3
- var object =
4
- typeof exports != 'undefined' ? exports :
5
- typeof self != 'undefined' ? self : // #8: web workers
6
- $.global; // #31: ExtendScript
+ var object = (
+ // #34: CommonJS
+ typeof exports === 'object' && exports !== null &&
+ typeof exports.nodeType !== 'number' ?
7
+ exports :
8
+ // #8: web workers
9
+ typeof self != 'undefined' ?
10
+ self :
11
+ // #31: ExtendScript
12
+ $.global
13
+ );
14
15
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
16
package.json
@@ -11,6 +11,7 @@
},
"devDependencies": {
"coffee-script": "1.8.x",
+ "debug": "3.2.x",
"istanbul": "0.2.x",
"mocha": "1.18.x",
17
"uglify-js": "2.4.x",
0 commit comments