@ldelia/react-media 0.4.2 → 0.4.4

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 (140) hide show
  1. package/dist/components/__tests__/timeline/timeline.test.d.ts +1 -0
  2. package/dist/components/reproduction-widget/ReproductionWidget.d.ts +17 -0
  3. package/dist/components/reproduction-widget/index.js +1 -0
  4. package/dist/components/reproduction-widget/inner-players/PlayAlongInnerPlayer.d.ts +8 -0
  5. package/dist/components/reproduction-widget/inner-players/YouTubeInnerPlayer.d.ts +10 -0
  6. package/dist/components/reproduction-widget/models/Player/PlayAlongPlayer.d.ts +30 -0
  7. package/dist/components/reproduction-widget/models/Player/PlayerEvents.d.ts +4 -0
  8. package/dist/components/reproduction-widget/models/Player/YouTubePlayer.d.ts +30 -0
  9. package/dist/components/reproduction-widget/models/Reproduction.d.ts +66 -0
  10. package/dist/components/reproduction-widget/models/ReproductionBuilder.d.ts +16 -0
  11. package/dist/components/timeline/RangeSelectorCanvas/RangeSelectorCanvas.d.ts +8 -0
  12. package/dist/components/timeline/Timeline.d.ts +12 -0
  13. package/dist/components/timeline/TimelineCanvas/TickTime.d.ts +7 -0
  14. package/dist/components/timeline/TimelineCanvas/TickTimeCollectionDisplay.d.ts +6 -0
  15. package/dist/components/timeline/TimelineCanvas/TimelineCanvas.d.ts +7 -0
  16. package/dist/components/timeline/TimelineCanvas/drawTimeBlocksOnCanvas.d.ts +2 -0
  17. package/dist/components/timeline/TimelineValue/TimelineValue.d.ts +7 -0
  18. package/dist/components/timeline/ZoomContext/ZoomContext.d.ts +7 -0
  19. package/dist/components/timeline/constants.d.ts +1 -0
  20. package/dist/components/timeline/utils/utils.d.ts +7 -0
  21. package/dist/setupTests.d.ts +1 -0
  22. package/dist/stories/reproduction-widget.stories.d.ts +4 -0
  23. package/dist/stories/timeline.stories.d.ts +9 -0
  24. package/package.json +45 -35
  25. package/.bitmap +0 -48
  26. package/.eslintcache +0 -1
  27. package/.prettierignore +0 -3
  28. package/.prettierrc +0 -7
  29. package/.storybook/main.js +0 -38
  30. package/.storybook/preview.js +0 -4
  31. package/config/env.js +0 -104
  32. package/config/getHttpsConfig.js +0 -66
  33. package/config/jest/babelTransform.js +0 -29
  34. package/config/jest/cssTransform.js +0 -14
  35. package/config/jest/fileTransform.js +0 -40
  36. package/config/modules.js +0 -134
  37. package/config/paths.js +0 -77
  38. package/config/webpack/persistentCache/createEnvironmentHash.js +0 -9
  39. package/config/webpack.config.js +0 -755
  40. package/config/webpackDevServer.config.js +0 -127
  41. package/scripts/build.js +0 -217
  42. package/scripts/start.js +0 -154
  43. package/scripts/test.js +0 -52
  44. package/src/components/__tests__/timeline/timeline.test.tsx +0 -26
  45. package/src/components/reproduction-widget/README.md +0 -27
  46. package/src/components/reproduction-widget/ReproductionWidget.tsx +0 -68
  47. package/src/components/reproduction-widget/index.tsx +0 -1
  48. package/src/components/reproduction-widget/inner-players/PlayAlongInnerPlayer.tsx +0 -10
  49. package/src/components/reproduction-widget/inner-players/YouTubeInnerPlayer.tsx +0 -36
  50. package/src/components/reproduction-widget/models/Player/PlayAlongPlayer.ts +0 -129
  51. package/src/components/reproduction-widget/models/Player/PlayerEvents.ts +0 -4
  52. package/src/components/reproduction-widget/models/Player/YouTubePlayer.ts +0 -171
  53. package/src/components/reproduction-widget/models/Reproduction.ts +0 -272
  54. package/src/components/reproduction-widget/models/ReproductionBuilder.ts +0 -70
  55. package/src/components/timeline/README.md +0 -111
  56. package/src/components/timeline/RangeSelectorCanvas/RangeSelectorCanvas.tsx +0 -166
  57. package/src/components/timeline/Timeline.tsx +0 -139
  58. package/src/components/timeline/TimelineCanvas/TickTime.tsx +0 -45
  59. package/src/components/timeline/TimelineCanvas/TickTimeCollectionDisplay.tsx +0 -42
  60. package/src/components/timeline/TimelineCanvas/TimelineCanvas.tsx +0 -79
  61. package/src/components/timeline/TimelineCanvas/drawTimeBlocksOnCanvas.ts +0 -43
  62. package/src/components/timeline/TimelineValue/TimelineValue.tsx +0 -87
  63. package/src/components/timeline/ZoomContext/ZoomContext.ts +0 -10
  64. package/src/components/timeline/constants.ts +0 -13
  65. package/src/components/timeline/utils/utils.ts +0 -49
  66. package/src/modules.d.ts +0 -1
  67. package/src/react-app-env.d.ts +0 -71
  68. package/src/react-docgen-types.d.ts +0 -37
  69. package/src/setupTests.ts +0 -5
  70. package/src/stories/Configure.mdx +0 -364
  71. package/src/stories/reproduction-widget.stories.tsx +0 -23
  72. package/src/stories/timeline.stories.custom.css +0 -29
  73. package/src/stories/timeline.stories.tsx +0 -66
  74. package/storybook-static/favicon.svg +0 -1
  75. package/storybook-static/index.html +0 -173
  76. package/storybook-static/index.json +0 -1
  77. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  78. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  79. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  80. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  81. package/storybook-static/project.json +0 -1
  82. package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +0 -3
  83. package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js.LEGAL.txt +0 -0
  84. package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +0 -12
  85. package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js.LEGAL.txt +0 -0
  86. package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +0 -412
  87. package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js.LEGAL.txt +0 -0
  88. package/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js +0 -3
  89. package/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js.LEGAL.txt +0 -0
  90. package/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js +0 -3
  91. package/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js.LEGAL.txt +0 -0
  92. package/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js +0 -3
  93. package/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js.LEGAL.txt +0 -0
  94. package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +0 -3
  95. package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js.LEGAL.txt +0 -0
  96. package/storybook-static/sb-addons/links-1/manager-bundle.js +0 -3
  97. package/storybook-static/sb-addons/links-1/manager-bundle.js.LEGAL.txt +0 -0
  98. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
  99. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
  100. package/storybook-static/sb-common-assets/favicon.svg +0 -1
  101. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  102. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  103. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  104. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  105. package/storybook-static/sb-manager/globals-module-info.js +0 -995
  106. package/storybook-static/sb-manager/globals-runtime.js +0 -53527
  107. package/storybook-static/sb-manager/globals.js +0 -48
  108. package/storybook-static/sb-manager/runtime.js +0 -11885
  109. package/storybook-static/sb-preview/globals.js +0 -33
  110. package/storybook-static/sb-preview/runtime.js +0 -9483
  111. package/tsconfig.json +0 -14
  112. /package/{src → dist}/components/__tests__/timeline/timeline.test.js +0 -0
  113. /package/{src/components/index.js → dist/components/index.d.ts} +0 -0
  114. /package/{src/components/index.ts → dist/components/index.js} +0 -0
  115. /package/{src → dist}/components/reproduction-widget/ReproductionWidget.js +0 -0
  116. /package/{src/components/reproduction-widget/index.js → dist/components/reproduction-widget/index.d.ts} +0 -0
  117. /package/{src → dist}/components/reproduction-widget/inner-players/PlayAlongInnerPlayer.js +0 -0
  118. /package/{src → dist}/components/reproduction-widget/inner-players/YouTubeInnerPlayer.js +0 -0
  119. /package/{src → dist}/components/reproduction-widget/models/Player/PlayAlongPlayer.js +0 -0
  120. /package/{src → dist}/components/reproduction-widget/models/Player/PlayerEvents.js +0 -0
  121. /package/{src → dist}/components/reproduction-widget/models/Player/YouTubePlayer.js +0 -0
  122. /package/{src → dist}/components/reproduction-widget/models/Reproduction.js +0 -0
  123. /package/{src → dist}/components/reproduction-widget/models/ReproductionBuilder.js +0 -0
  124. /package/{src → dist}/components/timeline/RangeSelectorCanvas/RangeSelectorCanvas.js +0 -0
  125. /package/{src → dist}/components/timeline/Timeline.js +0 -0
  126. /package/{src → dist}/components/timeline/TimelineCanvas/TickTime.js +0 -0
  127. /package/{src → dist}/components/timeline/TimelineCanvas/TickTimeCollectionDisplay.js +0 -0
  128. /package/{src → dist}/components/timeline/TimelineCanvas/TimelineCanvas.js +0 -0
  129. /package/{src → dist}/components/timeline/TimelineCanvas/drawTimeBlocksOnCanvas.js +0 -0
  130. /package/{src → dist}/components/timeline/TimelineValue/TimelineValue.js +0 -0
  131. /package/{src → dist}/components/timeline/ZoomContext/ZoomContext.js +0 -0
  132. /package/{src → dist}/components/timeline/constants.js +0 -0
  133. /package/{src/components/timeline/index.js → dist/components/timeline/index.d.ts} +0 -0
  134. /package/{src/components/timeline/index.tsx → dist/components/timeline/index.js} +0 -0
  135. /package/{src → dist}/components/timeline/utils/utils.js +0 -0
  136. /package/{src/index.js → dist/index.d.ts} +0 -0
  137. /package/{src/index.ts → dist/index.js} +0 -0
  138. /package/{src → dist}/setupTests.js +0 -0
  139. /package/{src → dist}/stories/reproduction-widget.stories.js +0 -0
  140. /package/{src → dist}/stories/timeline.stories.js +0 -0
@@ -1,66 +0,0 @@
1
- 'use strict';
2
-
3
- const fs = require('fs');
4
- const path = require('path');
5
- const crypto = require('crypto');
6
- const chalk = require('react-dev-utils/chalk');
7
- const paths = require('./paths');
8
-
9
- // Ensure the certificate and key provided are valid and if not
10
- // throw an easy to debug error
11
- function validateKeyAndCerts({ cert, key, keyFile, crtFile }) {
12
- let encrypted;
13
- try {
14
- // publicEncrypt will throw an error with an invalid cert
15
- encrypted = crypto.publicEncrypt(cert, Buffer.from('test'));
16
- } catch (err) {
17
- throw new Error(
18
- `The certificate "${chalk.yellow(crtFile)}" is invalid.\n${err.message}`
19
- );
20
- }
21
-
22
- try {
23
- // privateDecrypt will throw an error with an invalid key
24
- crypto.privateDecrypt(key, encrypted);
25
- } catch (err) {
26
- throw new Error(
27
- `The certificate key "${chalk.yellow(keyFile)}" is invalid.\n${
28
- err.message
29
- }`
30
- );
31
- }
32
- }
33
-
34
- // Read file and throw an error if it doesn't exist
35
- function readEnvFile(file, type) {
36
- if (!fs.existsSync(file)) {
37
- throw new Error(
38
- `You specified ${chalk.cyan(
39
- type
40
- )} in your env, but the file "${chalk.yellow(file)}" can't be found.`
41
- );
42
- }
43
- return fs.readFileSync(file);
44
- }
45
-
46
- // Get the https config
47
- // Return cert files if provided in env, otherwise just true or false
48
- function getHttpsConfig() {
49
- const { SSL_CRT_FILE, SSL_KEY_FILE, HTTPS } = process.env;
50
- const isHttps = HTTPS === 'true';
51
-
52
- if (isHttps && SSL_CRT_FILE && SSL_KEY_FILE) {
53
- const crtFile = path.resolve(paths.appPath, SSL_CRT_FILE);
54
- const keyFile = path.resolve(paths.appPath, SSL_KEY_FILE);
55
- const config = {
56
- cert: readEnvFile(crtFile, 'SSL_CRT_FILE'),
57
- key: readEnvFile(keyFile, 'SSL_KEY_FILE'),
58
- };
59
-
60
- validateKeyAndCerts({ ...config, keyFile, crtFile });
61
- return config;
62
- }
63
- return isHttps;
64
- }
65
-
66
- module.exports = getHttpsConfig;
@@ -1,29 +0,0 @@
1
- 'use strict';
2
-
3
- const babelJest = require('babel-jest').default;
4
-
5
- const hasJsxRuntime = (() => {
6
- if (process.env.DISABLE_NEW_JSX_TRANSFORM === 'true') {
7
- return false;
8
- }
9
-
10
- try {
11
- require.resolve('react/jsx-runtime');
12
- return true;
13
- } catch (e) {
14
- return false;
15
- }
16
- })();
17
-
18
- module.exports = babelJest.createTransformer({
19
- presets: [
20
- [
21
- require.resolve('babel-preset-react-app'),
22
- {
23
- runtime: hasJsxRuntime ? 'automatic' : 'classic',
24
- },
25
- ],
26
- ],
27
- babelrc: false,
28
- configFile: false,
29
- });
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- // This is a custom Jest transformer turning style imports into empty objects.
4
- // http://facebook.github.io/jest/docs/en/webpack.html
5
-
6
- module.exports = {
7
- process() {
8
- return 'module.exports = {};';
9
- },
10
- getCacheKey() {
11
- // The output is always the same.
12
- return 'cssTransform';
13
- },
14
- };
@@ -1,40 +0,0 @@
1
- 'use strict';
2
-
3
- const path = require('path');
4
- const camelcase = require('camelcase');
5
-
6
- // This is a custom Jest transformer turning file imports into filenames.
7
- // http://facebook.github.io/jest/docs/en/webpack.html
8
-
9
- module.exports = {
10
- process(src, filename) {
11
- const assetFilename = JSON.stringify(path.basename(filename));
12
-
13
- if (filename.match(/\.svg$/)) {
14
- // Based on how SVGR generates a component name:
15
- // https://github.com/smooth-code/svgr/blob/01b194cf967347d43d4cbe6b434404731b87cf27/packages/core/src/state.js#L6
16
- const pascalCaseFilename = camelcase(path.parse(filename).name, {
17
- pascalCase: true,
18
- });
19
- const componentName = `Svg${pascalCaseFilename}`;
20
- return `const React = require('react');
21
- module.exports = {
22
- __esModule: true,
23
- default: ${assetFilename},
24
- ReactComponent: React.forwardRef(function ${componentName}(props, ref) {
25
- return {
26
- $$typeof: Symbol.for('react.element'),
27
- type: 'svg',
28
- ref: ref,
29
- key: null,
30
- props: Object.assign({}, props, {
31
- children: ${assetFilename}
32
- })
33
- };
34
- }),
35
- };`;
36
- }
37
-
38
- return `module.exports = ${assetFilename};`;
39
- },
40
- };
package/config/modules.js DELETED
@@ -1,134 +0,0 @@
1
- 'use strict';
2
-
3
- const fs = require('fs');
4
- const path = require('path');
5
- const paths = require('./paths');
6
- const chalk = require('react-dev-utils/chalk');
7
- const resolve = require('resolve');
8
-
9
- /**
10
- * Get additional module paths based on the baseUrl of a compilerOptions object.
11
- *
12
- * @param {Object} options
13
- */
14
- function getAdditionalModulePaths(options = {}) {
15
- const baseUrl = options.baseUrl;
16
-
17
- if (!baseUrl) {
18
- return '';
19
- }
20
-
21
- const baseUrlResolved = path.resolve(paths.appPath, baseUrl);
22
-
23
- // We don't need to do anything if `baseUrl` is set to `node_modules`. This is
24
- // the default behavior.
25
- if (path.relative(paths.appNodeModules, baseUrlResolved) === '') {
26
- return null;
27
- }
28
-
29
- // Allow the user set the `baseUrl` to `appSrc`.
30
- if (path.relative(paths.appSrc, baseUrlResolved) === '') {
31
- return [paths.appSrc];
32
- }
33
-
34
- // If the path is equal to the root directory we ignore it here.
35
- // We don't want to allow importing from the root directly as source files are
36
- // not transpiled outside of `src`. We do allow importing them with the
37
- // absolute path (e.g. `src/Components/Button.js`) but we set that up with
38
- // an alias.
39
- if (path.relative(paths.appPath, baseUrlResolved) === '') {
40
- return null;
41
- }
42
-
43
- // Otherwise, throw an error.
44
- throw new Error(
45
- chalk.red.bold(
46
- "Your project's `baseUrl` can only be set to `src` or `node_modules`." +
47
- ' Create React App does not support other values at this time.'
48
- )
49
- );
50
- }
51
-
52
- /**
53
- * Get webpack aliases based on the baseUrl of a compilerOptions object.
54
- *
55
- * @param {*} options
56
- */
57
- function getWebpackAliases(options = {}) {
58
- const baseUrl = options.baseUrl;
59
-
60
- if (!baseUrl) {
61
- return {};
62
- }
63
-
64
- const baseUrlResolved = path.resolve(paths.appPath, baseUrl);
65
-
66
- if (path.relative(paths.appPath, baseUrlResolved) === '') {
67
- return {
68
- src: paths.appSrc,
69
- };
70
- }
71
- }
72
-
73
- /**
74
- * Get jest aliases based on the baseUrl of a compilerOptions object.
75
- *
76
- * @param {*} options
77
- */
78
- function getJestAliases(options = {}) {
79
- const baseUrl = options.baseUrl;
80
-
81
- if (!baseUrl) {
82
- return {};
83
- }
84
-
85
- const baseUrlResolved = path.resolve(paths.appPath, baseUrl);
86
-
87
- if (path.relative(paths.appPath, baseUrlResolved) === '') {
88
- return {
89
- '^src/(.*)$': '<rootDir>/src/$1',
90
- };
91
- }
92
- }
93
-
94
- function getModules() {
95
- // Check if TypeScript is setup
96
- const hasTsConfig = fs.existsSync(paths.appTsConfig);
97
- const hasJsConfig = fs.existsSync(paths.appJsConfig);
98
-
99
- if (hasTsConfig && hasJsConfig) {
100
- throw new Error(
101
- 'You have both a tsconfig.json and a jsconfig.json. If you are using TypeScript please remove your jsconfig.json file.'
102
- );
103
- }
104
-
105
- let config;
106
-
107
- // If there's a tsconfig.json we assume it's a
108
- // TypeScript project and set up the config
109
- // based on tsconfig.json
110
- if (hasTsConfig) {
111
- const ts = require(resolve.sync('typescript', {
112
- basedir: paths.appNodeModules,
113
- }));
114
- config = ts.readConfigFile(paths.appTsConfig, ts.sys.readFile).config;
115
- // Otherwise we'll check if there is jsconfig.json
116
- // for non TS projects.
117
- } else if (hasJsConfig) {
118
- config = require(paths.appJsConfig);
119
- }
120
-
121
- config = config || {};
122
- const options = config.compilerOptions || {};
123
-
124
- const additionalModulePaths = getAdditionalModulePaths(options);
125
-
126
- return {
127
- additionalModulePaths: additionalModulePaths,
128
- webpackAliases: getWebpackAliases(options),
129
- jestAliases: getJestAliases(options),
130
- hasTsConfig,
131
- };
132
- }
133
-
134
- module.exports = getModules();
package/config/paths.js DELETED
@@ -1,77 +0,0 @@
1
- 'use strict';
2
-
3
- const path = require('path');
4
- const fs = require('fs');
5
- const getPublicUrlOrPath = require('react-dev-utils/getPublicUrlOrPath');
6
-
7
- // Make sure any symlinks in the project folder are resolved:
8
- // https://github.com/facebook/create-react-app/issues/637
9
- const appDirectory = fs.realpathSync(process.cwd());
10
- const resolveApp = relativePath => path.resolve(appDirectory, relativePath);
11
-
12
- // We use `PUBLIC_URL` environment variable or "homepage" field to infer
13
- // "public path" at which the app is served.
14
- // webpack needs to know it to put the right <script> hrefs into HTML even in
15
- // single-page apps that may serve index.html for nested URLs like /todos/42.
16
- // We can't use a relative path in HTML because we don't want to load something
17
- // like /todos/42/static/js/bundle.7289d.js. We have to know the root.
18
- const publicUrlOrPath = getPublicUrlOrPath(
19
- process.env.NODE_ENV === 'development',
20
- require(resolveApp('package.json')).homepage,
21
- process.env.PUBLIC_URL
22
- );
23
-
24
- const buildPath = process.env.BUILD_PATH || 'build';
25
-
26
- const moduleFileExtensions = [
27
- 'web.mjs',
28
- 'mjs',
29
- 'web.js',
30
- 'js',
31
- 'web.ts',
32
- 'ts',
33
- 'web.tsx',
34
- 'tsx',
35
- 'json',
36
- 'web.jsx',
37
- 'jsx',
38
- ];
39
-
40
- // Resolve file paths in the same order as webpack
41
- const resolveModule = (resolveFn, filePath) => {
42
- const extension = moduleFileExtensions.find(extension =>
43
- fs.existsSync(resolveFn(`${filePath}.${extension}`))
44
- );
45
-
46
- if (extension) {
47
- return resolveFn(`${filePath}.${extension}`);
48
- }
49
-
50
- return resolveFn(`${filePath}.js`);
51
- };
52
-
53
- // config after eject: we're in ./config/
54
- module.exports = {
55
- dotenv: resolveApp('.env'),
56
- appPath: resolveApp('.'),
57
- appBuild: resolveApp(buildPath),
58
- appPublic: resolveApp('public'),
59
- appHtml: resolveApp('public/index.html'),
60
- appIndexJs: resolveModule(resolveApp, 'src/index'),
61
- appPackageJson: resolveApp('package.json'),
62
- appSrc: resolveApp('src'),
63
- appTsConfig: resolveApp('tsconfig.json'),
64
- appJsConfig: resolveApp('jsconfig.json'),
65
- yarnLockFile: resolveApp('yarn.lock'),
66
- testsSetup: resolveModule(resolveApp, 'src/setupTests'),
67
- proxySetup: resolveApp('src/setupProxy.js'),
68
- appNodeModules: resolveApp('node_modules'),
69
- appWebpackCache: resolveApp('node_modules/.cache'),
70
- appTsBuildInfoFile: resolveApp('node_modules/.cache/tsconfig.tsbuildinfo'),
71
- swSrc: resolveModule(resolveApp, 'src/service-worker'),
72
- publicUrlOrPath,
73
- };
74
-
75
-
76
-
77
- module.exports.moduleFileExtensions = moduleFileExtensions;
@@ -1,9 +0,0 @@
1
- 'use strict';
2
- const { createHash } = require('crypto');
3
-
4
- module.exports = env => {
5
- const hash = createHash('md5');
6
- hash.update(JSON.stringify(env));
7
-
8
- return hash.digest('hex');
9
- };