@commercetools-frontend/constants 22.37.0 → 22.38.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.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  // NOTE: This string will be replaced on build time with the package version.
6
- var version = "22.37.0";
6
+ var version = "22.38.0";
7
7
 
8
8
  /**
9
9
  * The project key must be between 2 and 36 characters long. It can only contain alphanumeric lowercase characters (a-z, 0-9),
@@ -153,11 +153,12 @@ const STORAGE_KEYS = {
153
153
  LOGIN_STRATEGY: 'loginStrategy'
154
154
  };
155
155
  const HTTP_SECURITY_HEADERS = {
156
+ 'Referrer-Policy': 'same-origin',
157
+ 'Permissions-Policy': 'microphone=(), camera=(), payment=(), usb=(), geolocation=()',
156
158
  'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload',
157
159
  'X-XSS-Protection': '1; mode=block',
158
160
  'X-Content-Type-Options': 'nosniff',
159
- 'X-Frame-Options': 'SAMEORIGIN',
160
- 'Referrer-Policy': 'same-origin'
161
+ 'X-Frame-Options': 'SAMEORIGIN'
161
162
  };
162
163
 
163
164
  // Custom Views events (messages sent between the host application and the custom view)
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  // NOTE: This string will be replaced on build time with the package version.
6
- var version = "22.37.0";
6
+ var version = "22.38.0";
7
7
 
8
8
  /**
9
9
  * The project key must be between 2 and 36 characters long. It can only contain alphanumeric lowercase characters (a-z, 0-9),
@@ -153,11 +153,12 @@ const STORAGE_KEYS = {
153
153
  LOGIN_STRATEGY: 'loginStrategy'
154
154
  };
155
155
  const HTTP_SECURITY_HEADERS = {
156
+ 'Referrer-Policy': 'same-origin',
157
+ 'Permissions-Policy': 'microphone=(), camera=(), payment=(), usb=(), geolocation=()',
156
158
  'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload',
157
159
  'X-XSS-Protection': '1; mode=block',
158
160
  'X-Content-Type-Options': 'nosniff',
159
- 'X-Frame-Options': 'SAMEORIGIN',
160
- 'Referrer-Policy': 'same-origin'
161
+ 'X-Frame-Options': 'SAMEORIGIN'
161
162
  };
162
163
 
163
164
  // Custom Views events (messages sent between the host application and the custom view)
@@ -1,5 +1,5 @@
1
1
  // NOTE: This string will be replaced on build time with the package version.
2
- var version = "22.37.0";
2
+ var version = "22.38.0";
3
3
 
4
4
  /**
5
5
  * The project key must be between 2 and 36 characters long. It can only contain alphanumeric lowercase characters (a-z, 0-9),
@@ -149,11 +149,12 @@ const STORAGE_KEYS = {
149
149
  LOGIN_STRATEGY: 'loginStrategy'
150
150
  };
151
151
  const HTTP_SECURITY_HEADERS = {
152
+ 'Referrer-Policy': 'same-origin',
153
+ 'Permissions-Policy': 'microphone=(), camera=(), payment=(), usb=(), geolocation=()',
152
154
  'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload',
153
155
  'X-XSS-Protection': '1; mode=block',
154
156
  'X-Content-Type-Options': 'nosniff',
155
- 'X-Frame-Options': 'SAMEORIGIN',
156
- 'Referrer-Policy': 'same-origin'
157
+ 'X-Frame-Options': 'SAMEORIGIN'
157
158
  };
158
159
 
159
160
  // Custom Views events (messages sent between the host application and the custom view)
@@ -252,11 +252,12 @@ export declare const STORAGE_KEYS: {
252
252
  readonly LOGIN_STRATEGY: "loginStrategy";
253
253
  };
254
254
  export declare const HTTP_SECURITY_HEADERS: {
255
+ readonly 'Referrer-Policy': "same-origin";
256
+ readonly 'Permissions-Policy': "microphone=(), camera=(), payment=(), usb=(), geolocation=()";
255
257
  readonly 'Strict-Transport-Security': "max-age=31536000; includeSubDomains; preload";
256
258
  readonly 'X-XSS-Protection': "1; mode=block";
257
259
  readonly 'X-Content-Type-Options': "nosniff";
258
260
  readonly 'X-Frame-Options': "SAMEORIGIN";
259
- readonly 'Referrer-Policy': "same-origin";
260
261
  };
261
262
  export declare const CUSTOM_VIEWS_EVENTS_NAMES: {
262
263
  CUSTOM_VIEW_BOOTSTRAP: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/constants",
3
- "version": "22.37.0",
3
+ "version": "22.38.0",
4
4
  "description": "Shared constants for MC applications",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {