@malloy-publisher/server 0.0.88 → 0.0.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.
@@ -0,0 +1,17 @@
1
+ var ne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ue(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var M={exports:{}},o={};/**
2
+ * @license React
3
+ * react.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var z;function ee(){if(z)return o;z=1;var d=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),m=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),t=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),g=Symbol.iterator;function h(e){return e===null||typeof e!="object"?null:(e=g&&e[g]||e["@@iterator"],typeof e=="function"?e:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,I={};function O(e,r,n){this.props=e,this.context=r,this.refs=I,this.updater=n||C}O.prototype.isReactComponent={},O.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")},O.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function b(){}b.prototype=O.prototype;function N(e,r,n){this.props=e,this.context=r,this.refs=I,this.updater=n||C}var D=N.prototype=new b;D.constructor=N,U(D,O.prototype),D.isPureReactComponent=!0;var Y=Array.isArray,a={H:null,A:null,T:null,S:null,V:null},k=Object.prototype.hasOwnProperty;function H(e,r,n,u,f,l){return n=l.ref,{$$typeof:d,type:e,key:r,ref:n!==void 0?n:null,props:l}}function X(e,r){return H(e.type,r,void 0,void 0,void 0,e.props)}function j(e){return typeof e=="object"&&e!==null&&e.$$typeof===d}function Q(e){var r={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return r[n]})}var q=/\/+/g;function L(e,r){return typeof e=="object"&&e!==null&&e.key!=null?Q(""+e.key):r.toString(36)}function x(){}function Z(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(x,x):(e.status="pending",e.then(function(r){e.status==="pending"&&(e.status="fulfilled",e.value=r)},function(r){e.status==="pending"&&(e.status="rejected",e.reason=r)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function S(e,r,n,u,f){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(l){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case d:case R:s=!0;break;case c:return s=e._init,S(s(e._payload),r,n,u,f)}}if(s)return f=f(e),s=u===""?"."+L(e,0):u,Y(f)?(n="",s!=null&&(n=s.replace(q,"$&/")+"/"),S(f,r,n,"",function(F){return F})):f!=null&&(j(f)&&(f=X(f,n+(f.key==null||e&&e.key===f.key?"":(""+f.key).replace(q,"$&/")+"/")+s)),r.push(f)),1;s=0;var E=u===""?".":u+":";if(Y(e))for(var y=0;y<e.length;y++)u=e[y],l=E+L(u,y),s+=S(u,r,n,l,f);else if(y=h(e),typeof y=="function")for(e=y.call(e),y=0;!(u=e.next()).done;)u=u.value,l=E+L(u,y++),s+=S(u,r,n,l,f);else if(l==="object"){if(typeof e.then=="function")return S(Z(e),r,n,u,f);throw r=String(e),Error("Objects are not valid as a React child (found: "+(r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return s}function A(e,r,n){if(e==null)return e;var u=[],f=0;return S(e,u,"","",function(l){return r.call(n,l,f++)}),u}function J(e){if(e._status===-1){var r=e._result;r=r(),r.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=r)}if(e._status===1)return e._result.default;throw e._result}var G=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function V(){}return o.Children={map:A,forEach:function(e,r,n){A(e,function(){r.apply(this,arguments)},n)},count:function(e){var r=0;return A(e,function(){r++}),r},toArray:function(e){return A(e,function(r){return r})||[]},only:function(e){if(!j(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},o.Component=O,o.Fragment=v,o.Profiler=P,o.PureComponent=N,o.StrictMode=_,o.Suspense=i,o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,o.__COMPILER_RUNTIME={__proto__:null,c:function(e){return a.H.useMemoCache(e)}},o.cache=function(e){return function(){return e.apply(null,arguments)}},o.cloneElement=function(e,r,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var u=U({},e.props),f=e.key,l=void 0;if(r!=null)for(s in r.ref!==void 0&&(l=void 0),r.key!==void 0&&(f=""+r.key),r)!k.call(r,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&r.ref===void 0||(u[s]=r[s]);var s=arguments.length-2;if(s===1)u.children=n;else if(1<s){for(var E=Array(s),y=0;y<s;y++)E[y]=arguments[y+2];u.children=E}return H(e.type,f,void 0,void 0,l,u)},o.createContext=function(e){return e={$$typeof:m,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:w,_context:e},e},o.createElement=function(e,r,n){var u,f={},l=null;if(r!=null)for(u in r.key!==void 0&&(l=""+r.key),r)k.call(r,u)&&u!=="key"&&u!=="__self"&&u!=="__source"&&(f[u]=r[u]);var s=arguments.length-2;if(s===1)f.children=n;else if(1<s){for(var E=Array(s),y=0;y<s;y++)E[y]=arguments[y+2];f.children=E}if(e&&e.defaultProps)for(u in s=e.defaultProps,s)f[u]===void 0&&(f[u]=s[u]);return H(e,l,void 0,void 0,null,f)},o.createRef=function(){return{current:null}},o.forwardRef=function(e){return{$$typeof:T,render:e}},o.isValidElement=j,o.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:J}},o.memo=function(e,r){return{$$typeof:t,type:e,compare:r===void 0?null:r}},o.startTransition=function(e){var r=a.T,n={};a.T=n;try{var u=e(),f=a.S;f!==null&&f(n,u),typeof u=="object"&&u!==null&&typeof u.then=="function"&&u.then(V,G)}catch(l){G(l)}finally{a.T=r}},o.unstable_useCacheRefresh=function(){return a.H.useCacheRefresh()},o.use=function(e){return a.H.use(e)},o.useActionState=function(e,r,n){return a.H.useActionState(e,r,n)},o.useCallback=function(e,r){return a.H.useCallback(e,r)},o.useContext=function(e){return a.H.useContext(e)},o.useDebugValue=function(){},o.useDeferredValue=function(e,r){return a.H.useDeferredValue(e,r)},o.useEffect=function(e,r,n){var u=a.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return u.useEffect(e,r)},o.useId=function(){return a.H.useId()},o.useImperativeHandle=function(e,r,n){return a.H.useImperativeHandle(e,r,n)},o.useInsertionEffect=function(e,r){return a.H.useInsertionEffect(e,r)},o.useLayoutEffect=function(e,r){return a.H.useLayoutEffect(e,r)},o.useMemo=function(e,r){return a.H.useMemo(e,r)},o.useOptimistic=function(e,r){return a.H.useOptimistic(e,r)},o.useReducer=function(e,r,n){return a.H.useReducer(e,r,n)},o.useRef=function(e){return a.H.useRef(e)},o.useState=function(e){return a.H.useState(e)},o.useSyncExternalStore=function(e,r,n){return a.H.useSyncExternalStore(e,r,n)},o.useTransition=function(){return a.H.useTransition()},o.version="19.1.1",o}var K;function te(){return K||(K=1,M.exports=ee()),M.exports}var $={exports:{}},p={};/**
10
+ * @license React
11
+ * react-dom.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var B;function re(){if(B)return p;B=1;var d=te();function R(i){var t="https://react.dev/errors/"+i;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)t+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+i+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function v(){}var _={d:{f:v,r:function(){throw Error(R(522))},D:v,C:v,L:v,m:v,X:v,S:v,M:v},p:0,findDOMNode:null},P=Symbol.for("react.portal");function w(i,t,c){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:P,key:g==null?null:""+g,children:i,containerInfo:t,implementation:c}}var m=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function T(i,t){if(i==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}return p.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,p.createPortal=function(i,t){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(R(299));return w(i,t,null,c)},p.flushSync=function(i){var t=m.T,c=_.p;try{if(m.T=null,_.p=2,i)return i()}finally{m.T=t,_.p=c,_.d.f()}},p.preconnect=function(i,t){typeof i=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,_.d.C(i,t))},p.prefetchDNS=function(i){typeof i=="string"&&_.d.D(i)},p.preinit=function(i,t){if(typeof i=="string"&&t&&typeof t.as=="string"){var c=t.as,g=T(c,t.crossOrigin),h=typeof t.integrity=="string"?t.integrity:void 0,C=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;c==="style"?_.d.S(i,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:g,integrity:h,fetchPriority:C}):c==="script"&&_.d.X(i,{crossOrigin:g,integrity:h,fetchPriority:C,nonce:typeof t.nonce=="string"?t.nonce:void 0})}},p.preinitModule=function(i,t){if(typeof i=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var c=T(t.as,t.crossOrigin);_.d.M(i,{crossOrigin:c,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&_.d.M(i)},p.preload=function(i,t){if(typeof i=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var c=t.as,g=T(c,t.crossOrigin);_.d.L(i,c,{crossOrigin:g,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}},p.preloadModule=function(i,t){if(typeof i=="string")if(t){var c=T(t.as,t.crossOrigin);_.d.m(i,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:c,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else _.d.m(i)},p.requestFormReset=function(i){_.d.r(i)},p.unstable_batchedUpdates=function(i,t){return i(t)},p.useFormState=function(i,t,c){return m.H.useFormState(i,t,c)},p.useFormStatus=function(){return m.H.useHostTransitionStatus()},p.version="19.1.1",p}var W;function oe(){if(W)return $.exports;W=1;function d(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d)}catch(R){console.error(R)}}return d(),$.exports=re(),$.exports}export{oe as a,ne as c,ue as g,te as r};
@@ -12,7 +12,9 @@
12
12
  href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap"
13
13
  />
14
14
  <title>Malloy Publisher</title>
15
- <script type="module" crossorigin src="/assets/index-CobAY3LE.js"></script>
15
+ <script type="module" crossorigin src="/assets/index-DZMePHJ5.js"></script>
16
+ <link rel="modulepreload" crossorigin href="/assets/vendor-c5ypKtDW.js">
17
+ <link rel="modulepreload" crossorigin href="/assets/mui-BEbinrI-.js">
16
18
  <link rel="stylesheet" crossorigin href="/assets/index-CcIq0aEZ.css">
17
19
  </head>
18
20
  <body>
@@ -2,6 +2,7 @@ var __create = Object.create;
2
2
  var __getProtoOf = Object.getPrototypeOf;
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  var __toESM = (mod2, isNodeMode, target) => {
7
8
  target = mod2 != null ? __create(__getProtoOf(mod2)) : {};
@@ -14,6 +15,20 @@ var __toESM = (mod2, isNodeMode, target) => {
14
15
  });
15
16
  return to;
16
17
  };
18
+ var __moduleCache = /* @__PURE__ */ new WeakMap;
19
+ var __toCommonJS = (from) => {
20
+ var entry = __moduleCache.get(from), desc;
21
+ if (entry)
22
+ return entry;
23
+ entry = __defProp({}, "__esModule", { value: true });
24
+ if (from && typeof from === "object" || typeof from === "function")
25
+ __getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
26
+ get: () => from[key],
27
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
28
+ }));
29
+ __moduleCache.set(from, entry);
30
+ return entry;
31
+ };
17
32
  var __commonJS = (cb, mod2) => () => (mod2 || cb((mod2 = { exports: {} }).exports, mod2), mod2.exports);
18
33
  var __export = (target, all) => {
19
34
  for (var name in all)
@@ -74956,7 +74971,7 @@ var require_propwrap = __commonJS((exports2) => {
74956
74971
  Object.defineProperty(exports2, "__esModule", { value: true });
74957
74972
  exports2.propwrap = undefined;
74958
74973
  var __defProp2 = Object.defineProperty;
74959
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
74974
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
74960
74975
  var __hasOwnProp2 = Object.prototype.hasOwnProperty;
74961
74976
  var __getOwnPropNames2 = Object.getOwnPropertyNames;
74962
74977
  var __copyProps = (to, from, except, desc) => {
@@ -74965,7 +74980,7 @@ var require_propwrap = __commonJS((exports2) => {
74965
74980
  if (!__hasOwnProp2.call(to, key) && key !== except) {
74966
74981
  __defProp2(to, key, {
74967
74982
  get: () => from[key],
74968
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
74983
+ enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
74969
74984
  });
74970
74985
  }
74971
74986
  }
@@ -75000,7 +75015,7 @@ var require_propwrap = __commonJS((exports2) => {
75000
75015
  } else {
75001
75016
  val = namespaces[i + 1];
75002
75017
  }
75003
- const desc = __getOwnPropDesc(namespace, key);
75018
+ const desc = __getOwnPropDesc2(namespace, key);
75004
75019
  const wrappedNamespace = __defProp2({}, key, {
75005
75020
  value: val,
75006
75021
  enumerable: !desc || desc.enumerable
@@ -115220,11 +115235,20 @@ var logger = import_winston.default.createLogger({
115220
115235
  });
115221
115236
  var loggerMiddleware = (req, res, next) => {
115222
115237
  const startTime = performance.now();
115238
+ const resJson = res.json;
115239
+ res.json = (body) => {
115240
+ res.locals.body = body;
115241
+ return resJson.call(res, body);
115242
+ };
115223
115243
  res.on("finish", () => {
115224
115244
  const endTime = performance.now();
115225
115245
  logger.info(`${req.method} ${req.url}`, {
115226
115246
  statusCode: res.statusCode,
115227
- duration: endTime - startTime
115247
+ duration: endTime - startTime,
115248
+ payload: req.body,
115249
+ response: res.locals.body,
115250
+ params: req.params,
115251
+ query: req.query
115228
115252
  });
115229
115253
  });
115230
115254
  next();