@shopify/async
Advanced tools
Comparing version 4.0.0-wp5-beta.1 to 4.0.0
@@ -1,4 +0,1 @@ | ||
function interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : {default: obj}; | ||
} | ||
module.exports = interopRequireDefault(require("./build/cjs/babel-plugin.js")); | ||
module.exports = require("./build/cjs/babel-plugin.js"); |
@@ -5,4 +5,2 @@ 'use strict'; | ||
var _rollupPluginBabelHelpers = require('./_virtual/_rollupPluginBabelHelpers.js'); | ||
function createResolver({ | ||
@@ -30,28 +28,15 @@ id, | ||
resolve: function () { | ||
var _ref = _rollupPluginBabelHelpers.asyncToGenerator(function* () { | ||
resolvePromise = resolvePromise || resolve(load); | ||
resolved = yield resolvePromise; | ||
return resolved; | ||
}); | ||
return function resolve() { | ||
return _ref.apply(this, arguments); | ||
}; | ||
}() | ||
resolve: async () => { | ||
resolvePromise = resolvePromise || resolve(load); | ||
resolved = await resolvePromise; | ||
return resolved; | ||
} | ||
}; | ||
} | ||
function resolve(_x) { | ||
return _resolve.apply(this, arguments); | ||
async function resolve(load) { | ||
const resolved = await load(); | ||
return normalize(resolved); | ||
} | ||
function _resolve() { | ||
_resolve = _rollupPluginBabelHelpers.asyncToGenerator(function* (load) { | ||
const resolved = yield load(); | ||
return normalize(resolved); | ||
}); | ||
return _resolve.apply(this, arguments); | ||
} | ||
function normalize(module) { | ||
@@ -88,3 +73,3 @@ if (module == null) { | ||
return normalize(__webpack_require__(id)); | ||
} catch (_unused) {// Just ignore failures | ||
} catch {// Just ignore failures | ||
} | ||
@@ -94,3 +79,3 @@ } else if (typeof nodeRequire === 'function') { | ||
return normalize(nodeRequire(id)); | ||
} catch (_unused2) {// Just ignore failures | ||
} catch {// Just ignore failures | ||
} | ||
@@ -97,0 +82,0 @@ } |
@@ -1,4 +0,1 @@ | ||
function interopRequireDefault(obj) { | ||
return obj && obj.__esModule ? obj : {default: obj}; | ||
} | ||
module.exports = interopRequireDefault(require("./build/cjs/index.js")); | ||
module.exports = require("./build/cjs/index.js"); |
{ | ||
"name": "@shopify/async", | ||
"version": "4.0.0-wp5-beta.1", | ||
"version": "4.0.0", | ||
"license": "MIT", | ||
@@ -31,3 +31,3 @@ "description": "Primitives for loading parts of an application asynchronously", | ||
"engines": { | ||
"node": ">=12.14.0" | ||
"node": "^14.17.0 || >=16.0.0" | ||
}, | ||
@@ -56,15 +56,10 @@ "devDependencies": { | ||
"exports": { | ||
"./": "./", | ||
"./babel": { | ||
"import": "./babel.mjs", | ||
"require": "./babel.js", | ||
"esnext": "./babel.esnext" | ||
}, | ||
"./babel": "./babel.js", | ||
".": { | ||
"esnext": "./index.esnext", | ||
"import": "./index.mjs", | ||
"require": "./index.js", | ||
"esnext": "./index.esnext" | ||
"require": "./index.js" | ||
} | ||
}, | ||
"gitHead": "3d18c950fedaa4f622f4177887b3ea297eb7d0d3" | ||
"gitHead": "ef9afc562672dcda9d7800753dc6b777ecd2d751" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
31130
55065
29
438