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

dom-render

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-render - npm Package Compare versions

Comparing version 1.0.20 to 1.0.21

1

Config.d.ts

@@ -8,2 +8,3 @@ import { ConstructorType } from './types/Types';

}[];
onInit?: (attrName: string, attrValue: string, obj: any) => void;
proxyExcludeTyps?: ConstructorType<any>[];

@@ -10,0 +11,0 @@ applyEvents?: {

8

dist/dom-render.js

@@ -388,2 +388,3 @@ 'use strict';

var raws = [];
var onInitCallBack = [];
genNode.childNodes.forEach(function (cNode, key) {

@@ -489,4 +490,5 @@ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;

var _a, _b;
var attrValue = _this.getAttributeAndDelete(element_2, it.attrName);
if (attrValue) {
var attrName = it.attrName;
var attrValue = _this.getAttributeAndDelete(element_2, attrName);
if (attrValue && attrName) {
var documentFragment = it.callBack(element_2, attrValue, obj);

@@ -498,2 +500,3 @@ if (documentFragment) {

raws.push.apply(raws, rr);
onInitCallBack.push({ attrName: attrName, attrValue: attrValue, obj: obj });
(_b = it === null || it === void 0 ? void 0 : it.complete) === null || _b === void 0 ? void 0 : _b.call(it, element_2, attrValue, obj);

@@ -507,2 +510,3 @@ }

this.replaceBody(genNode);
onInitCallBack.forEach(function (it) { var _a; return (_a = config === null || config === void 0 ? void 0 : config.onInit) === null || _a === void 0 ? void 0 : _a.call(config, it.attrName, it.attrValue, obj); });
return raws;

@@ -509,0 +513,0 @@ };

{
"name": "dom-render",
"version": "1.0.20",
"version": "1.0.21",
"main": "DomRender.js",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -39,2 +39,3 @@ "use strict";

var raws = [];
var onInitCallBack = [];
genNode.childNodes.forEach(function (cNode, key) {

@@ -140,4 +141,5 @@ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;

var _a, _b;
var attrValue = _this.getAttributeAndDelete(element_2, it.attrName);
if (attrValue) {
var attrName = it.attrName;
var attrValue = _this.getAttributeAndDelete(element_2, attrName);
if (attrValue && attrName) {
var documentFragment = it.callBack(element_2, attrValue, obj);

@@ -149,2 +151,3 @@ if (documentFragment) {

raws.push.apply(raws, rr);
onInitCallBack.push({ attrName: attrName, attrValue: attrValue, obj: obj });
(_b = it === null || it === void 0 ? void 0 : it.complete) === null || _b === void 0 ? void 0 : _b.call(it, element_2, attrValue, obj);

@@ -158,2 +161,3 @@ }

this.replaceBody(genNode);
onInitCallBack.forEach(function (it) { var _a; return (_a = config === null || config === void 0 ? void 0 : config.onInit) === null || _a === void 0 ? void 0 : _a.call(config, it.attrName, it.attrValue, obj); });
return raws;

@@ -160,0 +164,0 @@ };

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