creevey 0.8.0-beta.0 → 0.8.0-beta.1

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.
Files changed (196) hide show
  1. package/CHANGELOG.md +25 -8
  2. package/README.md +8 -0
  3. package/addon/README.md +3 -0
  4. package/addon/package.json +4 -0
  5. package/jest.config.js +6 -0
  6. package/lib/cjs/client/addon/Manager.js +122 -271
  7. package/lib/cjs/client/addon/components/Addon.js +17 -38
  8. package/lib/cjs/client/addon/components/Icons.js +11 -7
  9. package/lib/cjs/client/addon/components/Panel.js +17 -13
  10. package/lib/cjs/client/addon/components/TestSelect.js +11 -9
  11. package/lib/cjs/client/addon/components/Tools.js +21 -40
  12. package/lib/cjs/client/addon/decorator.js +1 -1
  13. package/lib/cjs/client/addon/index.js +31 -0
  14. package/lib/cjs/client/addon/preset.ie11.js +74 -0
  15. package/lib/cjs/client/addon/preset.js +13 -31
  16. package/lib/cjs/client/addon/readyForCapture.js +12 -0
  17. package/lib/cjs/client/addon/register.js +46 -70
  18. package/lib/cjs/client/addon/utils.js +6 -2
  19. package/lib/cjs/client/addon/withCreevey.js +221 -155
  20. package/lib/cjs/client/shared/components/ImagesView/BlendView.js +26 -24
  21. package/lib/cjs/client/shared/components/ImagesView/ImagesView.js +22 -18
  22. package/lib/cjs/client/shared/components/ImagesView/SideBySideView.js +44 -66
  23. package/lib/cjs/client/shared/components/ImagesView/SlideView.js +38 -50
  24. package/lib/cjs/client/shared/components/ImagesView/SwapView.js +26 -45
  25. package/lib/cjs/client/shared/components/ImagesView/index.js +9 -9
  26. package/lib/cjs/client/shared/components/PageFooter/PageFooter.js +12 -8
  27. package/lib/cjs/client/shared/components/PageFooter/Paging.js +14 -18
  28. package/lib/cjs/client/shared/components/PageHeader/ImagePreview.js +22 -18
  29. package/lib/cjs/client/shared/components/PageHeader/PageHeader.js +42 -67
  30. package/lib/cjs/client/shared/components/ResultsPage.js +39 -69
  31. package/lib/cjs/client/shared/creeveyClientApi.js +55 -82
  32. package/lib/cjs/client/shared/helpers.js +140 -211
  33. package/lib/cjs/client/shared/viewMode.js +5 -5
  34. package/lib/cjs/client/web/142.js +2 -0
  35. package/lib/cjs/client/web/142.js.LICENSE.txt +12 -0
  36. package/lib/cjs/client/web/32.js +1 -0
  37. package/lib/cjs/client/web/551.js +1 -0
  38. package/lib/cjs/client/web/566.js +2 -0
  39. package/lib/cjs/client/web/566.js.LICENSE.txt +31 -0
  40. package/lib/cjs/client/web/691.js +2 -0
  41. package/lib/cjs/client/web/691.js.LICENSE.txt +8 -0
  42. package/lib/cjs/client/web/725.js +1 -0
  43. package/lib/cjs/client/web/main.js +2 -38
  44. package/lib/cjs/client/web/main.js.LICENSE.txt +49 -0
  45. package/lib/cjs/creevey.js +3 -5
  46. package/lib/cjs/index.js +10 -15
  47. package/lib/cjs/server/config.js +5 -4
  48. package/lib/cjs/server/docker.js +3 -7
  49. package/lib/cjs/server/extract.js +7 -4
  50. package/lib/cjs/server/index.js +3 -5
  51. package/lib/cjs/server/loaders/babel/creevey-plugin.js +1 -3
  52. package/lib/cjs/server/loaders/babel/helpers.js +13 -23
  53. package/lib/cjs/server/loaders/babel/register.js +2 -4
  54. package/lib/cjs/server/loaders/webpack/compile.js +33 -50
  55. package/lib/cjs/server/loaders/webpack/creevey-loader.js +20 -22
  56. package/lib/cjs/server/loaders/webpack/dummy-hmr.js +2 -7
  57. package/lib/cjs/server/loaders/webpack/mdx-loader.js +2 -2
  58. package/lib/cjs/server/loaders/webpack/start.js +1 -1
  59. package/lib/cjs/server/logger.js +2 -1
  60. package/lib/cjs/server/master/index.js +4 -4
  61. package/lib/cjs/server/master/master.js +1 -0
  62. package/lib/cjs/server/master/pool.js +38 -47
  63. package/lib/cjs/server/master/runner.js +53 -66
  64. package/lib/cjs/server/master/server.js +78 -4
  65. package/lib/cjs/server/messages.js +128 -18
  66. package/lib/cjs/server/selenium/browser.js +129 -55
  67. package/lib/cjs/server/selenium/selenoid.js +5 -7
  68. package/lib/cjs/server/stories.js +58 -72
  69. package/lib/cjs/server/storybook/entry.js +7 -22
  70. package/lib/cjs/server/storybook/helpers.js +18 -25
  71. package/lib/cjs/server/storybook/providers/browser.js +74 -0
  72. package/lib/cjs/server/storybook/{nodejs-provider.js → providers/nodejs.js} +37 -20
  73. package/lib/cjs/server/update.js +1 -5
  74. package/lib/cjs/server/utils.js +12 -14
  75. package/lib/cjs/server/worker/helpers.js +2 -6
  76. package/lib/cjs/server/worker/reporter.js +8 -20
  77. package/lib/cjs/server/worker/worker.js +21 -19
  78. package/lib/cjs/shared/index.js +101 -0
  79. package/lib/cjs/shared/serializeRegExp.js +42 -0
  80. package/lib/cjs/types.js +11 -6
  81. package/lib/esm/client/addon/Manager.js +122 -271
  82. package/lib/esm/client/addon/components/Addon.js +15 -34
  83. package/lib/esm/client/addon/components/Icons.js +10 -6
  84. package/lib/esm/client/addon/components/Panel.js +17 -13
  85. package/lib/esm/client/addon/components/TestSelect.js +11 -9
  86. package/lib/esm/client/addon/components/Tools.js +19 -36
  87. package/lib/esm/client/addon/decorator.js +1 -1
  88. package/lib/esm/client/addon/index.js +2 -0
  89. package/lib/esm/client/addon/preset.ie11.js +59 -0
  90. package/lib/esm/client/addon/preset.js +12 -26
  91. package/lib/esm/client/addon/readyForCapture.js +5 -0
  92. package/lib/esm/client/addon/register.js +42 -66
  93. package/lib/esm/client/addon/utils.js +3 -2
  94. package/lib/esm/client/addon/withCreevey.js +209 -156
  95. package/lib/esm/client/shared/components/ImagesView/BlendView.js +23 -20
  96. package/lib/esm/client/shared/components/ImagesView/ImagesView.js +21 -17
  97. package/lib/esm/client/shared/components/ImagesView/SideBySideView.js +42 -63
  98. package/lib/esm/client/shared/components/ImagesView/SlideView.js +36 -47
  99. package/lib/esm/client/shared/components/ImagesView/SwapView.js +24 -42
  100. package/lib/esm/client/shared/components/PageFooter/PageFooter.js +12 -8
  101. package/lib/esm/client/shared/components/PageFooter/Paging.js +14 -18
  102. package/lib/esm/client/shared/components/PageHeader/ImagePreview.js +22 -18
  103. package/lib/esm/client/shared/components/PageHeader/PageHeader.js +37 -60
  104. package/lib/esm/client/shared/components/ResultsPage.js +36 -64
  105. package/lib/esm/client/shared/creeveyClientApi.js +57 -84
  106. package/lib/esm/client/shared/helpers.js +124 -195
  107. package/lib/esm/client/shared/viewMode.js +4 -4
  108. package/lib/esm/creevey.js +3 -5
  109. package/lib/esm/index.js +2 -3
  110. package/lib/esm/server/config.js +4 -5
  111. package/lib/esm/server/docker.js +2 -2
  112. package/lib/esm/server/extract.js +6 -4
  113. package/lib/esm/server/index.js +3 -4
  114. package/lib/esm/server/loaders/babel/creevey-plugin.js +1 -3
  115. package/lib/esm/server/loaders/babel/helpers.js +12 -22
  116. package/lib/esm/server/loaders/babel/register.js +3 -5
  117. package/lib/esm/server/loaders/webpack/compile.js +34 -51
  118. package/lib/esm/server/loaders/webpack/creevey-loader.js +9 -10
  119. package/lib/esm/server/loaders/webpack/dummy-hmr.js +2 -6
  120. package/lib/esm/server/loaders/webpack/mdx-loader.js +2 -2
  121. package/lib/esm/server/loaders/webpack/start.js +1 -1
  122. package/lib/esm/server/master/index.js +4 -4
  123. package/lib/esm/server/master/master.js +1 -0
  124. package/lib/esm/server/master/pool.js +38 -49
  125. package/lib/esm/server/master/runner.js +53 -66
  126. package/lib/esm/server/master/server.js +76 -6
  127. package/lib/esm/server/messages.js +118 -14
  128. package/lib/esm/server/selenium/browser.js +126 -57
  129. package/lib/esm/server/selenium/selenoid.js +4 -6
  130. package/lib/esm/server/stories.js +58 -70
  131. package/lib/esm/server/storybook/entry.js +5 -22
  132. package/lib/esm/server/storybook/helpers.js +10 -19
  133. package/lib/esm/server/storybook/providers/browser.js +60 -0
  134. package/lib/esm/server/storybook/{nodejs-provider.js → providers/nodejs.js} +35 -19
  135. package/lib/esm/server/update.js +1 -5
  136. package/lib/esm/server/utils.js +5 -9
  137. package/lib/esm/server/worker/helpers.js +2 -6
  138. package/lib/esm/server/worker/reporter.js +8 -20
  139. package/lib/esm/server/worker/worker.js +22 -20
  140. package/lib/esm/shared/index.js +78 -0
  141. package/lib/esm/shared/serializeRegExp.js +24 -0
  142. package/lib/esm/types.js +3 -0
  143. package/lib/types/client/addon/Manager.d.ts +2 -2
  144. package/lib/types/client/addon/components/TestSelect.d.ts +0 -1
  145. package/lib/types/client/addon/index.d.ts +2 -0
  146. package/lib/types/client/addon/preset.d.ts +2 -1
  147. package/lib/types/client/addon/preset.ie11.d.ts +10 -0
  148. package/lib/types/client/addon/readyForCapture.d.ts +6 -0
  149. package/lib/types/client/addon/utils.d.ts +1 -0
  150. package/lib/types/client/addon/withCreevey.d.ts +13 -2
  151. package/lib/types/client/shared/components/ImagesView/BlendView.d.ts +1 -1
  152. package/lib/types/client/shared/components/ImagesView/ImagesView.d.ts +0 -1
  153. package/lib/types/client/shared/components/ImagesView/SideBySideView.d.ts +1 -1
  154. package/lib/types/client/shared/components/ImagesView/SlideView.d.ts +1 -1
  155. package/lib/types/client/shared/components/ImagesView/SwapView.d.ts +1 -1
  156. package/lib/types/client/shared/components/PageFooter/PageFooter.d.ts +0 -1
  157. package/lib/types/client/shared/components/PageFooter/Paging.d.ts +0 -1
  158. package/lib/types/client/shared/components/PageHeader/ImagePreview.d.ts +1 -1
  159. package/lib/types/client/shared/components/PageHeader/PageHeader.d.ts +0 -1
  160. package/lib/types/client/shared/components/ResultsPage.d.ts +1 -1
  161. package/lib/types/client/web/CreeveyApp.d.ts +0 -1
  162. package/lib/types/client/web/CreeveyLoader.d.ts +1 -2
  163. package/lib/types/client/web/CreeveyView/SideBar/Checkbox.d.ts +1 -1
  164. package/lib/types/client/web/CreeveyView/SideBar/SideBarHeader.d.ts +0 -1
  165. package/lib/types/client/web/CreeveyView/SideBar/SuiteLink.d.ts +6 -6
  166. package/lib/types/client/web/CreeveyView/SideBar/TestLink.d.ts +0 -1
  167. package/lib/types/client/web/CreeveyView/SideBar/TestStatusIcon.d.ts +1 -1
  168. package/lib/types/client/web/CreeveyView/SideBar/TestsStatus.d.ts +1 -1
  169. package/lib/types/index.d.ts +0 -1
  170. package/lib/types/server/loaders/babel/register.d.ts +1 -1
  171. package/lib/types/server/loaders/webpack/creevey-loader.d.ts +4 -2
  172. package/lib/types/server/logger.d.ts +6 -2
  173. package/lib/types/server/master/master.d.ts +1 -0
  174. package/lib/types/server/master/pool.d.ts +1 -0
  175. package/lib/types/server/master/server.d.ts +1 -1
  176. package/lib/types/server/messages.d.ts +17 -6
  177. package/lib/types/server/selenium/browser.d.ts +5 -2
  178. package/lib/types/server/stories.d.ts +2 -2
  179. package/lib/types/server/storybook/entry.d.ts +1 -2
  180. package/lib/types/server/storybook/providers/browser.d.ts +4 -0
  181. package/lib/types/server/storybook/providers/nodejs.d.ts +9 -0
  182. package/lib/types/server/worker/helpers.d.ts +2 -1
  183. package/lib/types/shared/index.d.ts +7 -0
  184. package/lib/types/shared/serializeRegExp.d.ts +9 -0
  185. package/lib/types/types.d.ts +31 -3
  186. package/package.json +121 -103
  187. package/preset/ie11.js +5 -0
  188. package/{preset.js → preset/index.js} +2 -2
  189. package/types/mdx.d.ts +3 -2
  190. package/types/mocha.d.ts +1 -0
  191. package/lib/cjs/client/web/1.js +0 -13
  192. package/lib/cjs/client/web/2.js +0 -1
  193. package/lib/cjs/shared.js +0 -35
  194. package/lib/esm/shared.js +0 -22
  195. package/lib/types/server/storybook/nodejs-provider.d.ts +0 -5
  196. package/lib/types/shared.d.ts +0 -4
package/CHANGELOG.md CHANGED
@@ -1,19 +1,36 @@
1
- # [0.8.0-beta.0](https://github.com/wKich/creevey/compare/v0.7.39...v0.8.0-beta.0) (2022-03-17)
2
-
1
+ # [0.8.0-beta.1](https://github.com/wKich/creevey/compare/v0.8.0-beta.0...v0.8.0-beta.1) (2023-01-18)
3
2
 
4
3
  ### Bug Fixes
5
4
 
6
- * 🐛 revert cross-env scripts, as they not work in unix ([92b04a5](https://github.com/wKich/creevey/commit/92b04a5bed56191b7ee6bd169f5327e30a1c2232))
7
-
5
+ - **addon:** restore IE11 support ([94f452f](https://github.com/wKich/creevey/commit/94f452fff4225e974c9efdff21f982d5155de4f8))
6
+ - allow setting timeouts via capabilities ([72de9e5](https://github.com/wKich/creevey/commit/72de9e50b818587309f665c782637ae43c3e4864))
7
+ - infinite UI loading ([4f7b47d](https://github.com/wKich/creevey/commit/4f7b47db3ff1274217b044ce608e34d22148fe32))
8
+ - **addon:** restore and move ie11 support to separate addon ([3ba2cc7](https://github.com/wKich/creevey/commit/3ba2cc7fde281037406f1705c0abc616c576e641))
9
+ - browser-node regexp parameters transfering ([737670e](https://github.com/wKich/creevey/commit/737670e18aa5d0ce416fe12b765406116b453e31))
10
+ - correct call of the test fn ([98c03ad](https://github.com/wKich/creevey/commit/98c03ad1700486bfd75170f4517970717250f6d8))
11
+ - handle null from selectStory ([1895602](https://github.com/wKich/creevey/commit/1895602143b3236ab195e11fcfa162df2a01af03))
12
+ - ie11 support ([523e35b](https://github.com/wKich/creevey/commit/523e35b6950d978ca3aaa77dd4f072a835053687))
13
+ - move addon to the separate entry point ([f3fc59f](https://github.com/wKich/creevey/commit/f3fc59f980a56f87f882507c3a0367ed6a356d33))
14
+ - prevent importing browser-specific code to node ([37706ef](https://github.com/wKich/creevey/commit/37706efbb49dd5bd1d6ec06821fac52480a0e132))
15
+ - **selenium-webdriver:** bump [@types](https://github.com/types) package version ([ca4b369](https://github.com/wKich/creevey/commit/ca4b369046e2c56e0548f5cbb6f98c17b0125228))
8
16
 
9
17
  ### Features
10
18
 
11
- * 🎸 change format for `skip` parameter ([f244b7c](https://github.com/wKich/creevey/commit/f244b7cd344b276762408a1df841e5afc3853fad))
12
- * 🎸 Improve skip options ([2fcc624](https://github.com/wKich/creevey/commit/2fcc624a9b2ab1dcdce3927779c8f58bb0a0d02c))
13
- * new creevey params: "global" and "kind" ([7d7c885](https://github.com/wKich/creevey/commit/7d7c88521a28c91586bfdd663500bea576845292))
14
- * support storybook 6.4 ([74010e5](https://github.com/wKich/creevey/commit/74010e53d93ff1815427cd7ee818481ce6e21288))
19
+ - 🎸 add support `play()` story method ([318ac62](https://github.com/wKich/creevey/commit/318ac628cb14fb0de7a89c088ae241df520df1e7))
20
+ - drop support for storybook < 6.4 ([fb8c0f5](https://github.com/wKich/creevey/commit/fb8c0f5158ab7c0495949eaa61ba52049c3d66cf))
21
+
22
+ # [0.8.0-beta.0](https://github.com/wKich/creevey/compare/v0.7.39...v0.8.0-beta.0) (2022-03-17)
15
23
 
24
+ ### Bug Fixes
25
+
26
+ - 🐛 revert cross-env scripts, as they not work in unix ([92b04a5](https://github.com/wKich/creevey/commit/92b04a5bed56191b7ee6bd169f5327e30a1c2232))
27
+
28
+ ### Features
16
29
 
30
+ - 🎸 change format for `skip` parameter ([f244b7c](https://github.com/wKich/creevey/commit/f244b7cd344b276762408a1df841e5afc3853fad))
31
+ - 🎸 Improve skip options ([2fcc624](https://github.com/wKich/creevey/commit/2fcc624a9b2ab1dcdce3927779c8f58bb0a0d02c))
32
+ - new creevey params: "global" and "kind" ([7d7c885](https://github.com/wKich/creevey/commit/7d7c88521a28c91586bfdd663500bea576845292))
33
+ - support storybook 6.4 ([74010e5](https://github.com/wKich/creevey/commit/74010e53d93ff1815427cd7ee818481ce6e21288))
17
34
 
18
35
  ## [0.7.39](https://github.com/wKich/creevey/compare/v0.7.38...v0.7.39) (2021-11-04)
19
36
 
package/README.md CHANGED
@@ -1,9 +1,12 @@
1
1
  # 📸+👦🏼 [Creevey](https://harrypotter.fandom.com/wiki/Colin_Creevey)
2
2
 
3
+ **IMPORTANT** _Looking for any help with maintaining_
4
+
3
5
  Cross-browser screenshot testing tool for [Storybook](https://storybook.js.org/) with fancy UI Runner.
4
6
 
5
7
  [![Creevey downloads](https://img.shields.io/npm/dt/creevey)](https://www.npmjs.com/package/creevey)
6
8
  [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
9
+ [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FwKich%2Fcreevey.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FwKich%2Fcreevey?ref=badge_shield)
7
10
 
8
11
  ![Creevey Demo](https://user-images.githubusercontent.com/6397708/100863723-cd6b8500-34b6-11eb-94e1-849590bc8066.gif)
9
12
 
@@ -37,6 +40,7 @@ It named after [Colin Creevey](https://harrypotter.fandom.com/wiki/Colin_Creevey
37
40
  ## Pre-requisites
38
41
 
39
42
  - Make sure you have installed [Docker](https://www.docker.com/products/docker-desktop). But if you going to use your own separate Selenium Grid, you don't need `Docker`.
43
+ - Supported Storybook versions: `^6.4.0`.
40
44
 
41
45
  ## How to start
42
46
 
@@ -145,3 +149,7 @@ Because tests defined in story parameters and `selenium-webdriver` depends on no
145
149
 
146
150
  | [![Whisk](https://raw.githubusercontent.com/wKich/creevey/master/.github/images/whisk.svg)](https://whisk.com/) | [![SKB Kontur](https://kontur.ru/Files/userfiles/image/brandbook/logo-skb-kontur-eng.png)](https://kontur.ru/) | [![ABBYY](https://raw.githubusercontent.com/wKich/creevey/master/.github/images/abbyy.svg)](https://www.abbyy.com/) |
147
151
  | --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
152
+
153
+ ## License
154
+
155
+ [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FwKich%2Fcreevey.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FwKich%2Fcreevey?ref=badge_large)
@@ -0,0 +1,3 @@
1
+ This is a fallback for package.json's `exports.addon` field. It's required for outdated environments (like node 11 and typescript with the "node" moduleResolution) to resolve imports from `creevey/addon` properly.
2
+
3
+ See https://github.com/andrewbranch/example-subpath-exports-ts-compat. The fallback uses the "package-json-redirects" startegy.
@@ -0,0 +1,4 @@
1
+ {
2
+ "main": "../lib/cjs/client/addon/index.js",
3
+ "types": "../lib/types/client/addon/index.d.ts"
4
+ }
package/jest.config.js ADDED
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ moduleNameMapper: {
3
+ '#(.*)': '<rootDir>/node_modules/$1',
4
+ },
5
+ transformIgnorePatterns: [],
6
+ };
@@ -19,43 +19,11 @@ var _register = require("./register");
19
19
 
20
20
  var _utils = require("./utils");
21
21
 
22
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
23
-
24
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
25
-
26
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
27
-
28
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
29
-
30
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
31
-
32
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
33
-
34
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
35
-
36
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
37
-
38
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
39
-
40
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
41
-
42
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
43
-
44
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
45
-
46
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
47
-
48
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
49
-
50
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
51
-
52
22
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
53
23
 
54
- var CreeveyManager = /*#__PURE__*/function () {
55
- function CreeveyManager(storybookApi) {
56
- var _this = this;
57
-
58
- _classCallCheck(this, CreeveyManager);
24
+ class CreeveyManager {
25
+ constructor(storybookApi) {
26
+ this.storybookApi = storybookApi;
59
27
 
60
28
  _defineProperty(this, "storyId", '');
61
29
 
@@ -77,60 +45,38 @@ var CreeveyManager = /*#__PURE__*/function () {
77
45
 
78
46
  _defineProperty(this, "changeTestListeners", []);
79
47
 
80
- _defineProperty(this, "initAll", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
81
- return regeneratorRuntime.wrap(function _callee$(_context) {
82
- while (1) {
83
- switch (_context.prev = _context.next) {
84
- case 0:
85
- _this.storybookApi.on(_coreEvents.STORY_RENDERED, _this.onStoryRendered);
86
-
87
- _this.storybookApi.on(_coreEvents.SET_STORIES, _this.onSetStories);
88
-
89
- _context.next = 4;
90
- return (0, _creeveyClientApi.initCreeveyClientApi)();
91
-
92
- case 4:
93
- _this.creeveyApi = _context.sent;
94
-
95
- _this.creeveyApi.onUpdate(_this.handleCreeveyUpdate);
96
-
97
- _context.next = 8;
98
- return _this.creeveyApi.status;
99
-
100
- case 8:
101
- _this.status = _context.sent;
102
-
103
- case 9:
104
- case "end":
105
- return _context.stop();
106
- }
107
- }
108
- }, _callee);
109
- })));
48
+ _defineProperty(this, "initAll", async () => {
49
+ this.storybookApi.on(_coreEvents.STORY_RENDERED, this.onStoryRendered);
50
+ this.storybookApi.on(_coreEvents.SET_STORIES, this.onSetStories);
51
+ this.creeveyApi = await (0, _creeveyClientApi.initCreeveyClientApi)();
52
+ this.creeveyApi.onUpdate(this.handleCreeveyUpdate);
53
+ this.status = await this.creeveyApi.status;
54
+ });
110
55
 
111
- _defineProperty(this, "handleCreeveyUpdate", function (update) {
112
- var tests = update.tests,
113
- _update$removedTests = update.removedTests,
114
- removedTests = _update$removedTests === void 0 ? [] : _update$removedTests,
115
- isRunning = update.isRunning;
56
+ _defineProperty(this, "handleCreeveyUpdate", update => {
57
+ const {
58
+ tests,
59
+ removedTests = [],
60
+ isRunning
61
+ } = update;
116
62
 
117
63
  if ((0, _types.isDefined)(isRunning)) {
118
- _this.status.isRunning = isRunning;
64
+ this.status.isRunning = isRunning;
119
65
  }
120
66
 
121
67
  if ((0, _types.isDefined)(tests)) {
122
- var prevTests = _this.status.tests;
123
- var prevStories = _this.stories || {};
124
- Object.values(tests).filter(_types.isDefined).forEach(function (update) {
125
- var _test$results;
126
-
127
- var id = update.id,
128
- skip = update.skip,
129
- status = update.status,
130
- results = update.results,
131
- approved = update.approved,
132
- storyId = update.storyId;
133
- var test = prevTests[id];
68
+ const prevTests = this.status.tests;
69
+ const prevStories = this.stories || {};
70
+ Object.values(tests).filter(_types.isDefined).forEach(update => {
71
+ const {
72
+ id,
73
+ skip,
74
+ status,
75
+ results,
76
+ approved,
77
+ storyId
78
+ } = update;
79
+ const test = prevTests[id];
134
80
 
135
81
  if (!test) {
136
82
  return prevTests[id] = update;
@@ -142,272 +88,177 @@ var CreeveyManager = /*#__PURE__*/function () {
142
88
  test.status = status;
143
89
 
144
90
  if ((0, _types.isDefined)(storyId) && (0, _types.isDefined)(prevStories[storyId])) {
145
- var story = prevStories[storyId];
146
-
147
- var storyStatus = _this.getStoryTests(storyId);
148
-
149
- var oldStatus = storyStatus.map(function (x) {
150
- return x.id === id ? status : x.status;
151
- }).reduce(function (oldStatus, newStatus) {
152
- return (0, _helpers.calcStatus)(oldStatus, newStatus);
153
- }, undefined);
154
- story.name = _this.addStatusToStoryName(story.name, (0, _helpers.calcStatus)(oldStatus, status), skip || false);
91
+ const story = prevStories[storyId];
92
+ const storyStatus = this.getStoryTests(storyId);
93
+ const oldStatus = storyStatus.map(x => x.id === id ? status : x.status).reduce((oldStatus, newStatus) => (0, _helpers.calcStatus)(oldStatus, newStatus), undefined);
94
+ story.name = this.addStatusToStoryName(story.name, (0, _helpers.calcStatus)(oldStatus, status), skip || false);
155
95
  }
156
96
  }
157
97
 
158
- if ((0, _types.isDefined)(results)) test.results ? (_test$results = test.results).push.apply(_test$results, _toConsumableArray(results)) : test.results = results;
98
+ if ((0, _types.isDefined)(results)) test.results ? test.results.push(...results) : test.results = results;
159
99
 
160
100
  if ((0, _types.isDefined)(approved)) {
161
- Object.entries(approved).forEach(function (_ref2) {
162
- var _ref3 = _slicedToArray(_ref2, 2),
163
- image = _ref3[0],
164
- retry = _ref3[1];
165
-
101
+ Object.entries(approved).forEach(_ref => {
102
+ let [image, retry] = _ref;
166
103
  return retry !== undefined && test && ((test.approved = (test === null || test === void 0 ? void 0 : test.approved) || {})[image] = retry);
167
104
  });
168
105
  }
169
106
  });
170
- removedTests.forEach(function (_ref4) {
171
- var id = _ref4.id;
107
+ removedTests.forEach(_ref2 => {
108
+ let {
109
+ id
110
+ } = _ref2;
172
111
  return delete prevTests[id];
173
112
  });
174
- _this.status.tests = prevTests;
175
- _this.stories = prevStories;
176
-
177
- _this.setPanelsTitle();
178
-
179
- void _this.storybookApi.setStories(_this.stories);
113
+ this.status.tests = prevTests;
114
+ this.stories = prevStories;
115
+ this.setPanelsTitle();
116
+ void this.storybookApi.setStories(this.stories);
180
117
  }
181
118
 
182
- _this.updateStatusListeners.forEach(function (x) {
183
- return x(update);
184
- });
119
+ this.updateStatusListeners.forEach(x => x(update));
185
120
  });
186
121
 
187
- _defineProperty(this, "getCurrentTest", function () {
188
- return _this.status.tests[_this.selectedTestId];
122
+ _defineProperty(this, "getCurrentTest", () => {
123
+ return this.status.tests[this.selectedTestId];
189
124
  });
190
125
 
191
- _defineProperty(this, "onStoryRendered", function (storyId) {
192
- if (_this.storyId === '') void _this.addStatusesToSideBar();
126
+ _defineProperty(this, "onStoryRendered", storyId => {
127
+ if (this.storyId === '') void this.addStatusesToSideBar();
193
128
 
194
- if (_this.storyId !== storyId) {
129
+ if (this.storyId !== storyId) {
195
130
  var _this$getTestsByStory, _this$getTestsByStory2;
196
131
 
197
- _this.storyId = storyId;
198
- _this.selectedTestId = (_this$getTestsByStory = (_this$getTestsByStory2 = _this.getTestsByStoryIdAndBrowser(_this.activeBrowser)[0]) === null || _this$getTestsByStory2 === void 0 ? void 0 : _this$getTestsByStory2.id) !== null && _this$getTestsByStory !== void 0 ? _this$getTestsByStory : '';
199
-
200
- _this.setPanelsTitle();
201
-
202
- _this.changeTestListeners.forEach(function (x) {
203
- return x(_this.selectedTestId);
204
- });
132
+ this.storyId = storyId;
133
+ this.selectedTestId = (_this$getTestsByStory = (_this$getTestsByStory2 = this.getTestsByStoryIdAndBrowser(this.activeBrowser)[0]) === null || _this$getTestsByStory2 === void 0 ? void 0 : _this$getTestsByStory2.id) !== null && _this$getTestsByStory !== void 0 ? _this$getTestsByStory : '';
134
+ this.setPanelsTitle();
135
+ this.changeTestListeners.forEach(x => x(this.selectedTestId));
205
136
  }
206
137
  });
207
138
 
208
- _defineProperty(this, "onStart", function () {
139
+ _defineProperty(this, "onStart", () => {
209
140
  var _this$creeveyApi;
210
141
 
211
- (_this$creeveyApi = _this.creeveyApi) === null || _this$creeveyApi === void 0 ? void 0 : _this$creeveyApi.start([_this.selectedTestId]);
142
+ (_this$creeveyApi = this.creeveyApi) === null || _this$creeveyApi === void 0 ? void 0 : _this$creeveyApi.start([this.selectedTestId]);
212
143
  });
213
144
 
214
- _defineProperty(this, "onStop", function () {
145
+ _defineProperty(this, "onStop", () => {
215
146
  var _this$creeveyApi2;
216
147
 
217
- (_this$creeveyApi2 = _this.creeveyApi) === null || _this$creeveyApi2 === void 0 ? void 0 : _this$creeveyApi2.stop();
148
+ (_this$creeveyApi2 = this.creeveyApi) === null || _this$creeveyApi2 === void 0 ? void 0 : _this$creeveyApi2.stop();
218
149
  });
219
150
 
220
- _defineProperty(this, "onImageApprove", function (id, retry, image) {
151
+ _defineProperty(this, "onImageApprove", (id, retry, image) => {
221
152
  var _this$creeveyApi3;
222
153
 
223
- return (_this$creeveyApi3 = _this.creeveyApi) === null || _this$creeveyApi3 === void 0 ? void 0 : _this$creeveyApi3.approve(id, retry, image);
154
+ return (_this$creeveyApi3 = this.creeveyApi) === null || _this$creeveyApi3 === void 0 ? void 0 : _this$creeveyApi3.approve(id, retry, image);
224
155
  });
225
156
 
226
- _defineProperty(this, "onStartAllStoryTests", function () {
157
+ _defineProperty(this, "onStartAllStoryTests", () => {
227
158
  var _this$creeveyApi4;
228
159
 
229
- var ids = Object.values(_this.status.tests).filter(_types.isDefined).filter(function (x) {
230
- return x.storyId === _this.storyId;
231
- }).map(function (x) {
232
- return x.id;
233
- });
234
- (_this$creeveyApi4 = _this.creeveyApi) === null || _this$creeveyApi4 === void 0 ? void 0 : _this$creeveyApi4.start(ids);
160
+ const ids = Object.values(this.status.tests).filter(_types.isDefined).filter(x => x.storyId === this.storyId).map(x => x.id);
161
+ (_this$creeveyApi4 = this.creeveyApi) === null || _this$creeveyApi4 === void 0 ? void 0 : _this$creeveyApi4.start(ids);
235
162
  });
236
163
 
237
- _defineProperty(this, "onStartAllTests", function () {
164
+ _defineProperty(this, "onStartAllTests", () => {
238
165
  var _this$creeveyApi5;
239
166
 
240
- var ids = Object.values(_this.status.tests).filter(_types.isDefined).map(function (x) {
241
- return x.id;
242
- });
243
- (_this$creeveyApi5 = _this.creeveyApi) === null || _this$creeveyApi5 === void 0 ? void 0 : _this$creeveyApi5.start(ids);
167
+ const ids = Object.values(this.status.tests).filter(_types.isDefined).map(x => x.id);
168
+ (_this$creeveyApi5 = this.creeveyApi) === null || _this$creeveyApi5 === void 0 ? void 0 : _this$creeveyApi5.start(ids);
244
169
  });
245
170
 
246
- _defineProperty(this, "onSetStories", function (data) {
247
- // TODO: Send PR to storybook to fix this
248
- var stories = data.v ? (0, _shared.denormalizeStoryParameters)(data) : data.stories;
249
- _this.stories = stories;
171
+ _defineProperty(this, "onSetStories", data => {
172
+ const stories = data.v ? (0, _shared.denormalizeStoryParameters)(data) : data.stories;
173
+ this.stories = stories;
250
174
  });
251
175
 
252
- _defineProperty(this, "setActiveBrowser", function (browser) {
176
+ _defineProperty(this, "setActiveBrowser", browser => {
253
177
  var _this$getTestsByStory3, _this$getTestsByStory4;
254
178
 
255
- _this.activeBrowser = browser;
256
- _this.selectedTestId = (_this$getTestsByStory3 = (_this$getTestsByStory4 = _this.getTestsByStoryIdAndBrowser(_this.activeBrowser)[0]) === null || _this$getTestsByStory4 === void 0 ? void 0 : _this$getTestsByStory4.id) !== null && _this$getTestsByStory3 !== void 0 ? _this$getTestsByStory3 : '';
257
-
258
- _this.changeTestListeners.forEach(function (x) {
259
- return x(_this.selectedTestId);
260
- });
179
+ this.activeBrowser = browser;
180
+ this.selectedTestId = (_this$getTestsByStory3 = (_this$getTestsByStory4 = this.getTestsByStoryIdAndBrowser(this.activeBrowser)[0]) === null || _this$getTestsByStory4 === void 0 ? void 0 : _this$getTestsByStory4.id) !== null && _this$getTestsByStory3 !== void 0 ? _this$getTestsByStory3 : '';
181
+ this.changeTestListeners.forEach(x => x(this.selectedTestId));
261
182
  });
262
183
 
263
- _defineProperty(this, "setSelectedTestId", function (testId) {
264
- _this.selectedTestId = testId;
265
-
266
- _this.changeTestListeners.forEach(function (x) {
267
- return x(_this.selectedTestId);
268
- });
184
+ _defineProperty(this, "setSelectedTestId", testId => {
185
+ this.selectedTestId = testId;
186
+ this.changeTestListeners.forEach(x => x(this.selectedTestId));
269
187
  });
270
188
 
271
- _defineProperty(this, "getStoryTests", function (storyId) {
272
- if (!_this.status || !_this.status.tests) return [];
273
- return Object.values(_this.status.tests).filter(function (result) {
274
- return (result === null || result === void 0 ? void 0 : result.storyId) === storyId;
275
- }).filter(_types.isDefined);
189
+ _defineProperty(this, "getStoryTests", storyId => {
190
+ if (!this.status || !this.status.tests) return [];
191
+ return Object.values(this.status.tests).filter(result => (result === null || result === void 0 ? void 0 : result.storyId) === storyId).filter(_types.isDefined);
276
192
  });
277
193
 
278
- _defineProperty(this, "getBrowsers", function () {
279
- return _this.status.browsers;
194
+ _defineProperty(this, "getBrowsers", () => {
195
+ return this.status.browsers;
280
196
  });
281
197
 
282
- _defineProperty(this, "getTestsByStoryIdAndBrowser", function (browser) {
283
- return Object.values(_this.status.tests).filter(function (x) {
284
- return (x === null || x === void 0 ? void 0 : x.browser) === browser && x.storyId === _this.storyId;
285
- }).filter(_types.isDefined);
198
+ _defineProperty(this, "getTestsByStoryIdAndBrowser", browser => {
199
+ return Object.values(this.status.tests).filter(x => (x === null || x === void 0 ? void 0 : x.browser) === browser && x.storyId === this.storyId).filter(_types.isDefined);
286
200
  });
287
201
 
288
- _defineProperty(this, "getTabTitle", function (browser) {
289
- var tests = _this.getTestsByStoryIdAndBrowser(browser);
290
-
291
- var browserStatus = tests.map(function (x) {
292
- return x && x.status;
293
- }).reduce(function (oldStatus, newStatus) {
294
- return (0, _helpers.calcStatus)(oldStatus, newStatus);
295
- }, undefined);
296
- var browserSkip = tests.length > 0 ? tests.every(function (x) {
297
- return x && x.skip;
298
- }) : false;
299
- var emojiStatus = (0, _utils.getEmojiByTestStatus)(browserStatus, browserSkip);
202
+ _defineProperty(this, "getTabTitle", browser => {
203
+ const tests = this.getTestsByStoryIdAndBrowser(browser);
204
+ const browserStatus = tests.map(x => x && x.status).reduce((oldStatus, newStatus) => (0, _helpers.calcStatus)(oldStatus, newStatus), undefined);
205
+ const browserSkip = tests.length > 0 ? tests.every(x => x && x.skip) : false;
206
+ const emojiStatus = (0, _utils.getEmojiByTestStatus)(browserStatus, browserSkip);
300
207
  return "".concat(emojiStatus ? "".concat(emojiStatus, " ") : '', "Creevey/").concat(browser);
301
208
  });
302
209
 
303
- _defineProperty(this, "setPanelsTitle", function () {
210
+ _defineProperty(this, "setPanelsTitle", () => {
304
211
  var _this$storybookApi;
305
212
 
306
- var panels = (_this$storybookApi = _this.storybookApi) === null || _this$storybookApi === void 0 ? void 0 : _this$storybookApi.getPanels();
213
+ const panels = (_this$storybookApi = this.storybookApi) === null || _this$storybookApi === void 0 ? void 0 : _this$storybookApi.getPanels();
307
214
  if (!panels) return;
308
- var firstPanelBrowser = _this.activeBrowser;
215
+ let firstPanelBrowser = this.activeBrowser;
309
216
 
310
- for (var p in panels) {
217
+ for (const p in panels) {
311
218
  var _panel$id;
312
219
 
313
- var panel = panels[p];
220
+ const panel = panels[p];
314
221
 
315
222
  if (((_panel$id = panel.id) === null || _panel$id === void 0 ? void 0 : _panel$id.indexOf(_register.ADDON_ID)) === 0 && panel.paramKey) {
316
- panel.title = _this.getTabTitle(panel.paramKey);
223
+ panel.title = this.getTabTitle(panel.paramKey);
317
224
  if (!firstPanelBrowser) firstPanelBrowser = panel.paramKey;
318
225
  }
319
226
  }
320
227
 
321
- _this.storybookApi.setSelectedPanel("".concat(_register.ADDON_ID, "/panel/").concat(firstPanelBrowser));
228
+ this.storybookApi.setSelectedPanel("".concat(_register.ADDON_ID, "/panel/").concat(firstPanelBrowser));
322
229
  });
323
230
 
324
231
  this.storybookApi = storybookApi;
325
232
  }
326
233
 
327
- _createClass(CreeveyManager, [{
328
- key: "onUpdateStatus",
329
- value: function onUpdateStatus(listener) {
330
- var _this2 = this;
331
-
332
- this.updateStatusListeners.push(listener);
333
- return function () {
334
- return void (_this2.updateStatusListeners = _this2.updateStatusListeners.filter(function (x) {
335
- return x != listener;
336
- }));
337
- };
338
- }
339
- }, {
340
- key: "onChangeTest",
341
- value: function onChangeTest(listener) {
342
- var _this3 = this;
343
-
344
- this.changeTestListeners.push(listener);
345
- return function () {
346
- return void (_this3.changeTestListeners = _this3.changeTestListeners.filter(function (x) {
347
- return x != listener;
348
- }));
349
- };
350
- }
351
- }, {
352
- key: "addStatusesToSideBar",
353
- value: function () {
354
- var _addStatusesToSideBar = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
355
- var _this4 = this;
356
-
357
- var stories;
358
- return regeneratorRuntime.wrap(function _callee2$(_context2) {
359
- while (1) {
360
- switch (_context2.prev = _context2.next) {
361
- case 0:
362
- if (Object.keys(this.stories).length) {
363
- _context2.next = 2;
364
- break;
365
- }
366
-
367
- return _context2.abrupt("return");
368
-
369
- case 2:
370
- stories = this.stories;
371
- Object.keys(this.stories).forEach(function (storyId) {
372
- var storyStatus = _this4.getStoryTests(storyId);
373
-
374
- var status = storyStatus.map(function (x) {
375
- return x.status;
376
- }).reduce(function (oldStatus, newStatus) {
377
- return (0, _helpers.calcStatus)(oldStatus, newStatus);
378
- }, undefined);
379
- var skip = storyStatus.length > 0 ? storyStatus.every(function (x) {
380
- return x.skip;
381
- }) : false;
382
- _this4.stories[storyId].name = _this4.addStatusToStoryName(stories[storyId].name, status, skip);
383
- });
384
- _context2.next = 6;
385
- return this.storybookApi.setStories(this.stories);
386
-
387
- case 6:
388
- case "end":
389
- return _context2.stop();
390
- }
391
- }
392
- }, _callee2, this);
393
- }));
234
+ onUpdateStatus(listener) {
235
+ this.updateStatusListeners.push(listener);
236
+ return () => void (this.updateStatusListeners = this.updateStatusListeners.filter(x => x != listener));
237
+ }
394
238
 
395
- function addStatusesToSideBar() {
396
- return _addStatusesToSideBar.apply(this, arguments);
397
- }
239
+ onChangeTest(listener) {
240
+ this.changeTestListeners.push(listener);
241
+ return () => void (this.changeTestListeners = this.changeTestListeners.filter(x => x != listener));
242
+ }
243
+
244
+ async addStatusesToSideBar() {
245
+ if (!Object.keys(this.stories).length) return;
246
+ const stories = this.stories;
247
+ Object.keys(this.stories).forEach(storyId => {
248
+ const storyStatus = this.getStoryTests(storyId);
249
+ const status = storyStatus.map(x => x.status).reduce((oldStatus, newStatus) => (0, _helpers.calcStatus)(oldStatus, newStatus), undefined);
250
+ const skip = storyStatus.length > 0 ? storyStatus.every(x => x.skip) : false;
251
+ this.stories[storyId].name = this.addStatusToStoryName(stories[storyId].name, status, skip);
252
+ });
253
+ await this.storybookApi.setStories(this.stories);
254
+ }
255
+
256
+ addStatusToStoryName(name, status, skip) {
257
+ name = name.replace(/^(❌|✔|🟡|🕗|⏸) /, '');
258
+ const emojiStatus = (0, _utils.getEmojiByTestStatus)(status, skip);
259
+ return "".concat(emojiStatus ? "".concat(emojiStatus, " ") : '', " ").concat(name);
260
+ }
398
261
 
399
- return addStatusesToSideBar;
400
- }()
401
- }, {
402
- key: "addStatusToStoryName",
403
- value: function addStatusToStoryName(name, status, skip) {
404
- name = name.replace(/^(❌|✔|🟡|🕗|⏸) /, '');
405
- var emojiStatus = (0, _utils.getEmojiByTestStatus)(status, skip);
406
- return "".concat(emojiStatus ? "".concat(emojiStatus, " ") : '', " ").concat(name);
407
- }
408
- }]);
409
-
410
- return CreeveyManager;
411
- }();
262
+ }
412
263
 
413
264
  exports.CreeveyManager = CreeveyManager;