summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js21
1 files changed, 1 insertions, 20 deletions
diff --git a/index.js b/index.js
index 99fc4f5..d9643d8 100644
--- a/index.js
+++ b/index.js
@@ -1,22 +1,3 @@
var Yaml = require('./lib/Yaml');
-
-// Compatibility layer with previous version of yaml.js
-// That was exposing the YAML library as global object in the browser
-if (typeof(window) != 'undefined') {
- window.YAML = {
- parse: function(input, exceptionOnInvalidType, objectDecoder) {
- return Yaml.parse(input, exceptionOnInvalidType, objectDecoder);
- },
-
- stringify: function(array, inline, indent, exceptionOnInvalidType, objectEncoder) {
- return Yaml.dump(array, inline, indent, exceptionOnInvalidType, objectEncoder);
- }
- };
-}
-
-module.exports = {
- Yaml: require('./lib/Yaml'),
- Parser: require('./lib/Parser'),
- Dumper: require('./lib/Dumper')
-};
+module.exports = Yaml;