Functions
- applyPatchFile(effects: ParsedPatchFile, __namedParameters?: { baseFs?: FakeFS<PortablePath>; dryRun?: boolean; version?: null | string }): Promise<void>
Parameters
effects: ParsedPatchFile
__namedParameters: { baseFs?: FakeFS<PortablePath>; dryRun?: boolean; version?: null | string } = {}
Returns Promise<void>
Parameters
Returns Promise<string>
- extractPatchFlags(patchPath: PortablePath): { optional: boolean }
Parameters
Returns { optional: boolean }
Parameters
Returns boolean
- isPatchDescriptor(descriptor: Descriptor): boolean
Parameters
Returns boolean
- isPatchLocator(locator: Locator): boolean
Parameters
Returns boolean
Parameters
Returns Promise<{ optional: boolean; source: null | string }[]>
- makeDescriptor(ident: Ident, __namedParameters: Pick<{ parentLocator: null | Locator; patchPaths: PortablePath[]; sourceDescriptor: Descriptor; sourceVersion: null | string }, parentLocator | patchPaths | sourceDescriptor>): Descriptor
Parameters
__namedParameters: Pick<{ parentLocator: null | Locator; patchPaths: PortablePath[]; sourceDescriptor: Descriptor; sourceVersion: null | string }, parentLocator | patchPaths | sourceDescriptor>
- makeLocator(ident: Ident, __namedParameters: Omit<{ parentLocator: null | Locator; patchPaths: PortablePath[]; sourceLocator: Locator; sourceVersion: null | string }, sourceVersion | sourceLocator> & { patchHash: string; sourcePackage: Package }): Locator
Parameters
__namedParameters: Omit<{ parentLocator: null | Locator; patchPaths: PortablePath[]; sourceLocator: Locator; sourceVersion: null | string }, sourceVersion | sourceLocator> & { patchHash: string; sourcePackage: Package }
- makePatchHash(patchFiles: { optional: boolean; source: null | string }[], sourceVersion: null | string): string
Parameters
patchFiles: { optional: boolean; source: null | string }[]
sourceVersion: null | string
Returns string
Parameters
Returns { parentLocator: null | Locator; patchPaths: PortablePath[]; sourceDescriptor: Descriptor; sourceVersion: null | string }
parentLocator: null | Locator
sourceVersion: null | string
Parameters
Returns { parentLocator: null | Locator; patchPaths: PortablePath[]; sourceLocator: Locator; sourceVersion: null | string }
parentLocator: null | Locator
sourceLocator: Locator
sourceVersion: null | string
- parsePatchFile(file: string): ParsedPatchFile
Parameters
Returns ParsedPatchFile