@envelop/core 2.4.0-alpha-35741fe.0 → 2.4.0-alpha-c0cc559.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.
- package/index.js +1 -2
- package/index.mjs +1 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -791,8 +791,7 @@ function createEnvelopOrchestrator(plugins) {
|
|
|
791
791
|
};
|
|
792
792
|
}
|
|
793
793
|
|
|
794
|
-
|
|
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
|
-
|
|
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 () => {
|