@appdirect/sfb-toolkit 4.0.8 → 4.0.10
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/bin/index.js +28 -12
- package/config/index.js +1 -0
- package/coverage/clover.xml +32 -32
- package/coverage/coverage-final.json +4 -4
- package/coverage/lcov-report/constants/customUserAttributesMock.js.html +1 -1
- package/coverage/lcov-report/constants/index.html +1 -1
- package/coverage/lcov-report/constants/pageUrls.js.html +1 -1
- package/coverage/lcov-report/constants/userMock.js.html +1 -1
- package/coverage/lcov-report/controllers/controllers-utils/assetsUtils.js.html +1 -1
- package/coverage/lcov-report/controllers/controllers-utils/index.html +1 -1
- package/coverage/lcov-report/controllers/data-filters/bootstrap-data-filter.js.html +1 -1
- package/coverage/lcov-report/controllers/data-filters/call-to-actions-filter.js.html +1 -1
- package/coverage/lcov-report/controllers/data-filters/index.html +1 -1
- package/coverage/lcov-report/controllers/index.html +1 -1
- package/coverage/lcov-report/controllers/index.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/components/base/ResultItem.js.html +7 -7
- package/coverage/lcov-report/front-end-utils/src/components/base/SearchBar.js.html +3 -3
- package/coverage/lcov-report/front-end-utils/src/components/base/index.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/components/base/item.js.html +11 -11
- package/coverage/lcov-report/front-end-utils/src/components/container.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/components/data-view.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/components/header-view.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/components/index.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/components/search.js.html +13 -13
- package/coverage/lcov-report/front-end-utils/src/constants/index.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/constants/pageUrl.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/constants/roleType.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/constants/searchType.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/utils/debounce.js.html +1 -1
- package/coverage/lcov-report/front-end-utils/src/utils/index.html +1 -1
- package/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/middlewares/config.js.html +1 -1
- package/coverage/lcov-report/middlewares/index.html +1 -1
- package/coverage/lcov.info +81 -81
- package/index.js +11 -10
- package/npm-shrinkwrap.json +565 -119
- package/package.json +4 -3
- package/readme.md +11 -2
- package/src/api/cors.js +1 -1
- package/src/tools/prompt-questions.js +43 -1
- package/src/tools/proxy-fetch.js +16 -0
- package/src/tools/toolkit-common-vars.js +1 -1
- package/src/tools/toolkit-components.js +12 -4
- package/src/tools/toolkit-install.js +15 -7
- package/src/tools/toolkit-start.js +1 -1
package/bin/index.js
CHANGED
|
@@ -145,18 +145,34 @@ program
|
|
|
145
145
|
.command("storybook")
|
|
146
146
|
.description("Start storybook for the currently selected theme.")
|
|
147
147
|
.action(() => {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
148
|
+
let majorVersion = 0
|
|
149
|
+
|
|
150
|
+
try {
|
|
151
|
+
majorVersion = parseInt(process.version.split(".")[0].slice(1), 10)
|
|
152
|
+
} catch (err) {
|
|
153
|
+
console.warn(
|
|
154
|
+
"Failed to parse Node.js version. Defaulting to applying --openssl-legacy-provider flag."
|
|
155
|
+
)
|
|
156
|
+
majorVersion = 18 // default to 18 to ensure flag is added if parsing fails
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
const isNode18AndUp = majorVersion >= 18
|
|
160
|
+
|
|
161
|
+
const nodeArgs = []
|
|
162
|
+
const envOptions = { ...process.env }
|
|
163
|
+
|
|
164
|
+
if (isNode18AndUp) {
|
|
165
|
+
nodeArgs.push("--openssl-legacy-provider")
|
|
166
|
+
envOptions.NODE_OPTIONS = "--openssl-legacy-provider"
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
nodeArgs.push(`${__dirname}/../${STORYBOOK}`)
|
|
170
|
+
|
|
171
|
+
spawn("node", nodeArgs, {
|
|
172
|
+
env: envOptions,
|
|
173
|
+
stdio: "inherit",
|
|
174
|
+
shell: true,
|
|
175
|
+
})
|
|
160
176
|
})
|
|
161
177
|
|
|
162
178
|
program
|
package/config/index.js
CHANGED
package/coverage/clover.xml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
2
|
+
<coverage generated="1695746463978" clover="3.2.0">
|
|
3
|
+
<project timestamp="1695746463979" name="All files">
|
|
4
4
|
<metrics statements="491" coveredstatements="418" conditionals="243" coveredconditionals="174" methods="132" coveredmethods="108" elements="866" coveredelements="700" complexity="0" loc="491" ncloc="491" packages="9" files="19" classes="19"/>
|
|
5
5
|
<package name="constants">
|
|
6
6
|
<metrics statements="9" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
|
@@ -367,9 +367,9 @@
|
|
|
367
367
|
<file name="search.js" path="/var/jenkins/workspace/sf-devtools-pipeline-release-to-npm/src/front-end-utils/src/components/search.js">
|
|
368
368
|
<metrics statements="76" coveredstatements="73" conditionals="57" coveredconditionals="47" methods="31" coveredmethods="29"/>
|
|
369
369
|
<line num="13" count="2" type="stmt"/>
|
|
370
|
-
<line num="15" count="
|
|
371
|
-
<line num="17" count="
|
|
372
|
-
<line num="25" count="
|
|
370
|
+
<line num="15" count="57" type="cond" truecount="2" falsecount="0"/>
|
|
371
|
+
<line num="17" count="57" type="cond" truecount="2" falsecount="0"/>
|
|
372
|
+
<line num="25" count="57" type="cond" truecount="2" falsecount="0"/>
|
|
373
373
|
<line num="29" count="2" type="stmt"/>
|
|
374
374
|
<line num="40" count="2" type="stmt"/>
|
|
375
375
|
<line num="48" count="2" type="stmt"/>
|
|
@@ -386,13 +386,13 @@
|
|
|
386
386
|
<line num="90" count="5" type="cond" truecount="1" falsecount="1"/>
|
|
387
387
|
<line num="91" count="5" type="stmt"/>
|
|
388
388
|
<line num="98" count="11" type="cond" truecount="2" falsecount="0"/>
|
|
389
|
-
<line num="103" count="
|
|
390
|
-
<line num="104" count="
|
|
389
|
+
<line num="103" count="16" type="stmt"/>
|
|
390
|
+
<line num="104" count="16" type="cond" truecount="2" falsecount="0"/>
|
|
391
391
|
<line num="105" count="4" type="stmt"/>
|
|
392
|
-
<line num="114" count="
|
|
393
|
-
<line num="115" count="
|
|
392
|
+
<line num="114" count="12" type="cond" truecount="1" falsecount="1"/>
|
|
393
|
+
<line num="115" count="12" type="stmt"/>
|
|
394
394
|
<line num="131" count="0" type="stmt"/>
|
|
395
|
-
<line num="136" count="
|
|
395
|
+
<line num="136" count="16" type="stmt"/>
|
|
396
396
|
<line num="140" count="7" type="stmt"/>
|
|
397
397
|
<line num="141" count="7" type="stmt"/>
|
|
398
398
|
<line num="143" count="7" type="cond" truecount="2" falsecount="0"/>
|
|
@@ -413,7 +413,7 @@
|
|
|
413
413
|
<line num="185" count="8" type="stmt"/>
|
|
414
414
|
<line num="186" count="8" type="stmt"/>
|
|
415
415
|
<line num="189" count="8" type="stmt"/>
|
|
416
|
-
<line num="190" count="
|
|
416
|
+
<line num="190" count="4" type="stmt"/>
|
|
417
417
|
<line num="196" count="13" type="stmt"/>
|
|
418
418
|
<line num="197" count="10" type="stmt"/>
|
|
419
419
|
<line num="198" count="10" type="cond" truecount="4" falsecount="0"/>
|
|
@@ -439,9 +439,9 @@
|
|
|
439
439
|
<line num="244" count="5" type="stmt"/>
|
|
440
440
|
<line num="250" count="5" type="cond" truecount="1" falsecount="1"/>
|
|
441
441
|
<line num="251" count="5" type="stmt"/>
|
|
442
|
-
<line num="266" count="
|
|
443
|
-
<line num="267" count="
|
|
444
|
-
<line num="290" count="
|
|
442
|
+
<line num="266" count="57" type="stmt"/>
|
|
443
|
+
<line num="267" count="57" type="stmt"/>
|
|
444
|
+
<line num="290" count="16" type="cond" truecount="2" falsecount="0"/>
|
|
445
445
|
</file>
|
|
446
446
|
</package>
|
|
447
447
|
<package name="front-end-utils.src.components.base">
|
|
@@ -449,12 +449,12 @@
|
|
|
449
449
|
<file name="ResultItem.js" path="/var/jenkins/workspace/sf-devtools-pipeline-release-to-npm/src/front-end-utils/src/components/base/ResultItem.js">
|
|
450
450
|
<metrics statements="33" coveredstatements="24" conditionals="29" coveredconditionals="15" methods="12" coveredmethods="7"/>
|
|
451
451
|
<line num="10" count="2" type="stmt"/>
|
|
452
|
-
<line num="12" count="
|
|
452
|
+
<line num="12" count="17" type="cond" truecount="2" falsecount="0"/>
|
|
453
453
|
<line num="14" count="2" type="stmt"/>
|
|
454
454
|
<line num="19" count="2" type="stmt"/>
|
|
455
|
-
<line num="21" count="
|
|
455
|
+
<line num="21" count="17" type="cond" truecount="1" falsecount="1"/>
|
|
456
456
|
<line num="24" count="2" type="stmt"/>
|
|
457
|
-
<line num="26" count="
|
|
457
|
+
<line num="26" count="17" type="cond" truecount="2" falsecount="0"/>
|
|
458
458
|
<line num="30" count="2" type="stmt"/>
|
|
459
459
|
<line num="34" count="2" type="stmt"/>
|
|
460
460
|
<line num="41" count="2" type="stmt"/>
|
|
@@ -478,9 +478,9 @@
|
|
|
478
478
|
<line num="95" count="0" type="stmt"/>
|
|
479
479
|
<line num="97" count="0" type="stmt"/>
|
|
480
480
|
<line num="102" count="0" type="stmt"/>
|
|
481
|
-
<line num="110" count="
|
|
482
|
-
<line num="111" count="
|
|
483
|
-
<line num="112" count="
|
|
481
|
+
<line num="110" count="17" type="stmt"/>
|
|
482
|
+
<line num="111" count="17" type="stmt"/>
|
|
483
|
+
<line num="112" count="17" type="stmt"/>
|
|
484
484
|
</file>
|
|
485
485
|
<file name="SearchBar.js" path="/var/jenkins/workspace/sf-devtools-pipeline-release-to-npm/src/front-end-utils/src/components/base/SearchBar.js">
|
|
486
486
|
<metrics statements="11" coveredstatements="11" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="1"/>
|
|
@@ -493,29 +493,29 @@
|
|
|
493
493
|
<line num="53" count="2" type="stmt"/>
|
|
494
494
|
<line num="71" count="2" type="stmt"/>
|
|
495
495
|
<line num="79" count="2" type="stmt"/>
|
|
496
|
-
<line num="94" count="
|
|
497
|
-
<line num="95" count="
|
|
496
|
+
<line num="94" count="57" type="stmt"/>
|
|
497
|
+
<line num="95" count="57" type="stmt"/>
|
|
498
498
|
</file>
|
|
499
499
|
<file name="item.js" path="/var/jenkins/workspace/sf-devtools-pipeline-release-to-npm/src/front-end-utils/src/components/base/item.js">
|
|
500
500
|
<metrics statements="18" coveredstatements="18" conditionals="12" coveredconditionals="12" methods="11" coveredmethods="9"/>
|
|
501
501
|
<line num="5" count="2" type="stmt"/>
|
|
502
|
-
<line num="9" count="
|
|
503
|
-
<line num="23" count="
|
|
504
|
-
<line num="26" count="
|
|
505
|
-
<line num="27" count="
|
|
506
|
-
<line num="29" count="
|
|
502
|
+
<line num="9" count="256" type="cond" truecount="2" falsecount="0"/>
|
|
503
|
+
<line num="23" count="256" type="stmt"/>
|
|
504
|
+
<line num="26" count="256" type="cond" truecount="2" falsecount="0"/>
|
|
505
|
+
<line num="27" count="256" type="cond" truecount="2" falsecount="0"/>
|
|
506
|
+
<line num="29" count="256" type="cond" truecount="2" falsecount="0"/>
|
|
507
507
|
<line num="33" count="2" type="stmt"/>
|
|
508
|
-
<line num="36" count="
|
|
509
|
-
<line num="40" count="
|
|
508
|
+
<line num="36" count="256" type="stmt"/>
|
|
509
|
+
<line num="40" count="256" type="cond" truecount="2" falsecount="0"/>
|
|
510
510
|
<line num="42" count="2" type="stmt"/>
|
|
511
511
|
<line num="46" count="2" type="stmt"/>
|
|
512
512
|
<line num="50" count="2" type="stmt"/>
|
|
513
|
-
<line num="54" count="
|
|
513
|
+
<line num="54" count="256" type="cond" truecount="2" falsecount="0"/>
|
|
514
514
|
<line num="57" count="2" type="stmt"/>
|
|
515
515
|
<line num="67" count="2" type="stmt"/>
|
|
516
516
|
<line num="80" count="2" type="stmt"/>
|
|
517
|
-
<line num="105" count="
|
|
518
|
-
<line num="106" count="
|
|
517
|
+
<line num="105" count="256" type="stmt"/>
|
|
518
|
+
<line num="106" count="256" type="stmt"/>
|
|
519
519
|
</file>
|
|
520
520
|
</package>
|
|
521
521
|
<package name="front-end-utils.src.constants">
|