Skip to content

Commit 56703af

Browse files
committed
chore: remove unused attributes
1 parent 1815afd commit 56703af

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

packages/plugin-compat/sources/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ const PATCHES = new Map([
1414

1515
const plugin: Plugin<CoreHooks & PatchHooks> = {
1616
hooks: {
17-
registerPackageExtensions: async ({ configuration, registerPackageExtension }) => {
17+
registerPackageExtensions: async ({ registerPackageExtension }) => {
1818
for (const [descriptorStr, extensionData] of packageExtensions) {
1919
registerPackageExtension(structUtils.parseDescriptor(descriptorStr, true), extensionData);
2020
}
2121
},
2222

23-
getBuiltinPatch: async ({ project, name }) => {
23+
getBuiltinPatch: async ({ name }) => {
2424
const TAG = `compat/`;
2525
if (!name.startsWith(TAG))
2626
return undefined;
@@ -31,7 +31,7 @@ const plugin: Plugin<CoreHooks & PatchHooks> = {
3131
return typeof patch !== `undefined` ? patch : null;
3232
},
3333

34-
reduceDependency: async ({ dependency, project, locator, initialDescriptor }) => {
34+
reduceDependency: async ({ dependency }) => {
3535
const patch = PATCHES.get(dependency.identHash);
3636
if (typeof patch === `undefined`)
3737
return dependency;

packages/plugin-npm/sources/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export interface Hooks {
2020
* specific registry.
2121
*/
2222
getNpmAuthenticationHeader?: ({ currentHeader, registry, configuration, ident }: {
23-
currentHeader: string | undefined,
23+
currentHeader?: string,
2424
registry: string,
2525
configuration: Configuration,
2626
ident?: Ident,

packages/plugin-npm/sources/npmHttpUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ async function getAuthenticationHeader(registry: string, {authType = AuthType.CO
203203

204204
const header = await configuration.reduceHook((hooks: Hooks) => {
205205
return hooks.getNpmAuthenticationHeader;
206-
}, {currentHeader: undefined, registry, configuration, ident});
206+
}, {registry, configuration, ident});
207207

208208
if (header)
209209
return header;

packages/plugin-typescript/sources/index.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ const getTypesName = (descriptor: Descriptor) => {
1414
: `${descriptor.name}`;
1515
};
1616

17-
const afterWorkspaceDependencyAddition = async ({ workspace, dependencyTarget, descriptor, strategies }: {
17+
const afterWorkspaceDependencyAddition = async ({ workspace, descriptor }: {
1818
workspace: Workspace,
19-
dependencyTarget: suggestUtils.Target,
2019
descriptor: Descriptor,
21-
strategies: Array<suggestUtils.Strategy>,
2220
}) => {
2321
if (descriptor.scope === `types`)
2422
return;
@@ -107,9 +105,8 @@ const afterWorkspaceDependencyAddition = async ({ workspace, dependencyTarget, d
107105
}
108106
};
109107

110-
const afterWorkspaceDependencyRemoval = async ({ workspace, dependencyTarget, descriptor }: {
108+
const afterWorkspaceDependencyRemoval = async ({ workspace, descriptor }: {
111109
workspace: Workspace,
112-
dependencyTarget: suggestUtils.Target,
113110
descriptor: Descriptor,
114111
}) => {
115112
if (descriptor.scope === `types`)
@@ -138,7 +135,7 @@ const afterWorkspaceDependencyRemoval = async ({ workspace, dependencyTarget, de
138135
}
139136
};
140137

141-
const beforeWorkspacePacking = ({ workspace, rawManifest }: { workspace: Workspace, rawManifest: any }) => {
138+
const beforeWorkspacePacking = ({ rawManifest }: { rawManifest: any }) => {
142139
if (rawManifest.publishConfig && rawManifest.publishConfig.typings)
143140
rawManifest.typings = rawManifest.publishConfig.typings;
144141

0 commit comments

Comments
 (0)