JamieMason/syncpack

View on GitHub
src/specifier/url.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import type { URLResult } from 'npm-package-arg';
import { BaseSpecifier } from './base.js';

/** @example "http://x.com/foo.tgz" */
export class UrlSpecifier extends BaseSpecifier<URLResult> {
  _tag = 'Url';

  /** The public name referenced in config */
  name = 'url' as const;

  // @TODO: If file name is semver, return that in getSemver()
}