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

@tolgee/core

Package Overview
Dependencies
Maintainers
1
Versions
354
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tolgee/core - npm Package Compare versions

Comparing version 1.0.0-alpha.24 to 1.0.0-alpha.25

4

lib/Constants/Global.d.ts
export declare const RESTRICTED_ASCENDANT_ATTRIBUTE = "data-tolgee-restricted";
export declare const POLYGLOAT_ATTRIBUTE_NAME = "_tolgee";
export declare const POLYGLOAT_TARGET_ATTRIBUTE = "_tolgee-target";
export declare const TOLGEE_ATTRIBUTE_NAME = "_tolgee";
export declare const TOLGEE_TARGET_ATTRIBUTE = "_tolgee-target";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.POLYGLOAT_TARGET_ATTRIBUTE = exports.POLYGLOAT_ATTRIBUTE_NAME = exports.RESTRICTED_ASCENDANT_ATTRIBUTE = void 0;
exports.TOLGEE_TARGET_ATTRIBUTE = exports.TOLGEE_ATTRIBUTE_NAME = exports.RESTRICTED_ASCENDANT_ATTRIBUTE = void 0;
exports.RESTRICTED_ASCENDANT_ATTRIBUTE = "data-tolgee-restricted";
exports.POLYGLOAT_ATTRIBUTE_NAME = "_tolgee";
exports.POLYGLOAT_TARGET_ATTRIBUTE = "_tolgee-target";
exports.TOLGEE_ATTRIBUTE_NAME = "_tolgee";
exports.TOLGEE_TARGET_ATTRIBUTE = "_tolgee-target";
//# sourceMappingURL=Global.js.map

@@ -112,3 +112,3 @@ "use strict";

AbstractHandler.prototype.translateChildNode = function (node, newValue, keys) {
node[Global_1.POLYGLOAT_ATTRIBUTE_NAME] = {
node[Global_1.TOLGEE_ATTRIBUTE_NAME] = {
oldTextContent: node.textContent,

@@ -121,7 +121,7 @@ keys: keys

AbstractHandler.initParentElement = function (element) {
if (element[Global_1.POLYGLOAT_ATTRIBUTE_NAME] === undefined) {
element[Global_1.POLYGLOAT_ATTRIBUTE_NAME] = {
if (element[Global_1.TOLGEE_ATTRIBUTE_NAME] === undefined) {
element[Global_1.TOLGEE_ATTRIBUTE_NAME] = {
nodes: new Set()
};
element.setAttribute(Global_1.POLYGLOAT_ATTRIBUTE_NAME, "");
element.setAttribute(Global_1.TOLGEE_ATTRIBUTE_NAME, "");
}

@@ -128,0 +128,0 @@ return element;

@@ -108,9 +108,9 @@ "use strict";

NodeHelper.isElementTargetElement = function (element) {
return element.hasAttribute(Global_1.POLYGLOAT_TARGET_ATTRIBUTE);
return element.hasAttribute(Global_1.TOLGEE_TARGET_ATTRIBUTE);
};
NodeHelper.markElementAsTargetElement = function (element) {
element.setAttribute(Global_1.POLYGLOAT_TARGET_ATTRIBUTE, "");
element.setAttribute(Global_1.TOLGEE_TARGET_ATTRIBUTE, "");
};
NodeHelper.unmarkElementAsTargetElement = function (element) {
element.removeAttribute(Global_1.POLYGLOAT_TARGET_ATTRIBUTE);
element.removeAttribute(Global_1.TOLGEE_TARGET_ATTRIBUTE);
};

@@ -117,0 +117,0 @@ NodeHelper.nodeContains = function (descendant, node) {

@@ -116,3 +116,3 @@ "use strict";

}
element.removeAttribute(Global_1.POLYGLOAT_ATTRIBUTE_NAME);
element.removeAttribute(Global_1.TOLGEE_ATTRIBUTE_NAME);
delete element._tolgee;

@@ -119,0 +119,0 @@ this.registeredElements.delete(element);

{
"name": "@tolgee/core",
"version": "1.0.0-alpha.24",
"version": "1.0.0-alpha.25",
"description": "Library providing ability to translate messages directly in context of developed application.",

@@ -69,3 +69,3 @@ "main": "dist/tolgee.umd.js",

},
"gitHead": "19fb70134502fe8b620929511dc115da74be5426",
"gitHead": "d0c11e7109c65d656fda845c0dd628542d3e3d8d",
"publishConfig": {

@@ -72,0 +72,0 @@ "access": "public"

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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