@juzi/wechaty-puppet-service 1.0.67 → 1.0.69
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/dist/cjs/src/client/puppet-service.d.ts +3 -11
- package/dist/cjs/src/client/puppet-service.d.ts.map +1 -1
- package/dist/cjs/src/client/puppet-service.js +24 -19
- package/dist/cjs/src/client/puppet-service.js.map +1 -1
- package/dist/cjs/src/package-json.d.ts.map +1 -1
- package/dist/cjs/src/package-json.js +3 -4
- package/dist/cjs/src/package-json.js.map +1 -1
- package/dist/cjs/src/server/event-stream-manager.d.ts.map +1 -1
- package/dist/cjs/src/server/event-stream-manager.js +7 -0
- package/dist/cjs/src/server/event-stream-manager.js.map +1 -1
- package/dist/cjs/src/server/puppet-implementation.d.ts.map +1 -1
- package/dist/cjs/src/server/puppet-implementation.js +36 -0
- package/dist/cjs/src/server/puppet-implementation.js.map +1 -1
- package/dist/esm/src/client/puppet-service.d.ts +3 -11
- package/dist/esm/src/client/puppet-service.d.ts.map +1 -1
- package/dist/esm/src/client/puppet-service.js +24 -21
- package/dist/esm/src/client/puppet-service.js.map +1 -1
- package/dist/esm/src/package-json.d.ts.map +1 -1
- package/dist/esm/src/package-json.js +3 -4
- package/dist/esm/src/package-json.js.map +1 -1
- package/dist/esm/src/server/event-stream-manager.d.ts.map +1 -1
- package/dist/esm/src/server/event-stream-manager.js +7 -0
- package/dist/esm/src/server/event-stream-manager.js.map +1 -1
- package/dist/esm/src/server/puppet-implementation.d.ts.map +1 -1
- package/dist/esm/src/server/puppet-implementation.js +36 -0
- package/dist/esm/src/server/puppet-implementation.js.map +1 -1
- package/package.json +3 -4
- package/src/client/puppet-service.ts +40 -35
- package/src/package-json.ts +3 -4
- package/src/server/event-stream-manager.ts +7 -0
- package/src/server/puppet-implementation.ts +47 -0
- package/dist/cjs/src/client/duck/actions.d.ts +0 -6
- package/dist/cjs/src/client/duck/actions.d.ts.map +0 -1
- package/dist/cjs/src/client/duck/actions.js +0 -54
- package/dist/cjs/src/client/duck/actions.js.map +0 -1
- package/dist/cjs/src/client/duck/epic-recover.d.ts +0 -36
- package/dist/cjs/src/client/duck/epic-recover.d.ts.map +0 -1
- package/dist/cjs/src/client/duck/epic-recover.js +0 -41
- package/dist/cjs/src/client/duck/epic-recover.js.map +0 -1
- package/dist/cjs/src/client/duck/epic-recover.spec.d.ts +0 -3
- package/dist/cjs/src/client/duck/epic-recover.spec.d.ts.map +0 -1
- package/dist/cjs/src/client/duck/epic-recover.spec.js +0 -131
- package/dist/cjs/src/client/duck/epic-recover.spec.js.map +0 -1
- package/dist/cjs/src/client/duck/epics.d.ts +0 -4
- package/dist/cjs/src/client/duck/epics.d.ts.map +0 -1
- package/dist/cjs/src/client/duck/epics.js +0 -36
- package/dist/cjs/src/client/duck/epics.js.map +0 -1
- package/dist/cjs/src/client/duck/mod.d.ts +0 -29
- package/dist/cjs/src/client/duck/mod.d.ts.map +0 -1
- package/dist/cjs/src/client/duck/mod.js +0 -63
- package/dist/cjs/src/client/duck/mod.js.map +0 -1
- package/dist/cjs/src/client/duck/operations.d.ts +0 -23
- package/dist/cjs/src/client/duck/operations.d.ts.map +0 -1
- package/dist/cjs/src/client/duck/operations.js +0 -30
- package/dist/cjs/src/client/duck/operations.js.map +0 -1
- package/dist/cjs/src/client/duck/reducers.d.ts +0 -59
- package/dist/cjs/src/client/duck/reducers.d.ts.map +0 -1
- package/dist/cjs/src/client/duck/reducers.js +0 -51
- package/dist/cjs/src/client/duck/reducers.js.map +0 -1
- package/dist/cjs/src/client/duck/selectors.d.ts +0 -21
- package/dist/cjs/src/client/duck/selectors.d.ts.map +0 -1
- package/dist/cjs/src/client/duck/selectors.js +0 -23
- package/dist/cjs/src/client/duck/selectors.js.map +0 -1
- package/dist/cjs/src/client/duck/tests.spec.d.ts +0 -3
- package/dist/cjs/src/client/duck/tests.spec.d.ts.map +0 -1
- package/dist/cjs/src/client/duck/tests.spec.js +0 -49
- package/dist/cjs/src/client/duck/tests.spec.js.map +0 -1
- package/dist/cjs/src/client/duck/types.d.ts +0 -21
- package/dist/cjs/src/client/duck/types.d.ts.map +0 -1
- package/dist/cjs/src/client/duck/types.js +0 -24
- package/dist/cjs/src/client/duck/types.js.map +0 -1
- package/dist/cjs/src/client/duck/utils.d.ts +0 -21
- package/dist/cjs/src/client/duck/utils.d.ts.map +0 -1
- package/dist/cjs/src/client/duck/utils.js +0 -3
- package/dist/cjs/src/client/duck/utils.js.map +0 -1
- package/dist/esm/src/client/duck/actions.d.ts +0 -6
- package/dist/esm/src/client/duck/actions.d.ts.map +0 -1
- package/dist/esm/src/client/duck/actions.js +0 -28
- package/dist/esm/src/client/duck/actions.js.map +0 -1
- package/dist/esm/src/client/duck/epic-recover.d.ts +0 -36
- package/dist/esm/src/client/duck/epic-recover.d.ts.map +0 -1
- package/dist/esm/src/client/duck/epic-recover.js +0 -36
- package/dist/esm/src/client/duck/epic-recover.js.map +0 -1
- package/dist/esm/src/client/duck/epic-recover.spec.d.ts +0 -3
- package/dist/esm/src/client/duck/epic-recover.spec.d.ts.map +0 -1
- package/dist/esm/src/client/duck/epic-recover.spec.js +0 -126
- package/dist/esm/src/client/duck/epic-recover.spec.js.map +0 -1
- package/dist/esm/src/client/duck/epics.d.ts +0 -4
- package/dist/esm/src/client/duck/epics.d.ts.map +0 -1
- package/dist/esm/src/client/duck/epics.js +0 -33
- package/dist/esm/src/client/duck/epics.js.map +0 -1
- package/dist/esm/src/client/duck/mod.d.ts +0 -29
- package/dist/esm/src/client/duck/mod.d.ts.map +0 -1
- package/dist/esm/src/client/duck/mod.js +0 -29
- package/dist/esm/src/client/duck/mod.js.map +0 -1
- package/dist/esm/src/client/duck/operations.d.ts +0 -23
- package/dist/esm/src/client/duck/operations.d.ts.map +0 -1
- package/dist/esm/src/client/duck/operations.js +0 -4
- package/dist/esm/src/client/duck/operations.js.map +0 -1
- package/dist/esm/src/client/duck/reducers.d.ts +0 -59
- package/dist/esm/src/client/duck/reducers.d.ts.map +0 -1
- package/dist/esm/src/client/duck/reducers.js +0 -26
- package/dist/esm/src/client/duck/reducers.js.map +0 -1
- package/dist/esm/src/client/duck/selectors.d.ts +0 -21
- package/dist/esm/src/client/duck/selectors.d.ts.map +0 -1
- package/dist/esm/src/client/duck/selectors.js +0 -22
- package/dist/esm/src/client/duck/selectors.js.map +0 -1
- package/dist/esm/src/client/duck/tests.spec.d.ts +0 -3
- package/dist/esm/src/client/duck/tests.spec.d.ts.map +0 -1
- package/dist/esm/src/client/duck/tests.spec.js +0 -24
- package/dist/esm/src/client/duck/tests.spec.js.map +0 -1
- package/dist/esm/src/client/duck/types.d.ts +0 -21
- package/dist/esm/src/client/duck/types.d.ts.map +0 -1
- package/dist/esm/src/client/duck/types.js +0 -21
- package/dist/esm/src/client/duck/types.js.map +0 -1
- package/dist/esm/src/client/duck/utils.d.ts +0 -21
- package/dist/esm/src/client/duck/utils.d.ts.map +0 -1
- package/dist/esm/src/client/duck/utils.js +0 -2
- package/dist/esm/src/client/duck/utils.js.map +0 -1
- package/src/client/duck/actions.ts +0 -31
- package/src/client/duck/epic-recover.spec.ts +0 -180
- package/src/client/duck/epic-recover.ts +0 -109
- package/src/client/duck/epics.ts +0 -53
- package/src/client/duck/mod.ts +0 -38
- package/src/client/duck/operations.ts +0 -28
- package/src/client/duck/reducers.ts +0 -36
- package/src/client/duck/selectors.ts +0 -27
- package/src/client/duck/tests.spec.ts +0 -25
- package/src/client/duck/types.ts +0 -20
- package/src/client/duck/utils.ts +0 -20
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wechaty Open Source Software - https://github.com/wechaty
|
|
3
|
-
*
|
|
4
|
-
* @copyright 2016 Huan LI (李卓桓) <https://github.com/huan>, and
|
|
5
|
-
* Wechaty Contributors <https://github.com/wechaty>.
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
-
* you may not use this file except in compliance with the License.
|
|
9
|
-
* You may obtain a copy of the License at
|
|
10
|
-
*
|
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
* See the License for the specific language governing permissions and
|
|
17
|
-
* limitations under the License.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../../../../src/client/duck/selectors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAOH,OAAO,EACN,CAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Wechaty Open Source Software - https://github.com/wechaty
|
|
4
|
-
*
|
|
5
|
-
* @copyright 2016 Huan LI (李卓桓) <https://github.com/huan>, and
|
|
6
|
-
* Wechaty Contributors <https://github.com/wechaty>.
|
|
7
|
-
*
|
|
8
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
-
* you may not use this file except in compliance with the License.
|
|
10
|
-
* You may obtain a copy of the License at
|
|
11
|
-
*
|
|
12
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
-
*
|
|
14
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
-
* See the License for the specific language governing permissions and
|
|
18
|
-
* limitations under the License.
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
// import type { State } from './reducers.js'
|
|
22
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
//# sourceMappingURL=selectors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selectors.js","sourceRoot":"","sources":["../../../../../src/client/duck/selectors.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,6CAA6C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tests.spec.d.ts","sourceRoot":"","sources":["../../../../../src/client/duck/tests.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env -S node --no-warnings --loader ts-node/esm
|
|
2
|
-
"use strict";
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
-
if (mod && mod.__esModule) return mod;
|
|
21
|
-
var result = {};
|
|
22
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
-
__setModuleDefault(result, mod);
|
|
24
|
-
return result;
|
|
25
|
-
};
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
/**
|
|
28
|
-
* Wechaty Open Source Software - https://github.com/wechaty
|
|
29
|
-
*
|
|
30
|
-
* @copyright 2016 Huan LI (李卓桓) <https://github.com/huan>, and
|
|
31
|
-
* Wechaty Contributors <https://github.com/wechaty>.
|
|
32
|
-
*
|
|
33
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
34
|
-
* you may not use this file except in compliance with the License.
|
|
35
|
-
* You may obtain a copy of the License at
|
|
36
|
-
*
|
|
37
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
38
|
-
*
|
|
39
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
40
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
41
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
42
|
-
* See the License for the specific language governing permissions and
|
|
43
|
-
* limitations under the License.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
const ducks_1 = require("ducks");
|
|
47
|
-
const Duck = __importStar(require("./mod.js"));
|
|
48
|
-
(0, ducks_1.validateDuck)(Duck);
|
|
49
|
-
//# sourceMappingURL=tests.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tests.spec.js","sourceRoot":"","sources":["../../../../../src/client/duck/tests.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;;;;;;;;;;;;;;;;;GAkBG;AACH,iCAAoC;AAEpC,+CAAgC;AAEhC,IAAA,oBAAY,EAAC,IAAI,CAAC,CAAA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wechaty Open Source Software - https://github.com/wechaty
|
|
3
|
-
*
|
|
4
|
-
* @copyright 2016 Huan LI (李卓桓) <https://github.com/huan>, and
|
|
5
|
-
* Wechaty Contributors <https://github.com/wechaty>.
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
-
* you may not use this file except in compliance with the License.
|
|
9
|
-
* You may obtain a copy of the License at
|
|
10
|
-
*
|
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
* See the License for the specific language governing permissions and
|
|
17
|
-
* limitations under the License.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
export declare const NOP = "wechaty-puppet-service/NOP";
|
|
21
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/client/duck/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,GAAG,+BAA+B,CAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NOP = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Wechaty Open Source Software - https://github.com/wechaty
|
|
6
|
-
*
|
|
7
|
-
* @copyright 2016 Huan LI (李卓桓) <https://github.com/huan>, and
|
|
8
|
-
* Wechaty Contributors <https://github.com/wechaty>.
|
|
9
|
-
*
|
|
10
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
-
* you may not use this file except in compliance with the License.
|
|
12
|
-
* You may obtain a copy of the License at
|
|
13
|
-
*
|
|
14
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
-
*
|
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
* See the License for the specific language governing permissions and
|
|
20
|
-
* limitations under the License.
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
exports.NOP = 'wechaty-puppet-service/NOP';
|
|
24
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/client/duck/types.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACU,QAAA,GAAG,GAAG,4BAA4B,CAAA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wechaty Open Source Software - https://github.com/wechaty
|
|
3
|
-
*
|
|
4
|
-
* @copyright 2016 Huan LI (李卓桓) <https://github.com/huan>, and
|
|
5
|
-
* Wechaty Contributors <https://github.com/wechaty>.
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
-
* you may not use this file except in compliance with the License.
|
|
9
|
-
* You may obtain a copy of the License at
|
|
10
|
-
*
|
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
* See the License for the specific language governing permissions and
|
|
17
|
-
* limitations under the License.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/client/duck/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/client/duck/utils.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../src/client/duck/actions.ts"],"names":[],"mappings":"AA0BA;;;GAGG;AACH,eAAO,MAAM,GAAG,6EAA4B,CAAA"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wechaty Open Source Software - https://github.com/wechaty
|
|
3
|
-
*
|
|
4
|
-
* @copyright 2016 Huan LI (李卓桓) <https://github.com/huan>, and
|
|
5
|
-
* Wechaty Contributors <https://github.com/wechaty>.
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
-
* you may not use this file except in compliance with the License.
|
|
9
|
-
* You may obtain a copy of the License at
|
|
10
|
-
*
|
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
* See the License for the specific language governing permissions and
|
|
17
|
-
* limitations under the License.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
/* eslint-disable sort-keys */
|
|
21
|
-
import { createAction, } from 'typesafe-actions';
|
|
22
|
-
import * as types from './types.js';
|
|
23
|
-
/**
|
|
24
|
-
* Bug compatible & workaround for Ducks API
|
|
25
|
-
* https://github.com/huan/ducks/issues/2
|
|
26
|
-
*/
|
|
27
|
-
export const nop = createAction(types.NOP)();
|
|
28
|
-
//# sourceMappingURL=actions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../../../src/client/duck/actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,8BAA8B;AAC9B,OAAO,EACL,YAAY,GACb,MAAwB,kBAAkB,CAAA;AAE3C,OAAO,KAAK,KAAK,MAAQ,YAAY,CAAA;AAErC;;;GAGG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAA"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wechaty Open Source Software - https://github.com/wechaty
|
|
3
|
-
*
|
|
4
|
-
* @copyright 2016 Huan LI (李卓桓) <https://github.com/huan>, and
|
|
5
|
-
* Wechaty Contributors <https://github.com/wechaty>.
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
-
* you may not use this file except in compliance with the License.
|
|
9
|
-
* You may obtain a copy of the License at
|
|
10
|
-
*
|
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
* See the License for the specific language governing permissions and
|
|
17
|
-
* limitations under the License.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
import { Observable } from 'rxjs';
|
|
21
|
-
import type { AnyAction } from 'redux';
|
|
22
|
-
declare const monitorHeartbeat$: (timeoutMilliseconds: number) => (action$: Observable<AnyAction>) => Observable<import("typesafe-actions").PayloadMetaAction<"wechaty-redux/ERROR_RECEIVED_EVENT", import("@juzi/wechaty-puppet/payloads").EventError, {
|
|
23
|
-
puppetId: string;
|
|
24
|
-
}>>;
|
|
25
|
-
declare const epicRecoverDing$: (timeoutMilliseconds: number) => (action$: Observable<AnyAction>) => Observable<import("typesafe-actions").PayloadMetaAction<"wechaty-redux/DING_COMMAND", {
|
|
26
|
-
data: string | undefined;
|
|
27
|
-
}, {
|
|
28
|
-
puppetId: string;
|
|
29
|
-
}>>;
|
|
30
|
-
declare const epicRecoverReset$: (timeoutMilliseconds: number) => (action$: Observable<AnyAction>) => Observable<import("typesafe-actions").PayloadMetaAction<"wechaty-redux/RESET_COMMAND", {
|
|
31
|
-
data: string | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
puppetId: string;
|
|
34
|
-
}>>;
|
|
35
|
-
export { monitorHeartbeat$, epicRecoverReset$, epicRecoverDing$, };
|
|
36
|
-
//# sourceMappingURL=epic-recover.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"epic-recover.d.ts","sourceRoot":"","sources":["../../../../../src/client/duck/epic-recover.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EACL,UAAU,EAGX,MAA4B,MAAM,CAAA;AAYnC,OAAO,KAAK,EAEV,SAAS,EACV,MAA4B,OAAO,CAAA;AAuBpC,QAAA,MAAM,iBAAiB,wBAAyB,MAAM,eAC1C,WAAW,SAAS,CAAC;;GAY5B,CAAA;AAEL,QAAA,MAAM,gBAAgB,wBAAyB,MAAM,eACzC,WAAW,SAAS,CAAC;;;;GAW5B,CAAA;AAEL,QAAA,MAAM,iBAAiB,wBAAyB,MAAM,eAC1C,WAAW,SAAS,CAAC;;;;GAW5B,CAAA;AAEL,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,GACjB,CAAA"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wechaty Open Source Software - https://github.com/wechaty
|
|
3
|
-
*
|
|
4
|
-
* @copyright 2016 Huan LI (李卓桓) <https://github.com/huan>, and
|
|
5
|
-
* Wechaty Contributors <https://github.com/wechaty>.
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
-
* you may not use this file except in compliance with the License.
|
|
9
|
-
* You may obtain a copy of the License at
|
|
10
|
-
*
|
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
* See the License for the specific language governing permissions and
|
|
17
|
-
* limitations under the License.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
import { interval, timer, } from 'rxjs';
|
|
21
|
-
import { debounce, filter, map, switchMap, takeUntil, tap, } from 'rxjs/operators';
|
|
22
|
-
import { isActionOf, } from 'typesafe-actions';
|
|
23
|
-
import { Duck as PuppetDuck, } from '@juzi/wechaty-redux';
|
|
24
|
-
import { log } from '@juzi/wechaty-puppet';
|
|
25
|
-
const stateActive$ = (action$) => action$.pipe(filter(isActionOf(PuppetDuck.actions.STATE_ACTIVATED_EVENT)), filter(action => action.payload.state === true));
|
|
26
|
-
const stateInactive$ = (action$) => action$.pipe(filter(isActionOf(PuppetDuck.actions.STATE_INACTIVATED_EVENT)));
|
|
27
|
-
const heartbeat$ = (action$) => action$.pipe(filter(isActionOf([
|
|
28
|
-
PuppetDuck.actions.HEARTBEAT_RECEIVED_EVENT,
|
|
29
|
-
PuppetDuck.actions.DONG_RECEIVED_EVENT,
|
|
30
|
-
])));
|
|
31
|
-
// Emit once when an active puppet lost heartbeat after a timeout period
|
|
32
|
-
const monitorHeartbeat$ = (timeoutMilliseconds) => (action$) => stateActive$(action$).pipe(switchMap(action => heartbeat$(action$).pipe(debounce(() => interval(timeoutMilliseconds)), tap(() => log.verbose('PuppetService', 'monitorHeartbeat$() %d seconds TIMEOUT', Math.floor(timeoutMilliseconds / 1000))), map(() => PuppetDuck.actions.ERROR_RECEIVED_EVENT(action.meta.puppetId, { gerror: `monitorHeartbeat$() TIMEOUT(${timeoutMilliseconds})` })))));
|
|
33
|
-
const epicRecoverDing$ = (timeoutMilliseconds) => (action$) => monitorHeartbeat$(timeoutMilliseconds)(action$).pipe(switchMap(action => timer(0, Math.floor(timeoutMilliseconds)).pipe(tap(n => log.verbose('PuppetService', 'epicRecoverDing$() actions.ding() emitted #%d', n)), map(() => PuppetDuck.actions.DING_COMMAND(action.meta.puppetId, 'epicRecoverDing$')), takeUntil(heartbeat$(action$)), takeUntil(stateInactive$(action$)))));
|
|
34
|
-
const epicRecoverReset$ = (timeoutMilliseconds) => (action$) => monitorHeartbeat$(timeoutMilliseconds)(action$).pipe(switchMap(action => timer(0, timeoutMilliseconds * 2).pipe(tap(n => log.verbose('PuppetService', 'epicRecoverReset$() actions.reset() emitted #%d', n)), map(() => PuppetDuck.actions.RESET_COMMAND(action.meta.puppetId, 'epicRecoverReset$')), takeUntil(heartbeat$(action$)), takeUntil(stateInactive$(action$)))));
|
|
35
|
-
export { monitorHeartbeat$, epicRecoverReset$, epicRecoverDing$, };
|
|
36
|
-
//# sourceMappingURL=epic-recover.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"epic-recover.js","sourceRoot":"","sources":["../../../../../src/client/duck/epic-recover.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAEL,QAAQ,EACR,KAAK,GACN,MAA4B,MAAM,CAAA;AACnC,OAAO,EACL,QAAQ,EACR,MAAM,EACN,GAAG,EACH,SAAS,EACT,SAAS,EACT,GAAG,GACJ,MAA4B,gBAAgB,CAAA;AAC7C,OAAO,EACL,UAAU,GACX,MAA4B,kBAAkB,CAAA;AAK/C,OAAO,EACL,IAAI,IAAI,UAAU,GACnB,MAA4B,qBAAqB,CAAA;AAClD,OAAO,EAAE,GAAG,EAAE,MAAe,sBAAsB,CAAA;AAEnD,MAAM,YAAY,GAAG,CAAC,OAA8B,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CACnE,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,EAC5D,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,KAAK,IAAI,CAAC,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@@ -1,126 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env -S node --no-warnings --loader ts-node/esm
|
|
2
|
-
/* eslint-disable func-call-spacing */
|
|
3
|
-
import { test } from 'tstest';
|
|
4
|
-
import { TestScheduler, } from 'rxjs/testing';
|
|
5
|
-
import { throttleTime, } from 'rxjs/operators';
|
|
6
|
-
import PuppetMock from '@juzi/wechaty-puppet-mock';
|
|
7
|
-
import { Duck as PuppetDuck, } from '@juzi/wechaty-redux';
|
|
8
|
-
import { epicRecoverReset$, epicRecoverDing$, monitorHeartbeat$, } from './epic-recover.js';
|
|
9
|
-
/**
|
|
10
|
-
* RxJS Marble Testing
|
|
11
|
-
*
|
|
12
|
-
* - https://rxjs.dev/guide/testing/marble-testing
|
|
13
|
-
* - https://github.com/ReactiveX/rxjs/blob/master/docs_app/content/guide/testing/marble-testing.md
|
|
14
|
-
*
|
|
15
|
-
*/
|
|
16
|
-
test('Example: marble testing', async (t) => {
|
|
17
|
-
const testScheduler = new TestScheduler(t.same);
|
|
18
|
-
testScheduler.run(helpers => {
|
|
19
|
-
const { cold, time, expectObservable, expectSubscriptions } = helpers;
|
|
20
|
-
const e1 = cold('-a--b--c---|');
|
|
21
|
-
const e1subs = ' ^----------!';
|
|
22
|
-
const t = time('---| '); // t = 3
|
|
23
|
-
const expected = ' -a-----c---|';
|
|
24
|
-
expectObservable(e1.pipe(throttleTime(t))).toBe(expected);
|
|
25
|
-
expectSubscriptions(e1.subscriptions).toBe(e1subs);
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
test('Example 2: marble subscribe time frame testing', async (t) => {
|
|
29
|
-
const testScheduler = new TestScheduler(t.same);
|
|
30
|
-
testScheduler.run(helpers => {
|
|
31
|
-
const { hot, expectObservable, expectSubscriptions } = helpers;
|
|
32
|
-
const source = hot(' --a--b--c--d--e--f');
|
|
33
|
-
const subscription = '-----^------!-';
|
|
34
|
-
const expected = ' -----b--c--d--';
|
|
35
|
-
expectObservable(source, subscription).toBe(expected);
|
|
36
|
-
void expectSubscriptions;
|
|
37
|
-
// expectSubscriptions(source.subscriptions).toBe(subscription)
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
test('Example 3: subscribe with unsubscribe / complete', async (t) => {
|
|
41
|
-
const testScheduler = new TestScheduler(t.same);
|
|
42
|
-
testScheduler.run(({ hot, expectObservable }) => {
|
|
43
|
-
const values = {
|
|
44
|
-
a: 0,
|
|
45
|
-
b: 1,
|
|
46
|
-
c: 2,
|
|
47
|
-
};
|
|
48
|
-
const source = hot(' 10ms a 9ms b 9ms c-|', values);
|
|
49
|
-
const subscription1 = ' 20ms ^ 9ms -!-';
|
|
50
|
-
const subscription2 = ' 30ms ^--';
|
|
51
|
-
const expected1 = ' 20ms b 9ms c--';
|
|
52
|
-
const expected2 = ' 30ms c-|';
|
|
53
|
-
expectObservable(source, subscription1).toBe(expected1, values);
|
|
54
|
-
expectObservable(source, subscription2).toBe(expected2, values);
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
test('Example 4: play ground', async (t) => {
|
|
58
|
-
const testScheduler = new TestScheduler(t.same);
|
|
59
|
-
testScheduler.run(helpers => {
|
|
60
|
-
const { hot, cold, expectObservable } = helpers;
|
|
61
|
-
void hot;
|
|
62
|
-
void cold;
|
|
63
|
-
const TIMEOUT = 15;
|
|
64
|
-
const source = hot(`-----a-----h------h ${TIMEOUT}ms --`);
|
|
65
|
-
const sub = ` ------^-------!---- ${TIMEOUT}ms --`;
|
|
66
|
-
const expected = ` -----------h------- ${TIMEOUT}ms --`;
|
|
67
|
-
expectObservable(source, sub).toBe(expected);
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
test('monitorHeartbeat$() emit once after lost heartbeat', async (t) => {
|
|
71
|
-
const testScheduler = new TestScheduler(t.same);
|
|
72
|
-
const puppet = new PuppetMock();
|
|
73
|
-
const TIMEOUT = 15;
|
|
74
|
-
testScheduler.run(helpers => {
|
|
75
|
-
const { hot, expectObservable, expectSubscriptions } = helpers;
|
|
76
|
-
const marble = {
|
|
77
|
-
a: PuppetDuck.actions.STATE_ACTIVATED_EVENT(puppet.id, true),
|
|
78
|
-
d: PuppetDuck.actions.DONG_RECEIVED_EVENT(puppet.id, { data: 'dong' }),
|
|
79
|
-
e: PuppetDuck.actions.ERROR_RECEIVED_EVENT(puppet.id, { gerror: `monitorHeartbeat$() TIMEOUT(${TIMEOUT})` }),
|
|
80
|
-
h: PuppetDuck.actions.HEARTBEAT_RECEIVED_EVENT(puppet.id, { data: 'heartbeat' }),
|
|
81
|
-
};
|
|
82
|
-
const puppet$ = hot(` -a----h----h ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT - 1}ms h ${TIMEOUT}ms ${TIMEOUT - 1}ms d ${TIMEOUT}ms ------`, marble);
|
|
83
|
-
const subscription = `^----------- ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT}ms -----!`;
|
|
84
|
-
const expected = ` ------------ ${TIMEOUT - 1}ms e ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT - 1}ms e ${TIMEOUT}ms ${TIMEOUT - 1}ms e ------`;
|
|
85
|
-
expectObservable(monitorHeartbeat$(TIMEOUT)(puppet$), subscription).toBe(expected, marble);
|
|
86
|
-
void expectSubscriptions;
|
|
87
|
-
// expectSubscriptions(puppet$.subscriptions).toBe(sub)
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
test('epicRecoverDing$() emit periodly', async (t) => {
|
|
91
|
-
const testScheduler = new TestScheduler(t.same);
|
|
92
|
-
const puppet = new PuppetMock();
|
|
93
|
-
const TIMEOUT = 15;
|
|
94
|
-
testScheduler.run(helpers => {
|
|
95
|
-
const { hot, expectObservable } = helpers;
|
|
96
|
-
const marble = {
|
|
97
|
-
a: PuppetDuck.actions.STATE_ACTIVATED_EVENT(puppet.id, true),
|
|
98
|
-
d: PuppetDuck.actions.DONG_RECEIVED_EVENT(puppet.id, { data: 'dong' }),
|
|
99
|
-
h: PuppetDuck.actions.HEARTBEAT_RECEIVED_EVENT(puppet.id, { data: 'heartbeat' }),
|
|
100
|
-
i: PuppetDuck.actions.DING_COMMAND(puppet.id, 'epicRecoverDing$'),
|
|
101
|
-
};
|
|
102
|
-
const puppet$ = hot(` -a----h----h ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT - 1}ms h ${TIMEOUT - 1}ms h ${TIMEOUT - 1}ms d ${TIMEOUT - 1}ms d ------`, marble);
|
|
103
|
-
const subscription = `^----------- ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT}ms -----!`;
|
|
104
|
-
const expected = ` ------------ ${TIMEOUT - 1}ms i ${TIMEOUT - 1}ms i ${TIMEOUT - 1}ms i ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT}ms ------`;
|
|
105
|
-
expectObservable(epicRecoverDing$(TIMEOUT)(puppet$), subscription).toBe(expected, marble);
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
test('epicRecoverReset$() emit periodly', async (t) => {
|
|
109
|
-
const testScheduler = new TestScheduler(t.same);
|
|
110
|
-
const puppet = new PuppetMock();
|
|
111
|
-
const TIMEOUT = 60;
|
|
112
|
-
testScheduler.run(helpers => {
|
|
113
|
-
const { hot, expectObservable } = helpers;
|
|
114
|
-
const marble = {
|
|
115
|
-
a: PuppetDuck.actions.STATE_ACTIVATED_EVENT(puppet.id, true),
|
|
116
|
-
d: PuppetDuck.actions.DONG_RECEIVED_EVENT(puppet.id, { data: 'dong' }),
|
|
117
|
-
h: PuppetDuck.actions.HEARTBEAT_RECEIVED_EVENT(puppet.id, { data: 'heartbeat' }),
|
|
118
|
-
r: PuppetDuck.actions.RESET_COMMAND(puppet.id, 'epicRecoverReset$'),
|
|
119
|
-
};
|
|
120
|
-
const puppet$ = hot(` -a----h----h ${TIMEOUT}ms ${TIMEOUT * 2}ms ${TIMEOUT * 2}ms ${TIMEOUT * 2 - 1}ms h ${TIMEOUT - 1}ms h ${TIMEOUT - 1}ms d ${TIMEOUT - 1}ms d ------`, marble);
|
|
121
|
-
const subscription = `^----------- ${TIMEOUT}ms ${TIMEOUT * 2}ms ${TIMEOUT * 2}ms ${TIMEOUT * 2}ms ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT}ms -----!`;
|
|
122
|
-
const expected = ` ------------ ${TIMEOUT - 1}ms r ${TIMEOUT * 2 - 1}ms r ${TIMEOUT * 2 - 1}ms r ${TIMEOUT * 2}ms ${TIMEOUT}ms ${TIMEOUT}ms ${TIMEOUT}ms ------`;
|
|
123
|
-
expectObservable(epicRecoverReset$(TIMEOUT)(puppet$), subscription).toBe(expected, marble);
|
|
124
|
-
});
|
|
125
|
-
});
|
|
126
|
-
//# sourceMappingURL=epic-recover.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"epic-recover.spec.js","sourceRoot":"","sources":["../../../../../src/client/duck/epic-recover.spec.ts"],"names":[],"mappings":";AACA,sCAAsC;AAEtC,OAAO,EAAE,IAAI,EAAE,MAAO,QAAQ,CAAA;AAE9B,OAAO,EACL,aAAa,GACd,MAA0B,cAAc,CAAA;AACzC,OAAO,EACL,YAAY,GACb,MAA0B,gBAAgB,CAAA;AAC3C,OAAO,UAAU,MAAU,2BAA2B,CAAA;AAEtD,OAAO,EACL,IAAI,IAAI,UAAU,GACnB,MAA0B,qBAAqB,CAAA;AAEhD,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,GAClB,MAA0B,mBAAmB,CAAA;AAE9C;;;;;;GAMG;AACH,IAAI,CAAC,yBAAyB,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IACxC,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC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AED,OAAO,EACL,WAAW,GACZ,CAAA"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wechaty Open Source Software - https://github.com/wechaty
|
|
3
|
-
*
|
|
4
|
-
* @copyright 2016 Huan LI (李卓桓) <https://github.com/huan>, and
|
|
5
|
-
* Wechaty Contributors <https://github.com/wechaty>.
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
-
* you may not use this file except in compliance with the License.
|
|
9
|
-
* You may obtain a copy of the License at
|
|
10
|
-
*
|
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
* See the License for the specific language governing permissions and
|
|
17
|
-
* limitations under the License.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
import { merge, } from 'rxjs';
|
|
21
|
-
import { epicRecoverDing$, epicRecoverReset$, } from './epic-recover.js';
|
|
22
|
-
/**
|
|
23
|
-
* The GRPC keepalive timeout is 20 seconds
|
|
24
|
-
* So we use 15 seconds to save the GRPC keepalive cost
|
|
25
|
-
*
|
|
26
|
-
* https://github.com/grpc/grpc/blob/master/doc/keepalive.md
|
|
27
|
-
* GRPC_ARG_KEEPALIVE_TIMEOUT_MS 20000 (20 seconds) 20000 (20 seconds)
|
|
28
|
-
*/
|
|
29
|
-
const TIMEOUT_SOFT = 15 * 1000;
|
|
30
|
-
const TIMEOUT_HARD = Math.floor(4.5 * TIMEOUT_SOFT);
|
|
31
|
-
const recoverEpic = (action$) => merge(epicRecoverDing$(TIMEOUT_SOFT)(action$), epicRecoverReset$(TIMEOUT_HARD)(action$));
|
|
32
|
-
export { recoverEpic, };
|
|
33
|
-
//# sourceMappingURL=epics.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"epics.js","sourceRoot":"","sources":["../../../../../src/client/duck/epics.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAEL,KAAK,GACN,MAAoB,MAAM,CAAA;AAQ3B,OAAO,EACL,gBAAgB,EAChB,iBAAiB,GAClB,MAAkC,mBAAmB,CAAA;AAEtD;;;;;;GAMG;AACH,MAAM,YAAY,GAAG,EAAE,GAAG,IAAI,CAAA;AAC9B,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,YAAY,CAAC,CAAA;AAEnD,MAAM,WAAW,GAAS,CAAC,OAA8B,EAAE,EAAE,CAAC,KAAK,CACjE,gBAAgB,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,EACvC,iBAAiB,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CACzC,CAAA;AAED,OAAO,EACL,WAAW,GACZ,CAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wechaty Open Source Software - https://github.com/wechaty
|
|
3
|
-
*
|
|
4
|
-
* @copyright 2016 Huan LI (李卓桓) <https://github.com/huan>, and
|
|
5
|
-
* Wechaty Contributors <https://github.com/wechaty>.
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
-
* you may not use this file except in compliance with the License.
|
|
9
|
-
* You may obtain a copy of the License at
|
|
10
|
-
*
|
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
* See the License for the specific language governing permissions and
|
|
17
|
-
* limitations under the License.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
import reducer from './reducers.js';
|
|
21
|
-
import * as actions from './actions.js';
|
|
22
|
-
import * as epics from './epics.js';
|
|
23
|
-
import * as operations from './operations.js';
|
|
24
|
-
import * as selectors from './selectors.js';
|
|
25
|
-
import * as types from './types.js';
|
|
26
|
-
import * as utils from './utils.js';
|
|
27
|
-
export { actions, epics, operations, selectors, types, utils, };
|
|
28
|
-
export default reducer;
|
|
29
|
-
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../src/client/duck/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,OAAO,MAAM,eAAe,CAAA;AAEnC,OAAO,KAAK,OAAO,MAAS,cAAc,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAW,YAAY,CAAA;AACxC,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAA;AAC7C,OAAO,KAAK,SAAS,MAAO,gBAAgB,CAAA;AAC5C,OAAO,KAAK,KAAK,MAAW,YAAY,CAAA;AACxC,OAAO,KAAK,KAAK,MAAW,YAAY,CAAA;AAExC,OAAO,EACL,OAAO,EACP,KAAK,EACL,UAAU,EACV,SAAS,EACT,KAAK,EACL,KAAK,GACN,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wechaty Open Source Software - https://github.com/wechaty
|
|
3
|
-
*
|
|
4
|
-
* @copyright 2016 Huan LI (李卓桓) <https://github.com/huan>, and
|
|
5
|
-
* Wechaty Contributors <https://github.com/wechaty>.
|
|
6
|
-
*
|
|
7
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
-
* you may not use this file except in compliance with the License.
|
|
9
|
-
* You may obtain a copy of the License at
|
|
10
|
-
*
|
|
11
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
-
*
|
|
13
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
* See the License for the specific language governing permissions and
|
|
17
|
-
* limitations under the License.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
import reducer from './reducers.js';
|
|
21
|
-
import * as actions from './actions.js';
|
|
22
|
-
import * as epics from './epics.js';
|
|
23
|
-
import * as operations from './operations.js';
|
|
24
|
-
import * as selectors from './selectors.js';
|
|
25
|
-
import * as types from './types.js';
|
|
26
|
-
import * as utils from './utils.js';
|
|
27
|
-
export { actions, epics, operations, selectors, types, utils, };
|
|
28
|
-
export default reducer;
|
|
29
|
-
//# sourceMappingURL=mod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mod.js","sourceRoot":"","sources":["../../../../../src/client/duck/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,OAAO,MAAM,eAAe,CAAA;AAEnC,OAAO,KAAK,OAAO,MAAS,cAAc,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAW,YAAY,CAAA;AACxC,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAA;AAC7C,OAAO,KAAK,SAAS,MAAO,gBAAgB,CAAA;AAC5C,OAAO,KAAK,KAAK,MAAW,YAAY,CAAA;AACxC,OAAO,KAAK,KAAK,MAAW,YAAY,CAAA;AAExC,OAAO,EACL,OAAO,EACP,KAAK,EACL,UAAU,EACV,SAAS,EACT,KAAK,EACL,KAAK,GACN,CAAA;AAED,eAAe,OAAO,CAAA"}
|