URI.js 584 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Copyright (c) 2013-present, Facebook, Inc.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. *
  8. */
  9. 'use strict';
  10. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  11. var URI = function () {
  12. function URI(uri) {
  13. _classCallCheck(this, URI);
  14. this._uri = uri;
  15. }
  16. URI.prototype.toString = function toString() {
  17. return this._uri;
  18. };
  19. return URI;
  20. }();
  21. module.exports = URI;