@slicemachine/manager 0.24.3-alpha.lg-sm-play-envs.1 → 0.24.3-alpha.table-field.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/client.cjs +1 -1
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/client.js +1 -1
- package/dist/_node_modules/cross-spawn/index.cjs +1 -1
- package/dist/_node_modules/cross-spawn/index.js +1 -1
- package/dist/_virtual/index2.cjs +3 -4
- package/dist/_virtual/index2.cjs.map +1 -1
- package/dist/_virtual/index2.js +2 -4
- package/dist/_virtual/index2.js.map +1 -1
- package/dist/_virtual/index3.cjs +4 -3
- package/dist/_virtual/index3.cjs.map +1 -1
- package/dist/_virtual/index3.js +4 -2
- package/dist/_virtual/index3.js.map +1 -1
- package/dist/constants/API_ENDPOINTS.cjs +0 -16
- package/dist/constants/API_ENDPOINTS.cjs.map +1 -1
- package/dist/constants/API_ENDPOINTS.js +0 -16
- package/dist/constants/API_ENDPOINTS.js.map +1 -1
- package/dist/constants/API_TOKENS.cjs +0 -3
- package/dist/constants/API_TOKENS.cjs.map +1 -1
- package/dist/constants/API_TOKENS.js +0 -3
- package/dist/constants/API_TOKENS.js.map +1 -1
- package/dist/constants/APPLICATION_MODE.cjs +0 -3
- package/dist/constants/APPLICATION_MODE.cjs.map +1 -1
- package/dist/constants/APPLICATION_MODE.d.ts +0 -3
- package/dist/constants/APPLICATION_MODE.js +0 -3
- package/dist/constants/APPLICATION_MODE.js.map +1 -1
- package/package.json +3 -3
- package/src/constants/API_ENDPOINTS.ts +0 -17
- package/src/constants/API_TOKENS.ts +0 -3
- package/src/constants/APPLICATION_MODE.ts +0 -3
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
const _commonjsHelpers = require("../../../../../../_virtual/_commonjsHelpers.cjs");
|
3
3
|
const client = require("../../../../../../_virtual/client2.cjs");
|
4
|
-
const index = require("../../../../../../_virtual/
|
4
|
+
const index = require("../../../../../../_virtual/index3.cjs");
|
5
5
|
const experimentCore_esm = require("../../../../../../_virtual/experiment-core.esm.cjs");
|
6
6
|
require("../assignment/assignment.cjs");
|
7
7
|
require("../assignment/assignment-filter.cjs");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { commonjsGlobal } from "../../../../../../_virtual/_commonjsHelpers.js";
|
2
2
|
import { __exports as client } from "../../../../../../_virtual/client2.js";
|
3
|
-
import require$$0 from "../../../../../../_virtual/
|
3
|
+
import require$$0 from "../../../../../../_virtual/index3.js";
|
4
4
|
import require$$1 from "../../../../../../_virtual/experiment-core.esm.js";
|
5
5
|
import "../assignment/assignment.js";
|
6
6
|
import "../assignment/assignment-filter.js";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
const _commonjsHelpers = require("../../_virtual/_commonjsHelpers.cjs");
|
3
|
-
const index = require("../../_virtual/
|
3
|
+
const index = require("../../_virtual/index2.cjs");
|
4
4
|
const require$$0 = require("child_process");
|
5
5
|
const parse$1 = require("./lib/parse.cjs");
|
6
6
|
const enoent$1 = require("./lib/enoent.cjs");
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { getDefaultExportFromCjs } from "../../_virtual/_commonjsHelpers.js";
|
2
|
-
import { __module as crossSpawn$1 } from "../../_virtual/
|
2
|
+
import { __module as crossSpawn$1 } from "../../_virtual/index2.js";
|
3
3
|
import require$$0 from "child_process";
|
4
4
|
import { p as parse_1 } from "./lib/parse.js";
|
5
5
|
import { e as enoent$1 } from "./lib/enoent.js";
|
package/dist/_virtual/index2.cjs
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
module.exports = require$$0;
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
var crossSpawn = { exports: {} };
|
4
|
+
exports.__module = crossSpawn;
|
6
5
|
//# sourceMappingURL=index2.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/index2.js
CHANGED
@@ -1,7 +1,5 @@
|
|
1
|
-
|
2
|
-
import * as index from './../_node_modules/@amplitude/analytics-node/lib/esm/index.js';
|
3
|
-
const require$$0 = /* @__PURE__ */ getAugmentedNamespace(index);
|
1
|
+
var crossSpawn = { exports: {} };
|
4
2
|
export {
|
5
|
-
|
3
|
+
crossSpawn as __module
|
6
4
|
};
|
7
5
|
//# sourceMappingURL=index2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/_virtual/index3.cjs
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
const _commonjsHelpers = require("./_commonjsHelpers.cjs");
|
3
|
+
const index = require('./../_node_modules/@amplitude/analytics-node/lib/esm/index.cjs');
|
4
|
+
const require$$0 = /* @__PURE__ */ _commonjsHelpers.getAugmentedNamespace(index);
|
5
|
+
module.exports = require$$0;
|
5
6
|
//# sourceMappingURL=index3.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index3.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index3.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
package/dist/_virtual/index3.js
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
-
|
1
|
+
import { getAugmentedNamespace } from "./_commonjsHelpers.js";
|
2
|
+
import * as index from './../_node_modules/@amplitude/analytics-node/lib/esm/index.js';
|
3
|
+
const require$$0 = /* @__PURE__ */ getAugmentedNamespace(index);
|
2
4
|
export {
|
3
|
-
|
5
|
+
require$$0 as default
|
4
6
|
};
|
5
7
|
//# sourceMappingURL=index3.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
@@ -52,22 +52,6 @@ If you didn't intend to run Slice Machine this way, stop it immediately and unse
|
|
52
52
|
LocaleService: "https://locale.internal.wroom.io/"
|
53
53
|
};
|
54
54
|
}
|
55
|
-
case APPLICATION_MODE.APPLICATION_MODE.DevTools:
|
56
|
-
case APPLICATION_MODE.APPLICATION_MODE.MarketingTools:
|
57
|
-
case APPLICATION_MODE.APPLICATION_MODE.Platform: {
|
58
|
-
return {
|
59
|
-
PrismicWroom: `https://${process.env.SM_ENV}-wroom.com/`,
|
60
|
-
PrismicAuthentication: `https://auth.${process.env.SM_ENV}-wroom.com/`,
|
61
|
-
PrismicModels: `https://customtypes.${process.env.SM_ENV}-wroom.com/`,
|
62
|
-
PrismicUser: `https://user-service.${process.env.SM_ENV}-wroom.com/`,
|
63
|
-
AwsAclProvider: `https://acl-provider.${process.env.SM_ENV}-wroom.com/`,
|
64
|
-
PrismicEmbed: `https://oembed.${process.env.SM_ENV}-wroom.com`,
|
65
|
-
PrismicUnsplash: `https://unsplash.${process.env.SM_ENV}-wroom.com/`,
|
66
|
-
SliceMachineV1: `https://sm-api.${process.env.SM_ENV}-wroom.com/v1/`,
|
67
|
-
RepositoryService: `https://repository.internal.${process.env.SM_ENV}-wroom.com/`,
|
68
|
-
LocaleService: `https://locale.internal.${process.env.SM_ENV}-wroom.com/`
|
69
|
-
};
|
70
|
-
}
|
71
55
|
case APPLICATION_MODE.APPLICATION_MODE.Production:
|
72
56
|
default: {
|
73
57
|
return {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"API_ENDPOINTS.cjs","sources":["../../../src/constants/API_ENDPOINTS.ts"],"sourcesContent":["import { addTrailingSlash, removeTrailingSlash } from \"../lib/trailingSlash\";\nimport { APPLICATION_MODE } from \"./APPLICATION_MODE\";\n\nexport type APIEndpoints = {\n\tPrismicWroom: string;\n\tPrismicAuthentication: string;\n\tPrismicModels: string;\n\tPrismicUser: string;\n\tAwsAclProvider: string;\n\tPrismicEmbed: string;\n\tPrismicUnsplash: string;\n\tSliceMachineV1: string;\n\tRepositoryService: string;\n\tLocaleService: string;\n};\n\nexport const API_ENDPOINTS: APIEndpoints = (() => {\n\tswitch (process.env.SM_ENV) {\n\t\tcase APPLICATION_MODE.Development: {\n\t\t\tconst apiEndpoints = {\n\t\t\t\tPrismicWroom: addTrailingSlash(process.env.wroom_endpoint),\n\t\t\t\tPrismicAuthentication: addTrailingSlash(\n\t\t\t\t\tprocess.env.authentication_server_endpoint,\n\t\t\t\t),\n\t\t\t\tPrismicModels: addTrailingSlash(process.env.customtypesapi_endpoint),\n\t\t\t\tPrismicUser: addTrailingSlash(process.env.user_service_endpoint),\n\t\t\t\tAwsAclProvider: addTrailingSlash(process.env.acl_provider_endpoint),\n\t\t\t\tPrismicEmbed: removeTrailingSlash(\n\t\t\t\t\tprocess.env.oembed_endpoint ?? \"https://oembed.wroom.io\",\n\t\t\t\t),\n\t\t\t\tPrismicUnsplash: addTrailingSlash(\n\t\t\t\t\tprocess.env.unsplash_endpoint ?? \"https://unsplash.wroom.io/\",\n\t\t\t\t),\n\t\t\t\tSliceMachineV1: addTrailingSlash(\n\t\t\t\t\tprocess.env.slice_machine_v1_endpoint ??\n\t\t\t\t\t\t\"https://sm-api.wroom.io/v1/\",\n\t\t\t\t),\n\t\t\t\tRepositoryService: addTrailingSlash(\n\t\t\t\t\tprocess.env.repository_api ?? \"https://repository.internal.wroom.io/\",\n\t\t\t\t),\n\t\t\t\tLocaleService: addTrailingSlash(\n\t\t\t\t\tprocess.env.locale_api ?? \"https://locale.internal.wroom.io/\",\n\t\t\t\t),\n\t\t\t};\n\n\t\t\tconst missingAPIEndpoints = Object.keys(apiEndpoints).filter((key) => {\n\t\t\t\treturn !apiEndpoints[key as keyof typeof apiEndpoints];\n\t\t\t});\n\n\t\t\tif (missingAPIEndpoints.length > 0) {\n\t\t\t\tconsole.error(\n\t\t\t\t\t`You are running Slice Machine in development mode (SM_ENV=${\n\t\t\t\t\t\tAPPLICATION_MODE.Development\n\t\t\t\t\t}) where API endpoints are configured via environment variables.\n\nThe following endpoints were not configured: ${missingAPIEndpoints.join(\", \")}.\n\nConfigure them before continuing.`,\n\t\t\t\t);\n\n\t\t\t\tprocess.exit(1);\n\t\t\t}\n\n\t\t\tconsole.warn(`You are running Slice Machine in development mode (SM_ENV=${\n\t\t\t\tAPPLICATION_MODE.Development\n\t\t\t}).\n\nThe following API endpoints were configured via environment variables:\n${Object.entries(apiEndpoints)\n\t.map(([name, endpoint]) => ` - ${name}: ${endpoint}`)\n\t.join(\"\\n\")}\n\nThese endpoints are different than Slice Machine's normal endpoints and are not trusted.\n\nIf you didn't intend to run Slice Machine this way, stop it immediately and unset the SM_ENV environment variable.`);\n\n\t\t\treturn apiEndpoints as APIEndpoints;\n\t\t}\n\n\t\tcase APPLICATION_MODE.Staging: {\n\t\t\treturn {\n\t\t\t\tPrismicWroom: \"https://wroom.io/\",\n\t\t\t\tPrismicAuthentication: \"https://auth.wroom.io/\",\n\t\t\t\tPrismicModels: \"https://customtypes.wroom.io/\",\n\t\t\t\tPrismicUser: \"https://user-service.wroom.io/\",\n\t\t\t\tAwsAclProvider: \"https://acl-provider.wroom.io/\",\n\t\t\t\tPrismicEmbed: \"https://oembed.wroom.io\",\n\t\t\t\tPrismicUnsplash: \"https://unsplash.wroom.io/\",\n\t\t\t\tSliceMachineV1: \"https://sm-api.wroom.io/v1/\",\n\t\t\t\tRepositoryService: \"https://repository.internal.wroom.io/\",\n\t\t\t\tLocaleService: \"https://locale.internal.wroom.io/\",\n\t\t\t};\n\t\t}\n\n\t\tcase APPLICATION_MODE.
|
1
|
+
{"version":3,"file":"API_ENDPOINTS.cjs","sources":["../../../src/constants/API_ENDPOINTS.ts"],"sourcesContent":["import { addTrailingSlash, removeTrailingSlash } from \"../lib/trailingSlash\";\nimport { APPLICATION_MODE } from \"./APPLICATION_MODE\";\n\nexport type APIEndpoints = {\n\tPrismicWroom: string;\n\tPrismicAuthentication: string;\n\tPrismicModels: string;\n\tPrismicUser: string;\n\tAwsAclProvider: string;\n\tPrismicEmbed: string;\n\tPrismicUnsplash: string;\n\tSliceMachineV1: string;\n\tRepositoryService: string;\n\tLocaleService: string;\n};\n\nexport const API_ENDPOINTS: APIEndpoints = (() => {\n\tswitch (process.env.SM_ENV) {\n\t\tcase APPLICATION_MODE.Development: {\n\t\t\tconst apiEndpoints = {\n\t\t\t\tPrismicWroom: addTrailingSlash(process.env.wroom_endpoint),\n\t\t\t\tPrismicAuthentication: addTrailingSlash(\n\t\t\t\t\tprocess.env.authentication_server_endpoint,\n\t\t\t\t),\n\t\t\t\tPrismicModels: addTrailingSlash(process.env.customtypesapi_endpoint),\n\t\t\t\tPrismicUser: addTrailingSlash(process.env.user_service_endpoint),\n\t\t\t\tAwsAclProvider: addTrailingSlash(process.env.acl_provider_endpoint),\n\t\t\t\tPrismicEmbed: removeTrailingSlash(\n\t\t\t\t\tprocess.env.oembed_endpoint ?? \"https://oembed.wroom.io\",\n\t\t\t\t),\n\t\t\t\tPrismicUnsplash: addTrailingSlash(\n\t\t\t\t\tprocess.env.unsplash_endpoint ?? \"https://unsplash.wroom.io/\",\n\t\t\t\t),\n\t\t\t\tSliceMachineV1: addTrailingSlash(\n\t\t\t\t\tprocess.env.slice_machine_v1_endpoint ??\n\t\t\t\t\t\t\"https://sm-api.wroom.io/v1/\",\n\t\t\t\t),\n\t\t\t\tRepositoryService: addTrailingSlash(\n\t\t\t\t\tprocess.env.repository_api ?? \"https://repository.internal.wroom.io/\",\n\t\t\t\t),\n\t\t\t\tLocaleService: addTrailingSlash(\n\t\t\t\t\tprocess.env.locale_api ?? \"https://locale.internal.wroom.io/\",\n\t\t\t\t),\n\t\t\t};\n\n\t\t\tconst missingAPIEndpoints = Object.keys(apiEndpoints).filter((key) => {\n\t\t\t\treturn !apiEndpoints[key as keyof typeof apiEndpoints];\n\t\t\t});\n\n\t\t\tif (missingAPIEndpoints.length > 0) {\n\t\t\t\tconsole.error(\n\t\t\t\t\t`You are running Slice Machine in development mode (SM_ENV=${\n\t\t\t\t\t\tAPPLICATION_MODE.Development\n\t\t\t\t\t}) where API endpoints are configured via environment variables.\n\nThe following endpoints were not configured: ${missingAPIEndpoints.join(\", \")}.\n\nConfigure them before continuing.`,\n\t\t\t\t);\n\n\t\t\t\tprocess.exit(1);\n\t\t\t}\n\n\t\t\tconsole.warn(`You are running Slice Machine in development mode (SM_ENV=${\n\t\t\t\tAPPLICATION_MODE.Development\n\t\t\t}).\n\nThe following API endpoints were configured via environment variables:\n${Object.entries(apiEndpoints)\n\t.map(([name, endpoint]) => ` - ${name}: ${endpoint}`)\n\t.join(\"\\n\")}\n\nThese endpoints are different than Slice Machine's normal endpoints and are not trusted.\n\nIf you didn't intend to run Slice Machine this way, stop it immediately and unset the SM_ENV environment variable.`);\n\n\t\t\treturn apiEndpoints as APIEndpoints;\n\t\t}\n\n\t\tcase APPLICATION_MODE.Staging: {\n\t\t\treturn {\n\t\t\t\tPrismicWroom: \"https://wroom.io/\",\n\t\t\t\tPrismicAuthentication: \"https://auth.wroom.io/\",\n\t\t\t\tPrismicModels: \"https://customtypes.wroom.io/\",\n\t\t\t\tPrismicUser: \"https://user-service.wroom.io/\",\n\t\t\t\tAwsAclProvider: \"https://acl-provider.wroom.io/\",\n\t\t\t\tPrismicEmbed: \"https://oembed.wroom.io\",\n\t\t\t\tPrismicUnsplash: \"https://unsplash.wroom.io/\",\n\t\t\t\tSliceMachineV1: \"https://sm-api.wroom.io/v1/\",\n\t\t\t\tRepositoryService: \"https://repository.internal.wroom.io/\",\n\t\t\t\tLocaleService: \"https://locale.internal.wroom.io/\",\n\t\t\t};\n\t\t}\n\n\t\tcase APPLICATION_MODE.Production:\n\t\tdefault: {\n\t\t\treturn {\n\t\t\t\tPrismicWroom: \"https://prismic.io/\",\n\t\t\t\tPrismicAuthentication: \"https://auth.prismic.io/\",\n\t\t\t\tPrismicModels: \"https://customtypes.prismic.io/\",\n\t\t\t\tPrismicUser: \"https://user-service.prismic.io/\",\n\t\t\t\tAwsAclProvider: \"https://acl-provider.prismic.io/\",\n\t\t\t\tPrismicEmbed: \"https://oembed.prismic.io\",\n\t\t\t\tPrismicUnsplash: \"https://unsplash.prismic.io/\",\n\t\t\t\tSliceMachineV1: \"https://sm-api.prismic.io/v1/\",\n\t\t\t\tRepositoryService: \"https://repository.internal.prismic.io/\",\n\t\t\t\tLocaleService: \"https://locale.internal.prismic.io/\",\n\t\t\t};\n\t\t}\n\t}\n})();\n"],"names":["APPLICATION_MODE","addTrailingSlash","removeTrailingSlash"],"mappings":";;;;AAgBO,MAAM,iBAA+B,MAAK;AACxC,UAAA,QAAQ,IAAI,QAAQ;AAAA,IAC3B,KAAKA,iBAAAA,iBAAiB,aAAa;AAClC,YAAM,eAAe;AAAA,QACpB,cAAcC,cAAA,iBAAiB,QAAQ,IAAI,cAAc;AAAA,QACzD,uBAAuBA,cAAA,iBACtB,QAAQ,IAAI,8BAA8B;AAAA,QAE3C,eAAeA,cAAA,iBAAiB,QAAQ,IAAI,uBAAuB;AAAA,QACnE,aAAaA,cAAA,iBAAiB,QAAQ,IAAI,qBAAqB;AAAA,QAC/D,gBAAgBA,cAAA,iBAAiB,QAAQ,IAAI,qBAAqB;AAAA,QAClE,cAAcC,cAAAA,oBACb,QAAQ,IAAI,mBAAmB,yBAAyB;AAAA,QAEzD,iBAAiBD,cAAAA,iBAChB,QAAQ,IAAI,qBAAqB,4BAA4B;AAAA,QAE9D,gBAAgBA,cAAAA,iBACf,QAAQ,IAAI,6BACX,6BAA6B;AAAA,QAE/B,mBAAmBA,cAAAA,iBAClB,QAAQ,IAAI,kBAAkB,uCAAuC;AAAA,QAEtE,eAAeA,cAAAA,iBACd,QAAQ,IAAI,cAAc,mCAAmC;AAAA,MAAA;AAI/D,YAAM,sBAAsB,OAAO,KAAK,YAAY,EAAE,OAAO,CAAC,QAAO;AAC7D,eAAA,CAAC,aAAa,GAAgC;AAAA,MAAA,CACrD;AAEG,UAAA,oBAAoB,SAAS,GAAG;AAC3B,gBAAA,MACP,6DACCD,iBAAAA,iBAAiB;AAAA;AAAA,+CAGwB,oBAAoB,KAAK,IAAI;AAAA;AAAA,kCAE1C;AAG9B,gBAAQ,KAAK,CAAC;AAAA,MACf;AAEQ,cAAA,KAAK,6DACZA,iBAAAA,iBAAiB;AAAA;AAAA;AAAA,EAInB,OAAO,QAAQ,YAAY,EAC3B,IAAI,CAAC,CAAC,MAAM,QAAQ,MAAM,OAAO,SAAS,UAAU,EACpD,KAAK,IAAI;AAAA;AAAA;AAAA;AAAA,mHAIwG;AAEzG,aAAA;AAAA,IACR;AAAA,IAEA,KAAKA,iBAAAA,iBAAiB,SAAS;AACvB,aAAA;AAAA,QACN,cAAc;AAAA,QACd,uBAAuB;AAAA,QACvB,eAAe;AAAA,QACf,aAAa;AAAA,QACb,gBAAgB;AAAA,QAChB,cAAc;AAAA,QACd,iBAAiB;AAAA,QACjB,gBAAgB;AAAA,QAChB,mBAAmB;AAAA,QACnB,eAAe;AAAA,MAAA;AAAA,IAEjB;AAAA,IAEA,KAAKA,iBAAAA,iBAAiB;AAAA,IACtB,SAAS;AACD,aAAA;AAAA,QACN,cAAc;AAAA,QACd,uBAAuB;AAAA,QACvB,eAAe;AAAA,QACf,aAAa;AAAA,QACb,gBAAgB;AAAA,QAChB,cAAc;AAAA,QACd,iBAAiB;AAAA,QACjB,gBAAgB;AAAA,QAChB,mBAAmB;AAAA,QACnB,eAAe;AAAA,MAAA;AAAA,IAEjB;AAAA,EACD;AACD;;"}
|
@@ -50,22 +50,6 @@ If you didn't intend to run Slice Machine this way, stop it immediately and unse
|
|
50
50
|
LocaleService: "https://locale.internal.wroom.io/"
|
51
51
|
};
|
52
52
|
}
|
53
|
-
case APPLICATION_MODE.DevTools:
|
54
|
-
case APPLICATION_MODE.MarketingTools:
|
55
|
-
case APPLICATION_MODE.Platform: {
|
56
|
-
return {
|
57
|
-
PrismicWroom: `https://${process.env.SM_ENV}-wroom.com/`,
|
58
|
-
PrismicAuthentication: `https://auth.${process.env.SM_ENV}-wroom.com/`,
|
59
|
-
PrismicModels: `https://customtypes.${process.env.SM_ENV}-wroom.com/`,
|
60
|
-
PrismicUser: `https://user-service.${process.env.SM_ENV}-wroom.com/`,
|
61
|
-
AwsAclProvider: `https://acl-provider.${process.env.SM_ENV}-wroom.com/`,
|
62
|
-
PrismicEmbed: `https://oembed.${process.env.SM_ENV}-wroom.com`,
|
63
|
-
PrismicUnsplash: `https://unsplash.${process.env.SM_ENV}-wroom.com/`,
|
64
|
-
SliceMachineV1: `https://sm-api.${process.env.SM_ENV}-wroom.com/v1/`,
|
65
|
-
RepositoryService: `https://repository.internal.${process.env.SM_ENV}-wroom.com/`,
|
66
|
-
LocaleService: `https://locale.internal.${process.env.SM_ENV}-wroom.com/`
|
67
|
-
};
|
68
|
-
}
|
69
53
|
case APPLICATION_MODE.Production:
|
70
54
|
default: {
|
71
55
|
return {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"API_ENDPOINTS.js","sources":["../../../src/constants/API_ENDPOINTS.ts"],"sourcesContent":["import { addTrailingSlash, removeTrailingSlash } from \"../lib/trailingSlash\";\nimport { APPLICATION_MODE } from \"./APPLICATION_MODE\";\n\nexport type APIEndpoints = {\n\tPrismicWroom: string;\n\tPrismicAuthentication: string;\n\tPrismicModels: string;\n\tPrismicUser: string;\n\tAwsAclProvider: string;\n\tPrismicEmbed: string;\n\tPrismicUnsplash: string;\n\tSliceMachineV1: string;\n\tRepositoryService: string;\n\tLocaleService: string;\n};\n\nexport const API_ENDPOINTS: APIEndpoints = (() => {\n\tswitch (process.env.SM_ENV) {\n\t\tcase APPLICATION_MODE.Development: {\n\t\t\tconst apiEndpoints = {\n\t\t\t\tPrismicWroom: addTrailingSlash(process.env.wroom_endpoint),\n\t\t\t\tPrismicAuthentication: addTrailingSlash(\n\t\t\t\t\tprocess.env.authentication_server_endpoint,\n\t\t\t\t),\n\t\t\t\tPrismicModels: addTrailingSlash(process.env.customtypesapi_endpoint),\n\t\t\t\tPrismicUser: addTrailingSlash(process.env.user_service_endpoint),\n\t\t\t\tAwsAclProvider: addTrailingSlash(process.env.acl_provider_endpoint),\n\t\t\t\tPrismicEmbed: removeTrailingSlash(\n\t\t\t\t\tprocess.env.oembed_endpoint ?? \"https://oembed.wroom.io\",\n\t\t\t\t),\n\t\t\t\tPrismicUnsplash: addTrailingSlash(\n\t\t\t\t\tprocess.env.unsplash_endpoint ?? \"https://unsplash.wroom.io/\",\n\t\t\t\t),\n\t\t\t\tSliceMachineV1: addTrailingSlash(\n\t\t\t\t\tprocess.env.slice_machine_v1_endpoint ??\n\t\t\t\t\t\t\"https://sm-api.wroom.io/v1/\",\n\t\t\t\t),\n\t\t\t\tRepositoryService: addTrailingSlash(\n\t\t\t\t\tprocess.env.repository_api ?? \"https://repository.internal.wroom.io/\",\n\t\t\t\t),\n\t\t\t\tLocaleService: addTrailingSlash(\n\t\t\t\t\tprocess.env.locale_api ?? \"https://locale.internal.wroom.io/\",\n\t\t\t\t),\n\t\t\t};\n\n\t\t\tconst missingAPIEndpoints = Object.keys(apiEndpoints).filter((key) => {\n\t\t\t\treturn !apiEndpoints[key as keyof typeof apiEndpoints];\n\t\t\t});\n\n\t\t\tif (missingAPIEndpoints.length > 0) {\n\t\t\t\tconsole.error(\n\t\t\t\t\t`You are running Slice Machine in development mode (SM_ENV=${\n\t\t\t\t\t\tAPPLICATION_MODE.Development\n\t\t\t\t\t}) where API endpoints are configured via environment variables.\n\nThe following endpoints were not configured: ${missingAPIEndpoints.join(\", \")}.\n\nConfigure them before continuing.`,\n\t\t\t\t);\n\n\t\t\t\tprocess.exit(1);\n\t\t\t}\n\n\t\t\tconsole.warn(`You are running Slice Machine in development mode (SM_ENV=${\n\t\t\t\tAPPLICATION_MODE.Development\n\t\t\t}).\n\nThe following API endpoints were configured via environment variables:\n${Object.entries(apiEndpoints)\n\t.map(([name, endpoint]) => ` - ${name}: ${endpoint}`)\n\t.join(\"\\n\")}\n\nThese endpoints are different than Slice Machine's normal endpoints and are not trusted.\n\nIf you didn't intend to run Slice Machine this way, stop it immediately and unset the SM_ENV environment variable.`);\n\n\t\t\treturn apiEndpoints as APIEndpoints;\n\t\t}\n\n\t\tcase APPLICATION_MODE.Staging: {\n\t\t\treturn {\n\t\t\t\tPrismicWroom: \"https://wroom.io/\",\n\t\t\t\tPrismicAuthentication: \"https://auth.wroom.io/\",\n\t\t\t\tPrismicModels: \"https://customtypes.wroom.io/\",\n\t\t\t\tPrismicUser: \"https://user-service.wroom.io/\",\n\t\t\t\tAwsAclProvider: \"https://acl-provider.wroom.io/\",\n\t\t\t\tPrismicEmbed: \"https://oembed.wroom.io\",\n\t\t\t\tPrismicUnsplash: \"https://unsplash.wroom.io/\",\n\t\t\t\tSliceMachineV1: \"https://sm-api.wroom.io/v1/\",\n\t\t\t\tRepositoryService: \"https://repository.internal.wroom.io/\",\n\t\t\t\tLocaleService: \"https://locale.internal.wroom.io/\",\n\t\t\t};\n\t\t}\n\n\t\tcase APPLICATION_MODE.
|
1
|
+
{"version":3,"file":"API_ENDPOINTS.js","sources":["../../../src/constants/API_ENDPOINTS.ts"],"sourcesContent":["import { addTrailingSlash, removeTrailingSlash } from \"../lib/trailingSlash\";\nimport { APPLICATION_MODE } from \"./APPLICATION_MODE\";\n\nexport type APIEndpoints = {\n\tPrismicWroom: string;\n\tPrismicAuthentication: string;\n\tPrismicModels: string;\n\tPrismicUser: string;\n\tAwsAclProvider: string;\n\tPrismicEmbed: string;\n\tPrismicUnsplash: string;\n\tSliceMachineV1: string;\n\tRepositoryService: string;\n\tLocaleService: string;\n};\n\nexport const API_ENDPOINTS: APIEndpoints = (() => {\n\tswitch (process.env.SM_ENV) {\n\t\tcase APPLICATION_MODE.Development: {\n\t\t\tconst apiEndpoints = {\n\t\t\t\tPrismicWroom: addTrailingSlash(process.env.wroom_endpoint),\n\t\t\t\tPrismicAuthentication: addTrailingSlash(\n\t\t\t\t\tprocess.env.authentication_server_endpoint,\n\t\t\t\t),\n\t\t\t\tPrismicModels: addTrailingSlash(process.env.customtypesapi_endpoint),\n\t\t\t\tPrismicUser: addTrailingSlash(process.env.user_service_endpoint),\n\t\t\t\tAwsAclProvider: addTrailingSlash(process.env.acl_provider_endpoint),\n\t\t\t\tPrismicEmbed: removeTrailingSlash(\n\t\t\t\t\tprocess.env.oembed_endpoint ?? \"https://oembed.wroom.io\",\n\t\t\t\t),\n\t\t\t\tPrismicUnsplash: addTrailingSlash(\n\t\t\t\t\tprocess.env.unsplash_endpoint ?? \"https://unsplash.wroom.io/\",\n\t\t\t\t),\n\t\t\t\tSliceMachineV1: addTrailingSlash(\n\t\t\t\t\tprocess.env.slice_machine_v1_endpoint ??\n\t\t\t\t\t\t\"https://sm-api.wroom.io/v1/\",\n\t\t\t\t),\n\t\t\t\tRepositoryService: addTrailingSlash(\n\t\t\t\t\tprocess.env.repository_api ?? \"https://repository.internal.wroom.io/\",\n\t\t\t\t),\n\t\t\t\tLocaleService: addTrailingSlash(\n\t\t\t\t\tprocess.env.locale_api ?? \"https://locale.internal.wroom.io/\",\n\t\t\t\t),\n\t\t\t};\n\n\t\t\tconst missingAPIEndpoints = Object.keys(apiEndpoints).filter((key) => {\n\t\t\t\treturn !apiEndpoints[key as keyof typeof apiEndpoints];\n\t\t\t});\n\n\t\t\tif (missingAPIEndpoints.length > 0) {\n\t\t\t\tconsole.error(\n\t\t\t\t\t`You are running Slice Machine in development mode (SM_ENV=${\n\t\t\t\t\t\tAPPLICATION_MODE.Development\n\t\t\t\t\t}) where API endpoints are configured via environment variables.\n\nThe following endpoints were not configured: ${missingAPIEndpoints.join(\", \")}.\n\nConfigure them before continuing.`,\n\t\t\t\t);\n\n\t\t\t\tprocess.exit(1);\n\t\t\t}\n\n\t\t\tconsole.warn(`You are running Slice Machine in development mode (SM_ENV=${\n\t\t\t\tAPPLICATION_MODE.Development\n\t\t\t}).\n\nThe following API endpoints were configured via environment variables:\n${Object.entries(apiEndpoints)\n\t.map(([name, endpoint]) => ` - ${name}: ${endpoint}`)\n\t.join(\"\\n\")}\n\nThese endpoints are different than Slice Machine's normal endpoints and are not trusted.\n\nIf you didn't intend to run Slice Machine this way, stop it immediately and unset the SM_ENV environment variable.`);\n\n\t\t\treturn apiEndpoints as APIEndpoints;\n\t\t}\n\n\t\tcase APPLICATION_MODE.Staging: {\n\t\t\treturn {\n\t\t\t\tPrismicWroom: \"https://wroom.io/\",\n\t\t\t\tPrismicAuthentication: \"https://auth.wroom.io/\",\n\t\t\t\tPrismicModels: \"https://customtypes.wroom.io/\",\n\t\t\t\tPrismicUser: \"https://user-service.wroom.io/\",\n\t\t\t\tAwsAclProvider: \"https://acl-provider.wroom.io/\",\n\t\t\t\tPrismicEmbed: \"https://oembed.wroom.io\",\n\t\t\t\tPrismicUnsplash: \"https://unsplash.wroom.io/\",\n\t\t\t\tSliceMachineV1: \"https://sm-api.wroom.io/v1/\",\n\t\t\t\tRepositoryService: \"https://repository.internal.wroom.io/\",\n\t\t\t\tLocaleService: \"https://locale.internal.wroom.io/\",\n\t\t\t};\n\t\t}\n\n\t\tcase APPLICATION_MODE.Production:\n\t\tdefault: {\n\t\t\treturn {\n\t\t\t\tPrismicWroom: \"https://prismic.io/\",\n\t\t\t\tPrismicAuthentication: \"https://auth.prismic.io/\",\n\t\t\t\tPrismicModels: \"https://customtypes.prismic.io/\",\n\t\t\t\tPrismicUser: \"https://user-service.prismic.io/\",\n\t\t\t\tAwsAclProvider: \"https://acl-provider.prismic.io/\",\n\t\t\t\tPrismicEmbed: \"https://oembed.prismic.io\",\n\t\t\t\tPrismicUnsplash: \"https://unsplash.prismic.io/\",\n\t\t\t\tSliceMachineV1: \"https://sm-api.prismic.io/v1/\",\n\t\t\t\tRepositoryService: \"https://repository.internal.prismic.io/\",\n\t\t\t\tLocaleService: \"https://locale.internal.prismic.io/\",\n\t\t\t};\n\t\t}\n\t}\n})();\n"],"names":[],"mappings":";;AAgBO,MAAM,iBAA+B,MAAK;AACxC,UAAA,QAAQ,IAAI,QAAQ;AAAA,IAC3B,KAAK,iBAAiB,aAAa;AAClC,YAAM,eAAe;AAAA,QACpB,cAAc,iBAAiB,QAAQ,IAAI,cAAc;AAAA,QACzD,uBAAuB,iBACtB,QAAQ,IAAI,8BAA8B;AAAA,QAE3C,eAAe,iBAAiB,QAAQ,IAAI,uBAAuB;AAAA,QACnE,aAAa,iBAAiB,QAAQ,IAAI,qBAAqB;AAAA,QAC/D,gBAAgB,iBAAiB,QAAQ,IAAI,qBAAqB;AAAA,QAClE,cAAc,oBACb,QAAQ,IAAI,mBAAmB,yBAAyB;AAAA,QAEzD,iBAAiB,iBAChB,QAAQ,IAAI,qBAAqB,4BAA4B;AAAA,QAE9D,gBAAgB,iBACf,QAAQ,IAAI,6BACX,6BAA6B;AAAA,QAE/B,mBAAmB,iBAClB,QAAQ,IAAI,kBAAkB,uCAAuC;AAAA,QAEtE,eAAe,iBACd,QAAQ,IAAI,cAAc,mCAAmC;AAAA,MAAA;AAI/D,YAAM,sBAAsB,OAAO,KAAK,YAAY,EAAE,OAAO,CAAC,QAAO;AAC7D,eAAA,CAAC,aAAa,GAAgC;AAAA,MAAA,CACrD;AAEG,UAAA,oBAAoB,SAAS,GAAG;AAC3B,gBAAA,MACP,6DACC,iBAAiB;AAAA;AAAA,+CAGwB,oBAAoB,KAAK,IAAI;AAAA;AAAA,kCAE1C;AAG9B,gBAAQ,KAAK,CAAC;AAAA,MACf;AAEQ,cAAA,KAAK,6DACZ,iBAAiB;AAAA;AAAA;AAAA,EAInB,OAAO,QAAQ,YAAY,EAC3B,IAAI,CAAC,CAAC,MAAM,QAAQ,MAAM,OAAO,SAAS,UAAU,EACpD,KAAK,IAAI;AAAA;AAAA;AAAA;AAAA,mHAIwG;AAEzG,aAAA;AAAA,IACR;AAAA,IAEA,KAAK,iBAAiB,SAAS;AACvB,aAAA;AAAA,QACN,cAAc;AAAA,QACd,uBAAuB;AAAA,QACvB,eAAe;AAAA,QACf,aAAa;AAAA,QACb,gBAAgB;AAAA,QAChB,cAAc;AAAA,QACd,iBAAiB;AAAA,QACjB,gBAAgB;AAAA,QAChB,mBAAmB;AAAA,QACnB,eAAe;AAAA,MAAA;AAAA,IAEjB;AAAA,IAEA,KAAK,iBAAiB;AAAA,IACtB,SAAS;AACD,aAAA;AAAA,QACN,cAAc;AAAA,QACd,uBAAuB;AAAA,QACvB,eAAe;AAAA,QACf,aAAa;AAAA,QACb,gBAAgB;AAAA,QAChB,cAAc;AAAA,QACd,iBAAiB;AAAA,QACjB,gBAAgB;AAAA,QAChB,mBAAmB;AAAA,QACnB,eAAe;AAAA,MAAA;AAAA,IAEjB;AAAA,EACD;AACD;"}
|
@@ -4,9 +4,6 @@ const APPLICATION_MODE = require("./APPLICATION_MODE.cjs");
|
|
4
4
|
const API_TOKENS = (() => {
|
5
5
|
switch (process.env.SM_ENV) {
|
6
6
|
case APPLICATION_MODE.APPLICATION_MODE.Development:
|
7
|
-
case APPLICATION_MODE.APPLICATION_MODE.DevTools:
|
8
|
-
case APPLICATION_MODE.APPLICATION_MODE.MarketingTools:
|
9
|
-
case APPLICATION_MODE.APPLICATION_MODE.Platform:
|
10
7
|
case APPLICATION_MODE.APPLICATION_MODE.Staging:
|
11
8
|
return {
|
12
9
|
SegmentKey: "Ng5oKJHCGpSWplZ9ymB7Pu7rm0sTDeiG",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"API_TOKENS.cjs","sources":["../../../src/constants/API_TOKENS.ts"],"sourcesContent":["import { APPLICATION_MODE } from \"./APPLICATION_MODE\";\n\ntype APITokens = {\n\tSegmentKey: string;\n\tAmplitudeKey: string;\n};\n\nexport const API_TOKENS: APITokens = (() => {\n\tswitch (process.env.SM_ENV) {\n\t\tcase APPLICATION_MODE.Development:\n\t\tcase APPLICATION_MODE.
|
1
|
+
{"version":3,"file":"API_TOKENS.cjs","sources":["../../../src/constants/API_TOKENS.ts"],"sourcesContent":["import { APPLICATION_MODE } from \"./APPLICATION_MODE\";\n\ntype APITokens = {\n\tSegmentKey: string;\n\tAmplitudeKey: string;\n};\n\nexport const API_TOKENS: APITokens = (() => {\n\tswitch (process.env.SM_ENV) {\n\t\tcase APPLICATION_MODE.Development:\n\t\tcase APPLICATION_MODE.Staging:\n\t\t\treturn {\n\t\t\t\tSegmentKey: \"Ng5oKJHCGpSWplZ9ymB7Pu7rm0sTDeiG\",\n\t\t\t\tAmplitudeKey: \"client-rqVU4xTNaz7F51nBfKRUa0K3qnODiqzh\",\n\t\t\t};\n\t\tcase undefined:\n\t\tcase \"\":\n\t\tcase APPLICATION_MODE.Production:\n\t\t\treturn {\n\t\t\t\tSegmentKey: \"cGjidifKefYb6EPaGaqpt8rQXkv5TD6P\",\n\t\t\t\tAmplitudeKey: \"client-JuQQWUPimfKWId3WWU6p8xSkTiFqd1qV\",\n\t\t\t};\n\t\tdefault:\n\t\t\tthrow new Error(`Unknown application mode \"${process.env.SM_ENV}\".`);\n\t}\n})();\n"],"names":["APPLICATION_MODE"],"mappings":";;;AAOO,MAAM,cAAyB,MAAK;AAClC,UAAA,QAAQ,IAAI,QAAQ;AAAA,IAC3B,KAAKA,iBAAAA,iBAAiB;AAAA,IACtB,KAAKA,iBAAiB,iBAAA;AACd,aAAA;AAAA,QACN,YAAY;AAAA,QACZ,cAAc;AAAA,MAAA;AAAA,IAEhB,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAKA,iBAAiB,iBAAA;AACd,aAAA;AAAA,QACN,YAAY;AAAA,QACZ,cAAc;AAAA,MAAA;AAAA,IAEhB;AACC,YAAM,IAAI,MAAM,6BAA6B,QAAQ,IAAI,UAAU;AAAA,EACrE;AACD;;"}
|
@@ -2,9 +2,6 @@ import { APPLICATION_MODE } from "./APPLICATION_MODE.js";
|
|
2
2
|
const API_TOKENS = (() => {
|
3
3
|
switch (process.env.SM_ENV) {
|
4
4
|
case APPLICATION_MODE.Development:
|
5
|
-
case APPLICATION_MODE.DevTools:
|
6
|
-
case APPLICATION_MODE.MarketingTools:
|
7
|
-
case APPLICATION_MODE.Platform:
|
8
5
|
case APPLICATION_MODE.Staging:
|
9
6
|
return {
|
10
7
|
SegmentKey: "Ng5oKJHCGpSWplZ9ymB7Pu7rm0sTDeiG",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"API_TOKENS.js","sources":["../../../src/constants/API_TOKENS.ts"],"sourcesContent":["import { APPLICATION_MODE } from \"./APPLICATION_MODE\";\n\ntype APITokens = {\n\tSegmentKey: string;\n\tAmplitudeKey: string;\n};\n\nexport const API_TOKENS: APITokens = (() => {\n\tswitch (process.env.SM_ENV) {\n\t\tcase APPLICATION_MODE.Development:\n\t\tcase APPLICATION_MODE.
|
1
|
+
{"version":3,"file":"API_TOKENS.js","sources":["../../../src/constants/API_TOKENS.ts"],"sourcesContent":["import { APPLICATION_MODE } from \"./APPLICATION_MODE\";\n\ntype APITokens = {\n\tSegmentKey: string;\n\tAmplitudeKey: string;\n};\n\nexport const API_TOKENS: APITokens = (() => {\n\tswitch (process.env.SM_ENV) {\n\t\tcase APPLICATION_MODE.Development:\n\t\tcase APPLICATION_MODE.Staging:\n\t\t\treturn {\n\t\t\t\tSegmentKey: \"Ng5oKJHCGpSWplZ9ymB7Pu7rm0sTDeiG\",\n\t\t\t\tAmplitudeKey: \"client-rqVU4xTNaz7F51nBfKRUa0K3qnODiqzh\",\n\t\t\t};\n\t\tcase undefined:\n\t\tcase \"\":\n\t\tcase APPLICATION_MODE.Production:\n\t\t\treturn {\n\t\t\t\tSegmentKey: \"cGjidifKefYb6EPaGaqpt8rQXkv5TD6P\",\n\t\t\t\tAmplitudeKey: \"client-JuQQWUPimfKWId3WWU6p8xSkTiFqd1qV\",\n\t\t\t};\n\t\tdefault:\n\t\t\tthrow new Error(`Unknown application mode \"${process.env.SM_ENV}\".`);\n\t}\n})();\n"],"names":[],"mappings":";AAOO,MAAM,cAAyB,MAAK;AAClC,UAAA,QAAQ,IAAI,QAAQ;AAAA,IAC3B,KAAK,iBAAiB;AAAA,IACtB,KAAK,iBAAiB;AACd,aAAA;AAAA,QACN,YAAY;AAAA,QACZ,cAAc;AAAA,MAAA;AAAA,IAEhB,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK,iBAAiB;AACd,aAAA;AAAA,QACN,YAAY;AAAA,QACZ,cAAc;AAAA,MAAA;AAAA,IAEhB;AACC,YAAM,IAAI,MAAM,6BAA6B,QAAQ,IAAI,UAAU;AAAA,EACrE;AACD;"}
|
@@ -2,9 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const APPLICATION_MODE = {
|
4
4
|
Development: "development",
|
5
|
-
DevTools: "dev-tools",
|
6
|
-
MarketingTools: "marketing-tools",
|
7
|
-
Platform: "platform",
|
8
5
|
Staging: "staging",
|
9
6
|
Production: "production"
|
10
7
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"APPLICATION_MODE.cjs","sources":["../../../src/constants/APPLICATION_MODE.ts"],"sourcesContent":["export const APPLICATION_MODE = {\n\tDevelopment: \"development\",\n\
|
1
|
+
{"version":3,"file":"APPLICATION_MODE.cjs","sources":["../../../src/constants/APPLICATION_MODE.ts"],"sourcesContent":["export const APPLICATION_MODE = {\n\tDevelopment: \"development\",\n\tStaging: \"staging\",\n\tProduction: \"production\",\n} as const;\n"],"names":[],"mappings":";;AAAO,MAAM,mBAAmB;AAAA,EAC/B,aAAa;AAAA,EACb,SAAS;AAAA,EACT,YAAY;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"APPLICATION_MODE.js","sources":["../../../src/constants/APPLICATION_MODE.ts"],"sourcesContent":["export const APPLICATION_MODE = {\n\tDevelopment: \"development\",\n\
|
1
|
+
{"version":3,"file":"APPLICATION_MODE.js","sources":["../../../src/constants/APPLICATION_MODE.ts"],"sourcesContent":["export const APPLICATION_MODE = {\n\tDevelopment: \"development\",\n\tStaging: \"staging\",\n\tProduction: \"production\",\n} as const;\n"],"names":[],"mappings":"AAAO,MAAM,mBAAmB;AAAA,EAC/B,aAAa;AAAA,EACb,SAAS;AAAA,EACT,YAAY;;"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@slicemachine/manager",
|
3
|
-
"version": "0.24.3-alpha.
|
3
|
+
"version": "0.24.3-alpha.table-field.1",
|
4
4
|
"description": "Manage all aspects of a Slice Machine project.",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -68,9 +68,9 @@
|
|
68
68
|
"@prismicio/client": "^7.11.0",
|
69
69
|
"@prismicio/custom-types-client": "2.1.0",
|
70
70
|
"@prismicio/mocks": "2.8.0",
|
71
|
-
"@prismicio/types-internal": "3.
|
71
|
+
"@prismicio/types-internal": "3.4.0-alpha.11",
|
72
72
|
"@segment/analytics-node": "^2.1.2",
|
73
|
-
"@slicemachine/plugin-kit": "0.4.65-alpha.
|
73
|
+
"@slicemachine/plugin-kit": "0.4.65-alpha.table-field.1",
|
74
74
|
"cookie": "^1.0.1",
|
75
75
|
"cors": "^2.8.5",
|
76
76
|
"execa": "^7.1.1",
|
@@ -92,23 +92,6 @@ If you didn't intend to run Slice Machine this way, stop it immediately and unse
|
|
92
92
|
};
|
93
93
|
}
|
94
94
|
|
95
|
-
case APPLICATION_MODE.DevTools:
|
96
|
-
case APPLICATION_MODE.MarketingTools:
|
97
|
-
case APPLICATION_MODE.Platform: {
|
98
|
-
return {
|
99
|
-
PrismicWroom: `https://${process.env.SM_ENV}-wroom.com/`,
|
100
|
-
PrismicAuthentication: `https://auth.${process.env.SM_ENV}-wroom.com/`,
|
101
|
-
PrismicModels: `https://customtypes.${process.env.SM_ENV}-wroom.com/`,
|
102
|
-
PrismicUser: `https://user-service.${process.env.SM_ENV}-wroom.com/`,
|
103
|
-
AwsAclProvider: `https://acl-provider.${process.env.SM_ENV}-wroom.com/`,
|
104
|
-
PrismicEmbed: `https://oembed.${process.env.SM_ENV}-wroom.com`,
|
105
|
-
PrismicUnsplash: `https://unsplash.${process.env.SM_ENV}-wroom.com/`,
|
106
|
-
SliceMachineV1: `https://sm-api.${process.env.SM_ENV}-wroom.com/v1/`,
|
107
|
-
RepositoryService: `https://repository.internal.${process.env.SM_ENV}-wroom.com/`,
|
108
|
-
LocaleService: `https://locale.internal.${process.env.SM_ENV}-wroom.com/`,
|
109
|
-
};
|
110
|
-
}
|
111
|
-
|
112
95
|
case APPLICATION_MODE.Production:
|
113
96
|
default: {
|
114
97
|
return {
|
@@ -8,9 +8,6 @@ type APITokens = {
|
|
8
8
|
export const API_TOKENS: APITokens = (() => {
|
9
9
|
switch (process.env.SM_ENV) {
|
10
10
|
case APPLICATION_MODE.Development:
|
11
|
-
case APPLICATION_MODE.DevTools:
|
12
|
-
case APPLICATION_MODE.MarketingTools:
|
13
|
-
case APPLICATION_MODE.Platform:
|
14
11
|
case APPLICATION_MODE.Staging:
|
15
12
|
return {
|
16
13
|
SegmentKey: "Ng5oKJHCGpSWplZ9ymB7Pu7rm0sTDeiG",
|