Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shopify/react-async

Package Overview
Dependencies
Maintainers
19
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/react-async - npm Package Compare versions

Comparing version 4.0.1 to 4.1.0

build/tsconfig.tsbuildinfo

3

build/cjs/EventListener.js

@@ -12,2 +12,3 @@ 'use strict';

const _excluded = ["passive"];
// see https://github.com/oliviertassinari/react-event-listener/

@@ -20,3 +21,3 @@ class EventListener extends React__default['default'].PureComponent {

componentDidUpdate(_ref) {
let detachProps = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, ["passive"]);
let detachProps = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);

@@ -23,0 +24,0 @@ this.detachListener(detachProps);

@@ -7,4 +7,3 @@ import React from 'react';

}
componentDidUpdate(_a) {
var { passive } = _a, detachProps = __rest(_a, ["passive"]);
componentDidUpdate({ passive, ...detachProps }) {
this.detachListener(detachProps);

@@ -11,0 +10,0 @@ this.attachListener();

@@ -62,3 +62,3 @@ import { useState, useCallback, useContext } from 'react';

}
}, async === null || async === void 0 ? void 0 : async.effect);
}, async?.effect);
}

@@ -1,1 +0,4 @@

module.exports = require("./build/cjs/index.js");
function interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj};
}
module.exports = interopRequireDefault(require("./build/cjs/index.js"));
{
"name": "@shopify/react-async",
"version": "4.0.1",
"version": "4.1.0",
"license": "MIT",

@@ -28,11 +28,11 @@ "description": "Tools for creating powerful, asynchronously-loaded React components",

"@shopify/async": "^3.0.1",
"@shopify/react-effect": "^4.0.1",
"@shopify/react-hooks": "^2.0.1",
"@shopify/react-hydrate": "^2.0.1",
"@shopify/react-idle": "^2.0.1",
"@shopify/react-intersection-observer": "^3.0.1",
"@shopify/react-effect": "^4.1.0",
"@shopify/react-hooks": "^2.1.0",
"@shopify/react-hydrate": "^2.1.0",
"@shopify/react-idle": "^2.1.0",
"@shopify/react-intersection-observer": "^3.1.0",
"@shopify/useful-types": "^3.0.1"
},
"peerDependencies": {
"react": ">=16.8.0 <17.0.0"
"react": ">=16.8.0 <18.0.0"
},

@@ -66,3 +66,3 @@ "files": [

},
"gitHead": "0edc9e3b7df7b6a4805cc3ff1443641cdb8e8a72"
"gitHead": "30d892584692f05644604a818e8f3613d1ec6e0b"
}

@@ -308,3 +308,3 @@ # `@shopify/react-async`

path={/^\/products\/(\d+)$/}
render={url => {
render={(url) => {
const id = url.pathname.split('/').pop();

@@ -383,3 +383,3 @@ return <ProductDetails.Prefetch id={id} />;

<ExpensiveFileContext.Consumer>
{file => (file ? <CsvViewer file={file} /> : null)}
{(file) => (file ? <CsvViewer file={file} /> : null)}
</ExpensiveFileContext.Consumer>;

@@ -386,0 +386,0 @@ ```

@@ -1,1 +0,4 @@

module.exports = require("./build/cjs/testing.js");
function interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj};
}
module.exports = interopRequireDefault(require("./build/cjs/testing.js"));

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc