hotstaq 0.9.39 → 0.9.40

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.
@@ -249,7 +249,7 @@ v}static reportTestPaths(u){return h(this,void 0,void 0,function*(){if(null!=u&&
249
249
  testElements:y,testPaths:v});if(null!=y.error&&""!==y.error)throw Error(y.error);D.isReadyForTesting=!0}})}static onInitalLoad(u){"complete"===document.readyState||"interactive"===document.readyState?u():window.addEventListener("load",u,{once:!0})}static displayUrl(u){return h(this,arguments,void 0,function*(v,y=null,w=null,G=null){return new Promise((L,Q)=>{D.onInitalLoad(()=>h(this,void 0,void 0,function*(){var K={url:""};K.name=null==y?"string"==typeof v?v:v.name:y;""===K.name&&(K.name="string"==
250
250
  typeof v?v:v.name);"string"==typeof v?K.url=v:(K.url=v.url,null==w&&null!=v.processor&&(w=v.processor),null==G&&null!=v.args&&(G=v.args),null!=v.testerMap&&(K.testerMap=v.testerMap),null!=v.testerName&&(K.testerName=v.testerName),null!=v.testerAPIBaseUrl&&(K.testerAPIBaseUrl=v.testerAPIBaseUrl));null==w&&(w=new D);w.mode===g.DeveloperMode.Development&&(g.Hot.Debugger.benchmark=!0);D.setupTesters(w,K);K.processor=w;K.args=G;K.url.indexOf("hstqserve")<0&&(K.url+="?hstqserve=nahfam");K=yield D.processUrl(K);
251
251
  K+=D.setupClientTesters(w);yield D.useOutput(K);L(w)}))})})}static displayContent(u){return h(this,arguments,void 0,function*(v,y=null,w=null,G=null){return new Promise((L,Q)=>{D.onInitalLoad(()=>h(this,void 0,void 0,function*(){var K={content:""};K.name=null==y?"string"==typeof v?"":v.name:y;""===K.name&&(K.name="string"==typeof v?"":v.name);"string"==typeof v?K.content=v:(K.content=v.content,null==w&&null!=v.processor&&(w=v.processor),null==G&&null!=v.args&&(G=v.args),null!=v.testerMap&&(K.testerMap=
252
- v.testerMap),null!=v.testerName&&(K.testerName=v.testerName),null!=v.testerAPIBaseUrl&&(K.testerAPIBaseUrl=v.testerAPIBaseUrl));null==w&&(w=new D);D.setupTesters(w,K);K.processor=w;K.args=G;K=yield D.processContent(K);yield D.useOutput(K);L(w)}))})})}}k.HotStaq=D;D.version="0.9.39";D.isWeb=!1;D.isReadyForTesting=!1;D.onReadyForTesting=null;D.onOutputReceived=null;D.onReadyEvent=null;D.dispatchReadyEvents=!0;D.spaTarget=null;D.routerManager={};D.routerWildcards=[];D.spaProcessor=null;D.spaEnabled=
252
+ v.testerMap),null!=v.testerName&&(K.testerName=v.testerName),null!=v.testerAPIBaseUrl&&(K.testerAPIBaseUrl=v.testerAPIBaseUrl));null==w&&(w=new D);D.setupTesters(w,K);K.processor=w;K.args=G;K=yield D.processContent(K);yield D.useOutput(K);L(w)}))})})}}k.HotStaq=D;D.version="0.9.40";D.isWeb=!1;D.isReadyForTesting=!1;D.onReadyForTesting=null;D.onOutputReceived=null;D.onReadyEvent=null;D.dispatchReadyEvents=!0;D.spaTarget=null;D.routerManager={};D.routerWildcards=[];D.spaProcessor=null;D.spaEnabled=
253
253
  !1;D.spaOutlet=null;D.layoutEnabled=!1;D.onBeforeNavigate=null;D.onAfterNavigate=null;D.onAfterUseOutput=null;D.onRouteNotFound=null;D.autoInstallFetchInterceptors=!0;D.navAbort=null;D.fetchInterceptorsInstalled=!1;D.fetchInterceptorOptions={};D.errors={};D.preValidate=null;D.valids={};D.postValidate=null;D.uuidRegex=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/;D.setupValidators();"undefined"!=typeof document&&(window.HotAPI=E.HotAPI,window.addEventListener("load",
254
254
  l.hotStaqWebStart,{once:!0}))},[6019](E,k,r){Object.defineProperty(k,"__esModule",{value:!0});k.registerComponent=function(l,e){if(null==l||""===l)throw Error("All components must have a tag!");if(void 0===customElements.get(l)){var c=this.components;customElements.define(l,class extends HTMLElement{constructor(){super();var d=c[l];if(this.component=new d.componentType(d.processor,d.api),this.hotComponent=this.component,this.component.htmlElements=[this],this.component.inner=this.innerHTML,null!=
255
255
  this.component.handleAttributes)this.component.handleAttributes(this.attributes);else for(d=0;d<this.attributes.length;d++){var f=this.attributes[d],a=f.name.toLowerCase();f=f.value;if("id"===a&&(this.component.name=f),"name"===a&&(this.component.name=f),"value"===a&&(this.component.value=f),a.indexOf("hot-")>-1)a=a.substring(4),this.component[a]=f}if(null==this.component.onPreOutput||!1!==this.component.onPreOutput())for(a=this.component.output(),null!=this.component.onPostOutput&&(a=this.component.onPostOutput(a)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hotstaq",
3
- "version": "0.9.39",
3
+ "version": "0.9.40",
4
4
  "description": "A friendly web framework that fits nicely into devops and CI/CD pipelines.",
5
5
  "bin": {
6
6
  "hotstaq": "./bin/hotstaq"
@@ -15,8 +15,8 @@
15
15
  "dev-web-tests": "npx webpack --mode=development --config=webpack.config.tests.cjs --watch",
16
16
  "benchmarks": "node ./build/benchmarks/index.js",
17
17
  "version-check": "node ./scripts/VersionCheck.mjs",
18
- "test": "npm run build-test-api && export $(cat .env | xargs) && npx mocha --timeout 5000 --colors ./build/tests/**/*.js",
19
- "test-nyc": "npm run build-test-api && nyc mocha --require=dotenv/config --timeout 5000 --colors ./build/tests/**/*.js",
18
+ "test": "npm run build-test-api && if [ -f .env ]; then export $(cat .env | xargs); fi && npx mocha --timeout 60000 --colors ./build/tests/**/*.js",
19
+ "test-nyc": "npm run build-test-api && nyc mocha --require=dotenv/config --timeout 60000 --colors ./build/tests/**/*.js",
20
20
  "prepublishOnly": "npm run builddoc && npm run build && npm run buildweb && npm run version-check",
21
21
  "builddoc": "npx typedoc --theme markdown --tsconfig ./tsconfig.json --entryPoints './src/api.ts' --readme README.md --out ./docs/ ./src",
22
22
  "build": "npx tsc --build ./tsconfig.json",
package/src/HotStaq.ts CHANGED
@@ -238,7 +238,7 @@ export class HotStaq implements IHotStaq
238
238
  /**
239
239
  * The current version of HotStaq.
240
240
  */
241
- static version: string = "0.9.39";
241
+ static version: string = "0.9.40";
242
242
  /**
243
243
  * Indicates if this is a web build.
244
244
  */