@neutron.co.id/operasional-interfaces 1.16.1-beta.2 → 1.16.1-beta.3

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.
@@ -1,7 +1,7 @@
1
1
  export declare const useOperasionalOfficeStore: import("pinia").StoreDefinition<"neu:operasional:office:store", import("pinia")._UnwrapAll<Pick<{
2
- officeApiUrl: import("vue").Ref<string | undefined>;
2
+ officeApiUrl: import("vue").Ref<string>;
3
3
  }, "officeApiUrl">>, Pick<{
4
- officeApiUrl: import("vue").Ref<string | undefined>;
4
+ officeApiUrl: import("vue").Ref<string>;
5
5
  }, never>, Pick<{
6
- officeApiUrl: import("vue").Ref<string | undefined>;
6
+ officeApiUrl: import("vue").Ref<string>;
7
7
  }, never>>;
@@ -3,7 +3,9 @@ import { ref } from "vue";
3
3
  export const useOperasionalOfficeStore = defineStore(
4
4
  "neu:operasional:office:store",
5
5
  () => {
6
- const officeApiUrl = ref();
6
+ const officeApiUrl = ref(
7
+ process.env.APP_ENVIRONMENT === "prod" ? "https://api.office.operasional.neutron.neon.id" : process.env.APP_ENVIRONMENT === "dev" ? "https://dev.api.office.operasional.neutron.neon.id" : process.env.NEU_OPERASIONAL_OFFICE_API_URL
8
+ );
7
9
  return {
8
10
  officeApiUrl
9
11
  };
@@ -1,7 +1,7 @@
1
1
  export declare const useOperasionalOfficeStore: import("pinia").StoreDefinition<"neu:operasional:office:store", import("pinia")._UnwrapAll<Pick<{
2
- officeApiUrl: import("vue").Ref<string | undefined>;
2
+ officeApiUrl: import("vue").Ref<string>;
3
3
  }, "officeApiUrl">>, Pick<{
4
- officeApiUrl: import("vue").Ref<string | undefined>;
4
+ officeApiUrl: import("vue").Ref<string>;
5
5
  }, never>, Pick<{
6
- officeApiUrl: import("vue").Ref<string | undefined>;
6
+ officeApiUrl: import("vue").Ref<string>;
7
7
  }, never>>;
@@ -12776,7 +12776,9 @@ const Papa = /* @__PURE__ */ getDefaultExportFromCjs(papaparse_minExports);
12776
12776
  const useOperasionalOfficeStore = pinia.defineStore(
12777
12777
  "neu:operasional:office:store",
12778
12778
  () => {
12779
- const officeApiUrl = vue.ref();
12779
+ const officeApiUrl = vue.ref(
12780
+ process.env.APP_ENVIRONMENT === "prod" ? "https://api.office.operasional.neutron.neon.id" : process.env.APP_ENVIRONMENT === "dev" ? "https://dev.api.office.operasional.neutron.neon.id" : process.env.NEU_OPERASIONAL_OFFICE_API_URL
12781
+ );
12780
12782
  return {
12781
12783
  officeApiUrl
12782
12784
  };
@@ -12757,7 +12757,9 @@ const Papa = /* @__PURE__ */ getDefaultExportFromCjs(papaparse_minExports);
12757
12757
  const useOperasionalOfficeStore = defineStore(
12758
12758
  "neu:operasional:office:store",
12759
12759
  () => {
12760
- const officeApiUrl = ref();
12760
+ const officeApiUrl = ref(
12761
+ process.env.APP_ENVIRONMENT === "prod" ? "https://api.office.operasional.neutron.neon.id" : process.env.APP_ENVIRONMENT === "dev" ? "https://dev.api.office.operasional.neutron.neon.id" : process.env.NEU_OPERASIONAL_OFFICE_API_URL
12762
+ );
12761
12763
  return {
12762
12764
  officeApiUrl
12763
12765
  };
package/build/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "1.16.1-beta.2",
7
+ "version": "1.16.1-beta.3",
8
8
  "builder": {
9
9
  "@neon.id/module-builder": "1.8.0",
10
10
  "unbuild": "2.0.0"
package/build/nuxt.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "1.16.1-beta.2",
7
+ "version": "1.16.1-beta.3",
8
8
  "builder": {
9
9
  "@neon.id/module-builder": "1.8.0",
10
10
  "unbuild": "2.0.0"
package/build/nuxt.mjs CHANGED
@@ -208,8 +208,8 @@ function setupConfig(options) {
208
208
  isDebug: false,
209
209
  isProd: env === "prod",
210
210
  mode: options.mode || "office",
211
- office: {},
212
- officeApiUrl: process.env.NEU_OPERASIONAL_OFFICE_API_URL
211
+ office: {}
212
+ // officeApiUrl: process.env.NEU_OPERASIONAL_OFFICE_API_URL as string,
213
213
  });
214
214
  const key = "neu:operasional:interfaces";
215
215
  nuxt.options.runtimeConfig[key] = config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neutron.co.id/operasional-interfaces",
3
- "version": "1.16.1-beta.2",
3
+ "version": "1.16.1-beta.3",
4
4
  "description": "Interface library of Neutron Operasional.",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -164,5 +164,5 @@
164
164
  "publishConfig": {
165
165
  "access": "public"
166
166
  },
167
- "build": 172
167
+ "build": 173
168
168
  }