@micromag/data 0.2.393 → 0.2.394

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/index.js CHANGED
@@ -2,10 +2,10 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
3
  import React, { useContext, useMemo, useState, useCallback, useEffect, useRef } from 'react';
4
4
  import PropTypes from 'prop-types';
5
+ import _createClass from '@babel/runtime/helpers/createClass';
5
6
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
6
7
  import _inherits from '@babel/runtime/helpers/inherits';
7
8
  import _createSuper from '@babel/runtime/helpers/createSuper';
8
- import _createClass from '@babel/runtime/helpers/createClass';
9
9
  import { getJSON, getCSRFHeaders, postJSON } from '@folklore/fetch';
10
10
  import { generatePath } from 'react-router';
11
11
  import { stringify } from 'query-string';
@@ -287,7 +287,7 @@ var Api = /*#__PURE__*/function (_Base) {
287
287
  return _this;
288
288
  }
289
289
 
290
- return Api;
290
+ return _createClass(Api);
291
291
  }(Base);
292
292
 
293
293
  /* eslint-disable react/jsx-props-no-spreading */
@@ -311,7 +311,7 @@ var ApiProvider = function ApiProvider(_ref) {
311
311
  var previousApi = useApi();
312
312
  var api = useMemo(function () {
313
313
  return initialApi || previousApi || new Api({
314
- baseUrl: baseUrl // baseUrl: 'https://micromag.studio.homestead.flklr.ca/api',
314
+ baseUrl: baseUrl // baseUrl: 'https://micromag.studio.test/api',
315
315
 
316
316
  });
317
317
  }, [previousApi, initialApi, baseUrl]);
package/lib/index.js CHANGED
@@ -6,10 +6,10 @@ var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
6
6
  var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
7
7
  var React = require('react');
8
8
  var PropTypes = require('prop-types');
9
+ var _createClass = require('@babel/runtime/helpers/createClass');
9
10
  var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
10
11
  var _inherits = require('@babel/runtime/helpers/inherits');
11
12
  var _createSuper = require('@babel/runtime/helpers/createSuper');
12
- var _createClass = require('@babel/runtime/helpers/createClass');
13
13
  var fetch = require('@folklore/fetch');
14
14
  var reactRouter = require('react-router');
15
15
  var queryString = require('query-string');
@@ -22,10 +22,10 @@ var _objectSpread__default = /*#__PURE__*/_interopDefaultLegacy(_objectSpread);
22
22
  var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
23
23
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
24
24
  var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
25
+ var _createClass__default = /*#__PURE__*/_interopDefaultLegacy(_createClass);
25
26
  var _classCallCheck__default = /*#__PURE__*/_interopDefaultLegacy(_classCallCheck);
26
27
  var _inherits__default = /*#__PURE__*/_interopDefaultLegacy(_inherits);
27
28
  var _createSuper__default = /*#__PURE__*/_interopDefaultLegacy(_createSuper);
28
- var _createClass__default = /*#__PURE__*/_interopDefaultLegacy(_createClass);
29
29
  var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
30
30
  var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
31
31
 
@@ -304,7 +304,7 @@ var Api = /*#__PURE__*/function (_Base) {
304
304
  return _this;
305
305
  }
306
306
 
307
- return Api;
307
+ return _createClass__default["default"](Api);
308
308
  }(Base);
309
309
 
310
310
  /* eslint-disable react/jsx-props-no-spreading */
@@ -328,7 +328,7 @@ var ApiProvider = function ApiProvider(_ref) {
328
328
  var previousApi = useApi();
329
329
  var api = React.useMemo(function () {
330
330
  return initialApi || previousApi || new Api({
331
- baseUrl: baseUrl // baseUrl: 'https://micromag.studio.homestead.flklr.ca/api',
331
+ baseUrl: baseUrl // baseUrl: 'https://micromag.studio.test/api',
332
332
 
333
333
  });
334
334
  }, [previousApi, initialApi, baseUrl]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/data",
3
- "version": "0.2.393",
3
+ "version": "0.2.394",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "e6dadb5ed071e993803ba1f0837eca8385ea6cd4"
61
+ "gitHead": "2271b376d8df6c2463b1b48489a047eab05a0e8f"
62
62
  }