@shopgate/pwa-core 7.30.4-beta.1 → 7.31.0-alpha.2
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/classes/AppCommand/index.js +1 -0
- package/classes/AppCommand/spec.js +2 -2
- package/classes/AppPermissionsRequest/GetAppPermissionsRequest.js +1 -0
- package/classes/AppPermissionsRequest/RequestAppPermissionsRequest.js +1 -0
- package/classes/Bridge/index.js +2 -2
- package/classes/BrowserConnector/index.js +1 -0
- package/classes/DevServerBridge/index.js +1 -0
- package/classes/DevServerBridge/spec.js +1 -0
- package/classes/Event/index.js +1 -0
- package/classes/HttpRequest/index.js +1 -0
- package/classes/PipelineManager/index.js +1 -0
- package/classes/PipelineManager/spec.js +1 -0
- package/classes/PipelineRequest/index.js +1 -0
- package/classes/PipelineRequest/mock.js +1 -0
- package/classes/RequestManager/spec.js +2 -2
- package/classes/Scanner/index.js +1 -0
- package/classes/ScannerEventListener/index.js +1 -0
- package/classes/ScannerManager/index.js +1 -0
- package/commands/plotProjects.js +1 -0
- package/helpers/index.js +0 -1
- package/package.json +4 -1
|
@@ -26,7 +26,7 @@ jest.mock("../../helpers/logGroup", () => function logGroup(...args) {
|
|
|
26
26
|
});
|
|
27
27
|
let mockedBridgeDispatch = jest.fn();
|
|
28
28
|
|
|
29
|
-
/* eslint-disable
|
|
29
|
+
/* eslint-disable class-methods-use-this */
|
|
30
30
|
jest.mock("../DevServerBridge", () => {
|
|
31
31
|
let DevServerBridge = /*#__PURE__*/function () {
|
|
32
32
|
function DevServerBridge() {}
|
|
@@ -41,7 +41,7 @@ jest.mock("../DevServerBridge", () => {
|
|
|
41
41
|
default: DevServerBridge
|
|
42
42
|
};
|
|
43
43
|
});
|
|
44
|
-
/* eslint-enable
|
|
44
|
+
/* eslint-enable class-methods-use-this */
|
|
45
45
|
|
|
46
46
|
// Mock of the client information web storage.
|
|
47
47
|
let mockedClientInformation = null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
|
|
2
|
+
import "core-js/modules/es.array.includes.js";
|
|
2
3
|
import AppPermissionsRequest from "./AppPermissionsRequest";
|
|
3
4
|
import { availablePermissionsIds } from "../../constants/AppPermissions";
|
|
4
5
|
import { COMMAND_GET_APP_PERMISSIONS } from "../../constants/AppCommands";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
|
|
2
|
+
import "core-js/modules/es.array.includes.js";
|
|
2
3
|
import AppPermissionsRequest from "./AppPermissionsRequest";
|
|
3
4
|
import { availablePermissionsIds } from "../../constants/AppPermissions";
|
|
4
5
|
import { COMMAND_REQUEST_APP_PERMISSIONS } from "../../constants/AppCommands";
|
package/classes/Bridge/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* global SGJavascriptBridge */
|
|
2
|
-
import { useBrowserConnector, hasSGJavaScriptBridge } from "../../helpers";
|
|
2
|
+
import { useBrowserConnector as hasBrowserConnector, hasSGJavaScriptBridge } from "../../helpers";
|
|
3
3
|
import BrowserConnector from "../BrowserConnector";
|
|
4
4
|
import DevServerBridge from "../DevServerBridge";
|
|
5
5
|
|
|
@@ -12,7 +12,7 @@ let Bridge = /*#__PURE__*/function () {
|
|
|
12
12
|
* Initializes the Bridge.
|
|
13
13
|
*/
|
|
14
14
|
function Bridge() {
|
|
15
|
-
if (
|
|
15
|
+
if (hasBrowserConnector()) {
|
|
16
16
|
this.bridge = new BrowserConnector();
|
|
17
17
|
} else if (hasSGJavaScriptBridge()) {
|
|
18
18
|
this.bridge = SGJavascriptBridge;
|
package/classes/Event/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
+
import "core-js/modules/es.array.includes.js";
|
|
3
4
|
import { logger } from "../../helpers";
|
|
4
5
|
import * as errorHandleTypes from "../../constants/ErrorHandleTypes";
|
|
5
6
|
import * as processTypes from "../../constants/ProcessTypes";
|
|
@@ -3,7 +3,7 @@ import Request from "../Request";
|
|
|
3
3
|
import RequestManager from '.';
|
|
4
4
|
import { PROCESS_ANY, PROCESS_LAST_REQUEST, PROCESS_FIRST_RESPONSE, PROCESS_SEQUENTIALLY, PROCESS_ORDERED_REQUEST, PROPAGATE_REJECT, PROPAGATE_SINGLE } from "../../constants/RequestManagerModes";
|
|
5
5
|
|
|
6
|
-
/* eslint-disable
|
|
6
|
+
/* eslint-disable no-unused-vars, class-methods-use-this */
|
|
7
7
|
let SuccessfulRequest = /*#__PURE__*/function (_Request) {
|
|
8
8
|
function SuccessfulRequest(manager, payload = 42, timeout = 1000) {
|
|
9
9
|
var _this;
|
|
@@ -51,7 +51,7 @@ let NeverResolvingRequest = /*#__PURE__*/function (_Request3) {
|
|
|
51
51
|
};
|
|
52
52
|
return NeverResolvingRequest;
|
|
53
53
|
}(Request);
|
|
54
|
-
/* eslint-enable
|
|
54
|
+
/* eslint-enable no-unused-vars, class-methods-use-this */
|
|
55
55
|
describe.skip('RequestManager', () => {
|
|
56
56
|
jest.useFakeTimers();
|
|
57
57
|
let timestamp = 0;
|
package/classes/Scanner/index.js
CHANGED
package/commands/plotProjects.js
CHANGED
package/helpers/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/pwa-core",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.31.0-alpha.2",
|
|
4
4
|
"description": "Core library for the Shopgate Connect PWA.",
|
|
5
5
|
"author": "Support <support@shopgate.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
"shopgate",
|
|
15
15
|
"connect"
|
|
16
16
|
],
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/lodash": "^4.17.24"
|
|
19
|
+
},
|
|
17
20
|
"dependencies": {
|
|
18
21
|
"crypto-js": "3.1.9-1",
|
|
19
22
|
"detector": "^2.5.0",
|