@envelop/core 2.4.0-alpha-35741fe.0 → 2.4.0-alpha-aca44e1.0

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 (3) hide show
  1. package/index.js +1 -2
  2. package/index.mjs +1 -2
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -791,8 +791,7 @@ function createEnvelopOrchestrator(plugins) {
791
791
  };
792
792
  }
793
793
 
794
- var _a;
795
- const getTimestamp = typeof globalThis !== 'undefined' && ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.performance) === null || _a === void 0 ? void 0 : _a.now) ? () => performance.now() : () => Date.now();
794
+ const getTimestamp = typeof performance !== 'undefined' && performance.now ? () => performance.now() : () => Date.now();
796
795
  const measure = () => {
797
796
  const start = getTimestamp();
798
797
  return () => {
package/index.mjs CHANGED
@@ -787,8 +787,7 @@ function createEnvelopOrchestrator(plugins) {
787
787
  };
788
788
  }
789
789
 
790
- var _a;
791
- const getTimestamp = typeof globalThis !== 'undefined' && ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.performance) === null || _a === void 0 ? void 0 : _a.now) ? () => performance.now() : () => Date.now();
790
+ const getTimestamp = typeof performance !== 'undefined' && performance.now ? () => performance.now() : () => Date.now();
792
791
  const measure = () => {
793
792
  const start = getTimestamp();
794
793
  return () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envelop/core",
3
- "version": "2.4.0-alpha-35741fe.0",
3
+ "version": "2.4.0-alpha-aca44e1.0",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"