@shopify/react-performance
Advanced tools
Comparing version 2.1.14 to 3.0.0
@@ -5,3 +5,2 @@ 'use strict'; | ||
var _rollupPluginBabelHelpers = require('./_virtual/_rollupPluginBabelHelpers.js'); | ||
var React = require('react'); | ||
@@ -24,3 +23,3 @@ var network = require('@shopify/network'); | ||
timeout.current = setTimeout( /*#__PURE__*/_rollupPluginBabelHelpers.asyncToGenerator(function* () { | ||
timeout.current = setTimeout(async () => { | ||
if (timeout.current) { | ||
@@ -32,3 +31,3 @@ clearTimeout(timeout.current); | ||
try { | ||
yield fetch(url, { | ||
await fetch(url, { | ||
method: network.Method.Post, | ||
@@ -59,3 +58,3 @@ headers: { | ||
} | ||
}), 1000); | ||
}, 1000); | ||
}, [locale, onError, url]); | ||
@@ -62,0 +61,0 @@ const onNavigation = React.useCallback(navigation => { |
{ | ||
"name": "@shopify/react-performance", | ||
"version": "2.1.14", | ||
"version": "3.0.0", | ||
"license": "MIT", | ||
@@ -24,6 +24,6 @@ "description": "Primitives to measure your React application's performance using `@shopify/performance`", | ||
"engines": { | ||
"node": ">=12.14.0" | ||
"node": "^14.17.0 || >=16.0.0" | ||
}, | ||
"dependencies": { | ||
"@shopify/performance": "^2.0.14" | ||
"@shopify/performance": "^3.0.0" | ||
}, | ||
@@ -34,3 +34,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@shopify/network": "^2.0.8" | ||
"@shopify/network": "^3.0.0" | ||
}, | ||
@@ -52,6 +52,5 @@ "files": [ | ||
"require": "./index.js" | ||
}, | ||
"./*": "./*" | ||
} | ||
}, | ||
"gitHead": "70feded397084daea784a8c5a523a61ac4fdb34c" | ||
"gitHead": "ef9afc562672dcda9d7800753dc6b777ecd2d751" | ||
} |
Sorry, the diff of this file is not supported yet
40496
66
446
+ Added@shopify/performance@3.2.5(transitive)
+ Addedweb-vitals@3.5.2(transitive)
- Removed@shopify/performance@2.0.14(transitive)
Updated@shopify/performance@^3.0.0