@apps-in-toss/plugins 1.1.0 → 1.1.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/index.d.cts CHANGED
@@ -118,6 +118,7 @@ declare function setupRuntimeSetupScript(config: Pick<AppsInTossPluginOptions, '
118
118
  };
119
119
  declare function setupHostRuntimeSetupScript(metadata: {
120
120
  deploymentId: string;
121
+ environment: 'live' | 'alpha';
121
122
  }): {
122
123
  contents: string;
123
124
  path: string;
package/dist/index.d.ts CHANGED
@@ -118,6 +118,7 @@ declare function setupRuntimeSetupScript(config: Pick<AppsInTossPluginOptions, '
118
118
  };
119
119
  declare function setupHostRuntimeSetupScript(metadata: {
120
120
  deploymentId: string;
121
+ environment: 'live' | 'alpha';
121
122
  }): {
122
123
  contents: string;
123
124
  path: string;
package/dist/internal.cjs CHANGED
@@ -91,6 +91,7 @@ init_cjs_shims();
91
91
  // src/appsInTossHost.ts
92
92
  init_cjs_shims();
93
93
  var import_plugin_micro_frontend = require("@granite-js/plugin-micro-frontend");
94
+ var import_plugin_sentry = require("@granite-js/plugin-sentry");
94
95
 
95
96
  // src/constants.ts
96
97
  init_cjs_shims();
@@ -914,7 +915,8 @@ var PERMISSIONS = [];
914
915
  function appsInTossHost(options) {
915
916
  const deploymentId = generateDeploymentId();
916
917
  const { contents, path: envFilePath } = setupHostRuntimeSetupScript({
917
- deploymentId
918
+ deploymentId,
919
+ environment: getHostEnvironment()
918
920
  });
919
921
  return [
920
922
  requireMicroFrontendRuntime(),
@@ -934,9 +936,20 @@ function appsInTossHost(options) {
934
936
  appsInTossCreateArtifact(deploymentId),
935
937
  appsInTossEsbuildConfig(contents),
936
938
  appsInTossMetroConfig(envFilePath),
937
- bedrockCompat({ isHost: true })
939
+ bedrockCompat({ isHost: true }),
940
+ (0, import_plugin_sentry.sentry)({ useClient: false })
938
941
  ];
939
942
  }
943
+ function getHostEnvironment() {
944
+ const environment = process.env.HOST_ENV;
945
+ switch (environment) {
946
+ case "alpha":
947
+ case "live":
948
+ return environment;
949
+ default:
950
+ return "live";
951
+ }
952
+ }
940
953
  // Annotate the CommonJS export names for ESM import in node:
941
954
  0 && (module.exports = {
942
955
  appsInTossHost
package/dist/internal.js CHANGED
@@ -84,6 +84,7 @@ init_esm_shims();
84
84
  // src/appsInTossHost.ts
85
85
  init_esm_shims();
86
86
  import { microFrontend } from "@granite-js/plugin-micro-frontend";
87
+ import { sentry } from "@granite-js/plugin-sentry";
87
88
 
88
89
  // src/constants.ts
89
90
  init_esm_shims();
@@ -907,7 +908,8 @@ var PERMISSIONS = [];
907
908
  function appsInTossHost(options) {
908
909
  const deploymentId = generateDeploymentId();
909
910
  const { contents, path: envFilePath } = setupHostRuntimeSetupScript({
910
- deploymentId
911
+ deploymentId,
912
+ environment: getHostEnvironment()
911
913
  });
912
914
  return [
913
915
  requireMicroFrontendRuntime(),
@@ -927,9 +929,20 @@ function appsInTossHost(options) {
927
929
  appsInTossCreateArtifact(deploymentId),
928
930
  appsInTossEsbuildConfig(contents),
929
931
  appsInTossMetroConfig(envFilePath),
930
- bedrockCompat({ isHost: true })
932
+ bedrockCompat({ isHost: true }),
933
+ sentry({ useClient: false })
931
934
  ];
932
935
  }
936
+ function getHostEnvironment() {
937
+ const environment = process.env.HOST_ENV;
938
+ switch (environment) {
939
+ case "alpha":
940
+ case "live":
941
+ return environment;
942
+ default:
943
+ return "live";
944
+ }
945
+ }
933
946
  export {
934
947
  appsInTossHost
935
948
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/plugins",
3
3
  "type": "module",
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "description": "The plugins for Apps In Toss",
6
6
  "scripts": {
7
7
  "prepack": "yarn build",
@@ -38,9 +38,10 @@
38
38
  "vitest": "^3.2.4"
39
39
  },
40
40
  "dependencies": {
41
- "@granite-js/plugin-core": "0.1.21",
42
- "@granite-js/plugin-micro-frontend": "0.1.21",
43
- "@granite-js/utils": "0.1.21",
41
+ "@granite-js/plugin-core": "0.1.22",
42
+ "@granite-js/plugin-micro-frontend": "0.1.22",
43
+ "@granite-js/plugin-sentry": "0.1.22",
44
+ "@granite-js/utils": "0.1.22",
44
45
  "archiver": "^7.0.1",
45
46
  "connect": "^3.7.0",
46
47
  "esbuild": "0.25.5",
@@ -51,5 +52,5 @@
51
52
  "publishConfig": {
52
53
  "access": "public"
53
54
  },
54
- "gitHead": "614cfd1ee039b44cd6efeb94cefac18ed3c0e6c3"
55
+ "gitHead": "0e0af7d44ed8ad2615a237650b9682c68ab5861e"
55
56
  }