@prisma/sqlcommenter-trace-context 0.0.1 → 7.1.0-dev.39

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/dist/index.js CHANGED
@@ -27,7 +27,7 @@ module.exports = __toCommonJS(index_exports);
27
27
  // ../instrumentation-contract/dist/index.mjs
28
28
  var package_default = {
29
29
  name: "@prisma/instrumentation-contract",
30
- version: "0.0.1",
30
+ version: "7.1.0-dev.39",
31
31
  description: "Shared types and utilities for Prisma instrumentation",
32
32
  main: "dist/index.js",
33
33
  module: "dist/index.mjs",
@@ -63,19 +63,22 @@ var package_default = {
63
63
  ],
64
64
  sideEffects: false,
65
65
  devDependencies: {
66
- "@opentelemetry/api": "1.9.0",
67
- vitest: "3.2.4"
66
+ "@opentelemetry/api": "1.9.0"
67
+ },
68
+ peerDependencies: {
69
+ "@opentelemetry/api": "^1.8"
68
70
  }
69
71
  };
70
72
  var majorVersion = package_default.version.split(".")[0];
71
73
  var GLOBAL_INSTRUMENTATION_KEY = "PRISMA_INSTRUMENTATION";
72
74
  var GLOBAL_VERSIONED_INSTRUMENTATION_KEY = `V${majorVersion}_PRISMA_INSTRUMENTATION`;
75
+ var globalThisWithPrismaInstrumentation = globalThis;
73
76
  function getGlobalTracingHelper() {
74
- const versionedGlobal = globalThis[GLOBAL_VERSIONED_INSTRUMENTATION_KEY];
77
+ const versionedGlobal = globalThisWithPrismaInstrumentation[GLOBAL_VERSIONED_INSTRUMENTATION_KEY];
75
78
  if (versionedGlobal?.helper) {
76
79
  return versionedGlobal.helper;
77
80
  }
78
- const fallbackGlobal = globalThis[GLOBAL_INSTRUMENTATION_KEY];
81
+ const fallbackGlobal = globalThisWithPrismaInstrumentation[GLOBAL_INSTRUMENTATION_KEY];
79
82
  return fallbackGlobal?.helper;
80
83
  }
81
84
 
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  // ../instrumentation-contract/dist/index.mjs
2
2
  var package_default = {
3
3
  name: "@prisma/instrumentation-contract",
4
- version: "0.0.1",
4
+ version: "7.1.0-dev.39",
5
5
  description: "Shared types and utilities for Prisma instrumentation",
6
6
  main: "dist/index.js",
7
7
  module: "dist/index.mjs",
@@ -37,19 +37,22 @@ var package_default = {
37
37
  ],
38
38
  sideEffects: false,
39
39
  devDependencies: {
40
- "@opentelemetry/api": "1.9.0",
41
- vitest: "3.2.4"
40
+ "@opentelemetry/api": "1.9.0"
41
+ },
42
+ peerDependencies: {
43
+ "@opentelemetry/api": "^1.8"
42
44
  }
43
45
  };
44
46
  var majorVersion = package_default.version.split(".")[0];
45
47
  var GLOBAL_INSTRUMENTATION_KEY = "PRISMA_INSTRUMENTATION";
46
48
  var GLOBAL_VERSIONED_INSTRUMENTATION_KEY = `V${majorVersion}_PRISMA_INSTRUMENTATION`;
49
+ var globalThisWithPrismaInstrumentation = globalThis;
47
50
  function getGlobalTracingHelper() {
48
- const versionedGlobal = globalThis[GLOBAL_VERSIONED_INSTRUMENTATION_KEY];
51
+ const versionedGlobal = globalThisWithPrismaInstrumentation[GLOBAL_VERSIONED_INSTRUMENTATION_KEY];
49
52
  if (versionedGlobal?.helper) {
50
53
  return versionedGlobal.helper;
51
54
  }
52
- const fallbackGlobal = globalThis[GLOBAL_INSTRUMENTATION_KEY];
55
+ const fallbackGlobal = globalThisWithPrismaInstrumentation[GLOBAL_INSTRUMENTATION_KEY];
53
56
  return fallbackGlobal?.helper;
54
57
  }
55
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/sqlcommenter-trace-context",
3
- "version": "0.0.1",
3
+ "version": "7.1.0-dev.39",
4
4
  "description": "W3C Trace Context (traceparent) plugin for Prisma SQL commenter",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -30,9 +30,8 @@
30
30
  ],
31
31
  "sideEffects": false,
32
32
  "devDependencies": {
33
- "vitest": "3.2.4",
34
- "@prisma/instrumentation-contract": "0.0.0",
35
- "@prisma/sqlcommenter": "0.0.0"
33
+ "@prisma/instrumentation-contract": "7.1.0-dev.39",
34
+ "@prisma/sqlcommenter": "7.1.0-dev.39"
36
35
  },
37
36
  "scripts": {
38
37
  "dev": "DEV=true tsx helpers/build.ts",