@adobe/acc-js-sdk 1.1.52 → 1.1.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,20 @@
2
2
  layout: page
3
3
  title: Change Log
4
4
  ---
5
+ <section class="changelog"><h1>Version 1.1.54</h1>
6
+ <h2>2025/01/27</h2>
7
+ <li>
8
+ Bumped Axios version to 1.7.8
9
+ </li>
10
+ </section>
11
+
12
+ <section class="changelog"><h1>Version 1.1.53</h1>
13
+ <h2>2024/09/06</h2>
14
+ <li>
15
+ Fixed JSON/XML serialization when there is both an attribute and an element with the same name
16
+ </li>
17
+ </section>
18
+
5
19
  <section class="changelog"><h1>Version 1.1.52</h1>
6
20
  <h2>2024/09/04</h2>
7
21
  <li>
@@ -12,7 +26,6 @@ title: Change Log
12
26
  </li>
13
27
  </section>
14
28
 
15
-
16
29
  <section class="changelog"><h1>Version 1.1.51</h1>
17
30
  <h2>2024/08/15</h2>
18
31
  <li>
package/package-lock.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@adobe/acc-js-sdk",
3
- "version": "1.1.52",
3
+ "version": "1.1.54",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@adobe/acc-js-sdk",
9
- "version": "1.1.52",
9
+ "version": "1.1.54",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
- "axios": "^1.2.1",
12
+ "axios": "^1.7.8",
13
13
  "jsdom": "^20.0.3",
14
14
  "qs-stringify": "^1.2.1"
15
15
  },
@@ -1322,9 +1322,9 @@
1322
1322
  "license": "MIT"
1323
1323
  },
1324
1324
  "node_modules/axios": {
1325
- "version": "1.7.4",
1326
- "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz",
1327
- "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==",
1325
+ "version": "1.7.9",
1326
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz",
1327
+ "integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==",
1328
1328
  "dependencies": {
1329
1329
  "follow-redirects": "^1.15.6",
1330
1330
  "form-data": "^4.0.0",
@@ -1654,9 +1654,10 @@
1654
1654
  "license": "MIT"
1655
1655
  },
1656
1656
  "node_modules/cross-spawn": {
1657
- "version": "7.0.3",
1657
+ "version": "7.0.6",
1658
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
1659
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
1658
1660
  "dev": true,
1659
- "license": "MIT",
1660
1661
  "dependencies": {
1661
1662
  "path-key": "^3.1.0",
1662
1663
  "shebang-command": "^2.0.0",
@@ -5607,9 +5608,9 @@
5607
5608
  "version": "0.4.0"
5608
5609
  },
5609
5610
  "axios": {
5610
- "version": "1.7.4",
5611
- "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz",
5612
- "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==",
5611
+ "version": "1.7.9",
5612
+ "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz",
5613
+ "integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==",
5613
5614
  "requires": {
5614
5615
  "follow-redirects": "^1.15.6",
5615
5616
  "form-data": "^4.0.0",
@@ -5823,7 +5824,9 @@
5823
5824
  "dev": true
5824
5825
  },
5825
5826
  "cross-spawn": {
5826
- "version": "7.0.3",
5827
+ "version": "7.0.6",
5828
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
5829
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
5827
5830
  "dev": true,
5828
5831
  "requires": {
5829
5832
  "path-key": "^3.1.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/acc-js-sdk",
3
- "version": "1.1.52",
3
+ "version": "1.1.54",
4
4
  "description": "ACC Javascript SDK",
5
5
  "main": "src/index.js",
6
6
  "homepage": "https://github.com/adobe/acc-js-sdk#readme",
@@ -10,7 +10,7 @@
10
10
  "test": "test"
11
11
  },
12
12
  "dependencies": {
13
- "axios": "^1.2.1",
13
+ "axios": "^1.7.8",
14
14
  "jsdom": "^20.0.3",
15
15
  "qs-stringify": "^1.2.1"
16
16
  },
package/src/domUtil.js CHANGED
@@ -314,7 +314,7 @@ class DomUtil {
314
314
  var attFirstIndex = 1;
315
315
 
316
316
  if (flavor == "SimpleJson") {
317
- if ((t == "string" || t == "number" || t == "boolean") && att[0] != '$') {
317
+ if ((t == "string" || t == "number" || t == "boolean") && att[0] != '$' && att[0] != '@') {
318
318
  isAtt = true;
319
319
  attFirstIndex = 0;
320
320
  }
@@ -156,6 +156,8 @@ describe('DomUtil', function() {
156
156
  assert.strictEqual(fromJSON({ "a": [ ] }), '<root/>');
157
157
  assert.strictEqual(fromJSON({ "a": null }), '<root/>');
158
158
  assert.strictEqual(fromJSON({ "a": undefined }), '<root/>');
159
+ assert.strictEqual(fromJSON({ "@a":2, "@b":"zz", "@c": true }), '<root a="2" b="zz" c="true"/>');
160
+ assert.strictEqual(fromJSON({ "a":{ x:3 }, "@a": 2 }), '<root a="2"><a x="3"/></root>');
159
161
  });
160
162
 
161
163
  it("Should support attributes named 'length'", () => {
@@ -192,6 +194,8 @@ describe('DomUtil', function() {
192
194
  assert.strictEqual(fromJSON({ "a": [ ] }), '<root/>');
193
195
  assert.strictEqual(fromJSON({ "a": null }), '<root/>');
194
196
  assert.strictEqual(fromJSON({ "a": undefined }), '<root/>');
197
+ assert.strictEqual(fromJSON({ "@a":2, "@b":"zz", "@c": true }), '<root a="2" b="zz" c="true"/>');
198
+ assert.strictEqual(fromJSON({ "a":{ x:3 }, "@a": 2 }), '<root a="2"><a x="3"/></root>');
195
199
  });
196
200
  });
197
201