Comparing version 0.0.67 to 0.0.68
@@ -0,5 +1,16 @@ | ||
// @ts-check | ||
import { config as beCnfg } from 'be-enhanced/config.js'; | ||
import { BE } from 'be-enhanced/BE.js'; | ||
/** @import {BEConfig} from './node_modules/be-enhanced/types.d.ts' */ | ||
/** @import {Actions, PAP, AllProps, AP} from './types.d.ts' */; | ||
import { MountObserver } from 'mount-observer/MountObserver.js'; | ||
/** @import {IEnhancement, BEAllProps} from './node_modules/trans-render/be/types.d.ts' */; | ||
/** | ||
* @implements {Actions} | ||
*/ | ||
class BeBased extends BE { | ||
/** | ||
* @type {BEConfig<AP & BEAllProps, Actions & IEnhancement, any>} | ||
*/ | ||
static config = { | ||
@@ -20,2 +31,8 @@ propInfo: { | ||
#mo; | ||
/** | ||
* | ||
* @param {AP & BEAllProps} self | ||
* @returns | ||
*/ | ||
hydrate(self) { | ||
@@ -44,2 +61,11 @@ const { forAll, base, fileName, enhancedElement } = self; | ||
} | ||
/** | ||
* | ||
* @param {Element} node | ||
* @param {string} attrib | ||
* @param {string} base | ||
* @param {string} fileName | ||
* @returns | ||
*/ | ||
#processEl(node, attrib, base, fileName) { | ||
@@ -49,5 +75,5 @@ if (!node.hasAttribute(attrib)) | ||
let val = node.getAttribute(attrib); | ||
if (val.indexOf('//') !== -1) | ||
if (val?.indexOf('//') !== -1) | ||
return; | ||
if (val.startsWith('data:')) | ||
if (val?.startsWith('data:')) | ||
return; | ||
@@ -73,2 +99,6 @@ if (val[0] === '#') | ||
} | ||
/** | ||
* | ||
* @param {Element} el | ||
*/ | ||
disconnect(el) { | ||
@@ -78,2 +108,6 @@ if (this.#mo !== undefined) | ||
} | ||
/** | ||
* | ||
* @param {Element} el | ||
*/ | ||
async detach(el) { | ||
@@ -80,0 +114,0 @@ this.disconnect(el); |
import { BeHive, seed, MountObserver } from 'be-hive/be-hive.js'; | ||
/** @import {EMC} from './node_modules/trans-render/be/types.d.ts */ | ||
const base = 'be-based'; | ||
/** | ||
* @type {EMC} | ||
*/ | ||
export const emc = { | ||
@@ -4,0 +8,0 @@ base, |
{ | ||
"name": "be-based", | ||
"version": "0.0.67", | ||
"version": "0.0.68", | ||
"description": "be-based is a package that contains a client-side web component decorator, a trans-render transformer [TODO], and a HTMLRewriter class [TODO].", | ||
@@ -14,6 +14,6 @@ "main": "be-based.js", | ||
"dependencies": { | ||
"be-enhanced": "0.0.114", | ||
"be-hive": "0.0.195", | ||
"be-enhanced": "0.0.116", | ||
"be-hive": "0.0.196", | ||
"mount-observer": "0.0.29", | ||
"trans-render": "0.0.801" | ||
"trans-render": "0.0.802" | ||
}, | ||
@@ -20,0 +20,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9154
152
+ Addedbe-enhanced@0.0.1150.0.116(transitive)
+ Addedbe-hive@0.0.196(transitive)
+ Addedtrans-render@0.0.802(transitive)
- Removedbe-enhanced@0.0.114(transitive)
- Removedbe-hive@0.0.195(transitive)
- Removedtrans-render@0.0.801(transitive)
Updatedbe-enhanced@0.0.116
Updatedbe-hive@0.0.196
Updatedtrans-render@0.0.802