Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

be-based

Package Overview
Dependencies
Maintainers
0
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

be-based - npm Package Compare versions

Comparing version 0.0.67 to 0.0.68

38

be-based.js

@@ -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,

8

package.json
{
"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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc