"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
async function resolveTarball(wantedDependency) {
    if (!wantedDependency.pref.startsWith('http:') && !wantedDependency.pref.startsWith('https:')) {
        return null;
    }
    return {
        id: `@${wantedDependency.pref.replace(/^.*:\/\/(git@)?/, '')}`,
        normalizedPref: wantedDependency.pref,
        resolution: {
            tarball: wantedDependency.pref,
        },
        resolvedVia: 'url',
    };
}
exports.default = resolveTarball;
//# sourceMappingURL=index.js.map