@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.
- package/.vscode/launch.json +0 -1
- package/CHANGELOG.md +8 -0
- package/README.md +7 -0
- package/compile.js +2 -0
- package/package-lock.json +749 -769
- package/package.json +2 -2
- package/src/cache.js +275 -0
- package/src/client.js +47 -16
- package/src/methodCache.js +21 -2
- package/src/optionCache.js +5 -1
- package/src/soap.js +2 -1
- package/src/util.js +0 -229
- package/src/xtkEntityCache.js +19 -3
- package/test/caches.test.js +148 -2
- package/test/client.test.js +108 -4
- package/test/mock.js +24 -2
- package/test/util.test.js +2 -1
package/.vscode/launch.json
CHANGED
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
|
|