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

@adobe/acc-js-sdk

Package Overview
Dependencies
Maintainers
21
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adobe/acc-js-sdk - npm Package Compare versions

Comparing version 1.1.7 to 1.1.8

6

CHANGELOG.md

@@ -8,2 +8,7 @@ # Adobe Campaign Classic (ACC) SDK in JavaScript (node.js and browser)

## Version 1.1.8
_2022_10_03_
* Added translation ids (`labelLocalizationId`,`descriptionLocalizationId`, `labelSingularLocalizationId`) for `XtkSchema`, `XtkSchemaNode`, `XtkEnumerationValue` and `XtkEnumeration`
## Version 1.1.7

@@ -15,3 +20,2 @@ _2022_08_30_

## Version 1.1.6

@@ -18,0 +22,0 @@ _2022_08_19_

2

package.json
{
"name": "@adobe/acc-js-sdk",
"version": "1.1.7",
"version": "1.1.8",
"description": "ACC Javascript SDK",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -425,2 +425,4 @@ /*

this._buildLocalizationIds();
/**

@@ -638,2 +640,31 @@ * Element of type "link" has an array of XtkJoin

/* create two ids that are identifying in an unique way the node label and
* the node description
* examples:
* nms__recipient__e____recipient__emailFormat__@desc
* nms__recipient__e____recipient__mobilePhone__@label
* */
_buildLocalizationIds() {
if (!this.parent) {
this._localizationId = this.schema.id.replace(":", "__");
} else {
this._localizationId = this.parent._localizationId;
}
if (this.parent) {
// Separate each element of the path with a double _
if (this.isAttribute) {
this._localizationId = this._localizationId + "__" + this.name.replace('@', '');
} else {
// node is not an attribute so it is an element add "e____"
this._localizationId = this._localizationId + "__e____" + this.name;
}
}
this.labelLocalizationId = this._localizationId + "__@label";
this.descriptionLocalizationId = this._localizationId + "__@desc";
if (!this.parent) {
this.labelSingularLocalizationId = this._localizationId + "__@labelSingular";
}
}
/**

@@ -906,5 +937,6 @@ * Indicates whether the current node has an unlimited number of children of the same type.

* @param {Campaign.XtkEnumerationType} baseType the enumeration type (often "string" or "byte")
* @param {string} parentTranslationId the translation id of the parent node
* @memberof Campaign
*/
function XtkEnumerationValue(xml, baseType) {
function XtkEnumerationValue(xml, baseType, parentTranslationId) {
/**

@@ -921,2 +953,10 @@ * The value (unique) name

/**
* Unique identifier for the translation of the label
* */
this.labelLocalizationId = parentTranslationId + '__' + this.name + '__@label';
/**
* Unique identifier for the tran,slation of the description of the label
* */
this.descriptionLocalizationId = parentTranslationId + '__' + this.name + '__@desc';
/**
* A human friendly long description of the value

@@ -1004,14 +1044,17 @@ * @type {string}

var defaultValue = EntityAccessor.getAttributeAsString(xml, "default");
var defaultValue = EntityAccessor.getAttributeAsString(xml, "default");
this._localizationId = `${schemaId}__${this.name}`.replace(':','__');
for (var child of EntityAccessor.getChildElements(xml, "value")) {
const e = new XtkEnumerationValue(child, this.baseType);
this.values._push(e.name, e);
if (e.image != "") this.hasImage = true;
const stringValue = EntityAccessor.getAttributeAsString(child, "value");
if (defaultValue == stringValue)
this.default = e;
}
for (var child of EntityAccessor.getChildElements(xml, "value")) {
const e = new XtkEnumerationValue(child, this.baseType, this._localizationId);
this.values._push(e.name, e);
if (e.image != "") this.hasImage = true;
const stringValue = EntityAccessor.getAttributeAsString(child, "value");
if (defaultValue == stringValue)
this.default = e;
}
propagateImplicitValues(this, true);
this.labelLocalizationId = this._localizationId + "__@label";
this.descriptionLocalizationId = this._localizationId + "__@desc";
propagateImplicitValues(this, true);

@@ -1023,3 +1066,4 @@ /**

this.shortName = this.name;
this.name = `${schemaId}:${this.shortName}`;
this.name = `${schemaId}:${this.shortName}`;
}

@@ -1072,3 +1116,2 @@ }

this.labelSingular = EntityAccessor.getAttributeAsString(xml, "labelSingular");
/**

@@ -1075,0 +1118,0 @@ * The schema mappgin type, following the xtk:srcSchema:mappingType enumeration

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

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