@storybook/telemetry 6.5.0-beta.4 → 6.5.0-beta.7

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.
@@ -39,10 +39,11 @@ var getAnonymousProjectId = function getAnonymousProjectId() {
39
39
  }); // we use a combination of remoteUrl and working directory
40
40
  // to separate multiple storybooks from the same project (e.g. monorepo)
41
41
 
42
- unhashedProjectId = "".concat(String(originBuffer).trim()).concat(projectRootPath); // eslint-disable-next-line no-empty
43
- } catch (_) {}
42
+ unhashedProjectId = "".concat(String(originBuffer).trim()).concat(projectRootPath);
43
+ anonymousProjectId = (0, _oneWayHash.oneWayHash)(unhashedProjectId);
44
+ } catch (_) {//
45
+ }
44
46
 
45
- anonymousProjectId = (0, _oneWayHash.oneWayHash)(unhashedProjectId);
46
47
  return anonymousProjectId;
47
48
  };
48
49
 
@@ -21,9 +21,10 @@ export var getAnonymousProjectId = function getAnonymousProjectId() {
21
21
  }); // we use a combination of remoteUrl and working directory
22
22
  // to separate multiple storybooks from the same project (e.g. monorepo)
23
23
 
24
- unhashedProjectId = "".concat(String(originBuffer).trim()).concat(projectRootPath); // eslint-disable-next-line no-empty
25
- } catch (_) {}
24
+ unhashedProjectId = "".concat(String(originBuffer).trim()).concat(projectRootPath);
25
+ anonymousProjectId = oneWayHash(unhashedProjectId);
26
+ } catch (_) {//
27
+ }
26
28
 
27
- anonymousProjectId = oneWayHash(unhashedProjectId);
28
29
  return anonymousProjectId;
29
30
  };
@@ -19,9 +19,10 @@ export const getAnonymousProjectId = () => {
19
19
  }); // we use a combination of remoteUrl and working directory
20
20
  // to separate multiple storybooks from the same project (e.g. monorepo)
21
21
 
22
- unhashedProjectId = `${String(originBuffer).trim()}${projectRootPath}`; // eslint-disable-next-line no-empty
23
- } catch (_) {}
22
+ unhashedProjectId = `${String(originBuffer).trim()}${projectRootPath}`;
23
+ anonymousProjectId = oneWayHash(unhashedProjectId);
24
+ } catch (_) {//
25
+ }
24
26
 
25
- anonymousProjectId = oneWayHash(unhashedProjectId);
26
27
  return anonymousProjectId;
27
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/telemetry",
3
- "version": "6.5.0-beta.4",
3
+ "version": "6.5.0-beta.7",
4
4
  "description": "Telemetry logging for crash reports and usage statistics",
5
5
  "keywords": [
6
6
  "storybook"
@@ -40,8 +40,8 @@
40
40
  "prepare": "node ../../scripts/prepare.js"
41
41
  },
42
42
  "dependencies": {
43
- "@storybook/client-logger": "6.5.0-beta.4",
44
- "@storybook/core-common": "6.5.0-beta.4",
43
+ "@storybook/client-logger": "6.5.0-beta.7",
44
+ "@storybook/core-common": "6.5.0-beta.7",
45
45
  "chalk": "^4.1.0",
46
46
  "core-js": "^3.8.2",
47
47
  "detect-package-manager": "^2.0.1",
@@ -56,6 +56,6 @@
56
56
  "publishConfig": {
57
57
  "access": "public"
58
58
  },
59
- "gitHead": "55247a8e36da7061bfced80c588a539d3fda3f04",
59
+ "gitHead": "14bb6d241c888cc3be6adba94c3e3a1ceddadf74",
60
60
  "sbmodern": "dist/modern/index.js"
61
61
  }