Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The *.js files in the root are ES6. We should aim for ES5! #3

Closed
NitashEU opened this issue Jun 21, 2017 · 1 comment
Closed

The *.js files in the root are ES6. We should aim for ES5! #3

NitashEU opened this issue Jun 21, 2017 · 1 comment
Assignees
Labels

Comments

@NitashEU
Copy link
Owner

For example:

export * from './dist/models/summoners';
export * from './dist/models/matchlists';
export * from './dist/models/leagues';
export * from './dist/models/matches';
export * from './dist/models/custom-response.model';
export * from './dist/models/custom-response-exception.model';

should be:

'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _summoners = require('./dist/models/summoners');

Object.keys(_summoners).forEach(function (key) {
  if (key === "default" || key === "__esModule") return;
  Object.defineProperty(exports, key, {
    enumerable: true,
    get: function get() {
      return _summoners[key];
    }
  });
});

var _matchlists = require('./dist/models/matchlists');

Object.keys(_matchlists).forEach(function (key) {
  if (key === "default" || key === "__esModule") return;
  Object.defineProperty(exports, key, {
    enumerable: true,
    get: function get() {
      return _matchlists[key];
    }
  });
});

var _leagues = require('./dist/models/leagues');

Object.keys(_leagues).forEach(function (key) {
  if (key === "default" || key === "__esModule") return;
  Object.defineProperty(exports, key, {
    enumerable: true,
    get: function get() {
      return _leagues[key];
    }
  });
});

var _matches = require('./dist/models/matches');

Object.keys(_matches).forEach(function (key) {
  if (key === "default" || key === "__esModule") return;
  Object.defineProperty(exports, key, {
    enumerable: true,
    get: function get() {
      return _matches[key];
    }
  });
});

var _customResponse = require('./dist/models/custom-response.model');

Object.keys(_customResponse).forEach(function (key) {
  if (key === "default" || key === "__esModule") return;
  Object.defineProperty(exports, key, {
    enumerable: true,
    get: function get() {
      return _customResponse[key];
    }
  });
});

var _customResponseException = require('./dist/models/custom-response-exception.model');

Object.keys(_customResponseException).forEach(function (key) {
  if (key === "default" || key === "__esModule") return;
  Object.defineProperty(exports, key, {
    enumerable: true,
    get: function get() {
      return _customResponseException[key];
    }
  });
});
@NitashEU
Copy link
Owner Author

Fixed with 09b8249

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant