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

@shopify/async

Package Overview
Dependencies
Maintainers
19
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/async - npm Package Compare versions

Comparing version 4.0.0-wp5-beta.1 to 4.0.0

5

babel.js

@@ -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");

35

build/cjs/resolver.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

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