@explorable-viz/fluid 0.7.78 → 0.7.80
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.
@@ -25093,6 +25093,7 @@ var isArray = Array.isArray || function(value) {
|
|
25093
25093
|
var isFileImpl = (s) => s.isFile();
|
25094
25094
|
|
25095
25095
|
// output-es/Module.Node/index.js
|
25096
|
+
var $$try3 = /* @__PURE__ */ $$try(monadErrorAff);
|
25096
25097
|
var findM = (dictMonad) => {
|
25097
25098
|
const $0 = dictMonad.Bind1().Apply0();
|
25098
25099
|
return (dictFoldable) => (xs) => (f) => (base) => dictFoldable.foldr((x) => (acc) => $0.apply($0.Functor0().map(altMaybe.alt)(acc))(f(x)))(dictMonad.Applicative0().pure(base))(xs);
|
@@ -25104,7 +25105,15 @@ var loadFile = (folders) => (v) => (dictMonadAff) => {
|
|
25104
25105
|
return (dictMonadError) => $0.bind(findM1(arrayMap((() => {
|
25105
25106
|
const $1 = v + ".fld";
|
25106
25107
|
return (a) => a + "/" + $1;
|
25107
|
-
})())(folders))((v1) => $0.bind(dictMonadAff.liftAff(toAff1(stat2)(v1)))((stats) => Monad0.Applicative0().pure(
|
25108
|
+
})())(folders))((v1) => $0.bind(dictMonadAff.liftAff($$try3(toAff1(stat2)(v1))))((stats) => Monad0.Applicative0().pure((() => {
|
25109
|
+
if (stats.tag === "Left") {
|
25110
|
+
return false;
|
25111
|
+
}
|
25112
|
+
if (stats.tag === "Right") {
|
25113
|
+
return isFileImpl(stats._1);
|
25114
|
+
}
|
25115
|
+
fail();
|
25116
|
+
})() ? $Maybe("Just", v1) : Nothing)))(Nothing))((url) => {
|
25108
25117
|
if (url.tag === "Nothing") {
|
25109
25118
|
return throwException(error("File " + v + " not found."))();
|
25110
25119
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@explorable-viz/fluid",
|
3
|
-
"version": "0.7.
|
3
|
+
"version": "0.7.80",
|
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": {
|
package/script/bundle-website.sh
CHANGED
@@ -49,7 +49,7 @@ for CHILD in "${TO_COPY[@]}"; do
|
|
49
49
|
done
|
50
50
|
|
51
51
|
echo "Processing Fluid source files:"
|
52
|
-
cp -r fluid dist/$WEBSITE_LISP_CASE
|
52
|
+
cp -r "${PREFIX_}fluid" dist/$WEBSITE_LISP_CASE
|
53
53
|
[ -d "website/$WEBSITE/fluid" ] && cp -r "website/$WEBSITE/fluid" dist/$WEBSITE_LISP_CASE
|
54
54
|
|
55
55
|
echo "Processing shared JavaScript files:"
|