@explorable-viz/fluid 0.7.88 → 0.7.89
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/.spago/node-process/v11.0.0/.eslintrc.json +29 -0
- package/.spago/node-process/v11.0.0/.gitignore +8 -0
- package/.spago/node-process/v11.1.0/.eslintrc.json +29 -0
- package/.spago/node-process/v11.1.0/.gitignore +8 -0
- package/.spago/node-process/v11.2.0/.eslintrc.json +29 -0
- package/.spago/node-process/v11.2.0/.gitignore +8 -0
- package/.spago/optparse/v6.0.0/.gitignore +8 -0
- package/.spago/optparse/v6.0.0/.npmrc +1 -0
- package/dist/fluid/shared/fluid.mjs +777 -549
- package/dist/fluid/shared/load-figure.js +738 -514
- package/dist/fluid/shared/webtest-lib.js +2 -2
- package/package.json +1 -3
- package/script/bundle-website.sh +8 -29
- package/.spago/affjax-node/v1.0.0/.editorconfig +0 -13
- package/.spago/affjax-node/v1.0.0/.eslintrc.json +0 -30
- package/.spago/affjax-node/v1.0.0/.gitignore +0 -13
- package/.spago/pathy/v9.0.0/.editorconfig +0 -13
- package/.spago/pathy/v9.0.0/.gitignore +0 -9
- package/.spago/pathy/v9.0.0/.tidyrc.json +0 -10
- package/script/bundle-page.sh +0 -30
@@ -56243,14 +56243,14 @@ var require_ip = __commonJS({
|
|
56243
56243
|
const interfaces = os_1.default.networkInterfaces();
|
56244
56244
|
const family = normalizeFamily();
|
56245
56245
|
const all3 = Object.values(interfaces).map((addrs = []) => {
|
56246
|
-
const
|
56246
|
+
const addresses2 = addrs.filter((details) => {
|
56247
56247
|
const detailsFamily = normalizeFamily(details.family);
|
56248
56248
|
if (detailsFamily !== family || exports.ip.isLoopback(details.address)) {
|
56249
56249
|
return false;
|
56250
56250
|
}
|
56251
56251
|
return true;
|
56252
56252
|
});
|
56253
|
-
return
|
56253
|
+
return addresses2.length ? addresses2[0].address : void 0;
|
56254
56254
|
}).filter(Boolean);
|
56255
56255
|
return !all3.length ? exports.ip.loopback(family) : all3[0];
|
56256
56256
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@explorable-viz/fluid",
|
3
|
-
"version": "0.7.
|
3
|
+
"version": "0.7.89",
|
4
4
|
"description": "Fluid is an experimental programming language which integrates a bidirectional dynamic analysis to connect outputs to data sources in a fine-grained way. Fluid is implemented in PureScript and runs in the browser.",
|
5
5
|
"main": "index.js",
|
6
6
|
"repository": {
|
@@ -30,9 +30,7 @@
|
|
30
30
|
"build": "./script/build.sh",
|
31
31
|
"build-test": "./script/build-test.sh",
|
32
32
|
"bundle-fluid": "./script/bundle-fluid.sh",
|
33
|
-
"bundle-page": "./script/bundle-page.sh",
|
34
33
|
"bundle-website": "./script/bundle-website.sh",
|
35
|
-
"bundle-website-all": "./script/bundle-website-all.sh",
|
36
34
|
"fluid": "node ./dist/fluid/shared/fluid.mjs",
|
37
35
|
"npm-publish": "./script/npm-publish.sh",
|
38
36
|
"serve": "./script/serve.sh",
|
package/script/bundle-website.sh
CHANGED
@@ -11,54 +11,33 @@ while getopts "w:l" opt; do
|
|
11
11
|
done
|
12
12
|
|
13
13
|
PREFIX_=${PREFIX:+$PREFIX/}
|
14
|
-
|
15
|
-
|
16
|
-
echo "Cleaning dist/$WEBSITE_LISP_CASE"
|
17
|
-
. "${PREFIX_}script/util/clean.sh" $WEBSITE_LISP_CASE
|
18
|
-
|
19
|
-
. "${PREFIX_}script/bundle-page.sh" $WEBSITE ${PREFIX:+$PREFIX}
|
14
|
+
echo "Cleaning dist/$WEBSITE"
|
15
|
+
. "${PREFIX_}script/util/clean.sh" $WEBSITE
|
20
16
|
|
21
17
|
shopt -s nullglob
|
22
18
|
|
23
|
-
# Only support one level of nesting for now
|
24
|
-
set +x
|
25
|
-
PAGES=($(for FILE in website/$WEBSITE/*.html; do
|
26
|
-
basename "$FILE" | sed 's/\.[^.]*$//'
|
27
|
-
done | sort -u))
|
28
|
-
set -x
|
29
|
-
|
30
|
-
for PAGE in "${PAGES[@]}"; do
|
31
|
-
. "${PREFIX_}script/bundle-page.sh" $WEBSITE.$PAGE ${PREFIX:+$PREFIX}
|
32
|
-
done
|
33
|
-
|
34
19
|
echo "Processing other static files:"
|
35
20
|
set +xu # try to remove +u
|
36
21
|
TO_COPY=()
|
37
|
-
shopt -s dotglob
|
38
|
-
shopt -s extglob
|
22
|
+
shopt -s dotglob extglob
|
39
23
|
for CHILD in website/$WEBSITE/!(.|..); do
|
40
24
|
BASENAME="$(basename "$CHILD")"
|
41
25
|
if [[ "$BASENAME" =~ ^[a-z.] ]]; then
|
42
26
|
TO_COPY+=("$CHILD")
|
43
27
|
fi
|
44
28
|
done
|
45
|
-
shopt -u extglob
|
46
|
-
shopt -u dotglob
|
29
|
+
shopt -u extglob dotglob
|
47
30
|
set -xu
|
48
31
|
|
49
32
|
for CHILD in "${TO_COPY[@]}"; do
|
50
|
-
cp -rL "$CHILD" dist/$
|
33
|
+
cp -rL "$CHILD" dist/$WEBSITE
|
51
34
|
done
|
52
35
|
|
53
36
|
echo "Processing Fluid source files:"
|
54
|
-
cp -r "${PREFIX_}dist/fluid/fluid" dist/$
|
55
|
-
[ -d "website/$WEBSITE/fluid" ] && cp -r "website/$WEBSITE/fluid" dist/$
|
37
|
+
cp -r "${PREFIX_}dist/fluid/fluid" dist/$WEBSITE
|
38
|
+
[ -d "website/$WEBSITE/fluid" ] && cp -r "website/$WEBSITE/fluid" dist/$WEBSITE
|
56
39
|
|
57
40
|
echo "Processing shared JavaScript files:"
|
58
|
-
cp -r "${PREFIX_}dist/fluid/shared" dist/$
|
59
|
-
|
60
|
-
if [[ -e "website/$SRC_PATH/test.mjs" ]]; then
|
61
|
-
cp website/$SRC_PATH/test.mjs dist/SRC_PATH_LISP_CASE/test.mjs
|
62
|
-
fi
|
41
|
+
cp -r "${PREFIX_}dist/fluid/shared" dist/$WEBSITE
|
63
42
|
|
64
43
|
echo "Bundled website $WEBSITE"
|
@@ -1,30 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"env": { "browser": true },
|
3
|
-
"extends": "eslint:recommended",
|
4
|
-
"parserOptions": { "ecmaVersion": 6, "sourceType": "module" },
|
5
|
-
"rules": {
|
6
|
-
"block-scoped-var": "error",
|
7
|
-
"consistent-return": "error",
|
8
|
-
"eqeqeq": "error",
|
9
|
-
"guard-for-in": "error",
|
10
|
-
"no-bitwise": "error",
|
11
|
-
"no-caller": "error",
|
12
|
-
"no-constant-condition": ["error", { "checkLoops": false }],
|
13
|
-
"no-extra-parens": "off",
|
14
|
-
"no-extend-native": "error",
|
15
|
-
"no-loop-func": "error",
|
16
|
-
"no-new": "error",
|
17
|
-
"no-param-reassign": "error",
|
18
|
-
"no-return-assign": "error",
|
19
|
-
"no-sequences": "error",
|
20
|
-
"no-unused-expressions": "error",
|
21
|
-
"no-use-before-define": "error",
|
22
|
-
"no-undef": "error",
|
23
|
-
"no-eq-null": "error",
|
24
|
-
"radix": ["error", "always"],
|
25
|
-
"indent": ["error", 2, { "SwitchCase": 0 }],
|
26
|
-
"quotes": ["error", "double"],
|
27
|
-
"semi": ["error", "always"],
|
28
|
-
"strict": ["error", "global"]
|
29
|
-
}
|
30
|
-
}
|
package/script/bundle-page.sh
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
# run from project root
|
3
|
-
set -xe
|
4
|
-
|
5
|
-
PREFIX=""
|
6
|
-
|
7
|
-
if [ -n "${2:-}" ]; then
|
8
|
-
PREFIX=$2
|
9
|
-
fi
|
10
|
-
|
11
|
-
MODULE=$1
|
12
|
-
SRC_PATH=${MODULE//./\/}
|
13
|
-
SRC_PATH_LISP_CASE=$(./$PREFIX/script/util/lisp-case.sh "$SRC_PATH")
|
14
|
-
echo "$SRC_PATH -> $SRC_PATH_LISP_CASE"
|
15
|
-
|
16
|
-
if [[ -e "website/$SRC_PATH.purs" ]]; then
|
17
|
-
. "${PREFIX:+$PREFIX}/script/util/bundle.sh" $SRC_PATH_LISP_CASE Website.$MODULE
|
18
|
-
|
19
|
-
if [[ -e "website/$SRC_PATH.html" ]]; then
|
20
|
-
cp website/$SRC_PATH.html dist/$SRC_PATH_LISP_CASE/index.html
|
21
|
-
else
|
22
|
-
cp website/template.html dist/$SRC_PATH_LISP_CASE/index.html
|
23
|
-
fi
|
24
|
-
fi
|
25
|
-
|
26
|
-
if [[ -e "website/$SRC_PATH.json" ]]; then
|
27
|
-
mkdir -p dist/$SRC_PATH_LISP_CASE
|
28
|
-
cp website/$SRC_PATH.html dist/$SRC_PATH_LISP_CASE/index.html
|
29
|
-
cp website/$SRC_PATH.json dist/$SRC_PATH_LISP_CASE/spec.json
|
30
|
-
fi
|