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.95 to 1.0.96

operators/DrThisProperty.d.ts

28

DomRenderProxy.js

@@ -54,3 +54,4 @@ "use strict";

var RawSetType_1 = require("./rawsets/RawSetType");
var DrDictionary_1 = require("./operators/DrDictionary");
var DrThisProperty_1 = require("./operators/DrThisProperty");
var RawSetOperatorType_1 = require("./rawsets/RawSetOperatorType");
var excludeGetSetPropertys = ['onBeforeReturnGet', 'onBeforeReturnSet', '__domrender_components', '__render', '_DomRender_isFinal', '_domRender_ref', '_rawSets', '_domRender_proxy', '_targets', '_DomRender_origin', '_DomRender_ref', '_DomRender_proxy'];

@@ -287,2 +288,3 @@ var DomRenderProxy = /** @class */ (function () {

var firstPathStr = front_1.slice(1);
// check dictionary
// console.log('-promise-------', firstPathStr, this)

@@ -295,3 +297,3 @@ var firstTargets = _this._rawSets.get(firstPathStr);

var type = (_b = (_a = it.point.start).getAttribute) === null || _b === void 0 ? void 0 : _b.call(_a, 'type');
if (type === 'dictionary') {
if (type === RawSetOperatorType_1.RawSetOperatorType.DR_THIS_PROPERTY) {
firstTargetDictionary.push(it);

@@ -306,6 +308,11 @@ }

var _a, _b;
var keys = (_b = (_a = it.point.start.getAttribute('dictionary-keys')) === null || _a === void 0 ? void 0 : _a.split(',')) !== null && _b !== void 0 ? _b : [];
var startElement = it.point.start;
var keys = (_b = (_a = startElement.getAttribute(RawSet_1.RawSet.DR_HAS_KEYS_OPTIONNAME)) === null || _a === void 0 ? void 0 : _a.split(',')) !== null && _b !== void 0 ? _b : [];
if (value === undefined) {
var rawSet = it.getHasRawSet(last_1);
rawSet === null || rawSet === void 0 ? void 0 : rawSet.remove();
startElement.setAttribute(RawSet_1.RawSet.DR_HAS_KEYS_OPTIONNAME, keys.filter(function (it) { return it !== last_1; }).join(','));
}
if (!keys.includes(last_1)) {
var raws = DrDictionary_1.DrDictionary.append(_this._domRender_proxy, fullPathStr_1, last_1, it, _this.config);
// console.log('----append---', raws);
var raws = DrThisProperty_1.DrThisProperty.append(_this._domRender_proxy, fullPathStr_1, last_1, it, _this.config);
if (raws) {

@@ -322,14 +329,3 @@ rawSets_3.push.apply(rawSets_3, raws);

}
// console.log('rawSets-->#$$$$$$$$$$$', this._rawSets);
// rawSets.forEach(it => this.addRawSet(fullPathStr, it));
// DrDictionary.append(this._domRender_proxy, fullPathStr, it, this.config);
// it.render(this._domRender_proxy, this.config);
}
/* if (data instanceof Dictionary) {
const a = this._rawSets.get(firstPathStr);
// a?.forEach(it => {
// if (it.type === RawSetType.TARGET_ATTR)
// })
console.log('dictionary-->', data, last, value, this._rawSets, a);
} else */
if (last_1 === 'length' && Array.isArray(data_1)) {

@@ -336,0 +332,0 @@ var aIterable = _this._rawSets.get(firstPathStr);

{
"name": "dom-render",
"version": "1.0.95",
"version": "1.0.96",
"main": "DomRender.js",

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

@@ -7,3 +7,3 @@ export type Attrs = {

drForOf: string | null;
drDictionary: string | null;
drThisProperty: string | null;
drRepeat: string | null;

@@ -23,3 +23,4 @@ drThis: string | null;

drDestroyOption: string | null;
drDictionaryOption: string | null;
drHasKeysOption: string | null;
drKeyOption: string | null;
};

@@ -12,3 +12,5 @@ import { Config } from '../configs/Config';

point: {
start: Comment | Text | HTMLMetaElement;
start: (Comment | Text | HTMLMetaElement) & {
rawSet?: RawSet;
};
node: Node;

@@ -28,3 +30,3 @@ end: Comment | Text | HTMLMetaElement;

static readonly DR_FOR_OF_NAME = "dr-for-of";
static readonly DR_DICTIONARY_NAME = "dr-dictionary";
static readonly DR_THIS_PROPERTY_NAME = "dr-this-property";
static readonly DR_REPEAT_NAME = "dr-repeat";

@@ -48,3 +50,4 @@ static readonly DR_THIS_NAME = "dr-this";

static readonly DR_COMPONENT_INNER_HTML_NAME_OPTIONNAME = "dr-component-inner-html-name";
static readonly DR_DICTIONARY_OPTIONKEYNAME = "dr-dictionary-key";
static readonly DR_KEY_OPTIONNAME = "dr-key";
static readonly DR_HAS_KEYS_OPTIONNAME = "dr-has-keys";
static readonly DR_ON_CREATE_ARGUMENTS_OPTIONNAME = "dr-on-create:arguments";

@@ -56,5 +59,7 @@ static readonly DR_ON_CREATED_CALLBACK_OPTIONNAME = "dr-on-create:callback";

static readonly DR_TAGS: never[];
static readonly DR_ATTRIBUTES: readonly ["dr", "dr-appender", "dr-if", "dr-for-of", "dr-dictionary", "dr-for", "dr-this", "dr-form", "dr-pre", "dr-inner-html", "dr-inner-text", "dr-repeat", "dr-detect"];
static readonly DR_ATTRIBUTES: readonly ["dr", "dr-appender", "dr-if", "dr-for-of", "dr-this-property", "dr-for", "dr-this", "dr-form", "dr-pre", "dr-inner-html", "dr-inner-text", "dr-repeat", "dr-detect"];
constructor(uuid: string, type: RawSetType, point: {
start: Comment | Text | HTMLMetaElement;
start: (Comment | Text | HTMLMetaElement) & {
rawSet?: RawSet;
};
node: Node;

@@ -86,3 +91,6 @@ end: Comment | Text | HTMLMetaElement;

};
remove(): void;
childAllRemove(): void;
childs(stopNext?: (node: Node) => boolean): ChildNode[] | undefined;
getHasRawSet(key: string): RawSet | undefined;
static drItOtherEncoding(element: Element | DocumentFragment): string;

@@ -89,0 +97,0 @@ static drItOtherDecoding(element: Element | DocumentFragment, random: string): void;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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