@commercetools-frontend/application-config 21.0.0-rc.7 → 21.1.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.
@@ -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'), [filePath], {
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
- type: "string",
170
- pattern: "^[^\\-_]([0-9a-z]|[\\-_](?![\\-_])){2,64}[^\\-_]$"
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'), [filePath], {
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
- type: "string",
170
- pattern: "^[^\\-_]([0-9a-z]|[\\-_](?![\\-_])){2,64}[^\\-_]$"
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'), [filePath], {
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
- type: "string",
142
- pattern: "^[^\\-_]([0-9a-z]|[\\-_](?![\\-_])){2,64}[^\\-_]$"
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: (('gcp-au' | 'gcp-eu' | 'gcp-us' | 'aws-fra' | 'aws-ohio') | EnvVariablePlaceholder) & string;
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.0.0-rc.7",
3
+ "version": "21.1.2",
4
4
  "description": "Configuration utilities for building Custom Applications",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -31,7 +31,7 @@
31
31
  "@babel/register": "^7.16.9",
32
32
  "@babel/runtime": "^7.16.7",
33
33
  "@babel/runtime-corejs3": "^7.16.8",
34
- "@commercetools-frontend/babel-preset-mc-app": "21.0.0-rc.7",
34
+ "@commercetools-frontend/babel-preset-mc-app": "21.0.0",
35
35
  "ajv": "8.9.0",
36
36
  "core-js": "^3.20.3",
37
37
  "cosmiconfig": "7.0.1",
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
- "type": "string",
31
- "pattern": "^[^\\-_]([0-9a-z]|[\\-_](?![\\-_])){2,64}[^\\-_]$"
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"]
@@ -1,5 +1,3 @@
1
- #!/usr/bin/env node
2
-
3
1
  /**
4
2
  * This script file is used to load and parse a JS module in a child process,
5
3
  * to isolate the Babel configuration from the main program and avoid causing