@adobe/acc-js-sdk 1.0.5 → 1.0.6

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.
@@ -4,7 +4,6 @@
4
4
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
5
  "version": "0.2.0",
6
6
  "configurations": [
7
-
8
7
  {
9
8
  "type": "node",
10
9
  "request": "launch",
package/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ This is a node.js SDK for Campaign API. It exposes the Campaign API exactly like
5
5
 
6
6
  # Changelog
7
7
 
8
+ ## Version 1.0.6
9
+ _2021/11/03_
10
+ * New ofBearerToken authentication for IMS access token
11
+ * Fix a small issue in the compile script which did not create the dist folder if it was missing
12
+ * Fix an intermittent bug when running the SDK in the browser and when using local storage cache. The schema cache and method cache
13
+ should contain XML representation of Campaign schemas and methods. Before it is put in local storage, data needs to be serialized
14
+ as text. This was only working of JavaScript objects, but DOM elements were not being serialied causing various errors when
15
+ using the cache later
8
16
 
9
17
  ## Version 1.0.5
10
18
  _2021/10/09_
package/README.md CHANGED
@@ -145,6 +145,13 @@ const connectionParameters = sdk.ConnectionParameters.ofUserAndPassword(
145
145
  "https://myInstance.campaign.adobe.com",
146
146
  "admin", "==ims_service_token_here");
147
147
  ```
148
+ ## Login with IMS access token
149
+ The SDK supports IMS access token of an IMS user with the `ofBearerToken` function. Pass it a bearer token.
150
+ ```js
151
+ const connectionParameters = sdk.ConnectionParameters.ofBearerToken(
152
+ "https://myInstance.campaign.adobe.com",
153
+ "ims_bearer_token");
154
+ ````
148
155
 
149
156
  ## Login with Session token
150
157
 
package/compile.js CHANGED
@@ -31,6 +31,7 @@ var resources = [
31
31
  { name: "./transport.js" },
32
32
  { name: "./xtkCaster.js" },
33
33
  { name: "./domUtil.js" },
34
+ { name: "./cache.js" },
34
35
  { name: "./entityAccessor.js" },
35
36
  { name: "./xtkEntityCache.js" },
36
37
  { name: "./methodCache.js" },
@@ -44,6 +45,7 @@ var resources = [
44
45
 
45
46
 
46
47
  const outFileName = "./dist/bundle.js";
48
+ if (!fs.existsSync("./dist")) fs.mkdirSync("./dist");
47
49
  const rootPath = "./src";
48
50
 
49
51