-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
52 lines (43 loc) · 2.04 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _exportNames = {
useService: true,
useAction: true
};
Object.defineProperty(exports, "default", {
enumerable: true,
get: function get() {
return _withService.default;
}
});
Object.defineProperty(exports, "useService", {
enumerable: true,
get: function get() {
return _useService.default;
}
});
Object.defineProperty(exports, "useAction", {
enumerable: true,
get: function get() {
return _useAction.default;
}
});
var _asService = require("@barteh/as-service");
var _withService = _interopRequireWildcard(require("./lib/with-service"));
Object.keys(_withService).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _withService[key];
}
});
});
var _useService = _interopRequireDefault(require("./lib/useService"));
var _useAction = _interopRequireDefault(require("./lib/useAction"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }