@commercetools-frontend/cypress 22.7.0 → 22.8.0
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/add-commands/dist/commercetools-frontend-cypress-add-commands.cjs.dev.js +7 -7
- package/add-commands/dist/commercetools-frontend-cypress-add-commands.cjs.prod.js +7 -7
- package/add-commands/dist/commercetools-frontend-cypress-add-commands.esm.js +7 -7
- package/dist/commercetools-frontend-cypress.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-cypress.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-cypress.esm.js +1 -1
- package/package.json +7 -7
- package/task/dist/commercetools-frontend-cypress-task.cjs.dev.js +2 -2
- package/task/dist/commercetools-frontend-cypress-task.cjs.prod.js +2 -2
- package/task/dist/commercetools-frontend-cypress-task.esm.js +2 -2
|
@@ -32,8 +32,8 @@ var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
|
|
|
32
32
|
var _URL__default = /*#__PURE__*/_interopDefault(_URL);
|
|
33
33
|
var semver__default = /*#__PURE__*/_interopDefault(semver);
|
|
34
34
|
|
|
35
|
-
function ownKeys(
|
|
36
|
-
function _objectSpread(
|
|
35
|
+
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
36
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context5 = ownKeys(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context6 = ownKeys(Object(t))).call(_context6, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
37
37
|
|
|
38
38
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
39
39
|
|
|
@@ -132,7 +132,7 @@ function loginByOidc(commandOptions) {
|
|
|
132
132
|
{
|
|
133
133
|
log: false
|
|
134
134
|
}).then(appConfig => {
|
|
135
|
-
var _appConfig$__DEVELOPM, _appConfig$__DEVELOPM2, _appConfig$__DEVELOPM3, _appConfig$__DEVELOPM4,
|
|
135
|
+
var _appConfig$__DEVELOPM, _appConfig$__DEVELOPM2, _appConfig$__DEVELOPM3, _appConfig$__DEVELOPM4, _commandOptions$login2;
|
|
136
136
|
// Log loaded application config for debugging purposes.
|
|
137
137
|
Cypress.log({
|
|
138
138
|
displayName: 'task',
|
|
@@ -142,10 +142,10 @@ function loginByOidc(commandOptions) {
|
|
|
142
142
|
const applicationId = appConfig.applicationId;
|
|
143
143
|
const sessionScope = ssr.buildOidcScope({
|
|
144
144
|
projectKey,
|
|
145
|
-
oAuthScopes: (_appConfig$__DEVELOPM = appConfig.__DEVELOPMENT__) === null || _appConfig$__DEVELOPM === void 0
|
|
146
|
-
additionalOAuthScopes: (_appConfig$
|
|
147
|
-
teamId: (_appConfig$
|
|
148
|
-
applicationId: (_appConfig$
|
|
145
|
+
oAuthScopes: (_appConfig$__DEVELOPM = appConfig.__DEVELOPMENT__) === null || _appConfig$__DEVELOPM === void 0 || (_appConfig$__DEVELOPM = _appConfig$__DEVELOPM.oidc) === null || _appConfig$__DEVELOPM === void 0 ? void 0 : _appConfig$__DEVELOPM.oAuthScopes,
|
|
146
|
+
additionalOAuthScopes: (_appConfig$__DEVELOPM2 = appConfig.__DEVELOPMENT__) === null || _appConfig$__DEVELOPM2 === void 0 || (_appConfig$__DEVELOPM2 = _appConfig$__DEVELOPM2.oidc) === null || _appConfig$__DEVELOPM2 === void 0 ? void 0 : _appConfig$__DEVELOPM2.additionalOAuthScopes,
|
|
147
|
+
teamId: (_appConfig$__DEVELOPM3 = appConfig.__DEVELOPMENT__) === null || _appConfig$__DEVELOPM3 === void 0 || (_appConfig$__DEVELOPM3 = _appConfig$__DEVELOPM3.oidc) === null || _appConfig$__DEVELOPM3 === void 0 ? void 0 : _appConfig$__DEVELOPM3.teamId,
|
|
148
|
+
applicationId: (_appConfig$__DEVELOPM4 = appConfig.__DEVELOPMENT__) === null || _appConfig$__DEVELOPM4 === void 0 || (_appConfig$__DEVELOPM4 = _appConfig$__DEVELOPM4.oidc) === null || _appConfig$__DEVELOPM4 === void 0 ? void 0 : _appConfig$__DEVELOPM4.applicationId
|
|
149
149
|
});
|
|
150
150
|
const userCredentials = (_commandOptions$login2 = commandOptions.login) !== null && _commandOptions$login2 !== void 0 ? _commandOptions$login2 : {
|
|
151
151
|
email: Cypress.env('LOGIN_EMAIL') || Cypress.env('LOGIN_USER'),
|
|
@@ -32,8 +32,8 @@ var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
|
|
|
32
32
|
var _URL__default = /*#__PURE__*/_interopDefault(_URL);
|
|
33
33
|
var semver__default = /*#__PURE__*/_interopDefault(semver);
|
|
34
34
|
|
|
35
|
-
function ownKeys(
|
|
36
|
-
function _objectSpread(
|
|
35
|
+
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
36
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context5 = ownKeys(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context6 = ownKeys(Object(t))).call(_context6, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
37
37
|
|
|
38
38
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
39
39
|
|
|
@@ -132,7 +132,7 @@ function loginByOidc(commandOptions) {
|
|
|
132
132
|
{
|
|
133
133
|
log: false
|
|
134
134
|
}).then(appConfig => {
|
|
135
|
-
var _appConfig$__DEVELOPM, _appConfig$__DEVELOPM2, _appConfig$__DEVELOPM3, _appConfig$__DEVELOPM4,
|
|
135
|
+
var _appConfig$__DEVELOPM, _appConfig$__DEVELOPM2, _appConfig$__DEVELOPM3, _appConfig$__DEVELOPM4, _commandOptions$login2;
|
|
136
136
|
// Log loaded application config for debugging purposes.
|
|
137
137
|
Cypress.log({
|
|
138
138
|
displayName: 'task',
|
|
@@ -142,10 +142,10 @@ function loginByOidc(commandOptions) {
|
|
|
142
142
|
const applicationId = appConfig.applicationId;
|
|
143
143
|
const sessionScope = ssr.buildOidcScope({
|
|
144
144
|
projectKey,
|
|
145
|
-
oAuthScopes: (_appConfig$__DEVELOPM = appConfig.__DEVELOPMENT__) === null || _appConfig$__DEVELOPM === void 0
|
|
146
|
-
additionalOAuthScopes: (_appConfig$
|
|
147
|
-
teamId: (_appConfig$
|
|
148
|
-
applicationId: (_appConfig$
|
|
145
|
+
oAuthScopes: (_appConfig$__DEVELOPM = appConfig.__DEVELOPMENT__) === null || _appConfig$__DEVELOPM === void 0 || (_appConfig$__DEVELOPM = _appConfig$__DEVELOPM.oidc) === null || _appConfig$__DEVELOPM === void 0 ? void 0 : _appConfig$__DEVELOPM.oAuthScopes,
|
|
146
|
+
additionalOAuthScopes: (_appConfig$__DEVELOPM2 = appConfig.__DEVELOPMENT__) === null || _appConfig$__DEVELOPM2 === void 0 || (_appConfig$__DEVELOPM2 = _appConfig$__DEVELOPM2.oidc) === null || _appConfig$__DEVELOPM2 === void 0 ? void 0 : _appConfig$__DEVELOPM2.additionalOAuthScopes,
|
|
147
|
+
teamId: (_appConfig$__DEVELOPM3 = appConfig.__DEVELOPMENT__) === null || _appConfig$__DEVELOPM3 === void 0 || (_appConfig$__DEVELOPM3 = _appConfig$__DEVELOPM3.oidc) === null || _appConfig$__DEVELOPM3 === void 0 ? void 0 : _appConfig$__DEVELOPM3.teamId,
|
|
148
|
+
applicationId: (_appConfig$__DEVELOPM4 = appConfig.__DEVELOPMENT__) === null || _appConfig$__DEVELOPM4 === void 0 || (_appConfig$__DEVELOPM4 = _appConfig$__DEVELOPM4.oidc) === null || _appConfig$__DEVELOPM4 === void 0 ? void 0 : _appConfig$__DEVELOPM4.applicationId
|
|
149
149
|
});
|
|
150
150
|
const userCredentials = (_commandOptions$login2 = commandOptions.login) !== null && _commandOptions$login2 !== void 0 ? _commandOptions$login2 : {
|
|
151
151
|
email: Cypress.env('LOGIN_EMAIL') || Cypress.env('LOGIN_USER'),
|
|
@@ -15,8 +15,8 @@ import { v4 } from 'uuid';
|
|
|
15
15
|
import { buildOidcScope } from '@commercetools-frontend/application-shell/ssr';
|
|
16
16
|
import { O as OIDC_RESPONSE_TYPES, S as STORAGE_KEYS } from '../../dist/constants-18b165fc.esm.js';
|
|
17
17
|
|
|
18
|
-
function ownKeys(
|
|
19
|
-
function _objectSpread(
|
|
18
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context5 = ownKeys(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context6 = ownKeys(Object(t))).call(_context6, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
20
|
|
|
21
21
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22
22
|
|
|
@@ -115,7 +115,7 @@ function loginByOidc(commandOptions) {
|
|
|
115
115
|
{
|
|
116
116
|
log: false
|
|
117
117
|
}).then(appConfig => {
|
|
118
|
-
var _appConfig$__DEVELOPM, _appConfig$__DEVELOPM2, _appConfig$__DEVELOPM3, _appConfig$__DEVELOPM4,
|
|
118
|
+
var _appConfig$__DEVELOPM, _appConfig$__DEVELOPM2, _appConfig$__DEVELOPM3, _appConfig$__DEVELOPM4, _commandOptions$login2;
|
|
119
119
|
// Log loaded application config for debugging purposes.
|
|
120
120
|
Cypress.log({
|
|
121
121
|
displayName: 'task',
|
|
@@ -125,10 +125,10 @@ function loginByOidc(commandOptions) {
|
|
|
125
125
|
const applicationId = appConfig.applicationId;
|
|
126
126
|
const sessionScope = buildOidcScope({
|
|
127
127
|
projectKey,
|
|
128
|
-
oAuthScopes: (_appConfig$__DEVELOPM = appConfig.__DEVELOPMENT__) === null || _appConfig$__DEVELOPM === void 0
|
|
129
|
-
additionalOAuthScopes: (_appConfig$
|
|
130
|
-
teamId: (_appConfig$
|
|
131
|
-
applicationId: (_appConfig$
|
|
128
|
+
oAuthScopes: (_appConfig$__DEVELOPM = appConfig.__DEVELOPMENT__) === null || _appConfig$__DEVELOPM === void 0 || (_appConfig$__DEVELOPM = _appConfig$__DEVELOPM.oidc) === null || _appConfig$__DEVELOPM === void 0 ? void 0 : _appConfig$__DEVELOPM.oAuthScopes,
|
|
129
|
+
additionalOAuthScopes: (_appConfig$__DEVELOPM2 = appConfig.__DEVELOPMENT__) === null || _appConfig$__DEVELOPM2 === void 0 || (_appConfig$__DEVELOPM2 = _appConfig$__DEVELOPM2.oidc) === null || _appConfig$__DEVELOPM2 === void 0 ? void 0 : _appConfig$__DEVELOPM2.additionalOAuthScopes,
|
|
130
|
+
teamId: (_appConfig$__DEVELOPM3 = appConfig.__DEVELOPMENT__) === null || _appConfig$__DEVELOPM3 === void 0 || (_appConfig$__DEVELOPM3 = _appConfig$__DEVELOPM3.oidc) === null || _appConfig$__DEVELOPM3 === void 0 ? void 0 : _appConfig$__DEVELOPM3.teamId,
|
|
131
|
+
applicationId: (_appConfig$__DEVELOPM4 = appConfig.__DEVELOPMENT__) === null || _appConfig$__DEVELOPM4 === void 0 || (_appConfig$__DEVELOPM4 = _appConfig$__DEVELOPM4.oidc) === null || _appConfig$__DEVELOPM4 === void 0 ? void 0 : _appConfig$__DEVELOPM4.applicationId
|
|
132
132
|
});
|
|
133
133
|
const userCredentials = (_commandOptions$login2 = commandOptions.login) !== null && _commandOptions$login2 !== void 0 ? _commandOptions$login2 : {
|
|
134
134
|
email: Cypress.env('LOGIN_EMAIL') || Cypress.env('LOGIN_USER'),
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var constants = require('./constants-c657705e.cjs.dev.js');
|
|
6
6
|
|
|
7
7
|
// NOTE: This string will be replaced on build time with the package version.
|
|
8
|
-
var version = "22.
|
|
8
|
+
var version = "22.8.0";
|
|
9
9
|
|
|
10
10
|
exports.OIDC_RESPONSE_TYPES = constants.OIDC_RESPONSE_TYPES;
|
|
11
11
|
exports.STORAGE_KEYS = constants.STORAGE_KEYS;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var constants = require('./constants-8ad2a50e.cjs.prod.js');
|
|
6
6
|
|
|
7
7
|
// NOTE: This string will be replaced on build time with the package version.
|
|
8
|
-
var version = "22.
|
|
8
|
+
var version = "22.8.0";
|
|
9
9
|
|
|
10
10
|
exports.OIDC_RESPONSE_TYPES = constants.OIDC_RESPONSE_TYPES;
|
|
11
11
|
exports.STORAGE_KEYS = constants.STORAGE_KEYS;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/cypress",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.8.0",
|
|
4
4
|
"description": "Cypress commands and utilities for Custom Applications",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"README.md"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@babel/runtime": "^7.
|
|
43
|
-
"@babel/runtime-corejs3": "^7.
|
|
44
|
-
"@commercetools-frontend/application-config": "22.
|
|
45
|
-
"@commercetools-frontend/application-shell": "22.
|
|
42
|
+
"@babel/runtime": "^7.22.15",
|
|
43
|
+
"@babel/runtime-corejs3": "^7.22.15",
|
|
44
|
+
"@commercetools-frontend/application-config": "22.8.0",
|
|
45
|
+
"@commercetools-frontend/application-shell": "22.8.0",
|
|
46
46
|
"@manypkg/get-packages": "1.1.3",
|
|
47
|
-
"@types/semver": "^7.5.
|
|
47
|
+
"@types/semver": "^7.5.1",
|
|
48
48
|
"semver": "7.5.2",
|
|
49
49
|
"uuid": "9.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@tsconfig/node16": "^16.
|
|
52
|
+
"@tsconfig/node16": "^16.1.1",
|
|
53
53
|
"cypress": "12.12.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
@@ -31,8 +31,8 @@ var _reduceInstanceProperty__default = /*#__PURE__*/_interopDefault(_reduceInsta
|
|
|
31
31
|
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
32
32
|
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
33
33
|
|
|
34
|
-
function ownKeys(
|
|
35
|
-
function _objectSpread(
|
|
34
|
+
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
35
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
36
36
|
let cachedAllCustomApplicationConfigs;
|
|
37
37
|
const defaultDotfiles = ['.env', '.env.local'];
|
|
38
38
|
const loadEnvironmentVariables = (packageDirPath, options) => {
|
|
@@ -31,8 +31,8 @@ var _reduceInstanceProperty__default = /*#__PURE__*/_interopDefault(_reduceInsta
|
|
|
31
31
|
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
32
32
|
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
33
33
|
|
|
34
|
-
function ownKeys(
|
|
35
|
-
function _objectSpread(
|
|
34
|
+
function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
35
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
36
36
|
let cachedAllCustomApplicationConfigs;
|
|
37
37
|
const defaultDotfiles = ['.env', '.env.local'];
|
|
38
38
|
const loadEnvironmentVariables = (packageDirPath, options) => {
|
|
@@ -13,8 +13,8 @@ import path from 'path';
|
|
|
13
13
|
import { getPackages } from '@manypkg/get-packages';
|
|
14
14
|
import { processConfig, MissingOrInvalidConfigError } from '@commercetools-frontend/application-config';
|
|
15
15
|
|
|
16
|
-
function ownKeys(
|
|
17
|
-
function _objectSpread(
|
|
16
|
+
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
18
|
let cachedAllCustomApplicationConfigs;
|
|
19
19
|
const defaultDotfiles = ['.env', '.env.local'];
|
|
20
20
|
const loadEnvironmentVariables = (packageDirPath, options) => {
|