How to use the babel-runtime/core-js function in babel-runtime

To help you get started, we’ve selected a few babel-runtime examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wavesjs / waves-ui / zoomer.js View on Github external
"use strict";

var _babelHelpers = require("babel-runtime/helpers")["default"];
var _core = require("babel-runtime/core-js")["default"];
var _require = require("utils");

var uniqueId = _require.uniqueId;
var _require2 = require("events");

var EventEmitter = _require2.EventEmitter;
var Zoomer = (function (EventEmitter) {
  function Zoomer() {
    _babelHelpers.classCallCheck(this, Zoomer);

    _babelHelpers.get(_core.Object.getPrototypeOf(Zoomer.prototype), "constructor", this).call(this);
    // alias `emit` method
    this.trigger = this.emit;
  }

  _babelHelpers.inherits(Zoomer, EventEmitter);
github wavesjs / waves-ui / dist / helpers / zoomer.js View on Github external
"use strict";

var _classCallCheck = require("babel-runtime/helpers/class-call-check")["default"];

var _inherits = require("babel-runtime/helpers/inherits")["default"];

var _get = require("babel-runtime/helpers/get")["default"];

var _createClass = require("babel-runtime/helpers/create-class")["default"];

var _core = require("babel-runtime/core-js")["default"];

var _require = require("./utils");

var uniqueId = _require.uniqueId;

var _require2 = require("events");

var EventEmitter = _require2.EventEmitter;

var Zoomer = (function (_EventEmitter) {
  function Zoomer() {
    _classCallCheck(this, Zoomer);

    _get(_core.Object.getPrototypeOf(Zoomer.prototype), "constructor", this).call(this);
    // alias `emit` method
    this.trigger = this.emit;
github babel / babel / test / core / fixtures / transformation / runtime / es6-for-of / expected.js View on Github external
"use strict";

var _core = require("babel-runtime/core-js")["default"];

var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;

try {
  for (var _iterator = _core.getIterator(arr), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
    var i = _step.value;
  }
} catch (err) {
  _didIteratorError = true;
  _iteratorError = err;
} finally {
  try {
    if (!_iteratorNormalCompletion && _iterator["return"]) {
      _iterator["return"]();
github babel / babel / test / fixtures / transformation / runtime / es6-for-of / expected.js View on Github external
"use strict";

var _core = require("babel-runtime/core-js")["default"];

var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;

try {
  for (var _iterator = _core.$for.getIterator(arr), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
    var i = _step.value;
  }
} catch (err) {
  _didIteratorError = true;
  _iteratorError = err;
} finally {
  try {
    if (!_iteratorNormalCompletion && _iterator["return"]) {
      _iterator["return"]();
github cowboy / js-es6-es7-workflow-ideas / build / timeout.js View on Github external
"use strict";

var _core = require("babel-runtime/core-js")["default"];

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

function getMsAfterDelay(ms) {
  return new _core.Promise(function (resolve) {
    setTimeout(function () {
      resolve(ms);
    }, ms);
  });
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy90aW1lb3V0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7UUFBZ0IsZUFBZSxHQUFmLGVBQWU7Ozs7O0FBQXhCLFNBQVMsZUFBZSxDQUFDLEVBQUUsRUFBRTtBQUNsQyxTQUFPLFVBQUksT0FBTyxDQUFDLFVBQUEsT0FBTyxFQUFJO0FBQzVCLGNBQVUsQ0FBQyxZQUFNO0FBQ2YsYUFBTyxDQUFDLEVBQUUsQ0FBQyxDQUFDO0tBQ2IsRUFBRSxFQUFFLENBQUMsQ0FBQztHQUNSLENBQUMsQ0FBQztDQUNKIiwiZmlsZSI6InNyYy90aW1lb3V0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIGdldE1zQWZ0ZXJEZWxheShtcykge1xuICByZXR1cm4gbmV3IFByb21pc2UocmVzb2x2ZSA9PiB7XG4gICAgc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICByZXNvbHZlKG1zKTtcbiAgICB9LCBtcyk7XG4gIH0pO1xufVxuIl19
github wavesjs / waves-lfo / dist / core / lfo-base.js View on Github external
"use strict";

var _classCallCheck = require("babel-runtime/helpers/class-call-check")["default"];

var _createClass = require("babel-runtime/helpers/create-class")["default"];

var _core = require("babel-runtime/core-js")["default"];

var id = 0;

var Lfo = (function () {
  function Lfo() {
    var options = arguments[0] === undefined ? {} : arguments[0];
    var defaults = arguments[1] === undefined ? {} : arguments[1];

    _classCallCheck(this, Lfo);

    this.cid = id++;
    this.params = {};

    this.streamParams = {
      frameSize: 1,
      frameRate: 0,
github trekjs / route-mapper / lib / scoping.js View on Github external
"use strict";

var _babelHelpers = require("babel-runtime/helpers")["default"];

var _core = require("babel-runtime/core-js")["default"];

exports._namespace = _namespace;

var isFunction = _babelHelpers.interopRequire(require("lodash-node/modern/lang/isFunction"));

var isObject = _babelHelpers.interopRequire(require("lodash-node/modern/lang/isObject"));

var has = _babelHelpers.interopRequire(require("lodash-node/modern/object/has"));

var compact = _babelHelpers.interopRequire(require("lodash-node/modern/array/compact"));

var assign = _babelHelpers.interopRequire(require("lodash-node/modern/object/assign"));

var buildArgs = require("./utils").buildArgs;

var URL_OPTIONS = require("./const").URL_OPTIONS;
github wavesjs / waves-ui / breakpoint.js View on Github external
"use strict";

var _babelHelpers = require("babel-runtime/helpers")["default"];
var _core = require("babel-runtime/core-js")["default"];
var _require = require("utils");

var uniqueId = _require.uniqueId;
var accessors = _require.accessors;
var _require2 = require("layer");

var Layer = _require2.Layer;
var Breakpoint = (function (Layer) {
  function Breakpoint() {
    _babelHelpers.classCallCheck(this, Breakpoint);

    _babelHelpers.get(_core.Object.getPrototypeOf(Breakpoint.prototype), "constructor", this).call(this);

    var defaults = {
      type: "breakpoint",
      id: uniqueId(name),
github ethanresnick / json-api / build / src / adapters / Mongoose / MongooseAdapter.js View on Github external
"use strict";

var _classCallCheck = require("babel-runtime/helpers/class-call-check")["default"];

var _createClass = require("babel-runtime/helpers/create-class")["default"];

var _defineProperty = require("babel-runtime/helpers/define-property")["default"];

var _core = require("babel-runtime/core-js")["default"];

var _interopRequire = require("babel-runtime/helpers/interop-require")["default"];

var _interopRequireWildcard = require("babel-runtime/helpers/interop-require-wildcard")["default"];

var Q = _interopRequire(require("q"));

var mongoose = _interopRequire(require("mongoose"));

var _utilArrays = require("../../util/arrays");

var arrayContains = _utilArrays.arrayContains;
var arrayValuesMatch = _utilArrays.arrayValuesMatch;

var deleteNested = require("../../util/misc").deleteNested;
github trekjs / route-mapper / lib / mapper.js View on Github external
"use strict";

var _babelHelpers = require("babel-runtime/helpers")["default"];

var _core = require("babel-runtime/core-js")["default"];

var Base = _babelHelpers.interopRequire(require("./base"));

var HttpHelpers = _babelHelpers.interopRequire(require("./http_helpers"));

var Scoping = _babelHelpers.interopRequire(require("./scoping"));

var Concerns = _babelHelpers.interopRequire(require("./concerns"));

var Resources = _babelHelpers.interopRequire(require("./resources"));

var Scope = _babelHelpers.interopRequire(require("./scope"));

var Mapper = function Mapper(set) {
  _babelHelpers.classCallCheck(this, Mapper);