@biffo/cli 0.253.0 → 0.253.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.
|
@@ -10,6 +10,7 @@ overrides:
|
|
|
10
10
|
brace-expansion@<5.0.9: '>=5.0.9'
|
|
11
11
|
undici@<7.29.0: '>=7.29.0'
|
|
12
12
|
js-yaml@<4.3.1: '>=4.3.1 <5'
|
|
13
|
+
nanoid@<3.3.17: '>=3.3.17 <4'
|
|
13
14
|
|
|
14
15
|
importers:
|
|
15
16
|
|
|
@@ -1983,8 +1984,8 @@ packages:
|
|
|
1983
1984
|
ms@2.1.3:
|
|
1984
1985
|
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
|
|
1985
1986
|
|
|
1986
|
-
nanoid@3.3.
|
|
1987
|
-
resolution: {integrity: sha512-
|
|
1987
|
+
nanoid@3.3.18:
|
|
1988
|
+
resolution: {integrity: sha512-DTg4MJbGMWkfi6VZFdNt2/caMbQy4Ou+Op/hJQvGEWcnVfoA1QA+xzRKAzw9jD6+GVOOeYr/mIcuDSdug6F6+w==}
|
|
1988
1989
|
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
|
|
1989
1990
|
hasBin: true
|
|
1990
1991
|
|
|
@@ -4594,7 +4595,7 @@ snapshots:
|
|
|
4594
4595
|
|
|
4595
4596
|
ms@2.1.3: {}
|
|
4596
4597
|
|
|
4597
|
-
nanoid@3.3.
|
|
4598
|
+
nanoid@3.3.18: {}
|
|
4598
4599
|
|
|
4599
4600
|
napi-postinstall@0.3.4: {}
|
|
4600
4601
|
|
|
@@ -4739,7 +4740,7 @@ snapshots:
|
|
|
4739
4740
|
|
|
4740
4741
|
postcss@8.5.23:
|
|
4741
4742
|
dependencies:
|
|
4742
|
-
nanoid: 3.3.
|
|
4743
|
+
nanoid: 3.3.18
|
|
4743
4744
|
picocolors: 1.1.1
|
|
4744
4745
|
source-map-js: 1.2.1
|
|
4745
4746
|
|
package/package.json
CHANGED
package/scripts/pg-test-db.sh
CHANGED
|
@@ -40,12 +40,21 @@
|
|
|
40
40
|
#
|
|
41
41
|
# ## Usage
|
|
42
42
|
#
|
|
43
|
-
# eval "$(sh scripts/pg-test-db.sh --export)" # export BIFFO_TEST_PG_DSN
|
|
43
|
+
# eval "$(sh scripts/pg-test-db.sh --export)" # export BIFFO_TEST_PG_DSN and TABSII_TEST_PG_DSN
|
|
44
44
|
# sh scripts/pg-test-db.sh # print the DSN on stdout
|
|
45
45
|
# sh scripts/pg-test-db.sh --recreate # force a rebuild
|
|
46
46
|
#
|
|
47
47
|
# Only the DSN reaches stdout, so it is safe to capture; progress goes to stderr.
|
|
48
48
|
#
|
|
49
|
+
# `--export` sets BOTH `BIFFO_TEST_PG_DSN` and `TABSII_TEST_PG_DSN` (see
|
|
50
|
+
# tabsii-platform#755): every consumer this script has ever had reads one name
|
|
51
|
+
# or the other, `scripts/verify.sh`'s own bridge already treats them as
|
|
52
|
+
# interchangeable, and a script that only ever emits one of the two names it
|
|
53
|
+
# claims to serve is exactly the fail-open this file's own docstring above
|
|
54
|
+
# argues against -- a gate nobody can run, just one name late instead of a
|
|
55
|
+
# missing script. Emitting both means the name a consumer happens to read is no
|
|
56
|
+
# longer load-bearing.
|
|
57
|
+
#
|
|
49
58
|
# Overridable: BIFFO_PG_HOST, BIFFO_PG_PORT, BIFFO_PG_USER, BIFFO_PG_PASSWORD,
|
|
50
59
|
# BIFFO_PG_DB, BIFFO_PG_CONTAINER, BIFFO_PG_IMAGE.
|
|
51
60
|
#
|
|
@@ -236,7 +245,10 @@ fi
|
|
|
236
245
|
DSN="postgresql+asyncpg://$USER_:$PASS@$HOST:$PORT/$DB"
|
|
237
246
|
emit() {
|
|
238
247
|
if [ "$EXPORT" -eq 1 ]; then
|
|
248
|
+
# Both names, deliberately (tabsii-platform#755): whichever a consumer
|
|
249
|
+
# reads, an `eval` of this line alone is enough -- see the Usage note above.
|
|
239
250
|
echo "export BIFFO_TEST_PG_DSN='$DSN'"
|
|
251
|
+
echo "export TABSII_TEST_PG_DSN='$DSN'"
|
|
240
252
|
else
|
|
241
253
|
echo "$DSN"
|
|
242
254
|
fi
|