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

@shopify/react-async

Package Overview
Dependencies
Maintainers
12
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 1.2.0 to 1.2.1

6

CHANGELOG.md

@@ -10,2 +10,8 @@ # Changelog

## 1.2.1 - 2019-02-26
### Fixed
- Fixed an issue where Webpack would complain about a dynamic `require` statement ([#533](https://github.com/Shopify/quilt/pull/533))
## 1.2.0 - 2019-02-25

@@ -12,0 +18,0 @@

10

dist/Async.js

@@ -88,2 +88,8 @@ "use strict";

}
// Webpack does not like seeing an explicit require(someVariable) in code
// because that is a dynamic require that it can’t resolve. This code
// obfuscates `require()` for the purpose of fooling Webpack, which is fine
// because we only want to use the `require()` in cases where Webpack
// is not the module bundler.
var nodeRequire = typeof require === 'function' ? require : undefined;
// If we have an ID, we try to first use Webpack’s internal stuff

@@ -108,5 +114,5 @@ // to resolve the module. If those don’t exist, we know we aren’t

}
else if (typeof require === 'function') {
else if (typeof nodeRequire === 'function') {
try {
return normalize(require(id));
return normalize(nodeRequire(id));
}

@@ -113,0 +119,0 @@ catch (_b) {

2

package.json
{
"name": "@shopify/react-async",
"version": "1.2.0",
"version": "1.2.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Tools for creating powerful, asynchronously-loaded React components.",

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