@shopify/async
Advanced tools
Comparing version 2.2.4 to 2.2.6
@@ -11,2 +11,3 @@ "use strict"; | ||
if (key === "default" || key === "__esModule") return; | ||
if (key in exports && exports[key] === _types[key]) return; | ||
Object.defineProperty(exports, key, { | ||
@@ -24,2 +25,3 @@ enumerable: true, | ||
if (key === "default" || key === "__esModule") return; | ||
if (key in exports && exports[key] === _resolver[key]) return; | ||
Object.defineProperty(exports, key, { | ||
@@ -26,0 +28,0 @@ enumerable: true, |
@@ -106,6 +106,3 @@ "use strict"; | ||
} | ||
/* eslint-disable @typescript-eslint/camelcase */ | ||
/* eslint-enable @typescript-eslint/camelcase */ | ||
// Webpack does not like seeing an explicit require(someVariable) in code | ||
@@ -130,13 +127,9 @@ // because that is a dynamic require that it can’t resolve. This code | ||
function tryRequire(id) { | ||
if ( | ||
/* eslint-disable @typescript-eslint/camelcase */ | ||
typeof __webpack_require__ === 'function' && (typeof __webpack_modules__ === "undefined" ? "undefined" : _typeof(__webpack_modules__)) === 'object' && __webpack_modules__[id] | ||
/* eslint-enable @typescript-eslint/camelcase */ | ||
) { | ||
try { | ||
return normalize(__webpack_require__(id)); | ||
} catch (_unused) {// Just ignore failures | ||
} | ||
} else if (typeof nodeRequire === 'function') { | ||
if (typeof __webpack_require__ === 'function' && (typeof __webpack_modules__ === "undefined" ? "undefined" : _typeof(__webpack_modules__)) === 'object' && __webpack_modules__[id]) { | ||
try { | ||
return normalize(__webpack_require__(id)); | ||
} catch (_unused) {// Just ignore failures | ||
} | ||
} else if (typeof nodeRequire === 'function') { | ||
try { | ||
return normalize(nodeRequire(id)); | ||
@@ -143,0 +136,0 @@ } catch (_unused2) {// Just ignore failures |
@@ -11,2 +11,3 @@ "use strict"; | ||
if (key === "default" || key === "__esModule") return; | ||
if (key in exports && exports[key] === _types[key]) return; | ||
Object.defineProperty(exports, key, { | ||
@@ -24,2 +25,3 @@ enumerable: true, | ||
if (key === "default" || key === "__esModule") return; | ||
if (key in exports && exports[key] === _resolver[key]) return; | ||
Object.defineProperty(exports, key, { | ||
@@ -26,0 +28,0 @@ enumerable: true, |
@@ -51,6 +51,3 @@ "use strict"; | ||
} | ||
/* eslint-disable @typescript-eslint/camelcase */ | ||
/* eslint-enable @typescript-eslint/camelcase */ | ||
// Webpack does not like seeing an explicit require(someVariable) in code | ||
@@ -75,13 +72,9 @@ // because that is a dynamic require that it can’t resolve. This code | ||
function tryRequire(id) { | ||
if ( | ||
/* eslint-disable @typescript-eslint/camelcase */ | ||
typeof __webpack_require__ === 'function' && typeof __webpack_modules__ === 'object' && __webpack_modules__[id] | ||
/* eslint-enable @typescript-eslint/camelcase */ | ||
) { | ||
try { | ||
return normalize(__webpack_require__(id)); | ||
} catch {// Just ignore failures | ||
} | ||
} else if (typeof nodeRequire === 'function') { | ||
if (typeof __webpack_require__ === 'function' && typeof __webpack_modules__ === 'object' && __webpack_modules__[id]) { | ||
try { | ||
return normalize(__webpack_require__(id)); | ||
} catch {// Just ignore failures | ||
} | ||
} else if (typeof nodeRequire === 'function') { | ||
try { | ||
return normalize(nodeRequire(id)); | ||
@@ -88,0 +81,0 @@ } catch {// Just ignore failures |
@@ -35,3 +35,2 @@ export function createResolver({ id, load }) { | ||
} | ||
/* eslint-enable @typescript-eslint/camelcase */ | ||
// Webpack does not like seeing an explicit require(someVariable) in code | ||
@@ -62,9 +61,5 @@ // because that is a dynamic require that it can’t resolve. This code | ||
function tryRequire(id) { | ||
if ( | ||
/* eslint-disable @typescript-eslint/camelcase */ | ||
typeof __webpack_require__ === 'function' && | ||
if (typeof __webpack_require__ === 'function' && | ||
typeof __webpack_modules__ === 'object' && | ||
__webpack_modules__[id] | ||
/* eslint-enable @typescript-eslint/camelcase */ | ||
) { | ||
__webpack_modules__[id]) { | ||
try { | ||
@@ -71,0 +66,0 @@ return normalize(__webpack_require__(id)); |
{ | ||
"name": "@shopify/async", | ||
"version": "2.2.4", | ||
"version": "2.2.6", | ||
"license": "MIT", | ||
@@ -59,3 +59,4 @@ "description": "Primitives for loading parts of an application asynchronously", | ||
} | ||
} | ||
}, | ||
"gitHead": "4324f27f72ae7b1800ec6bde9087af4ed89b3833" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
58942
40
1006