Skip to content

Commit 674cb66

Browse files
committed
update exports
1 parent f9778e0 commit 674cb66

File tree

3 files changed

+27
-11
lines changed

3 files changed

+27
-11
lines changed

lib/index.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Object.defineProperty(exports, "__esModule", {
44
value: true
55
});
6+
exports.isPending = undefined;
67

78
var _LoadingSwitch = require('./LoadingSwitch');
89

@@ -18,12 +19,15 @@ Object.keys(_LoadingSwitch).forEach(function (key) {
1819

1920
var _utils = require('./utils');
2021

21-
Object.keys(_utils).forEach(function (key) {
22-
if (key === "default" || key === "__esModule") return;
23-
Object.defineProperty(exports, key, {
24-
enumerable: true,
25-
get: function () {
26-
return _utils[key];
27-
}
28-
});
29-
});
22+
Object.defineProperty(exports, 'isPending', {
23+
enumerable: true,
24+
get: function () {
25+
return _utils.isPending;
26+
}
27+
});
28+
29+
var _LoadingSwitch2 = _interopRequireDefault(_LoadingSwitch);
30+
31+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
32+
33+
exports.default = _LoadingSwitch2.default;

lib/index.js.flow

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1+
import LoadingSwitch, { type Props as _Props } from './LoadingSwitch'
2+
3+
export type Props = _Props
4+
5+
export default LoadingSwitch
6+
17
export * from './LoadingSwitch'
2-
export * from './utils'
8+
export { isPending } from './utils'

src/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1+
import LoadingSwitch, { type Props as _Props } from './LoadingSwitch'
2+
3+
export type Props = _Props
4+
5+
export default LoadingSwitch
6+
17
export * from './LoadingSwitch'
2-
export * from './utils'
8+
export { isPending } from './utils'

0 commit comments

Comments
 (0)