JezK
Edit File: workspace-fetcher.js.map
{"version":3,"file":"workspace-fetcher.js","names":["WorkspaceFetcher","dest","remote","config","registry","workspaceDir","reference","registryRemote","Promise","resolve","readManifest","pkg","fetchRemoteWorkspace","resolved","hash","cached","_uid","version","manifest","fetchOneRemote","name"],"sourceRoot":"../../src","sources":["fetchers/workspace-fetcher.js"],"sourcesContent":["/* @flow */\n\nimport type {PackageRemote, FetchedMetadata, Manifest} from '../types.js';\nimport type Config from '../config.js';\nimport type {RegistryNames} from '../registries/index.js';\nimport {fetchOneRemote} from '../package-fetcher.js';\n\nexport default class WorkspaceFetcher {\n constructor(dest: string, remote: PackageRemote, config: Config) {\n this.config = config;\n this.dest = dest;\n this.registry = remote.registry;\n this.workspaceDir = remote.reference;\n this.registryRemote = remote.registryRemote;\n }\n\n config: Config;\n dest: string;\n registry: RegistryNames;\n workspaceDir: string;\n registryRemote: ?PackageRemote;\n\n setupMirrorFromCache(): Promise<?string> {\n return Promise.resolve();\n }\n\n async fetch(): Promise<FetchedMetadata> {\n const pkg = await this.config.readManifest(this.workspaceDir, this.registry);\n\n if (this.registryRemote) {\n await this.fetchRemoteWorkspace(this.registryRemote, pkg);\n }\n\n return {\n resolved: null,\n hash: '',\n cached: false,\n dest: this.dest,\n package: {\n ...pkg,\n _uid: pkg.version,\n },\n };\n }\n\n fetchRemoteWorkspace(remote: PackageRemote, manifest: Manifest): Promise<FetchedMetadata> {\n return fetchOneRemote(remote, manifest.name, manifest.version, this.dest, this.config);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAAqD;AAAA;AAAA,IAEhCA,gBAAgB;EACnC,0BAAYC,IAAY,EAAEC,MAAqB,EAAEC,MAAc,EAAE;IAAA;IAAA;IAAA;IAAA;IAAA;IAAA;IAC/D,IAAI,CAACA,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACF,IAAI,GAAGA,IAAI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