@xovris/core 0.1.2 → 0.1.3

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 (2) hide show
  1. package/dist/index.js +7 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -286,6 +286,13 @@ export function releaseFrom(env) {
286
286
  if (v)
287
287
  return v;
288
288
  }
289
+ // G183.930.15 (L77): any other platform, read by the shape of its own words - a variable it names a commit, revision or source version
290
+ // whose value is a git commit (KEEP: machine format - a commit's own shape, never a list of platforms)
291
+ for (const [k, raw] of Object.entries(env).sort(([x], [y]) => x.localeCompare(y))) {
292
+ const v = raw?.trim();
293
+ if (v && /(?:^|_)(?:GIT_)?(?:COMMIT(?:_?SHA|_?ID|_?REF)?|SHA1?|REVISION|SOURCE_VERSION)$/i.test(k) && /^[0-9a-f]{7,40}$/i.test(v))
294
+ return v;
295
+ }
289
296
  return undefined;
290
297
  }
291
298
  export function environmentFrom(env) {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@xovris/core",
3
- "gitHead": "8c4ea16632dacbd3d42aa498287016ff8445a668",
3
+ "gitHead": "92d48aac5472f83bea63beb61c64d853b2f18097",
4
4
  "description": "Error capture, stack frames, breadcrumbs and Sentry-protocol envelopes for the Xovris SDK layer (ADR 0011).",
5
- "version": "0.1.2",
5
+ "version": "0.1.3",
6
6
  "license": "Apache-2.0",
7
7
  "type": "module",
8
8
  "files": [