@adobe/exc-app 0.2.47 → 1.0.3-beta
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/RuntimeConfiguration.d.ts +8 -0
- package/appapi.d.ts +1 -1
- package/appapi.js +1 -1
- package/appapi.js.map +1 -1
- package/build/preBuild.js +14 -0
- package/cache.d.ts +128 -0
- package/cache.js +128 -0
- package/cache.js.map +1 -0
- package/capabilityapi.d.ts +6 -2
- package/capabilityapi.js +6 -2
- package/capabilityapi.js.map +1 -1
- package/docs/enums/appapi.appids.md +7 -7
- package/docs/enums/capabilityapi.capabilityids.md +14 -7
- package/docs/enums/capabilityapi.capabilitynames.md +14 -7
- package/docs/enums/network.routing.md +21 -1
- package/docs/interfaces/network.queryrequest.md +9 -0
- package/docs/interfaces/root.runtimeconfiguration.md +9 -0
- package/docs/interfaces/root.useractivitymonitor.md +151 -0
- package/docs/modules/network.md +7 -0
- package/docs/modules/root.md +1 -0
- package/index.js +7 -0
- package/index.js.map +1 -1
- package/internal.d.ts +9 -0
- package/internal.js +3 -0
- package/internal.js.map +1 -1
- package/network.d.ts +18 -1
- package/network.js +11 -0
- package/network.js.map +1 -1
- package/package.json +4 -4
- package/settings.js +2 -6
- package/settings.js.map +1 -1
- package/src/Global.d.ts +5 -1
- package/src/Global.js.map +1 -1
- package/tests/cache.test.d.ts +1 -0
- package/tests/cache.test.js +66 -0
- package/tests/cache.test.js.map +1 -0
- package/tests/index.test.js +5 -0
- package/tests/index.test.js.map +1 -1
- package/tests/permissions.test.js +1 -5
- package/tests/permissions.test.js.map +1 -1
- package/tests/pulse.test.js +23 -11
- package/tests/pulse.test.js.map +1 -1
- package/tests/session.test.d.ts +1 -0
- package/tests/session.test.js +64 -0
- package/tests/session.test.js.map +1 -0
- package/tests/version.test.d.ts +1 -0
- package/tests/version.test.js +23 -0
- package/tests/version.test.js.map +1 -0
- package/version.d.ts +12 -0
- package/version.js +15 -0
- package/version.js.map +1 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
/*************************************************************************
|
|
16
|
+
* Copyright 2022 Adobe
|
|
17
|
+
* All Rights Reserved.
|
|
18
|
+
*
|
|
19
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this file in
|
|
20
|
+
* accordance with the terms of the Adobe license agreement accompanying
|
|
21
|
+
* it. If you have received this file from a source other than Adobe,
|
|
22
|
+
* then your use, modification, or distribution of it requires the prior
|
|
23
|
+
* written permission of Adobe.
|
|
24
|
+
**************************************************************************/
|
|
25
|
+
const Global_1 = __importDefault(require("../src/Global"));
|
|
26
|
+
const session_1 = __importDefault(require("../session"));
|
|
27
|
+
describe('session.ts', () => {
|
|
28
|
+
const getMock = jest.fn();
|
|
29
|
+
const setMock = jest.fn();
|
|
30
|
+
const invalidateMock = jest.fn();
|
|
31
|
+
const sessionMock = {
|
|
32
|
+
get: getMock,
|
|
33
|
+
invalidate: invalidateMock,
|
|
34
|
+
set: setMock
|
|
35
|
+
};
|
|
36
|
+
beforeAll(() => {
|
|
37
|
+
Global_1.default['exc-module-runtime'] = {
|
|
38
|
+
session: () => sessionMock
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
afterEach(() => jest.clearAllMocks());
|
|
42
|
+
const mockSession = {
|
|
43
|
+
expires: 100,
|
|
44
|
+
id: 'session'
|
|
45
|
+
};
|
|
46
|
+
test('get', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
47
|
+
getMock.mockResolvedValue(mockSession);
|
|
48
|
+
const session = yield session_1.default.get();
|
|
49
|
+
expect(session).toEqual(mockSession);
|
|
50
|
+
expect(getMock).toHaveBeenCalledTimes(1);
|
|
51
|
+
expect(getMock).toHaveBeenCalledWith();
|
|
52
|
+
}));
|
|
53
|
+
test('invalidate', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
54
|
+
yield session_1.default.invalidate(mockSession);
|
|
55
|
+
expect(invalidateMock).toHaveBeenCalledTimes(1);
|
|
56
|
+
expect(invalidateMock).toHaveBeenCalledWith(mockSession);
|
|
57
|
+
}));
|
|
58
|
+
test('set', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
59
|
+
yield session_1.default.set(mockSession);
|
|
60
|
+
expect(setMock).toHaveBeenCalledTimes(1);
|
|
61
|
+
expect(setMock).toHaveBeenCalledWith(mockSession);
|
|
62
|
+
}));
|
|
63
|
+
});
|
|
64
|
+
//# sourceMappingURL=session.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.test.js","sourceRoot":"","sources":["session.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;4EAS4E;AAC5E,2DAA8C;AAC9C,yDAA2D;AAE3D,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;IAC1B,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;IAC1B,MAAM,cAAc,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;IAEjC,MAAM,WAAW,GAAG;QAClB,G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AoB,CAAC,WAAW,CAAC,CAAC;IACpD,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
/*************************************************************************
|
|
7
|
+
* Copyright 2020 Adobe
|
|
8
|
+
* All Rights Reserved.
|
|
9
|
+
*
|
|
10
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this file in
|
|
11
|
+
* accordance with the terms of the Adobe license agreement accompanying
|
|
12
|
+
* it. If you have received this file from a source other than Adobe,
|
|
13
|
+
* then your use, modification, or distribution of it requires the prior
|
|
14
|
+
* written permission of Adobe.
|
|
15
|
+
**************************************************************************/
|
|
16
|
+
const package_json_1 = require("../package.json");
|
|
17
|
+
const version_1 = __importDefault(require("../version"));
|
|
18
|
+
describe('version.ts', () => {
|
|
19
|
+
test('exc-app current version is being used', () => {
|
|
20
|
+
expect(version_1.default).toEqual(package_json_1.version);
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=version.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.test.js","sourceRoot":"","sources":["version.test.ts"],"names":[],"mappings":";;;;;AAAA;;;;;;;;;4EAS4E;AAC5E,kDAAyD;AACzD,yDAAiC;AAEjC,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,IAAI,CAAC,uCAAuC,EAAE,GAAG,EAAE;QACjD,MAAM,CAAC,iBAAO,CAAC,CAAC,OAAO,CAAC,sBAAa,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/version.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*************************************************************************
|
|
2
|
+
* Copyright 2021 Adobe
|
|
3
|
+
* All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this file in
|
|
6
|
+
* accordance with the terms of the Adobe license agreement accompanying
|
|
7
|
+
* it. If you have received this file from a source other than Adobe,
|
|
8
|
+
* then your use, modification, or distribution of it requires the prior
|
|
9
|
+
* written permission of Adobe.
|
|
10
|
+
**************************************************************************/
|
|
11
|
+
declare const EXC_APP_VERSION = "1.0.3-beta";
|
|
12
|
+
export default EXC_APP_VERSION;
|
package/version.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/*************************************************************************
|
|
4
|
+
* Copyright 2021 Adobe
|
|
5
|
+
* All Rights Reserved.
|
|
6
|
+
*
|
|
7
|
+
* NOTICE: Adobe permits you to use, modify, and distribute this file in
|
|
8
|
+
* accordance with the terms of the Adobe license agreement accompanying
|
|
9
|
+
* it. If you have received this file from a source other than Adobe,
|
|
10
|
+
* then your use, modification, or distribution of it requires the prior
|
|
11
|
+
* written permission of Adobe.
|
|
12
|
+
**************************************************************************/
|
|
13
|
+
const EXC_APP_VERSION = '1.0.3-beta';
|
|
14
|
+
exports.default = EXC_APP_VERSION;
|
|
15
|
+
//# sourceMappingURL=version.js.map
|
package/version.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["version.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;4EAS4E;AAC5E,MAAM,eAAe,GAAG,YAAY,CAAC;AAErC,kBAAe,eAAe,CAAC"}
|