/node_modules/grunt/node_modules/js-yaml/lib/js-yaml.js
JavaScript | 33 lines | 25 code | 8 blank | 0 comment | 0 complexity | 74124ee7321dcb7bf6045a193e5ab787 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, GPL-2.0, JSON, BSD-2-Clause, MIT, 0BSD, Apache-2.0, BSD-3-Clause
- 'use strict';
- var loader = require('./js-yaml/loader');
- var dumper = require('./js-yaml/dumper');
- function deprecated(name) {
- return function () {
- throw new Error('Function ' + name + ' is deprecated and cannot be used.');
- };
- }
- module.exports.Type = require('./js-yaml/type');
- module.exports.Schema = require('./js-yaml/schema');
- module.exports.MINIMAL_SCHEMA = require('./js-yaml/schema/minimal');
- module.exports.SAFE_SCHEMA = require('./js-yaml/schema/safe');
- module.exports.DEFAULT_SCHEMA = require('./js-yaml/schema/default');
- module.exports.load = loader.load;
- module.exports.loadAll = loader.loadAll;
- module.exports.safeLoad = loader.safeLoad;
- module.exports.safeLoadAll = loader.safeLoadAll;
- module.exports.dump = dumper.dump;
- module.exports.safeDump = dumper.safeDump;
- module.exports.YAMLException = require('./js-yaml/exception');
- module.exports.scan = deprecated('scan');
- module.exports.parse = deprecated('parse');
- module.exports.compose = deprecated('compose');
- module.exports.addConstructor = deprecated('addConstructor');
- require('./js-yaml/require');