Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

js-yaml.js 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. 'use strict';
  2. var loader = require('./js-yaml/loader');
  3. var dumper = require('./js-yaml/dumper');
  4. function deprecated(name) {
  5. return function () {
  6. throw new Error('Function ' + name + ' is deprecated and cannot be used.');
  7. };
  8. }
  9. module.exports.Type = require('./js-yaml/type');
  10. module.exports.Schema = require('./js-yaml/schema');
  11. module.exports.FAILSAFE_SCHEMA = require('./js-yaml/schema/failsafe');
  12. module.exports.JSON_SCHEMA = require('./js-yaml/schema/json');
  13. module.exports.CORE_SCHEMA = require('./js-yaml/schema/core');
  14. module.exports.DEFAULT_SAFE_SCHEMA = require('./js-yaml/schema/default_safe');
  15. module.exports.DEFAULT_FULL_SCHEMA = require('./js-yaml/schema/default_full');
  16. module.exports.load = loader.load;
  17. module.exports.loadAll = loader.loadAll;
  18. module.exports.safeLoad = loader.safeLoad;
  19. module.exports.safeLoadAll = loader.safeLoadAll;
  20. module.exports.dump = dumper.dump;
  21. module.exports.safeDump = dumper.safeDump;
  22. module.exports.YAMLException = require('./js-yaml/exception');
  23. // Deprecated schema names from JS-YAML 2.0.x
  24. module.exports.MINIMAL_SCHEMA = require('./js-yaml/schema/failsafe');
  25. module.exports.SAFE_SCHEMA = require('./js-yaml/schema/default_safe');
  26. module.exports.DEFAULT_SCHEMA = require('./js-yaml/schema/default_full');
  27. // Deprecated functions from JS-YAML 1.x.x
  28. module.exports.scan = deprecated('scan');
  29. module.exports.parse = deprecated('parse');
  30. module.exports.compose = deprecated('compose');
  31. module.exports.addConstructor = deprecated('addConstructor');