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.29 to 1.0.30

15

dist/dom-render.js

@@ -695,7 +695,16 @@ 'use strict';

var thisRandom = RandomUtils.uuid();
var thisRegex = /[^(dr\-)]this(?=.?)/g;
element.querySelectorAll("[" + RawSet.DR_THIS_NAME + "]").forEach(function (it) {
it.innerHTML = it.innerHTML.replace(thisRegex, thisRandom);
var message = it.innerHTML;
StringUtils.regexExec(/([^(dr\-)])?this(?=.?)/g, message).reverse().forEach(function (it) {
var _a;
message = message.substr(0, it.index) + message.substr(it.index).replace(it[0], "" + ((_a = it[1]) !== null && _a !== void 0 ? _a : '') + drThis);
});
it.innerHTML = message;
});
element.innerHTML = element.innerHTML.replace(thisRegex, drThis);
var message = element.innerHTML;
StringUtils.regexExec(/([^(dr\-)])?this(?=.?)/g, message).reverse().forEach(function (it) {
var _a;
message = message.substr(0, it.index) + message.substr(it.index).replace(it[0], "" + ((_a = it[1]) !== null && _a !== void 0 ? _a : '') + drThis);
});
element.innerHTML = message;
return thisRandom;

@@ -702,0 +711,0 @@ };

2

package.json
{
"name": "dom-render",
"version": "1.0.29",
"version": "1.0.30",
"main": "DomRender.js",

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

@@ -281,7 +281,16 @@ "use strict";

var thisRandom = RandomUtils_1.RandomUtils.uuid();
var thisRegex = /[^(dr\-)]this(?=.?)/g;
element.querySelectorAll("[" + RawSet.DR_THIS_NAME + "]").forEach(function (it) {
it.innerHTML = it.innerHTML.replace(thisRegex, thisRandom);
var message = it.innerHTML;
StringUtils_1.StringUtils.regexExec(/([^(dr\-)])?this(?=.?)/g, message).reverse().forEach(function (it) {
var _a;
message = message.substr(0, it.index) + message.substr(it.index).replace(it[0], "" + ((_a = it[1]) !== null && _a !== void 0 ? _a : '') + drThis);
});
it.innerHTML = message;
});
element.innerHTML = element.innerHTML.replace(thisRegex, drThis);
var message = element.innerHTML;
StringUtils_1.StringUtils.regexExec(/([^(dr\-)])?this(?=.?)/g, message).reverse().forEach(function (it) {
var _a;
message = message.substr(0, it.index) + message.substr(it.index).replace(it[0], "" + ((_a = it[1]) !== null && _a !== void 0 ? _a : '') + drThis);
});
element.innerHTML = message;
return thisRandom;

@@ -288,0 +297,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