@transitive-sdk/utils-caps 0.2.4 → 0.2.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.
Files changed (3) hide show
  1. package/docker.sh +10 -6
  2. package/esbuild.js +1 -1
  3. package/package.json +1 -1
package/docker.sh CHANGED
@@ -25,10 +25,12 @@ function findOffset() {
25
25
 
26
26
  OFFSET=$(findOffset)
27
27
  PORT=$(( $BASE_PORT + $OFFSET ))
28
- MIN_PORT=$((60000 + $OFFSET * 100))
29
- MAX_PORT=$((60080 + $OFFSET * 100))
28
+ # not in use by any capabilities right now:
29
+ # MIN_PORT=$((60000 + $OFFSET * 100))
30
+ # MAX_PORT=$((60080 + $OFFSET * 100))
30
31
 
31
- echo "using port offset $OFFSET, i.e., port $PORT and port range $MIN_PORT-$MAX_PORT"
32
+ # echo "using port offset $OFFSET, i.e., port $PORT and port range $MIN_PORT-$MAX_PORT"
33
+ echo "using port $PORT"
32
34
 
33
35
  CAP_NAME=$(npm pkg get name)
34
36
  VERSION=$(node -e "console.log(require('@transitive-sdk/utils').getPackageVersionNamespace())")
@@ -62,12 +64,9 @@ mkdir -p /tmp/pers/$TAG
62
64
  docker run -it --rm --init \
63
65
  --env MQTT_URL=mqtts://mosquitto \
64
66
  --env PUBLIC_PORT=$PORT \
65
- --env MIN_PORT=$MIN_PORT \
66
- --env MAX_PORT=$MAX_PORT \
67
67
  --env MONGO_DB="cap_$SAFE_NAME" \
68
68
  --env MONGO_URL="mongodb://mongodb" \
69
69
  -p $PORT:1000 -p $PORT:1000/udp \
70
- -p $MIN_PORT-$MAX_PORT:$MIN_PORT-$MAX_PORT -p $MIN_PORT-$MAX_PORT:$MIN_PORT-$MAX_PORT/udp \
71
70
  -v /tmp/pers/common:/persistent/common \
72
71
  -v /tmp/pers/${TAG//:/.}:/persistent/self \
73
72
  --network=cloud_caps \
@@ -75,6 +74,11 @@ docker run -it --rm --init \
75
74
  $TAG $@
76
75
  # -v $PWD/cloud:/app/cloud \
77
76
 
77
+ # not in use by any capabilities right now:
78
+ # --env MIN_PORT=$MIN_PORT \
79
+ # --env MAX_PORT=$MAX_PORT \
80
+ # -p $MIN_PORT-$MAX_PORT:$MIN_PORT-$MAX_PORT -p $MIN_PORT-$MAX_PORT:$MIN_PORT-$MAX_PORT/udp \
81
+
78
82
  # doesn't yet work: when using this, the npm script runs as the owning user,
79
83
  # "node", because it has the same uid (1000) as us. But we want root.
80
84
  # -v $PWD:/app \
package/esbuild.js CHANGED
@@ -83,7 +83,7 @@ const run = async () => {
83
83
 
84
84
  // define multiple config overwrites, for multiple outputs
85
85
  const formats = [
86
- { format: 'iife' },
86
+ { format: 'iife', logOverride: { 'empty-import-meta': 'info' } },
87
87
  { format: 'esm', outExtension: {'.js': '.esm.js'}}
88
88
  ];
89
89
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transitive-sdk/utils-caps",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Utilities to build and run Transitive capabilities in dev",
5
5
  "homepage": "https://transitiverobotics.com",
6
6
  "repository": {