xml2js.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Generated by CoffeeScript 1.12.7
  2. (function() {
  3. "use strict";
  4. var builder, defaults, parser, processors,
  5. extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
  6. hasProp = {}.hasOwnProperty;
  7. defaults = require('./defaults');
  8. builder = require('./builder');
  9. parser = require('./parser');
  10. processors = require('./processors');
  11. exports.defaults = defaults.defaults;
  12. exports.processors = processors;
  13. exports.ValidationError = (function(superClass) {
  14. extend(ValidationError, superClass);
  15. function ValidationError(message) {
  16. this.message = message;
  17. }
  18. return ValidationError;
  19. })(Error);
  20. exports.Builder = builder.Builder;
  21. exports.Parser = parser.Parser;
  22. exports.parseString = parser.parseString;
  23. exports.parseStringPromise = parser.parseStringPromise;
  24. }).call(this);