@lingo.dev/_compiler 0.11.2 → 0.11.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.
package/build/index.cjs CHANGED
@@ -28,7 +28,7 @@ var _unplugin = require('unplugin');
28
28
  // package.json
29
29
  var package_default = {
30
30
  name: "@lingo.dev/_compiler",
31
- version: "0.11.2",
31
+ version: "0.11.4",
32
32
  description: "Lingo.dev Compiler",
33
33
  private: false,
34
34
  repository: {
@@ -113,6 +113,7 @@ var _dedent = require('dedent'); var _dedent2 = _interopRequireDefault(_dedent);
113
113
 
114
114
  // src/utils/observability.ts
115
115
  var _nodemachineid = require('node-machine-id'); var machineIdLib = _interopRequireWildcard(_nodemachineid);
116
+ var _crypto = require('crypto'); var _crypto2 = _interopRequireDefault(_crypto);
116
117
 
117
118
  // src/utils/org-id.ts
118
119
  var _child_process = require('child_process');
@@ -236,8 +237,9 @@ async function getDistinctId() {
236
237
  const orgId = getOrgId();
237
238
  const email = await tryGetEmail();
238
239
  if (email) {
240
+ const hashedEmail = _crypto2.default.createHash("sha256").update(email).digest("hex");
239
241
  return {
240
- distinct_id: email,
242
+ distinct_id: hashedEmail,
241
243
  distinct_id_source: "email",
242
244
  org_id: orgId
243
245
  };
package/build/index.mjs CHANGED
@@ -28,7 +28,7 @@ import { createUnplugin } from "unplugin";
28
28
  // package.json
29
29
  var package_default = {
30
30
  name: "@lingo.dev/_compiler",
31
- version: "0.11.2",
31
+ version: "0.11.4",
32
32
  description: "Lingo.dev Compiler",
33
33
  private: false,
34
34
  repository: {
@@ -113,6 +113,7 @@ import dedent from "dedent";
113
113
 
114
114
  // src/utils/observability.ts
115
115
  import * as machineIdLib from "node-machine-id";
116
+ import crypto from "crypto";
116
117
 
117
118
  // src/utils/org-id.ts
118
119
  import { execSync } from "child_process";
@@ -236,8 +237,9 @@ async function getDistinctId() {
236
237
  const orgId = getOrgId();
237
238
  const email = await tryGetEmail();
238
239
  if (email) {
240
+ const hashedEmail = crypto.createHash("sha256").update(email).digest("hex");
239
241
  return {
240
- distinct_id: email,
242
+ distinct_id: hashedEmail,
241
243
  distinct_id_source: "email",
242
244
  org_id: orgId
243
245
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingo.dev/_compiler",
3
- "version": "0.11.2",
3
+ "version": "0.11.4",
4
4
  "description": "Lingo.dev Compiler",
5
5
  "private": false,
6
6
  "repository": {
@@ -65,7 +65,7 @@
65
65
  "posthog-node": "5.14.0",
66
66
  "unplugin": "2.3.11",
67
67
  "zod": "4.1.12",
68
- "@lingo.dev/_sdk": "0.14.2",
68
+ "@lingo.dev/_sdk": "0.15.0",
69
69
  "@lingo.dev/_spec": "0.48.0"
70
70
  },
71
71
  "scripts": {