@commercetools-frontend/application-config 21.0.0 → 21.2.1
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/dist/commercetools-frontend-application-config.cjs.dev.js +10 -4
- package/dist/commercetools-frontend-application-config.cjs.prod.js +10 -4
- package/dist/commercetools-frontend-application-config.esm.js +10 -4
- package/dist/declarations/src/schema.d.ts +1 -1
- package/package.json +2 -2
- package/schema.json +9 -3
- package/scripts/load-js-module.js +0 -2
|
@@ -108,7 +108,7 @@ var loadJsModule = function loadJsModule(filePath) {
|
|
|
108
108
|
// The "required module output" is then written into `stdout` and parsed
|
|
109
109
|
// as JSON.
|
|
110
110
|
|
|
111
|
-
var output = child_process.execFileSync(path__default["default"].join(packageRootPath, 'scripts/load-js-module.js'),
|
|
111
|
+
var output = child_process.execFileSync('node', [path__default["default"].join(packageRootPath, 'scripts/load-js-module.js'), filePath], {
|
|
112
112
|
encoding: 'utf8'
|
|
113
113
|
});
|
|
114
114
|
return JSON.parse(output);
|
|
@@ -166,12 +166,18 @@ var schemaJson = {
|
|
|
166
166
|
},
|
|
167
167
|
entryPointUriPath: {
|
|
168
168
|
description: "See https://docs.commercetools.com/custom-applications/api-reference/application-config#entrypointuripath",
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
oneOf: [
|
|
170
|
+
{
|
|
171
|
+
type: "string",
|
|
172
|
+
pattern: "^[^\\-_]([0-9a-z]|[\\-_](?![\\-_])){2,64}[^\\-_]$"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
$ref: "#/definitions/envVariablePlaceholder"
|
|
176
|
+
}
|
|
177
|
+
]
|
|
171
178
|
},
|
|
172
179
|
cloudIdentifier: {
|
|
173
180
|
description: "See https://docs.commercetools.com/custom-applications/api-reference/application-config#cloudidentifier",
|
|
174
|
-
type: "string",
|
|
175
181
|
oneOf: [
|
|
176
182
|
{
|
|
177
183
|
"enum": [
|
|
@@ -108,7 +108,7 @@ var loadJsModule = function loadJsModule(filePath) {
|
|
|
108
108
|
// The "required module output" is then written into `stdout` and parsed
|
|
109
109
|
// as JSON.
|
|
110
110
|
|
|
111
|
-
var output = child_process.execFileSync(path__default["default"].join(packageRootPath, 'scripts/load-js-module.js'),
|
|
111
|
+
var output = child_process.execFileSync('node', [path__default["default"].join(packageRootPath, 'scripts/load-js-module.js'), filePath], {
|
|
112
112
|
encoding: 'utf8'
|
|
113
113
|
});
|
|
114
114
|
return JSON.parse(output);
|
|
@@ -166,12 +166,18 @@ var schemaJson = {
|
|
|
166
166
|
},
|
|
167
167
|
entryPointUriPath: {
|
|
168
168
|
description: "See https://docs.commercetools.com/custom-applications/api-reference/application-config#entrypointuripath",
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
oneOf: [
|
|
170
|
+
{
|
|
171
|
+
type: "string",
|
|
172
|
+
pattern: "^[^\\-_]([0-9a-z]|[\\-_](?![\\-_])){2,64}[^\\-_]$"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
$ref: "#/definitions/envVariablePlaceholder"
|
|
176
|
+
}
|
|
177
|
+
]
|
|
171
178
|
},
|
|
172
179
|
cloudIdentifier: {
|
|
173
180
|
description: "See https://docs.commercetools.com/custom-applications/api-reference/application-config#cloudidentifier",
|
|
174
|
-
type: "string",
|
|
175
181
|
oneOf: [
|
|
176
182
|
{
|
|
177
183
|
"enum": [
|
|
@@ -80,7 +80,7 @@ var loadJsModule = function loadJsModule(filePath) {
|
|
|
80
80
|
// The "required module output" is then written into `stdout` and parsed
|
|
81
81
|
// as JSON.
|
|
82
82
|
|
|
83
|
-
var output = execFileSync(path.join(packageRootPath, 'scripts/load-js-module.js'),
|
|
83
|
+
var output = execFileSync('node', [path.join(packageRootPath, 'scripts/load-js-module.js'), filePath], {
|
|
84
84
|
encoding: 'utf8'
|
|
85
85
|
});
|
|
86
86
|
return JSON.parse(output);
|
|
@@ -138,12 +138,18 @@ var schemaJson = {
|
|
|
138
138
|
},
|
|
139
139
|
entryPointUriPath: {
|
|
140
140
|
description: "See https://docs.commercetools.com/custom-applications/api-reference/application-config#entrypointuripath",
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
oneOf: [
|
|
142
|
+
{
|
|
143
|
+
type: "string",
|
|
144
|
+
pattern: "^[^\\-_]([0-9a-z]|[\\-_](?![\\-_])){2,64}[^\\-_]$"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
$ref: "#/definitions/envVariablePlaceholder"
|
|
148
|
+
}
|
|
149
|
+
]
|
|
143
150
|
},
|
|
144
151
|
cloudIdentifier: {
|
|
145
152
|
description: "See https://docs.commercetools.com/custom-applications/api-reference/application-config#cloudidentifier",
|
|
146
|
-
type: "string",
|
|
147
153
|
oneOf: [
|
|
148
154
|
{
|
|
149
155
|
"enum": [
|
|
@@ -4,7 +4,7 @@ export interface JSONSchemaForCustomApplicationConfigurationFiles {
|
|
|
4
4
|
name: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
entryPointUriPath: string;
|
|
7
|
-
cloudIdentifier: (
|
|
7
|
+
cloudIdentifier: ('gcp-au' | 'gcp-eu' | 'gcp-us' | 'aws-fra' | 'aws-ohio') | EnvVariablePlaceholder;
|
|
8
8
|
mcApiUrl?: string;
|
|
9
9
|
oAuthScopes: {
|
|
10
10
|
view: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-config",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.2.1",
|
|
4
4
|
"description": "Configuration utilities for building Custom Applications",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@babel/runtime": "^7.16.7",
|
|
33
33
|
"@babel/runtime-corejs3": "^7.16.8",
|
|
34
34
|
"@commercetools-frontend/babel-preset-mc-app": "21.0.0",
|
|
35
|
-
"ajv": "8.
|
|
35
|
+
"ajv": "8.10.0",
|
|
36
36
|
"core-js": "^3.20.3",
|
|
37
37
|
"cosmiconfig": "7.0.1",
|
|
38
38
|
"lodash": "4.17.21",
|
package/schema.json
CHANGED
|
@@ -27,12 +27,18 @@
|
|
|
27
27
|
},
|
|
28
28
|
"entryPointUriPath": {
|
|
29
29
|
"description": "See https://docs.commercetools.com/custom-applications/api-reference/application-config#entrypointuripath",
|
|
30
|
-
"
|
|
31
|
-
|
|
30
|
+
"oneOf": [
|
|
31
|
+
{
|
|
32
|
+
"type": "string",
|
|
33
|
+
"pattern": "^[^\\-_]([0-9a-z]|[\\-_](?![\\-_])){2,64}[^\\-_]$"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"$ref": "#/definitions/envVariablePlaceholder"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
32
39
|
},
|
|
33
40
|
"cloudIdentifier": {
|
|
34
41
|
"description": "See https://docs.commercetools.com/custom-applications/api-reference/application-config#cloudidentifier",
|
|
35
|
-
"type": "string",
|
|
36
42
|
"oneOf": [
|
|
37
43
|
{
|
|
38
44
|
"enum": ["gcp-au", "gcp-eu", "gcp-us", "aws-fra", "aws-ohio"]
|