Last active
August 29, 2015 14:23
-
-
Save paulohp/1c8da59f7e734b7e1749 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| Object.defineProperty(exports, '__esModule', { | |
| value: true | |
| }); | |
| var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | |
| function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } | |
| var _sourceMapSupport = require('source-map-support'); | |
| var _request = require('request'); | |
| (0, _sourceMapSupport.install)(); | |
| var baseUrl = 'http:...'; | |
| var Tube = (function () { | |
| function Tube(properties) { | |
| _classCallCheck(this, Tube); | |
| this.properties = properties; | |
| } | |
| _createClass(Tube, [{ | |
| key: 'search', | |
| value: function search(opts) { | |
| _request.request.get(baseUrl+opts, function (err, body, response) { | |
| console.log(err, bode, response); | |
| }); | |
| } | |
| }]); | |
| return Tube; | |
| })(); | |
| exports['default'] = Tube; | |
| module.exports = exports['default']; | |
| //# sourceMappingURL=app.js.map |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { install } from 'source-map-support'; | |
| import { request } from 'request'; | |
| install(); | |
| const baseUrl = 'http:....'; | |
| export default class Tube { | |
| constructor(properties) { | |
| this.properties = properties; | |
| } | |
| search(opts) { | |
| request.get(baseUrl+opts, (err, body, response) => { | |
| console.log(err, bode, response); | |
| }); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Tube = require('../dist/app'); | |
| var r = new Tube({}); | |
| console.log(r.search()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment