@terraeclipse/crs-cloudinary
Advanced tools
@@ -1,7 +0,11 @@ | ||
import _extends from 'babel-runtime/helpers/extends'; | ||
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; | ||
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; | ||
import _inherits from 'babel-runtime/helpers/inherits'; | ||
import _each from 'lodash/each'; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | ||
import React from 'react'; | ||
@@ -8,0 +12,0 @@ import PropTypes from 'prop-types'; |
@@ -6,18 +6,2 @@ 'use strict'; | ||
var _extends2 = require('babel-runtime/helpers/extends'); | ||
var _extends3 = _interopRequireDefault(_extends2); | ||
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); | ||
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); | ||
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn'); | ||
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2); | ||
var _inherits2 = require('babel-runtime/helpers/inherits'); | ||
var _inherits3 = _interopRequireDefault(_inherits2); | ||
var _each2 = require('lodash/each'); | ||
@@ -27,2 +11,4 @@ | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
exports.cloudinary = cloudinary; | ||
@@ -46,2 +32,8 @@ exports.cloudinaryUrl = cloudinaryUrl; | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } | ||
/** | ||
@@ -52,11 +44,12 @@ * Exposes the cloudinary API instance as a prop. | ||
var Cloudinary = function (_React$Component) { | ||
(0, _inherits3.default)(Cloudinary, _React$Component); | ||
_inherits(Cloudinary, _React$Component); | ||
function Cloudinary() { | ||
(0, _classCallCheck3.default)(this, Cloudinary); | ||
return (0, _possibleConstructorReturn3.default)(this, _React$Component.apply(this, arguments)); | ||
_classCallCheck(this, Cloudinary); | ||
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments)); | ||
} | ||
Cloudinary.prototype.render = function render() { | ||
return _react2.default.createElement(Component, (0, _extends3.default)({ cloudinary: this.context.cloudinary }, this.props)); | ||
return _react2.default.createElement(Component, _extends({ cloudinary: this.context.cloudinary }, this.props)); | ||
}; | ||
@@ -124,7 +117,8 @@ | ||
var CloudinaryProvider = exports.CloudinaryProvider = function (_React$Component2) { | ||
(0, _inherits3.default)(CloudinaryProvider, _React$Component2); | ||
_inherits(CloudinaryProvider, _React$Component2); | ||
function CloudinaryProvider() { | ||
(0, _classCallCheck3.default)(this, CloudinaryProvider); | ||
return (0, _possibleConstructorReturn3.default)(this, _React$Component2.apply(this, arguments)); | ||
_classCallCheck(this, CloudinaryProvider); | ||
return _possibleConstructorReturn(this, _React$Component2.apply(this, arguments)); | ||
} | ||
@@ -131,0 +125,0 @@ |
{ | ||
"name": "@terraeclipse/crs-cloudinary", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
12789
12.22%333
-0.6%