npm-pkgbuild 20.6.4 → 20.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,207 +0,0 @@
1
- /**
2
- * @typedef {import('../publish.mjs').PublishingDetail} PublishingDetail
3
- */
4
- /**
5
- * @typedef {Object} Field
6
- * @property {string} alias interchangeable field name
7
- * @property {string} type
8
- * @property {any} default
9
- * @property {boolean} mandatory
10
- */
11
- /**
12
- * Base Packager
13
- * @param {Object} properties
14
- */
15
- export class Packager {
16
- static attributes: {};
17
- /**
18
- * @return {{named:object,others:string[]}}
19
- */
20
- static get workspaceLayout(): {
21
- named: object;
22
- others: string[];
23
- };
24
- /**
25
- * @param {Object} options
26
- * @param {Object} variant
27
- * @return {Promise<boolean>}
28
- */
29
- static prepare(options: any, variant: any): Promise<boolean>;
30
- /**
31
- * Base Packager
32
- * @param {Object} properties
33
- */
34
- constructor(properties: any);
35
- /**
36
- * What is the package name in the package eco-system.
37
- * @param {string} name
38
- * @return {string} package name in the target eco-system
39
- */
40
- packageName(name: string): string;
41
- get hookMapping(): {};
42
- /**
43
- * Generate hook content entries
44
- * @return {AsyncIterable<StringContentEntry>}
45
- */
46
- hookContent(): AsyncIterable<StringContentEntry>;
47
- /**
48
- * Forms an expression string form name and expression.
49
- * If tere is no valid exression name only is delivered.
50
- * @param {string} name
51
- * @param {string|boolean|undefined} expression
52
- * @returns {string}
53
- */
54
- dependencyExpression(name: string, expression: string | boolean | undefined): string;
55
- makeDepends(dependencies: any): string[];
56
- get fileNameExtension(): any;
57
- get attributes(): any;
58
- get properties(): any;
59
- /**
60
- * Create tmp directory.
61
- * @return {Promise<string>} directory path
62
- */
63
- get tmpdir(): Promise<string>;
64
- /**
65
- * Prepares artifact generation.
66
- * @param {Object} options
67
- * @param {string} [options.staging]
68
- * @param {string} [options.destination]
69
- * @param {Object} [publishingDetail]
70
- * @returns {Promise<{properties:Object, destination:string, tmpdir:string, staging:string}>}
71
- */
72
- prepare(options: {
73
- staging?: string;
74
- destination?: string;
75
- }, publishingDetail?: any): Promise<{
76
- properties: any;
77
- destination: string;
78
- tmpdir: string;
79
- staging: string;
80
- }>;
81
- /**
82
- * Execute package generation.
83
- * @param {Object} sources
84
- * @param {Object[]} transformer
85
- * @param {PublishingDetail[]} publishingDetails
86
- * @param {Object} options
87
- * @param {function(string):string?} expander
88
- * @return {Promise<string>} identifier of the resulting package
89
- */
90
- create(sources: any, transformer: any[], publishingDetails: PublishingDetail[], options: any, expander: (arg0: string) => string | null): Promise<string>;
91
- publish(artifact: any, publishingDetails: any, logger: any): Promise<void>;
92
- #private;
93
- }
94
- export const pkgbuild_name_attribute: {
95
- alias: string;
96
- mandatory: boolean;
97
- pattern: RegExp;
98
- type: object;
99
- isKey: boolean;
100
- writable: boolean;
101
- collection: boolean;
102
- constructor?: Function;
103
- private?: boolean;
104
- credential?: boolean;
105
- persistent?: boolean;
106
- depends?: string;
107
- description?: string;
108
- default?: any;
109
- set?: Function;
110
- get?: Function;
111
- toInternal?: Function;
112
- toExternal?: Function;
113
- values?: Set<any>;
114
- externalName?: string;
115
- env?: string[] | string;
116
- additionalValues?: object;
117
- };
118
- export namespace dependency_type {
119
- let name: string;
120
- let primitive: boolean;
121
- function toExternal(value: any, attribute: any): string | any[];
122
- }
123
- export const dependency_attribute_collection_writable: {
124
- type: {
125
- name: string;
126
- primitive: boolean;
127
- toExternal: (value: any, attribute: any) => string | any[];
128
- };
129
- writable: boolean;
130
- collection: boolean;
131
- separator: string;
132
- pattern: RegExp;
133
- isKey: boolean;
134
- mandatory: boolean;
135
- constructor?: Function;
136
- private?: boolean;
137
- credential?: boolean;
138
- persistent?: boolean;
139
- depends?: string;
140
- description?: string;
141
- default?: any;
142
- set?: Function;
143
- get?: Function;
144
- toInternal?: Function;
145
- toExternal?: Function;
146
- values?: Set<any>;
147
- externalName?: string;
148
- env?: string[] | string;
149
- additionalValues?: object;
150
- };
151
- export const pkgbuild_version_attribute: {
152
- alias: string;
153
- mandatory: boolean;
154
- set: (v: any) => any;
155
- type: object;
156
- isKey: boolean;
157
- writable: boolean;
158
- collection: boolean;
159
- constructor?: Function;
160
- private?: boolean;
161
- credential?: boolean;
162
- persistent?: boolean;
163
- depends?: string;
164
- description?: string;
165
- default?: any;
166
- get?: Function;
167
- toInternal?: Function;
168
- toExternal?: Function;
169
- values?: Set<any>;
170
- externalName?: string;
171
- env?: string[] | string;
172
- additionalValues?: object;
173
- };
174
- export const pkgbuild_description_attribute: {
175
- alias: string;
176
- mandatory: boolean;
177
- type: object;
178
- isKey: boolean;
179
- writable: boolean;
180
- collection: boolean;
181
- constructor?: Function;
182
- private?: boolean;
183
- credential?: boolean;
184
- persistent?: boolean;
185
- depends?: string;
186
- description?: string;
187
- default?: any;
188
- set?: Function;
189
- get?: Function;
190
- toInternal?: Function;
191
- toExternal?: Function;
192
- values?: Set<any>;
193
- externalName?: string;
194
- env?: string[] | string;
195
- additionalValues?: object;
196
- };
197
- export type PublishingDetail = import("../publish.mjs").PublishingDetail;
198
- export type Field = {
199
- /**
200
- * interchangeable field name
201
- */
202
- alias: string;
203
- type: string;
204
- default: any;
205
- mandatory: boolean;
206
- };
207
- import { StringContentEntry } from "content-entry";
@@ -1,299 +0,0 @@
1
- /**
2
- * Produce rpm packages.
3
- */
4
- export class RPM extends Packager {
5
- static get description(): string;
6
- static get fileNameExtension(): string;
7
- /**
8
- * @see https://rpm-packaging-guide.github.io
9
- */
10
- static attributes: {
11
- Name: {
12
- alias: string;
13
- mandatory: boolean;
14
- pattern: RegExp;
15
- type: object;
16
- isKey: boolean;
17
- writable: boolean;
18
- collection: boolean;
19
- constructor?: Function;
20
- private?: boolean;
21
- credential?: boolean;
22
- persistent?: boolean;
23
- depends?: string;
24
- description?: string;
25
- default?: any;
26
- set?: Function;
27
- get?: Function;
28
- toInternal?: Function;
29
- toExternal?: Function;
30
- values?: Set<any>;
31
- externalName?: string;
32
- env?: string[] | string;
33
- additionalValues?: object;
34
- };
35
- Summary: {
36
- alias: string;
37
- mandatory: boolean;
38
- type: object;
39
- isKey: boolean;
40
- writable: boolean;
41
- collection: boolean;
42
- constructor?: Function;
43
- private?: boolean;
44
- credential?: boolean;
45
- persistent?: boolean;
46
- depends?: string;
47
- description?: string;
48
- default?: any;
49
- set?: Function;
50
- get?: Function;
51
- toInternal?: Function;
52
- toExternal?: Function;
53
- values?: Set<any>;
54
- externalName?: string;
55
- env?: string[] | string;
56
- additionalValues?: object;
57
- };
58
- License: {
59
- alias: string;
60
- mandatory: boolean;
61
- type: object;
62
- isKey: boolean;
63
- writable: boolean;
64
- collection: boolean;
65
- constructor?: Function;
66
- private?: boolean;
67
- credential?: boolean;
68
- persistent?: boolean;
69
- depends?: string;
70
- description?: string;
71
- default?: any;
72
- set?: Function;
73
- get?: Function;
74
- toInternal?: Function;
75
- toExternal?: Function;
76
- values?: Set<any>;
77
- externalName?: string;
78
- env?: string[] | string;
79
- additionalValues?: object;
80
- };
81
- Version: {
82
- alias: string;
83
- mandatory: boolean;
84
- set: (v: any) => any;
85
- type: object;
86
- isKey: boolean;
87
- writable: boolean;
88
- collection: boolean;
89
- constructor?: Function;
90
- private?: boolean;
91
- credential?: boolean;
92
- persistent?: boolean;
93
- depends?: string;
94
- description?: string;
95
- default?: any;
96
- get?: Function;
97
- toInternal?: Function;
98
- toExternal?: Function;
99
- values?: Set<any>;
100
- externalName?: string;
101
- env?: string[] | string;
102
- additionalValues?: object;
103
- };
104
- Release: {
105
- alias: string;
106
- default: number;
107
- mandatory: boolean;
108
- type: object;
109
- isKey: boolean;
110
- writable: boolean;
111
- collection: boolean;
112
- constructor?: Function;
113
- private?: boolean;
114
- credential?: boolean;
115
- persistent?: boolean;
116
- depends?: string;
117
- description?: string;
118
- set?: Function;
119
- get?: Function;
120
- toInternal?: Function;
121
- toExternal?: Function;
122
- values?: Set<any>;
123
- externalName?: string;
124
- env?: string[] | string;
125
- additionalValues?: object;
126
- };
127
- Source0: {
128
- alias: string;
129
- type: object;
130
- isKey: boolean;
131
- writable: boolean;
132
- mandatory: boolean;
133
- collection: boolean;
134
- constructor?: Function;
135
- private?: boolean;
136
- credential?: boolean;
137
- persistent?: boolean;
138
- depends?: string;
139
- description?: string;
140
- default?: any;
141
- set?: Function;
142
- get?: Function;
143
- toInternal?: Function;
144
- toExternal?: Function;
145
- values?: Set<any>;
146
- externalName?: string;
147
- env?: string[] | string;
148
- additionalValues?: object;
149
- };
150
- Group: {
151
- alias: string;
152
- type: object;
153
- isKey: boolean;
154
- writable: boolean;
155
- mandatory: boolean;
156
- collection: boolean;
157
- constructor?: Function;
158
- private?: boolean;
159
- credential?: boolean;
160
- persistent?: boolean;
161
- depends?: string;
162
- description?: string;
163
- default?: any;
164
- set?: Function;
165
- get?: Function;
166
- toInternal?: Function;
167
- toExternal?: Function;
168
- values?: Set<any>;
169
- externalName?: string;
170
- env?: string[] | string;
171
- additionalValues?: object;
172
- };
173
- Packager: {
174
- alias: string;
175
- type: object;
176
- isKey: boolean;
177
- writable: boolean;
178
- mandatory: boolean;
179
- collection: boolean;
180
- constructor?: Function;
181
- private?: boolean;
182
- credential?: boolean;
183
- persistent?: boolean;
184
- depends?: string;
185
- description?: string;
186
- default?: any;
187
- set?: Function;
188
- get?: Function;
189
- toInternal?: Function;
190
- toExternal?: Function;
191
- values?: Set<any>;
192
- externalName?: string;
193
- env?: string[] | string;
194
- additionalValues?: object;
195
- };
196
- Vendor: {
197
- alias: string;
198
- type: object;
199
- isKey: boolean;
200
- writable: boolean;
201
- mandatory: boolean;
202
- collection: boolean;
203
- constructor?: Function;
204
- private?: boolean;
205
- credential?: boolean;
206
- persistent?: boolean;
207
- depends?: string;
208
- description?: string;
209
- default?: any;
210
- set?: Function;
211
- get?: Function;
212
- toInternal?: Function;
213
- toExternal?: Function;
214
- values?: Set<any>;
215
- externalName?: string;
216
- env?: string[] | string;
217
- additionalValues?: object;
218
- };
219
- BuildArch: {
220
- alias: string;
221
- default: string;
222
- mandatory: boolean;
223
- type: object;
224
- isKey: boolean;
225
- writable: boolean;
226
- collection: boolean;
227
- constructor?: Function;
228
- private?: boolean;
229
- credential?: boolean;
230
- persistent?: boolean;
231
- depends?: string;
232
- description?: string;
233
- set?: Function;
234
- get?: Function;
235
- toInternal?: Function;
236
- toExternal?: Function;
237
- values?: Set<any>;
238
- externalName?: string;
239
- env?: string[] | string;
240
- additionalValues?: object;
241
- };
242
- URL: {
243
- alias: string;
244
- type: object;
245
- isKey: boolean;
246
- writable: boolean;
247
- mandatory: boolean;
248
- collection: boolean;
249
- constructor?: Function;
250
- private?: boolean;
251
- credential?: boolean;
252
- persistent?: boolean;
253
- depends?: string;
254
- description?: string;
255
- default?: any;
256
- set?: Function;
257
- get?: Function;
258
- toInternal?: Function;
259
- toExternal?: Function;
260
- values?: Set<any>;
261
- externalName?: string;
262
- env?: string[] | string;
263
- additionalValues?: object;
264
- };
265
- Requires: import("pacc").AttributeDefinition;
266
- Obsoletes: import("pacc").AttributeDefinition;
267
- Conflicts: import("pacc").AttributeDefinition;
268
- };
269
- static get workspaceLayout(): {
270
- named: {
271
- staging: string;
272
- };
273
- others: string[];
274
- };
275
- /**
276
- * Check for rpmbuild presence.
277
- * @param {Object} options
278
- * @param {Object} variant
279
- * @param {string} variant.arch
280
- * @returns {Promise<boolean>} true when rpmbuild executable is present
281
- */
282
- static prepare(options: any, variant: {
283
- arch: string;
284
- }): Promise<boolean>;
285
- get packageFileName(): string;
286
- dependencyExpression(name: any, expression: any): string;
287
- /**
288
- * Map install hook named from default (arch) to rpm.
289
- */
290
- get hookMapping(): {
291
- pre_install: string;
292
- post_install: string;
293
- pre_remove: string;
294
- post_remove: string;
295
- };
296
- create(sources: any, transformer: any, publishingDetails: any, options: any, expander: any): Promise<string>;
297
- }
298
- export type PublishingDetail = import("../publish.mjs").PublishingDetail;
299
- import { Packager } from "./packager.mjs";
@@ -1,10 +0,0 @@
1
- /**
2
- *
3
- * @param {string} source
4
- * @param {string} dest
5
- * @param {Object} options
6
- */
7
- export function copyNodeModules(source: string, dest: string, options?: any): AsyncGenerator<never, void, unknown>;
8
- export function copyNodeModule(source: any, dest: any, options?: {
9
- dry: boolean;
10
- }): AsyncGenerator<string, void, unknown>;
@@ -1,40 +0,0 @@
1
- /**
2
- * @typedef {Object} PublishingDetail
3
- * @property {string} url
4
- * @property {Object} properties
5
- * @property {string} scheme
6
- * @property {string} [username]
7
- * @property {string} [password]
8
- */
9
- /**
10
- * @param {string[]} locations
11
- * @param {Object} [properties]
12
- * @param {string} [properties.PKGBUILD_PUBLISH]
13
- * @param {string} [properties.arch]
14
- * @param {string} [properties.access]
15
- * @param {string} [properties.type]
16
- * @param {string} [properties.username]
17
- * @return {PublishingDetail[]}
18
- */
19
- export function createPublishingDetails(locations?: string[], properties?: {
20
- PKGBUILD_PUBLISH?: string;
21
- arch?: string;
22
- access?: string;
23
- type?: string;
24
- username?: string;
25
- }): PublishingDetail[];
26
- /**
27
- *
28
- * @param {string} artifactIdentifier
29
- * @param {PublishingDetail} [publishingDetail]
30
- * @param {Object} [properties]
31
- * @param {function(any):void} logger
32
- */
33
- export function publish(artifactIdentifier: string, publishingDetail?: PublishingDetail, properties?: any, logger?: (arg0: any) => void): Promise<void>;
34
- export type PublishingDetail = {
35
- url: string;
36
- properties: any;
37
- scheme: string;
38
- username?: string;
39
- password?: string;
40
- };
package/types/util.d.mts DELETED
@@ -1,53 +0,0 @@
1
- export function filterOutUnwantedDependencies(): ([name, version]: [any, any]) => boolean;
2
- export function normalizeExpression(e: any): any;
3
- export function mergeDependencies(a: any, b: any): any;
4
- /**
5
- * Decode a password
6
- * @param {string} password
7
- * @returns {string} plaintext password
8
- */
9
- export function decodePassword(password: string): string;
10
- /**
11
- * @typedef {Object} FunctionDecl
12
- * @property {string} name
13
- * @property {string} body
14
- */
15
- /**
16
- * Extract shell functions from a given text.
17
- * @param {AsyncIterable<string>} source
18
- * @return {AsyncIterable<FunctionDecl>}
19
- */
20
- export function extractFunctions(source: AsyncIterable<string>): AsyncIterable<FunctionDecl>;
21
- export function quote(v: any, qc?: string): any;
22
- export function asArray(o: any): any[];
23
- /**
24
- *
25
- * @param {Object} properties
26
- * @param {Object} attributes
27
- * @returns {Function}
28
- */
29
- export function fieldProvider(properties: any, attributes: any): Function;
30
- /**
31
- * @typedef {Function} Expander
32
- * @param {string} path
33
- * @return {string}
34
- */
35
- /**
36
- * Copy content from source into destinationDirectory.
37
- * Destination paths a generated without leading '/' (as for entry names too).
38
- * @param {AsyncIterable<ContentEntry>} source
39
- * @param {string} destinationDirectory
40
- * @param {Expander} expander
41
- */
42
- export function copyEntries(source: AsyncIterable<ContentEntry>, destinationDirectory: string, expander?: Expander): AsyncGenerator<ContentEntry, void, unknown>;
43
- export function aggregate(...args: any[]): AsyncGenerator<any, void, any>;
44
- /**
45
- * @type {BufferEncoding}
46
- */
47
- export const utf8StreamOptions: BufferEncoding;
48
- export type FunctionDecl = {
49
- name: string;
50
- body: string;
51
- };
52
- export type Expander = Function;
53
- import { ContentEntry } from "content-entry";
package/types/utis.d.mts DELETED
@@ -1,6 +0,0 @@
1
- declare const _default: {
2
- name: string;
3
- conformsTo: string[];
4
- fileNameExtension: string;
5
- }[];
6
- export default _default;