pawajs 1.3.5 → 1.3.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/index.js +1 -6
  2. package/package.json +1 -1
  3. package/server.js +0 -3
package/index.js CHANGED
@@ -200,7 +200,7 @@ export const PluginSystem = (...func) => {
200
200
  console.warn(`attribute plugin already exist ${attrPlugins.fullName}`)
201
201
  return
202
202
  }
203
- // console.log(attrPlugins)
203
+
204
204
  applyMode(attrPlugins?.mode, () => {
205
205
  pawaAttributes.add(attrPlugins.fullName)
206
206
  fullNamePlugin.add(attrPlugins.fullName)
@@ -442,7 +442,6 @@ export const setContext = () => {
442
442
  setValue
443
443
  }
444
444
  } else {
445
- console.log('setcontext')
446
445
  return serverInstance.setContext?.()
447
446
  }
448
447
 
@@ -467,7 +466,6 @@ export const useContext = (context) => {
467
466
  }
468
467
 
469
468
  } else {
470
- console.log('usecontext')
471
469
  return serverInstance.useContext?.(context)
472
470
  }
473
471
  }
@@ -484,7 +482,6 @@ export const useInnerContext = () => {
484
482
  }
485
483
  return stateContext._elementContext
486
484
  } else {
487
- console.log('innercontext')
488
485
  return serverInstance.useInnerContext?.()
489
486
  }
490
487
  }
@@ -549,7 +546,6 @@ export const useInsert = (obj = {}) => {
549
546
  }
550
547
  Object.assign(stateContext._insert, obj)
551
548
  } else {
552
- // console.log(serverInstance.useInsert)
553
549
  const res = serverInstance.useInsert(obj)
554
550
  }
555
551
  }
@@ -1071,7 +1067,6 @@ export const render = (el, contexts = {}, notRender, isName) => {
1071
1067
  } else if (attr.name.startsWith('c-t')) {
1072
1068
  resumer.resume_text(el, attr, isName)
1073
1069
  } else if (attr.name.startsWith('c-if-')) {
1074
- // console.log('resume -if',el,el._attributes)
1075
1070
  directives['if'](el, attr, stateContext, true, notRender, stopResume)
1076
1071
  } else if (attr.name === 'c-for') {
1077
1072
  directives['for'](el, attr, stateContext, true, notRender, stopResume)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pawajs",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "type":"module",
5
5
  "description": "pawajs library (html runtime) for easily building web ui, enhancing html element, micro frontend etc ",
6
6
  "main": "index.js",
package/server.js CHANGED
@@ -13,11 +13,8 @@ const serverInstance={
13
13
  export const getServerInstance=()=>serverInstance
14
14
  export const setServer=(obj={})=>{
15
15
  for (const [key,value] of Object.entries(obj)) {
16
- console.log(key,'is start')
17
- console.log(serverInstance)
18
16
  if (serverInstance[key] === null) {
19
17
  serverInstance[key]=value
20
- console.log(serverInstance[key])
21
18
  }
22
19
  }
23
20
  }