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 3.2.0-sk-next-beta.0 to 3.2.0-sk-next-beta.1

9

build/cjs/context/assets.js

@@ -36,4 +36,2 @@ "use strict";

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var EFFECT_ID = Symbol('react-async');

@@ -48,3 +46,3 @@ exports.EFFECT_ID = EFFECT_ID;

_defineProperty(this, "effect", {
this.effect = {
id: EFFECT_ID,

@@ -54,5 +52,4 @@ betweenEachPass: function betweenEachPass() {

}
});
_defineProperty(this, "assets", new Map());
};
this.assets = new Map();
}

@@ -59,0 +56,0 @@

@@ -18,4 +18,2 @@ "use strict";

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var PrefetchManager = /*#__PURE__*/function () {

@@ -25,4 +23,3 @@ function PrefetchManager(registered) {

_defineProperty(this, "registered", void 0);
this.registered = void 0;
this.registered = new Set(registered);

@@ -29,0 +26,0 @@ }

@@ -51,4 +51,2 @@ "use strict";

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var INTENTION_DELAY_MS = 150;

@@ -72,12 +70,8 @@ exports.INTENTION_DELAY_MS = INTENTION_DELAY_MS;

_this = _super.call.apply(_super, [this].concat(args));
_this.state = {};
_this.timeout = void 0;
_this.timeoutUrl = void 0;
_this.prefetchAgressively = shouldPrefetchAggressively();
_defineProperty(_assertThisInitialized(_this), "state", {});
_defineProperty(_assertThisInitialized(_this), "timeout", void 0);
_defineProperty(_assertThisInitialized(_this), "timeoutUrl", void 0);
_defineProperty(_assertThisInitialized(_this), "prefetchAgressively", shouldPrefetchAggressively());
_defineProperty(_assertThisInitialized(_this), "handlePressStart", function (_ref) {
_this.handlePressStart = function (_ref) {
var target = _ref.target;

@@ -98,5 +92,5 @@

}
});
};
_defineProperty(_assertThisInitialized(_this), "handlePointerLeave", function (_ref2) {
_this.handlePointerLeave = function (_ref2) {
var target = _ref2.target,

@@ -134,5 +128,5 @@ relatedTarget = _ref2.relatedTarget;

}
});
};
_defineProperty(_assertThisInitialized(_this), "handlePointerEnter", function (_ref3) {
_this.handlePointerEnter = function (_ref3) {
var target = _ref3.target;

@@ -170,3 +164,3 @@

}, INTENTION_DELAY_MS);
});
};

@@ -173,0 +167,0 @@ return _this;

@@ -36,4 +36,2 @@ "use strict";

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var ConnectedPrefetchRoute = /*#__PURE__*/function (_React$Component) {

@@ -54,5 +52,3 @@ _inherits(ConnectedPrefetchRoute, _React$Component);

_this = _super.call.apply(_super, [this].concat(args));
_defineProperty(_assertThisInitialized(_this), "unregister", void 0);
_this.unregister = void 0;
return _this;

@@ -59,0 +55,0 @@ }

@@ -14,4 +14,2 @@ "use strict";

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
const EFFECT_ID = Symbol('react-async');

@@ -22,3 +20,3 @@ exports.EFFECT_ID = EFFECT_ID;

constructor() {
_defineProperty(this, "effect", {
this.effect = {
id: EFFECT_ID,

@@ -28,5 +26,4 @@ betweenEachPass: () => {

}
});
_defineProperty(this, "assets", new Map());
};
this.assets = new Map();
}

@@ -33,0 +30,0 @@

@@ -12,8 +12,5 @@ "use strict";

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
class PrefetchManager {
constructor(registered) {
_defineProperty(this, "registered", void 0);
this.registered = void 0;
this.registered = new Set(registered);

@@ -20,0 +17,0 @@ }

@@ -17,4 +17,2 @@ "use strict";

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
const INTENTION_DELAY_MS = 150;

@@ -26,12 +24,8 @@ exports.INTENTION_DELAY_MS = INTENTION_DELAY_MS;

super(...args);
this.state = {};
this.timeout = void 0;
this.timeoutUrl = void 0;
this.prefetchAgressively = shouldPrefetchAggressively();
_defineProperty(this, "state", {});
_defineProperty(this, "timeout", void 0);
_defineProperty(this, "timeoutUrl", void 0);
_defineProperty(this, "prefetchAgressively", shouldPrefetchAggressively());
_defineProperty(this, "handlePressStart", ({
this.handlePressStart = ({
target

@@ -52,5 +46,5 @@ }) => {

}
});
};
_defineProperty(this, "handlePointerLeave", ({
this.handlePointerLeave = ({
target,

@@ -91,5 +85,5 @@ relatedTarget

}
});
};
_defineProperty(this, "handlePointerEnter", ({
this.handlePointerEnter = ({
target

@@ -126,3 +120,3 @@ }) => {

}, INTENTION_DELAY_MS);
});
};
}

@@ -129,0 +123,0 @@

@@ -14,9 +14,6 @@ "use strict";

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
class ConnectedPrefetchRoute extends _react.default.Component {
constructor(...args) {
super(...args);
_defineProperty(this, "unregister", void 0);
this.unregister = void 0;
}

@@ -23,0 +20,0 @@

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

module.exports = require("./build/cjs/index");
module.exports = require("./build/node/index");
{
"name": "@shopify/react-async",
"version": "3.2.0-sk-next-beta.0",
"version": "3.2.0-sk-next-beta.1",
"license": "MIT",

@@ -27,9 +27,9 @@ "description": "Tools for creating powerful, asynchronously-loaded React components",

"dependencies": {
"@shopify/async": "^2.2.0-sk-next-beta.0",
"@shopify/react-effect": "^3.3.0-sk-next-beta.0",
"@shopify/react-hooks": "^1.12.0-sk-next-beta.0",
"@shopify/react-hydrate": "^1.2.0-sk-next-beta.0",
"@shopify/react-idle": "^1.1.0-sk-next-beta.0",
"@shopify/react-intersection-observer": "^2.1.0-sk-next-beta.0",
"@shopify/useful-types": "^2.3.0-sk-next-beta.0",
"@shopify/async": "^2.2.0-sk-next-beta.1",
"@shopify/react-effect": "^3.3.0-sk-next-beta.1",
"@shopify/react-hooks": "^1.12.0-sk-next-beta.1",
"@shopify/react-hydrate": "^1.2.0-sk-next-beta.1",
"@shopify/react-idle": "^1.1.0-sk-next-beta.1",
"@shopify/react-intersection-observer": "^2.1.0-sk-next-beta.1",
"@shopify/useful-types": "^2.3.0-sk-next-beta.1",
"tslib": "^1.14.1"

@@ -36,0 +36,0 @@ },

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

module.exports = require("./build/cjs/testing");
module.exports = require("./build/node/testing");

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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