@leverege/build-tools 1.10.5 → 1.10.6
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/lib/server/getfbcfg +2 -2
- package/lib/server/helmup +1 -0
- package/lib/server/overwhelm +2 -1
- package/package.json +1 -1
- package/src/getfbcfg +2 -2
- package/src/helmup +1 -0
- package/src/overwhelm +2 -1
package/lib/server/getfbcfg
CHANGED
|
@@ -8,14 +8,14 @@ let stdbuf = []
|
|
|
8
8
|
process.stdin
|
|
9
9
|
.on( 'data', ( d ) => { stdbuf.push( d ) } )
|
|
10
10
|
.on( 'end', () => {
|
|
11
|
-
const rawCfg = stdbuf.join( '' ).replace( /["
|
|
11
|
+
const rawCfg = stdbuf.join( '' ).replace( /["\n\r]/g, '' )
|
|
12
12
|
const keyVals = rawCfg.match(/\{(.*)\}/)[1].split(',')
|
|
13
13
|
|
|
14
14
|
const lastLine = keyVals.length - 1
|
|
15
15
|
console.log( "{" )
|
|
16
16
|
for( let i = 0; i <= lastLine; i++ ) {
|
|
17
17
|
const kv = keyVals[i].trim().split( ' ' )
|
|
18
|
-
console.log( ` "${kv[0]}": "${kv[1]}"${(i < lastLine ? ',' : '')}` )
|
|
18
|
+
console.log( ` "${kv[0].replace( /:/, '')}": "${kv[1]}"${(i < lastLine ? ',' : '')}` )
|
|
19
19
|
}
|
|
20
20
|
console.log( "}" )
|
|
21
21
|
|
package/lib/server/helmup
CHANGED
package/lib/server/overwhelm
CHANGED
|
@@ -285,7 +285,8 @@ ahoy.forEach( ( dir ) => {
|
|
|
285
285
|
if ( matchedCtx ) {
|
|
286
286
|
console.log( `
|
|
287
287
|
|
|
288
|
-
|
|
288
|
+
Current context ${chalk.bold.green(currentCtx)} matches the desired
|
|
289
|
+
context. Do you want to update credentials anyway?
|
|
289
290
|
|
|
290
291
|
` )
|
|
291
292
|
}
|
package/package.json
CHANGED
package/src/getfbcfg
CHANGED
|
@@ -8,14 +8,14 @@ let stdbuf = []
|
|
|
8
8
|
process.stdin
|
|
9
9
|
.on( 'data', ( d ) => { stdbuf.push( d ) } )
|
|
10
10
|
.on( 'end', () => {
|
|
11
|
-
const rawCfg = stdbuf.join( '' ).replace( /["
|
|
11
|
+
const rawCfg = stdbuf.join( '' ).replace( /["\n\r]/g, '' )
|
|
12
12
|
const keyVals = rawCfg.match(/\{(.*)\}/)[1].split(',')
|
|
13
13
|
|
|
14
14
|
const lastLine = keyVals.length - 1
|
|
15
15
|
console.log( "{" )
|
|
16
16
|
for( let i = 0; i <= lastLine; i++ ) {
|
|
17
17
|
const kv = keyVals[i].trim().split( ' ' )
|
|
18
|
-
console.log( ` "${kv[0]}": "${kv[1]}"${(i < lastLine ? ',' : '')}` )
|
|
18
|
+
console.log( ` "${kv[0].replace( /:/, '')}": "${kv[1]}"${(i < lastLine ? ',' : '')}` )
|
|
19
19
|
}
|
|
20
20
|
console.log( "}" )
|
|
21
21
|
|
package/src/helmup
CHANGED
package/src/overwhelm
CHANGED
|
@@ -285,7 +285,8 @@ ahoy.forEach( ( dir ) => {
|
|
|
285
285
|
if ( matchedCtx ) {
|
|
286
286
|
console.log( `
|
|
287
287
|
|
|
288
|
-
|
|
288
|
+
Current context ${chalk.bold.green(currentCtx)} matches the desired
|
|
289
|
+
context. Do you want to update credentials anyway?
|
|
289
290
|
|
|
290
291
|
` )
|
|
291
292
|
}
|