npm-pkgbuild 10.14.8 → 10.14.9
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.
- package/README.md +90 -90
- package/package.json +13 -13
- package/src/extract-from-package.mjs +3 -1
package/README.md
CHANGED
|
@@ -92,14 +92,25 @@ see [mf-hoting](https://www.npmjs.com/package/mf-hosting) module as an example.
|
|
|
92
92
|
* [FileContentProvider](#filecontentprovider)
|
|
93
93
|
* [Parameters](#parameters)
|
|
94
94
|
* [name](#name)
|
|
95
|
-
* [
|
|
95
|
+
* [packageNameMapping](#packagenamemapping)
|
|
96
|
+
* [decodePassword](#decodepassword)
|
|
96
97
|
* [Parameters](#parameters-1)
|
|
98
|
+
* [extractFunctions](#extractfunctions)
|
|
99
|
+
* [Parameters](#parameters-2)
|
|
100
|
+
* [fieldProvider](#fieldprovider)
|
|
101
|
+
* [Parameters](#parameters-3)
|
|
102
|
+
* [Expander](#expander)
|
|
103
|
+
* [Parameters](#parameters-4)
|
|
104
|
+
* [copyEntries](#copyentries)
|
|
105
|
+
* [Parameters](#parameters-5)
|
|
106
|
+
* [NFTContentProvider](#nftcontentprovider)
|
|
107
|
+
* [Parameters](#parameters-6)
|
|
97
108
|
* [name](#name-1)
|
|
98
109
|
* [NodeModulesContentProvider](#nodemodulescontentprovider)
|
|
99
|
-
* [Parameters](#parameters-
|
|
110
|
+
* [Parameters](#parameters-7)
|
|
100
111
|
* [name](#name-2)
|
|
101
112
|
* [NPMPackContentProvider](#npmpackcontentprovider)
|
|
102
|
-
* [Parameters](#parameters-
|
|
113
|
+
* [Parameters](#parameters-8)
|
|
103
114
|
* [name](#name-3)
|
|
104
115
|
* [pkgKeyValuePairOptions](#pkgkeyvaluepairoptions)
|
|
105
116
|
* [fields](#fields)
|
|
@@ -110,22 +121,11 @@ see [mf-hoting](https://www.npmjs.com/package/mf-hosting) module as an example.
|
|
|
110
121
|
* [Field](#field)
|
|
111
122
|
* [Properties](#properties)
|
|
112
123
|
* [Packager](#packager)
|
|
113
|
-
* [Parameters](#parameters-
|
|
124
|
+
* [Parameters](#parameters-9)
|
|
114
125
|
* [tmpdir](#tmpdir)
|
|
115
126
|
* [execute](#execute)
|
|
116
|
-
* [Parameters](#parameters-
|
|
127
|
+
* [Parameters](#parameters-10)
|
|
117
128
|
* [available](#available)
|
|
118
|
-
* [packageNameMapping](#packagenamemapping)
|
|
119
|
-
* [decodePassword](#decodepassword)
|
|
120
|
-
* [Parameters](#parameters-6)
|
|
121
|
-
* [extractFunctions](#extractfunctions)
|
|
122
|
-
* [Parameters](#parameters-7)
|
|
123
|
-
* [fieldProvider](#fieldprovider)
|
|
124
|
-
* [Parameters](#parameters-8)
|
|
125
|
-
* [Expander](#expander)
|
|
126
|
-
* [Parameters](#parameters-9)
|
|
127
|
-
* [copyEntries](#copyentries)
|
|
128
|
-
* [Parameters](#parameters-10)
|
|
129
129
|
|
|
130
130
|
## ContentProvider
|
|
131
131
|
|
|
@@ -145,16 +145,71 @@ Content provided form the file system.
|
|
|
145
145
|
|
|
146
146
|
### Parameters
|
|
147
147
|
|
|
148
|
-
* `definitions` **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))
|
|
148
|
+
* `definitions` **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))** 
|
|
149
149
|
|
|
150
|
-
* `definitions.pattern` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>)
|
|
150
|
+
* `definitions.pattern` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>)** 
|
|
151
151
|
* `definitions.base` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** base directory where to find the files
|
|
152
|
-
* `entryProperties`
|
|
152
|
+
* `entryProperties`  
|
|
153
153
|
|
|
154
154
|
### name
|
|
155
155
|
|
|
156
156
|
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** name of the content provider
|
|
157
157
|
|
|
158
|
+
## packageNameMapping
|
|
159
|
+
|
|
160
|
+
What is the node name in the package eco-system
|
|
161
|
+
|
|
162
|
+
## decodePassword
|
|
163
|
+
|
|
164
|
+
Decode a password
|
|
165
|
+
|
|
166
|
+
### Parameters
|
|
167
|
+
|
|
168
|
+
* `password` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
169
|
+
|
|
170
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** plaintext password
|
|
171
|
+
|
|
172
|
+
## extractFunctions
|
|
173
|
+
|
|
174
|
+
Extract shell functions from a given text.
|
|
175
|
+
|
|
176
|
+
### Parameters
|
|
177
|
+
|
|
178
|
+
* `source` **AsyncIterator<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** 
|
|
179
|
+
|
|
180
|
+
Returns **AsyncIterator\<FunctionDecl>** 
|
|
181
|
+
|
|
182
|
+
## fieldProvider
|
|
183
|
+
|
|
184
|
+
### Parameters
|
|
185
|
+
|
|
186
|
+
* `properties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
187
|
+
* `fields` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
188
|
+
|
|
189
|
+
Returns **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** 
|
|
190
|
+
|
|
191
|
+
## Expander
|
|
192
|
+
|
|
193
|
+
Type: [Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)
|
|
194
|
+
|
|
195
|
+
### Parameters
|
|
196
|
+
|
|
197
|
+
* `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
198
|
+
|
|
199
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
200
|
+
|
|
201
|
+
## copyEntries
|
|
202
|
+
|
|
203
|
+
Copy content from source into destinationDirectory.
|
|
204
|
+
Destination paths a generated without leading '/' (as for entry names too).
|
|
205
|
+
|
|
206
|
+
### Parameters
|
|
207
|
+
|
|
208
|
+
* `source` **AsyncIterator\<ContentEntry>** 
|
|
209
|
+
* `destinationDirectory` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
210
|
+
* `expander` **[Expander](#expander)** (optional, default `v=>v`)
|
|
211
|
+
* `attributes` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\<ContentEntryAttribute>** 
|
|
212
|
+
|
|
158
213
|
## NFTContentProvider
|
|
159
214
|
|
|
160
215
|
**Extends ContentProvider**
|
|
@@ -163,11 +218,11 @@ Content provided form the file system.
|
|
|
163
218
|
|
|
164
219
|
### Parameters
|
|
165
220
|
|
|
166
|
-
* `definitions` **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))
|
|
221
|
+
* `definitions` **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) | [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String))** 
|
|
167
222
|
|
|
168
|
-
* `definitions.pattern` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>)
|
|
223
|
+
* `definitions.pattern` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) | [Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>)** 
|
|
169
224
|
* `definitions.base` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** base directory where to find the files
|
|
170
|
-
* `entryProperties`
|
|
225
|
+
* `entryProperties`  
|
|
171
226
|
|
|
172
227
|
### name
|
|
173
228
|
|
|
@@ -177,12 +232,12 @@ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
|
|
|
177
232
|
|
|
178
233
|
**Extends ContentProvider**
|
|
179
234
|
|
|
180
|
-
Content from
|
|
235
|
+
Content from node\_modules
|
|
181
236
|
|
|
182
237
|
### Parameters
|
|
183
238
|
|
|
184
|
-
* `definitions`
|
|
185
|
-
* `entryProperties`
|
|
239
|
+
* `definitions`  
|
|
240
|
+
* `entryProperties`  
|
|
186
241
|
|
|
187
242
|
### name
|
|
188
243
|
|
|
@@ -196,7 +251,7 @@ Content from npm pack.
|
|
|
196
251
|
|
|
197
252
|
### Parameters
|
|
198
253
|
|
|
199
|
-
* `definitions` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
|
254
|
+
* `definitions` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
200
255
|
* `entryProperties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** to be set for each entry
|
|
201
256
|
|
|
202
257
|
### name
|
|
@@ -234,15 +289,15 @@ Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Globa
|
|
|
234
289
|
### Properties
|
|
235
290
|
|
|
236
291
|
* `alias` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** interchangeable field name
|
|
237
|
-
* `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
238
|
-
* `default` **any
|
|
239
|
-
* `mandatory` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)
|
|
292
|
+
* `type` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
293
|
+
* `default` **any** 
|
|
294
|
+
* `mandatory` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
|
|
240
295
|
|
|
241
296
|
## Packager
|
|
242
297
|
|
|
243
298
|
### Parameters
|
|
244
299
|
|
|
245
|
-
* `properties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
|
300
|
+
* `properties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
246
301
|
|
|
247
302
|
### tmpdir
|
|
248
303
|
|
|
@@ -256,11 +311,11 @@ Execute package generation
|
|
|
256
311
|
|
|
257
312
|
#### Parameters
|
|
258
313
|
|
|
259
|
-
* `sources`
|
|
260
|
-
* `transformer`
|
|
261
|
-
* `dependencies`
|
|
262
|
-
* `options`
|
|
263
|
-
* `expander`
|
|
314
|
+
* `sources`  
|
|
315
|
+
* `transformer`  
|
|
316
|
+
* `dependencies`  
|
|
317
|
+
* `options`  
|
|
318
|
+
* `expander`  
|
|
264
319
|
|
|
265
320
|
## available
|
|
266
321
|
|
|
@@ -268,61 +323,6 @@ Check for rpmbuild presence.
|
|
|
268
323
|
|
|
269
324
|
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true when rpmbuild is present
|
|
270
325
|
|
|
271
|
-
## packageNameMapping
|
|
272
|
-
|
|
273
|
-
What is the node name in the package eco-system
|
|
274
|
-
|
|
275
|
-
## decodePassword
|
|
276
|
-
|
|
277
|
-
Decode a password
|
|
278
|
-
|
|
279
|
-
### Parameters
|
|
280
|
-
|
|
281
|
-
* `password` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
282
|
-
|
|
283
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** plaintext password
|
|
284
|
-
|
|
285
|
-
## extractFunctions
|
|
286
|
-
|
|
287
|
-
Extract shell functions from a given text.
|
|
288
|
-
|
|
289
|
-
### Parameters
|
|
290
|
-
|
|
291
|
-
* `source` **AsyncIterator<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>**
|
|
292
|
-
|
|
293
|
-
Returns **AsyncIterator\<FunctionDecl>**
|
|
294
|
-
|
|
295
|
-
## fieldProvider
|
|
296
|
-
|
|
297
|
-
### Parameters
|
|
298
|
-
|
|
299
|
-
* `properties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
|
|
300
|
-
* `fields` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**
|
|
301
|
-
|
|
302
|
-
Returns **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)**
|
|
303
|
-
|
|
304
|
-
## Expander
|
|
305
|
-
|
|
306
|
-
Type: [Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)
|
|
307
|
-
|
|
308
|
-
### Parameters
|
|
309
|
-
|
|
310
|
-
* `path` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
311
|
-
|
|
312
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
313
|
-
|
|
314
|
-
## copyEntries
|
|
315
|
-
|
|
316
|
-
Copy content from source into destinationDirectory.
|
|
317
|
-
Destination paths a generated without leading '/' (as for entry names too).
|
|
318
|
-
|
|
319
|
-
### Parameters
|
|
320
|
-
|
|
321
|
-
* `source` **AsyncIterator\<ContentEntry>**
|
|
322
|
-
* `destinationDirectory` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
|
|
323
|
-
* `expander` **[Expander](#expander)** (optional, default `v=>v`)
|
|
324
|
-
* `attributes` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\<ContentEntryAttribute>**
|
|
325
|
-
|
|
326
326
|
# install
|
|
327
327
|
|
|
328
328
|
With [npm](http://npmjs.org) do:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-pkgbuild",
|
|
3
|
-
"version": "10.14.
|
|
3
|
+
"version": "10.14.9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -40,31 +40,31 @@
|
|
|
40
40
|
"lint:docs": "documentation lint ./src/**/*.mjs"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@npmcli/arborist": "^5.
|
|
44
|
-
"@vercel/nft": "^0.
|
|
45
|
-
"aggregate-async-iterator": "^1.1.
|
|
43
|
+
"@npmcli/arborist": "^5.6.1",
|
|
44
|
+
"@vercel/nft": "^0.22.1",
|
|
45
|
+
"aggregate-async-iterator": "^1.1.15",
|
|
46
46
|
"commander": "^9.4.0",
|
|
47
|
-
"content-entry": "^5.2.
|
|
47
|
+
"content-entry": "^5.2.5",
|
|
48
48
|
"content-entry-filesystem": "^5.2.5",
|
|
49
49
|
"content-entry-transform": "^1.4.15",
|
|
50
50
|
"execa": "^6.1.0",
|
|
51
|
-
"expression-expander": "^7.0.
|
|
51
|
+
"expression-expander": "^7.0.20",
|
|
52
52
|
"globby": "^13.1.2",
|
|
53
|
-
"ini": "^3.0.
|
|
54
|
-
"iterable-string-interceptor": "^2.0
|
|
53
|
+
"ini": "^3.0.1",
|
|
54
|
+
"iterable-string-interceptor": "^2.1.0",
|
|
55
55
|
"key-value-transformer": "^3.0.3",
|
|
56
56
|
"node-fetch": "^3.2.10",
|
|
57
|
-
"npm-package-walker": "^6.0
|
|
58
|
-
"npm-packlist": "^5.1.
|
|
57
|
+
"npm-package-walker": "^6.1.0",
|
|
58
|
+
"npm-packlist": "^5.1.2",
|
|
59
59
|
"pacote": "^13.6.1",
|
|
60
60
|
"pkg-dir": "^7.0.0",
|
|
61
61
|
"tar-stream": "^2.2.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"ava": "^4.3.
|
|
64
|
+
"ava": "^4.3.3",
|
|
65
65
|
"c8": "^7.12.0",
|
|
66
|
-
"documentation": "^
|
|
67
|
-
"semantic-release": "^19.0.
|
|
66
|
+
"documentation": "^14.0.0",
|
|
67
|
+
"semantic-release": "^19.0.5",
|
|
68
68
|
"stream-buffers": "^3.0.2"
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
@@ -255,8 +255,10 @@ export async function* extractFromPackage(options = {}) {
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
if (numberOfArchs === 0) {
|
|
258
|
+
|
|
259
|
+
// armv7h,aarch64,x86_64 : armv7h,aarch64,x86_64 : x64
|
|
258
260
|
console.warn(
|
|
259
|
-
`No matching arch remaining, ${[...arch]} : ${[...
|
|
261
|
+
`No matching arch remaining, ${[...arch]} : ${[...restrictedArch]} : ${
|
|
260
262
|
process.arch
|
|
261
263
|
}`
|
|
262
264
|
);
|